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

Public Member Functions

auto assign_from_another (_other:&meshlib::SeparationPointStorage) -> &mut meshlib::SeparationPointStorage
void resize (blockCount:usize, blockSize:usize)
auto get_block (blockIndex:usize) -> &mut meshlib::SeparationPointStorage_Block
auto make_unique_vids () -> core::ffi::c_int
auto find_separation_point_set (voxelId:usize) const -> Option<&meshlib::std_array_MR_VertId_3 >
auto get_triangulation (outVoxelPerFaceMap:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId >) const -> meshlib::Owned< meshlib::Triangulation >
void get_points (points:&mut meshlib::VertCoords) const

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SeparationPointStorage >
static auto construct_from_another (_other:&meshlib::SeparationPointStorage) -> meshlib::Owned< meshlib::SeparationPointStorage >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

storage for points on voxel edges used in Marching Cubes algorithms Generated from class MR::SeparationPointStorage.

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

Member Function Documentation

◆ assign_from_another()

auto meshlib::SeparationPointStorage::assign_from_another ( _other:&meshlib::SeparationPointStorage ) -> &mut meshlib::SeparationPointStorage

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

Calls MR_SeparationPointStorage_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ construct_from_another()

auto meshlib::SeparationPointStorage::construct_from_another ( _other:&meshlib::SeparationPointStorage ) -> meshlib::Owned< meshlib::SeparationPointStorage >
static

Generated from constructor MR::SeparationPointStorage::SeparationPointStorage.

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

◆ find_separation_point_set()

auto meshlib::SeparationPointStorage::find_separation_point_set ( voxelId:usize ) const -> Option<&meshlib::std_array_MR_VertId_3 >

finds the set (locating the block) by voxel id Generated from method MR::SeparationPointStorage::findSeparationPointSet.

Calls MR_SeparationPointStorage_findSeparationPointSet().

◆ get_block()

auto meshlib::SeparationPointStorage::get_block ( blockIndex:usize ) -> &mut meshlib::SeparationPointStorage_Block

get block for filling in the thread responsible for it Generated from method MR::SeparationPointStorage::getBlock.

Calls MR_SeparationPointStorage_getBlock().

◆ get_points()

void meshlib::SeparationPointStorage::get_points ( points:&mut meshlib::VertCoords ) const

obtains coordinates of all stored points Generated from method MR::SeparationPointStorage::getPoints.

Calls MR_SeparationPointStorage_getPoints().

◆ get_triangulation()

auto meshlib::SeparationPointStorage::get_triangulation ( outVoxelPerFaceMap:Option<&mut meshlib::Vector_MR_VoxelId_MR_FaceId > ) const -> meshlib::Owned< meshlib::Triangulation >

combines triangulations from every block into one and returns it Generated from method MR::SeparationPointStorage::getTriangulation.

Calls MR_SeparationPointStorage_getTriangulation().

◆ make_unique_vids()

auto meshlib::SeparationPointStorage::make_unique_vids ( ) -> core::ffi::c_int

shifts vertex ids in each block (after they are filled) to make them unique; returns the total number of valid points in the storage Generated from method MR::SeparationPointStorage::makeUniqueVids.

Calls MR_SeparationPointStorage_makeUniqueVids().

◆ new()

auto meshlib::SeparationPointStorage::new ( ) -> meshlib::Owned< meshlib::SeparationPointStorage >
static

Constructs an empty (default-constructed) instance.

Calls MR_SeparationPointStorage_DefaultConstruct().

◆ resize()

void meshlib::SeparationPointStorage::resize ( blockCount:usize ,
blockSize:usize  )

prepares storage for given number of blocks, each containing given size of voxels Generated from method MR::SeparationPointStorage::resize.

Calls MR_SeparationPointStorage_resize().


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