I know practically nothing about meshes, so I was wondering whether it's possible in Mathematica to convert a 2D mesh, embedded in 3 dimensions, to a 3D mesh? The 2D mesh was generated by a CAD program in STL format.
Asked
Active
Viewed 354 times
1 Answers
6
If the 2D mesh is watertight, you can create a BoundaryMeshRegion from it and then call DiscretizeRegion on it. The result fills the region enclosed by the surface mesh with a tet-mesh.
Something like this should work:
R = DiscretizeRegion[Import["file.stl", "BoundaryMeshRegion"]]
Henrik Schumacher
- 106,770
- 7
- 179
- 309
-
@HenrikSchumacker Thank you--that totally worked. I had tried the "DiscretizeRegion" function, but I didn't import the region as a BoundaryMeshRegion and it didn't work. – Cassini Feb 11 '24 at 21:10
-
1