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.

Required fields*

3
  • $\begingroup$ DiscretizeRegion can also take MaxCellMeasure. Similarly you can recover an ElementMesh by simply calling it on the MeshRegion. E.g. NDSolve`FEM`ElementMesh[MR]. $\endgroup$ Commented Sep 13, 2017 at 16:20
  • 2
    $\begingroup$ @b3m2a1 OP is importing the mesh from an STL file, i.e. it has already been discretized, so DiscretizeRegion is never used. It is used in the question only to create an example of an imported mesh. $\endgroup$ Commented Sep 14, 2017 at 10:00
  • 2
    $\begingroup$ Note that you can directly import an STL as an ElementMesh: Needs["NDSolve`FEM`"]; bmesh = Import["~/gear.stl", "ElementMesh"] but you need to do this in a fresh session. Also, you can find a lot of information in the ElementMesh generation tutorial $\endgroup$ Commented Sep 14, 2017 at 13:02