Skip to main content
17 events
when toggle format what by license comment
Mar 11, 2016 at 22:39 comment added Cham @LLlAMnYP, could you try it and add it to your answer ? EdgeForm and FaceForm to a sphere in parametric form ?
Mar 11, 2016 at 22:37 comment added LLlAMnYP @Cham yes, that will be a collection of polygons with the expected behavior of EdgeForm.
Mar 11, 2016 at 22:27 comment added Cham @LLlAMnYP, so if you try to use FaceForm and EdgeForm on a surface defined by some smooth functions, what do you get ? Take for example the surface {Sin[theta]Cos[phi], Sin[theta]Sin[phi], Cos[theta]} (a sphere in parametric plot, not as a MMA primitive). What would you get ?
Mar 11, 2016 at 22:22 comment added LLlAMnYP @Cham that may be how MMA renders it, but it does not regard a sphere as a set of polygons. EdgeForm does not influence anything about Sphere[].
Mar 11, 2016 at 22:19 comment added Cham @LLlAMnYP, a MMA sphere is still made of lots of small triangles. The polygonal shape can easily be seen at close range. I guess I'll have to try the FaceForm and EdgeForm later, to understand what they do.
Mar 11, 2016 at 22:16 comment added LLlAMnYP @Cham I don't think Mesh is too related here. Not any surface is polygonal in MMA. Graphics3D[Sphere[]]//InputForm returns Graphics3D[Sphere[{0,0,0}]] so it doesn't have edges. PS my bad, the entire surface of the sphere is regarded as a face though.
Mar 11, 2016 at 22:13 comment added Cham @LLlAMnYP, what I don't understand is that any surface in MMA are made of polygons, with an edge. So for the moment (I still don't have access to MMA right now), I don't see what FaceForm and EdgeForm could do, relative to Mesh.
Mar 11, 2016 at 22:04 comment added LLlAMnYP @Cham The names should speak for themselves, shouldn't they? FaceForm passes directives to the sides of the cube, the big squares from which it is assembled, EdgeForm, well, acts on the edges... I really can't come up with a synonym for them. EdgeForm is really what you're looking for, but unfortunately in MMA it seems to work only on sharp corners, like those of a polyhedron. If it's a smooth surface, like the edge of a sphere then there aren't any explicit edges to highlight.
Mar 11, 2016 at 21:55 comment added Cham What are the differences between FaceForm, EdgeForm and Mesh ?
Mar 11, 2016 at 21:50 comment added Cham The last edit appears to be highly interesting. I don't have access to Mathematica right now, and I can't wait to try this code (EdgeForm and FaceForm).
Mar 11, 2016 at 21:10 comment added e.doroskevic Wolfram programming language
Mar 11, 2016 at 20:54 comment added Cham Just for curiosity, what is WPL ?
Mar 11, 2016 at 20:51 history edited e.doroskevic CC BY-SA 3.0
Alternative solution
Mar 11, 2016 at 20:48 comment added e.doroskevic I am afraid my WPL skills aren't at that level to deliver what you've requested in your original post. The only reason why I've added this solution is to share my ideas in relation to your question.
Mar 11, 2016 at 20:01 comment added Cham What would you do if you want a black outline ? The transparency trick will not work in this case. You may have to duplicate the surface, one in full black, behind the normal surface, but then there will be a problem of intersection and depth sorting...
Mar 11, 2016 at 18:47 history edited e.doroskevic CC BY-SA 3.0
Alternative solution
Mar 11, 2016 at 18:36 history answered e.doroskevic CC BY-SA 3.0