Skip to content

Healing/rebuilding multiple meshes in .stp file #3069

Answered by Grantim
VoRodin asked this question in Q&A
Discussion options

You must be logged in to vote

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 size
mm.suggestVoxelSize(mesh,1e4) as maximum voxel size

mm.suggestVoxelSize(mesh,1e8) as default voxel size

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(m…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@Grantim
Comment options

@VoRodin
Comment options

@Grantim
Comment options

@Grantim
Comment options

@VoRodin
Comment options

Answer selected by VoRodin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants