I have had a problem properly meshing certain .obj files, where others are meshed successfully.
Here is an example of a successfully meshed .obj:
Whereas, using the code at the bottom which includes the imported problematic .obj, this error (shown at bottom of the image) is produced:
Both methods of producing the mesh for these two examples are the same and only differ in their geometry. Is there anything that can be done?
Best to all.
Clear["Global`*"];
Needs["NDSolve`FEM`"]
R = Import[
"https://www.dropbox.com/s/499qd6zwu4who1e/round9.obj?dl=1"];
RegionDimension[R];
Imp = BoundaryMeshRegion[MeshCoordinates[R], MeshCells[R, 2]];
RegionDimension[Imp];
Volume[Imp];
M = RegionDifference[Cuboid[{0, 0, 0}, {2, 2, 0.0072}], Imp]
r = RegionDifference[
RegionDifference[RegionDifference[Cuboid[{0, 0, -1}, {2, 2, 1}], M],
Cuboid[{0, 0, 0.9}, {2, 2, 1}]], Cuboid[{0, 0, -1}, {2, 2, -0.9}]]
ToElementMesh[r]["Wireframe"]
```