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

Public Member Functions

auto assign_from_another (_other:&meshlib::VolumeIndexer) -> &mut meshlib::VolumeIndexer
auto dims () const -> &meshlib::Vector3i
auto size () const -> usize
auto end_id () const -> meshlib::VoxelId
auto size_xy () const -> usize
auto to_pos (id:meshlib::VoxelId) const -> meshlib::Vector3i
auto to_voxel_id (pos:&meshlib::Vector3i) const -> meshlib::VoxelId
auto to_loc_mr_voxel_id (id:meshlib::VoxelId) const -> meshlib::Owned< meshlib::VoxelLocation >
auto to_loc_mr_vector3i (pos:&meshlib::Vector3i) const -> meshlib::Owned< meshlib::VoxelLocation >
auto is_in_dims (pos:&meshlib::Vector3i) const -> bool
auto is_bd_voxel (pos:&meshlib::Vector3i) const -> bool
auto are_neigbors_mr_voxel_id (v0:meshlib::VoxelId, v1:meshlib::VoxelId) const -> bool
auto are_neigbors_mr_vector3i (pos0:&meshlib::Vector3i, pos1:&meshlib::Vector3i) const -> bool
auto has_neighbour (pos:&meshlib::Vector3i, toNei:meshlib::OutEdge) const -> bool
auto get_neighbor_2_mr_voxel_id (v:meshlib::VoxelId, toNei:meshlib::OutEdge) const -> meshlib::VoxelId
auto get_neighbor_3 (v:meshlib::VoxelId, pos:&meshlib::Vector3i, toNei:meshlib::OutEdge) const -> meshlib::VoxelId
auto get_neighbor_2_mr_voxel_location (loc:&meshlib::VoxelLocation, toNei:meshlib::OutEdge) const -> meshlib::Owned< meshlib::VoxelLocation >
auto get_existing_neighbor (v:meshlib::VoxelId, toNei:meshlib::OutEdge) const -> meshlib::VoxelId
auto get_neighbor_4 (v:meshlib::VoxelId, pos:&meshlib::Vector3i, bdPos:bool, toNei:meshlib::OutEdge) const -> meshlib::VoxelId

Static Public Member Functions

static auto construct_from_another (_other:&meshlib::VolumeIndexer) -> meshlib::Owned< meshlib::VolumeIndexer >
static auto construct (dims:&meshlib::Vector3i) -> meshlib::Owned< meshlib::VolumeIndexer >
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

Generated from class MR::VolumeIndexer.

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

Member Function Documentation

◆ are_neigbors_mr_vector3i()

auto meshlib::VolumeIndexer::are_neigbors_mr_vector3i ( pos0:&meshlib::Vector3i ,
pos1:&meshlib::Vector3i  ) const -> bool

Generated from method MR::VolumeIndexer::areNeigbors.

Calls MR_VolumeIndexer_areNeigbors_MR_Vector3i().

◆ are_neigbors_mr_voxel_id()

auto meshlib::VolumeIndexer::are_neigbors_mr_voxel_id ( v0:meshlib::VoxelId ,
v1:meshlib::VoxelId  ) const -> bool

returns true if v1 is within at most 6 neighbors of v0 Generated from method MR::VolumeIndexer::areNeigbors.

Calls MR_VolumeIndexer_areNeigbors_MR_VoxelId().

◆ assign_from_another()

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

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

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

◆ construct()

auto meshlib::VolumeIndexer::construct ( dims:&meshlib::Vector3i ) -> meshlib::Owned< meshlib::VolumeIndexer >
static

Generated from constructor MR::VolumeIndexer::VolumeIndexer.

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

◆ construct_from_another()

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

Generated from constructor MR::VolumeIndexer::VolumeIndexer.

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

◆ dims()

auto meshlib::VolumeIndexer::dims ( ) const -> &meshlib::Vector3i

Generated from method MR::VolumeIndexer::dims.

Calls MR_VolumeIndexer_dims().

◆ end_id()

auto meshlib::VolumeIndexer::end_id ( ) const -> meshlib::VoxelId

returns the last plus one voxel Id for defining iteration range Generated from method MR::VolumeIndexer::endId.

Calls MR_VolumeIndexer_endId().

◆ get_existing_neighbor()

auto meshlib::VolumeIndexer::get_existing_neighbor ( v:meshlib::VoxelId ,
toNei:meshlib::OutEdge  ) const -> meshlib::VoxelId

returns id of v's neighbor specified by the edge, which is known to exist (so skipping a lot of checks) Generated from method MR::VolumeIndexer::getExistingNeighbor.

