Public Member Functions | |
None | __init__ (self, Vector3i dims, MarchingCubesParams params, int layersPerBlock=0) |
None | addPart (self, SimpleVolume part) |
TriMesh | finalize (self) |
int | layersPerBlock (self) |
int | nextZ (self) |
Generated from: MR::MarchingCubesByParts converts volume split on parts by planes z=const into mesh, last z-layer of previous part must be repeated as first z-layer of next part usage: MarchingCubesByParts x( dims, params); x.addPart( part1 ); ... x.addPart( partN ); Mesh mesh = Mesh::fromTriMesh( *x.finalize() );
None meshlib.mrmeshpy.MarchingCubesByParts.__init__ | ( | self, | |
Vector3i | dims, | ||
MarchingCubesParams | params, | ||
int | layersPerBlock = 0 ) |
prepares convention for given volume dimensions and given parameters \\param layersPerBlock all z-slices of the volume will be partitioned on blocks of given size to process blocks in parallel (0 means auto-select layersPerBlock)
None meshlib.mrmeshpy.MarchingCubesByParts.addPart | ( | self, | |
SimpleVolume | part ) |
adds one more part of volume into consideration, with first z=nextZ()
TriMesh meshlib.mrmeshpy.MarchingCubesByParts.finalize | ( | self | ) |
finishes processing and outputs produced trimesh
int meshlib.mrmeshpy.MarchingCubesByParts.layersPerBlock | ( | self | ) |
the number of z-slices of the volume in the blocks
int meshlib.mrmeshpy.MarchingCubesByParts.nextZ | ( | self | ) |
the last z-layer of the previous part and the first z-layer of the next part