1
$\begingroup$

The obj file is here

enter image description here

As you see, I cannot import such a house model into Mathematica with BoundaryMeshRegion Option.

Import[objFile, "BoundaryMeshRegion"] 

So my question is How can I convert such a model imported as MeshRegion into a BoundaryMeshRegion with similar shape[we can modify some parts of the original model]. Or Cut the model into parts of BoundaryMeshRegion models.

meshRaw=Import[objFile,"MeshRegion"] 

this is related question, we can see, BoundaryMeshRegion object can calculate Volume directly.

enter image description here

$\endgroup$
3
  • 2
    $\begingroup$ Normally one would use RegionBoundary, but the mesh has to have a proper boundary. $\endgroup$ Commented May 9, 2020 at 7:46
  • $\begingroup$ @Szabolcs Sometimes, the mesh is really not a BoundaryMeshRegion, but we can remesh the model to make it into a BoundaryMeshRegion like doing that in 3d softwares' Remesh function, for example, remesh in Blender. So I wonder whether we can have a simple way to get a similar BoundaryMeshRegion in Mathematica. $\endgroup$ Commented May 9, 2020 at 8:33
  • $\begingroup$ Yes, I'm sorry, RegionBoundary won't work if the MeshRegion is already just a 2D surface. When I had to deal with this last time, I used a remeshing tool from MATLAB through MATLink. RepairMesh sometimes helps, but it usually does not. $\endgroup$ Commented May 9, 2020 at 11:25

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.