Bug introduced in 10.0 and fixed in 10.2
One nice way to view the new and exciting Mesh
objects introduced in Version 10 is by utilizing the function HighlightMesh
, so I've been using it heavily. Problem is, when trying to visualize 2D convex hull regions (3D case works fine) created using ConvexHullMesh
, HighlightMesh
essentially ignores the Options
for styling the face of the 2D polygon region. Here is an example:
SeedRandom[0];
pts = RandomReal[4, {200, 2}];
chull = ConvexHullMesh[pts]
Now let's Style
it using HighlightMesh
HighlightMesh[chull, {Style[0, Directive[PointSize[0.02], Red]],
Style[1, Thin, Green], Style[2, Directive[Yellow]]}]
Notice the Yellow
Color
under Style[2, ..]
, that's for the Polygon
face. This is obviously ignored for the Default
color used above. Can anyone reproduce this on Windows 8.1 and other operating systems and is there an easy workaround for this?
chull
, only lines and points (examinechull // InputForm
). I had the same problem here. I did not explain the difficulty, but I did come up with a workaround. $\endgroup$MeshCells[chull, 2]
give an output - aPolygon
? $\endgroup$HighlightMesh
toStyle
it, which is designed specifically to do this. I think it's an omission. And I agree, theMesh
objects weren't fully fleshed out. $\endgroup$MeshCell[..., 2]
does not seem to work on it either. $\endgroup$