( mesh : mm.Mesh, voxelSize : float, decimate : bool = True )
| 2 | from meshlib import mrcudapy as mc |
| 3 | |
| 4 | def rebuild( mesh : mm.Mesh, voxelSize : float, decimate : bool = True )->mm.Mesh: |
| 5 | params = mm.RebuildMeshSettings() |
| 6 | params.voxelSize = voxelSize # mm.suggestVoxelSize(mesh,5e7) # suggest amount of voxels to use |
| 7 | if mc.isCudaAvailable(): |
| 8 | params.fwn = mc.FastWindingNumber(mesh) # only if cuda is available, for speedup |
| 9 | params.decimate = decimate |
| 10 | return mm.rebuildMesh(mesh,params) # it can leave some small components |
nothing calls this directly
no test coverage detected