I'm using this code to show the convex hull.
I want to give every sides color because I'm doing some changes in convex hull and I need to see every sides alone.
ClearAll["Global`*"]
M = x^4 + x y z + y^4 + z^4 + x^2 z^2
p = CoefficientRules[M, {x, y, z}][[All, 1]]
chull = ConvexHullMesh[p];
Show[HighlightMesh[chull, Labeled[1, "Index"]],
Graphics3D[{Red, Sphere[p, 0.05], Black,
Map[Text[#, # + {0., 0, 0.1}] &, p]}]
, Axes -> True, Boxed -> True, AxesLabel -> {x, y, z}]
Another step:
Can I cut part of the convex hull (or can I just see part of convex hull)
because in my work I will just focus on the part from the view from (0,0,0)
Thank you
{2, 0, 2}
. Soq = Drop[p, {2}]; newchull = ConvexHullMesh[q];
will give you a mesh with the expected four faces. Of course, you may want 6 faces. In which case, nevermind. $\endgroup$ – aardvark2012 Oct 28 '17 at 7:25