MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::MarchingCubesByParts Struct Reference
Inheritance diagram for meshlib::MarchingCubesByParts:

Public Member Functions

auto assign_from_another (s:meshlib::Owned< meshlib::MarchingCubesByParts >) -> &mut meshlib::MarchingCubesByParts
auto layers_per_block () const -> core::ffi::c_int
auto next_z () const -> core::ffi::c_int
auto add_part (part:&meshlib::SimpleVolume) -> meshlib::Owned< meshlib::expected_void_std_string >
auto finalize () -> meshlib::Owned< meshlib::expected_MR_TriMesh_std_string >

Static Public Member Functions

static auto construct_from_another (s:meshlib::Owned< meshlib::MarchingCubesByParts >) -> meshlib::Owned< meshlib::MarchingCubesByParts >
static auto construct (dims:&meshlib::Vector3i, params:&meshlib::MarchingCubesParams, layersPerBlock:Option< core::ffi::c_int >) -> meshlib::Owned< meshlib::MarchingCubesByParts >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)

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() ); Generated from class MR::MarchingCubesByParts.

Generated from class MR::MarchingCubesByParts. Heap-allocated instances are held in Owned<MarchingCubesByParts>.

Member Function Documentation

◆ add_part()

auto meshlib::MarchingCubesByParts::add_part ( part:&meshlib::SimpleVolume ) -> meshlib::Owned< meshlib::expected_void_std_string >

adds one more part of volume into consideration, with first z=nextZ() Generated from method MR::MarchingCubesByParts::addPart.

Calls MR_MarchingCubesByParts_addPart().

◆ assign_from_another()

auto meshlib::MarchingCubesByParts::assign_from_another ( s:meshlib::Owned< meshlib::MarchingCubesByParts > ) -> &mut meshlib::MarchingCubesByParts

Generated from method MR::MarchingCubesByParts::operator=.

Calls MR_MarchingCubesByParts_AssignFromAnother(). The reference to things referred to by the parameter s (if any) might be preserved in this object. The reference to this object might be preserved in the return value.

◆ construct()

auto meshlib::MarchingCubesByParts::construct ( dims:&meshlib::Vector3i ,
params:&meshlib::MarchingCubesParams ,
layersPerBlock:Option< core::ffi::c_int >  ) -> meshlib::Owned< meshlib::MarchingCubesByParts >
static

prepares convention for given volume dimensions and given parameters

Parameters
layersPerBlockall z-slices of the volume will be partitioned on blocks of given size to process blocks in parallel (0 means auto-select layersPerBlock) Generated from constructor MR::MarchingCubesByParts::MarchingCubesByParts.

Calls MR_MarchingCubesByParts_Construct(). The reference to the parameter dims might be preserved in the constructed object. The reference to the parameter params might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::MarchingCubesByParts::construct_from_another ( s:meshlib::Owned< meshlib::MarchingCubesByParts > ) -> meshlib::Owned< meshlib::MarchingCubesByParts >
static

Generated from constructor MR::MarchingCubesByParts::MarchingCubesByParts.

Calls MR_MarchingCubesByParts_ConstructFromAnother(). The reference to things referred to by the parameter s (if any) might be preserved in the constructed object.

◆ finalize()

auto meshlib::MarchingCubesByParts::finalize ( ) -> meshlib::Owned< meshlib::expected_MR_TriMesh_std_string >

finishes processing and outputs produced trimesh Generated from method MR::MarchingCubesByParts::finalize.

Calls MR_MarchingCubesByParts_finalize().

◆ layers_per_block()

auto meshlib::MarchingCubesByParts::layers_per_block ( ) const -> core::ffi::c_int

the number of z-slices of the volume in the blocks Generated from method MR::MarchingCubesByParts::layersPerBlock.

Calls MR_MarchingCubesByParts_layersPerBlock().

◆ next_z()

auto meshlib::MarchingCubesByParts::next_z ( ) const -> core::ffi::c_int

the last z-layer of the previous part and the first z-layer of the next part Generated from method MR::MarchingCubesByParts::nextZ.

Calls MR_MarchingCubesByParts_nextZ().


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