Calls MR_VolumeIndexer_getExistingNeighbor().

◆ get_neighbor_2_mr_voxel_id()

auto meshlib::VolumeIndexer::get_neighbor_2_mr_voxel_id ( v:meshlib::VoxelId ,
toNei:meshlib::OutEdge  ) const -> meshlib::VoxelId

returns id of v's neighbor specified by the edge Generated from method MR::VolumeIndexer::getNeighbor.

Calls MR_VolumeIndexer_getNeighbor_2_MR_VoxelId().

◆ get_neighbor_2_mr_voxel_location()

auto meshlib::VolumeIndexer::get_neighbor_2_mr_voxel_location ( loc:&meshlib::VoxelLocation ,
toNei:meshlib::OutEdge  ) const -> meshlib::Owned< meshlib::VoxelLocation >

given existing voxel at (loc), returns its neighbor specified by the edge (toNei); if the neighbour does not exist (loc is on boundary), returns invalid VoxelLocation Generated from method MR::VolumeIndexer::getNeighbor.

Calls MR_VolumeIndexer_getNeighbor_2_MR_VoxelLocation().

◆ get_neighbor_3()

auto meshlib::VolumeIndexer::get_neighbor_3 ( v:meshlib::VoxelId ,
pos:&meshlib::Vector3i ,
toNei:meshlib::OutEdge  ) const -> meshlib::VoxelId

Generated from method MR::VolumeIndexer::getNeighbor.

Calls MR_VolumeIndexer_getNeighbor_3().

◆ get_neighbor_4()

auto meshlib::VolumeIndexer::get_neighbor_4 ( v:meshlib::VoxelId ,
pos:&meshlib::Vector3i ,
bdPos:bool ,
toNei:meshlib::OutEdge  ) const -> meshlib::VoxelId

Generated from method MR::VolumeIndexer::getNeighbor.

Calls MR_VolumeIndexer_getNeighbor_4().

◆ has_neighbour()

auto meshlib::VolumeIndexer::has_neighbour ( pos:&meshlib::Vector3i ,
toNei:meshlib::OutEdge  ) const -> bool

given existing voxel at (pos), returns whether it has valid neighbor specified by the edge (toNei) Generated from method MR::VolumeIndexer::hasNeighbour.

Calls MR_VolumeIndexer_hasNeighbour().

◆ is_bd_voxel()

auto meshlib::VolumeIndexer::is_bd_voxel ( pos:&meshlib::Vector3i ) const -> bool

returns true if this voxel is on the boundary of the volume Generated from method MR::VolumeIndexer::isBdVoxel.

Calls MR_VolumeIndexer_isBdVoxel().

◆ is_in_dims()

auto meshlib::VolumeIndexer::is_in_dims ( pos:&meshlib::Vector3i ) const -> bool

returns true if this voxel is within dimensions Generated from method MR::VolumeIndexer::isInDims.

Calls MR_VolumeIndexer_isInDims().

◆ size()

auto meshlib::VolumeIndexer::size ( ) const -> usize

returns the total number of voxels Generated from method MR::VolumeIndexer::size.

Calls MR_VolumeIndexer_size().

◆ size_xy()

auto meshlib::VolumeIndexer::size_xy ( ) const -> usize

Generated from method MR::VolumeIndexer::sizeXY.

Calls MR_VolumeIndexer_sizeXY().

◆ to_loc_mr_vector3i()

auto meshlib::VolumeIndexer::to_loc_mr_vector3i ( pos:&meshlib::Vector3i ) const -> meshlib::Owned< meshlib::VoxelLocation >

Generated from method MR::VolumeIndexer::toLoc.

Calls MR_VolumeIndexer_toLoc_MR_Vector3i().

◆ to_loc_mr_voxel_id()

auto meshlib::VolumeIndexer::to_loc_mr_voxel_id ( id:meshlib::VoxelId ) const -> meshlib::Owned< meshlib::VoxelLocation >

Generated from method MR::VolumeIndexer::toLoc.

Calls MR_VolumeIndexer_toLoc_MR_VoxelId().

◆ to_pos()

auto meshlib::VolumeIndexer::to_pos ( id:meshlib::VoxelId ) const -> meshlib::Vector3i

Generated from method MR::VolumeIndexer::toPos.

Calls MR_VolumeIndexer_toPos().

◆ to_voxel_id()

auto meshlib::VolumeIndexer::to_voxel_id ( pos:&meshlib::Vector3i ) const -> meshlib::VoxelId

Generated from method MR::VolumeIndexer::toVoxelId.

Calls MR_VolumeIndexer_toVoxelId().


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