-
Hello, first of all, thanks a lot for developing this library and MeshInspector. Now I am facing a problem where I have 2 meshes, where one should be healed/rebuild I have tried the heal function from healer.py from meshlib import mrmeshpy as mm
mesh = mm.loadMesh("absorber_w_plate_2mm.stp")
new_mesh=heal(mesh,0.1) But it took a long time and didn't finish. Another question mark is how to find the optimal voxel size for rebuilding it using MeshLib. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hello! We have function
but also please note that in MeshInspector we use CUDA implementation of the algorithm (if possible) that gives major speedup compared to CPU version. (We will provide CUDA algorithm in python in future, but now it is not available). from meshlib import mrmeshpy as mm
mesh = mm.loadMesh("absorber_w_plate_2mm.stp")
new_mesh=heal(mesh,mm.suggestVoxelSize(mesh,1e7)) P.S. |
Beta Was this translation helpful? Give feedback.
Hello!
We have function
suggestVoxelSize
to find voxel size to approximately fit desired number of voxels. Basically voxel size represent precision of rebuild.In MeshInspector we use
mm.suggestVoxelSize(mesh,1e9)
as minimum voxel sizemm.suggestVoxelSize(mesh,1e4)
as maximum voxel sizemm.suggestVoxelSize(mesh,1e8)
as default voxel sizebut also please note that in MeshInspector we use CUDA implementation of the algorithm (if possible) that gives major speedup compared to CPU version. (We will provide CUDA algorithm in python in future, but now it is not available).