Skip to main content

Timeline for Draw a triangulated sphere

Current License: CC BY-SA 3.0

21 events
when toggle format what by license comment
Jun 16, 2020 at 9:23 history edited CommunityBot
Commonmark migration
Mar 31, 2017 at 19:21 vote accept wonderich
Mar 31, 2017 at 16:14 comment added b3m2a1 @wonderich It's actually in the the call to DiscretizeRegion that you'll want to change things. Try mesh = DiscretizeRegion[Sphere[], MaxCellMeasure->{"Length" -> .35}, PrecisionGoal -> .01]. That's what I used here
Mar 31, 2017 at 16:11 comment added wonderich In your first part answer, using "MeshRegion" -- what values should I adjust to change the number of triangulations? Thanks!
Mar 31, 2017 at 16:03 comment added b3m2a1 @wonderich Sure there is. You'd change it in the discretize call. See the various other answers for an example. In part two of yode's answer I tweaked things to basically exactly reproduce your picture. Did that by reducing how fine a mesh it triangulated.
Mar 31, 2017 at 16:01 comment added wonderich Thanks again, I wonder whether there is a way to change the number of triangulation (to fewer triangles)?
Mar 31, 2017 at 5:38 comment added yode I post it as a answer here.And I have specified that is your work. :)
Mar 31, 2017 at 5:33 comment added b3m2a1 @yode use /._EdgeForm->EdgeForm[Black]
Mar 31, 2017 at 5:32 comment added yode Your SliceDensityPlot3D work well,just we cannot set the edge be Black.
Mar 31, 2017 at 5:26 comment added b3m2a1 @yode you can probably increase the mesh size in the discretize call. I just remembered about SliceDensityPlot3D which solves the OPs problem better. Unable to post it right now, though, so feel free to put it out there SliceDensityPlot3D[z, mesh, {x,-1,1}, {y,-1,1},{z,-1,1},ColorFunction->"Rainbow"] should do it.
Mar 31, 2017 at 5:15 comment added yode And we can use MeshPrimitives[mesh, 2]
Mar 31, 2017 at 5:11 comment added yode Have you noted we cannot make that triangle be more lager when we discretize a sphere?
Mar 31, 2017 at 4:53 comment added b3m2a1 @yode Nice point. I included it.
Mar 31, 2017 at 4:53 history edited b3m2a1 CC BY-SA 3.0
added 42 characters in body
Mar 31, 2017 at 4:50 comment added ubpdqn @MB1965 thanks for lesson on Lighting +1 :)
Mar 31, 2017 at 4:49 comment added yode +1 for Lighting.BTY,MeshCellHighlight -> {{1, All} -> Black} is more similar with OP
Mar 31, 2017 at 4:49 comment added b3m2a1 @wonderich Added.
Mar 31, 2017 at 4:49 history edited b3m2a1 CC BY-SA 3.0
added 412 characters in body
Mar 31, 2017 at 4:45 comment added b3m2a1 @wonderich Then your life is much easier. Use MeshCoordinates. I'll post an addendum.
Mar 31, 2017 at 4:44 comment added wonderich Thanks, but I hope to have the "triangulated" grid for the math purpose. (Not for the art purpose.)
Mar 31, 2017 at 4:41 history answered b3m2a1 CC BY-SA 3.0