MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::MarchingCubesByParts Class Reference

#include <MRVoxels/MRMarchingCubes.h>

Public Member Functions

 MarchingCubesByParts (const Vector3i &dims, const MarchingCubesParams &params, int layersPerBlock=0)
 ~MarchingCubesByParts ()
 MarchingCubesByParts (MarchingCubesByParts &&s) noexcept
MarchingCubesByPartsoperator= (MarchingCubesByParts &&s) noexcept
int layersPerBlock () const
 the number of z-slices of the volume in the blocks
int nextZ () const
 the last z-layer of the previous part and the first z-layer of the next part
Expected< void > addPart (const SimpleVolume &part)
 adds one more part of volume into consideration, with first z=nextZ()
Expected< TriMeshfinalize ()
 finishes processing and outputs produced trimesh

Detailed Description

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


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