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

Public Member Functions

auto assign_from_another (_other:&meshlib::VoxelMetricParameters) -> &mut meshlib::VoxelMetricParameters
auto start () const -> &usize
auto start_mut () -> &mut usize
void set_start (value:usize)
auto stop () const -> &usize
auto stop_mut () -> &mut usize
void set_stop (value:usize)
auto max_dist_ratio () const -> &f32
auto max_dist_ratio_mut () -> &mut f32
void set_max_dist_ratio (value:f32)
auto plane () const -> &meshlib::SlicePlane
auto plane_mut () -> &mut meshlib::SlicePlane
void set_plane (value:meshlib::SlicePlane)
auto quaters_mask () const -> &meshlib::QuarterBit
auto quaters_mask_mut () -> &mut meshlib::QuarterBit
void set_quaters_mask (value:meshlib::QuarterBit)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::VoxelMetricParameters >
static auto construct_from (start:usize, stop:usize, maxDistRatio:f32, plane:meshlib::SlicePlane, quatersMask:meshlib::QuarterBit) -> meshlib::Owned< meshlib::VoxelMetricParameters >
static auto construct_from_another (_other:&meshlib::VoxelMetricParameters) -> meshlib::Owned< meshlib::VoxelMetricParameters >
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

Parameters for building metric function Generated from class MR::VoxelMetricParameters.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::VoxelMetricParameters::construct_from ( start:usize ,
stop:usize ,
maxDistRatio:f32 ,
plane:meshlib::SlicePlane ,
quatersMask:meshlib::QuarterBit  ) -> meshlib::Owned< meshlib::VoxelMetricParameters >
static

Constructs MR::VoxelMetricParameters elementwise.

Calls MR_VoxelMetricParameters_ConstructFrom(). The reference to the parameter start might be preserved in the constructed object. The reference to the parameter stop might be preserved in the constructed object. The reference to the parameter plane might be preserved in the constructed object. The reference to the parameter quatersMask might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::VoxelMetricParameters::VoxelMetricParameters.

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

◆ max_dist_ratio()

auto meshlib::VoxelMetricParameters::max_dist_ratio ( ) const -> &f32

< max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed Returns a pointer to a member variable of class MR::VoxelMetricParameters named maxDistRatio.

Calls MR_VoxelMetricParameters_Get_maxDistRatio(). The reference to this object might be preserved as the return value.

◆ max_dist_ratio_mut()

auto meshlib::VoxelMetricParameters::max_dist_ratio_mut ( ) -> &mut f32

< max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed Returns a mutable pointer to a member variable of class MR::VoxelMetricParameters named maxDistRatio.

Calls MR_VoxelMetricParameters_GetMutable_maxDistRatio(). The reference to this object might be preserved as the return value.

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_VoxelMetricParameters_DefaultConstruct().

◆ plane()

auto meshlib::VoxelMetricParameters::plane ( ) const -> &meshlib::SlicePlane

< if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate) Returns a pointer to a member variable of class MR::VoxelMetricParameters named plane.

Calls MR_VoxelMetricParameters_Get_plane(). The reference to this object might be preserved as the return value.

◆ plane_mut()

auto meshlib::VoxelMetricParameters::plane_mut ( ) -> &mut meshlib::SlicePlane

< if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate) Returns a mutable pointer to a member variable of class MR::VoxelMetricParameters named plane.

Calls MR_VoxelMetricParameters_GetMutable_plane(). The reference to this object might be preserved as the return value.

◆ quaters_mask()

auto meshlib::VoxelMetricParameters::quaters_mask ( ) const -> &meshlib::QuarterBit

< quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All Returns a pointer to a member variable of class MR::VoxelMetricParameters named quatersMask.

Calls MR_VoxelMetricParameters_Get_quatersMask(). The reference to this object might be preserved as the return value.

◆ quaters_mask_mut()

auto meshlib::VoxelMetricParameters::quaters_mask_mut ( ) -> &mut meshlib::QuarterBit

< quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All Returns a mutable pointer to a member variable of class MR::VoxelMetricParameters named quatersMask.

Calls MR_VoxelMetricParameters_GetMutable_quatersMask(). The reference to this object might be preserved as the return value.

◆ set_max_dist_ratio()

void meshlib::VoxelMetricParameters::set_max_dist_ratio ( value:f32 )

< max distance ratio: if (dist^2(next,start) + dist^2(next,stop) > maxDistRatio^2*dist^2(start,stop)) - candidate is not processed Modifies a member variable of class MR::VoxelMetricParameters named maxDistRatio.

Calls MR_VoxelMetricParameters_Set_maxDistRatio().

◆ set_plane()

void meshlib::VoxelMetricParameters::set_plane ( value:meshlib::SlicePlane )

< if not None - builds path in one slice of voxels (make sure start and stop has same main axis coordinate) Modifies a member variable of class MR::VoxelMetricParameters named plane.

Calls MR_VoxelMetricParameters_Set_plane(). The reference to the parameter value might be preserved in this object in element plane.

◆ set_quaters_mask()

void meshlib::VoxelMetricParameters::set_quaters_mask ( value:meshlib::QuarterBit )

< quarter of building path, if plane is selected, it should be (LeftLeft | LeftRigth) or (RigthLeft | RightRight) or All Modifies a member variable of class MR::VoxelMetricParameters named quatersMask.

Calls MR_VoxelMetricParameters_Set_quatersMask(). The reference to the parameter value might be preserved in this object in element quatersMask.

◆ set_start()

void meshlib::VoxelMetricParameters::set_start ( value:usize )

< start voxel index Modifies a member variable of class MR::VoxelMetricParameters named start.

Calls MR_VoxelMetricParameters_Set_start(). The reference to the parameter value might be preserved in this object in element start.

◆ set_stop()

void meshlib::VoxelMetricParameters::set_stop ( value:usize )

< stop voxel index Modifies a member variable of class MR::VoxelMetricParameters named stop.

Calls MR_VoxelMetricParameters_Set_stop(). The reference to the parameter value might be preserved in this object in element stop.

◆ start()

auto meshlib::VoxelMetricParameters::start ( ) const -> &usize

< start voxel index Returns a pointer to a member variable of class MR::VoxelMetricParameters named start.

Calls MR_VoxelMetricParameters_Get_start(). The reference to this object might be preserved as the return value.

◆ start_mut()

auto meshlib::VoxelMetricParameters::start_mut ( ) -> &mut usize

< start voxel index Returns a mutable pointer to a member variable of class MR::VoxelMetricParameters named start.

Calls MR_VoxelMetricParameters_GetMutable_start(). The reference to this object might be preserved as the return value.

◆ stop()

auto meshlib::VoxelMetricParameters::stop ( ) const -> &usize

< stop voxel index Returns a pointer to a member variable of class MR::VoxelMetricParameters named stop.

Calls MR_VoxelMetricParameters_Get_stop(). The reference to this object might be preserved as the return value.

◆ stop_mut()

auto meshlib::VoxelMetricParameters::stop_mut ( ) -> &mut usize

< stop voxel index Returns a mutable pointer to a member variable of class MR::VoxelMetricParameters named stop.

Calls MR_VoxelMetricParameters_GetMutable_stop(). The reference to this object might be preserved as the return value.


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