Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • $\begingroup$ I really thought I tried that and it didn't work! Apparently I did something wrong. This is the useful answer for me because it preserves neighbourhood relations. Triangulating faces separately doesn't. If you look carefully at the images in the other answers, the subdivision of the cube edges isn't identical between faces either. With this method it is. $\endgroup$ Commented Oct 28, 2016 at 21:19
  • $\begingroup$ @Szabolcs Ah yes I see what you are saying. Just as an FYI, you could always add an extra step after triangulating faces separately and fix that issue with RepairMesh[r2, "TJunctionEdges"]. $\endgroup$ Commented Oct 28, 2016 at 21:23
  • 2
    $\begingroup$ I didn't even consider this. Feeling a bit foolish now... $\endgroup$ Commented Oct 28, 2016 at 21:28
  • $\begingroup$ @Szabolcs What version are you on? All 3 of those examples work for me on 11.0.0. $\endgroup$ Commented Nov 2, 2016 at 15:09
  • $\begingroup$ @ChipHurst I am sorry, I am stupid. I used MaxCellMeasure -> number instead of MaxCellMeasure -> {2 -> number}. Need more coffee ... won't comment today anymore before thinking things through 3 times. Yes, everything works correctly. $\endgroup$ Commented Nov 2, 2016 at 15:10