I try to mesh a sphere (examplary) in different qualities, using MaxCellMeasure
:
DiscretizeRegion[Sphere[], MaxCellMeasure -> #] & /@ {.1, 1, 10}
but result shows no diffenerence.
What could be the reason? Thanks!
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIn this case DiscretizeGraphics
does what you want:
DiscretizeGraphics[Sphere[], MaxCellMeasure -> {2 -> #}] & /@ {.01, .1, 1, 10}
Funnily enough the documentation for MaxCellMeasure
has an example similar to this question. It doesn't work now either. https://wolfram.com/xid/0dqt848dvp2-ej8ci4
MaxCellMeasure
still persists if you change your example to DiscretizeGraphics[Sphere[], MaxCellMeasure -> { #}] & /@ {.01, .1, 1, 10}
$\endgroup$
Jul 4, 2022 at 6:31
MaxCellMeasure
is d
for a MeshRegion
and d-1
for a BoundaryMeshRegion
, where d
is the embedding dimension. Since Sphere
has dimension 2, we need to specify it.
$\endgroup$
Jul 4, 2022 at 12:27
DiscretizeGraphics[Sphere[], MaxCellMeasure -> {"Volume"-> .1}]
is accepted without error message
$\endgroup$
Jul 4, 2022 at 12:41
You could use "SpherePoints" and "ConvexHull" like:
Table[ConvexHullRegion[SpherePoints[i]] // Region , {i, 50, 550,
100}]
AccuracyGoal
as well:DiscretizeRegion[Sphere[], MaxCellMeasure -> 0.01, AccuracyGoal -> 0]
. $\endgroup$Volume[Sphere[]]
givesUndefined
$\endgroup$Volume[Ball[]]
gives $\frac{4 \pi }{3}$. I thinkSphere
is surface only just like in 2D whereDisk[]
has area, butCircle[]
doesn't. $\endgroup$Ball[]
andDisk[]
are "full" regions, whileSphere[]
andCircle[]
are a dimension less than their embedding dimension. $\endgroup$MaxCellMeasure
is"Volume"
both forBall
andSphere
. $\endgroup$