MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.MarchingCubesByParts Class Reference
Inheritance diagram for mrmeshpy.MarchingCubesByParts:

Public Member Functions

None __init__ (self, ConstVector3i dims, ConstMarchingCubesParams params, int layersPerBlock=0)
None addPart (self, ConstSimpleVolume part)
TriMesh finalize (self)
Public Member Functions inherited from mrmeshpy.ConstMarchingCubesByParts
 __init__ (self, *args, **kwargs)
int layersPerBlock (self)
int nextZ (self)

Detailed Description

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() );

Constructor & Destructor Documentation

◆ __init__()

None mrmeshpy.MarchingCubesByParts.__init__ ( self,
ConstVector3i dims,
ConstMarchingCubesParams 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)

Member Function Documentation

◆ addPart()

None mrmeshpy.MarchingCubesByParts.addPart ( self,
ConstSimpleVolume part )
adds one more part of volume into consideration, with first z=nextZ()

◆ finalize()

TriMesh mrmeshpy.MarchingCubesByParts.finalize ( self)
finishes processing and outputs produced trimesh

The documentation for this class was generated from the following file: