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

Public Member Functions

auto assign_from_another (_other:&meshlib::ReduceTotalAngleParams) -> &mut meshlib::ReduceTotalAngleParams
auto max_angle_change () const -> &f32
auto max_angle_change_mut () -> &mut f32
void set_max_angle_change (value:f32)
auto critical_tri_aspect_ratio () const -> &f32
auto critical_tri_aspect_ratio_mut () -> &mut f32
void set_critical_tri_aspect_ratio (value:f32)
auto factor_delone () const -> &f32
auto factor_delone_mut () -> &mut f32
void set_factor_delone (value:f32)
auto region () const -> *const *const meshlib::ffi::MR_FaceBitSet
auto region_mut () -> *mut *const meshlib::ffi::MR_FaceBitSet
void set_region (value:Option<&meshlib::FaceBitSet >)
auto not_flippable () const -> *const *const meshlib::ffi::MR_UndirectedEdgeBitSet
auto not_flippable_mut () -> *mut *const meshlib::ffi::MR_UndirectedEdgeBitSet
void set_not_flippable (value:Option<&meshlib::UndirectedEdgeBitSet >)
auto vert_region () const -> *const *const meshlib::ffi::MR_VertBitSet
auto vert_region_mut () -> *mut *const meshlib::ffi::MR_VertBitSet
void set_vert_region (value:Option<&meshlib::VertBitSet >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ReduceTotalAngleParams >
static auto construct_from (maxAngleChange:f32, criticalTriAspectRatio:f32, factorDelone:f32, region:Option<&meshlib::FaceBitSet >, notFlippable:Option<&meshlib::UndirectedEdgeBitSet >, vertRegion:Option<&meshlib::VertBitSet >) -> meshlib::Owned< meshlib::ReduceTotalAngleParams >
static auto construct_from_another (_other:&meshlib::ReduceTotalAngleParams) -> meshlib::Owned< meshlib::ReduceTotalAngleParams >
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::ReduceTotalAngleParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::ReduceTotalAngleParams::construct_from ( maxAngleChange:f32 ,
criticalTriAspectRatio:f32 ,
factorDelone:f32 ,
region:Option<&meshlib::FaceBitSet > ,
notFlippable:Option<&meshlib::UndirectedEdgeBitSet > ,
vertRegion:Option<&meshlib::VertBitSet >  ) -> meshlib::Owned< meshlib::ReduceTotalAngleParams >
static

Constructs MR::ReduceTotalAngleParams elementwise.

Calls MR_ReduceTotalAngleParams_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter notFlippable might be preserved in the constructed object. The reference to the parameter vertRegion might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ReduceTotalAngleParams::ReduceTotalAngleParams.

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

◆ critical_tri_aspect_ratio()

auto meshlib::ReduceTotalAngleParams::critical_tri_aspect_ratio ( ) const -> &f32

if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio.

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

◆ critical_tri_aspect_ratio_mut()

auto meshlib::ReduceTotalAngleParams::critical_tri_aspect_ratio_mut ( ) -> &mut f32

if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio.

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

◆ factor_delone()

auto meshlib::ReduceTotalAngleParams::factor_delone ( ) const -> &f32

This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named factorDelone.

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

◆ factor_delone_mut()

auto meshlib::ReduceTotalAngleParams::factor_delone_mut ( ) -> &mut f32

This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named factorDelone.

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

◆ max_angle_change()

auto meshlib::ReduceTotalAngleParams::max_angle_change ( ) const -> &f32

Maximal allowed dihedral angle change (in radians) over the flipped edge Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named maxAngleChange.

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

◆ max_angle_change_mut()

auto meshlib::ReduceTotalAngleParams::max_angle_change_mut ( ) -> &mut f32

Maximal allowed dihedral angle change (in radians) over the flipped edge Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named maxAngleChange.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ReduceTotalAngleParams_DefaultConstruct().

◆ not_flippable()

auto meshlib::ReduceTotalAngleParams::not_flippable ( ) const -> *const *const meshlib::ffi::MR_UndirectedEdgeBitSet

Edges specified by this bit-set will never be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named notFlippable.

Calls MR_ReduceTotalAngleParams_Get_notFlippable(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ not_flippable_mut()

auto meshlib::ReduceTotalAngleParams::not_flippable_mut ( ) -> *mut *const meshlib::ffi::MR_UndirectedEdgeBitSet

Edges specified by this bit-set will never be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named notFlippable.

Calls MR_ReduceTotalAngleParams_GetMutable_notFlippable(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ region()

auto meshlib::ReduceTotalAngleParams::region ( ) const -> *const *const meshlib::ffi::MR_FaceBitSet

Only edges with left and right faces in this set can be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named region.

Calls MR_ReduceTotalAngleParams_Get_region(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ region_mut()

auto meshlib::ReduceTotalAngleParams::region_mut ( ) -> *mut *const meshlib::ffi::MR_FaceBitSet

Only edges with left and right faces in this set can be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named region.

Calls MR_ReduceTotalAngleParams_GetMutable_region(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ set_critical_tri_aspect_ratio()

void meshlib::ReduceTotalAngleParams::set_critical_tri_aspect_ratio ( value:f32 )

if this value is less than FLT_MAX then the algorithm will ignore dihedral angle check if one of triangles has aspect ratio more than this value Modifies a member variable of class MR::ReduceTotalAngleParams named criticalTriAspectRatio.

Calls MR_ReduceTotalAngleParams_Set_criticalTriAspectRatio().

◆ set_factor_delone()

void meshlib::ReduceTotalAngleParams::set_factor_delone ( value:f32 )

This value must be in [0,1] range; factorDelone = 0 means that only dihedral angles are minimized, ignoring Delaunay criterion; factorDelone = 1 means that only Delaunay criterion is optimized ignoring dihedral angles; other values mean that a mixture of both criteria will be optimized Modifies a member variable of class MR::ReduceTotalAngleParams named factorDelone.

Calls MR_ReduceTotalAngleParams_Set_factorDelone().

◆ set_max_angle_change()

void meshlib::ReduceTotalAngleParams::set_max_angle_change ( value:f32 )

Maximal allowed dihedral angle change (in radians) over the flipped edge Modifies a member variable of class MR::ReduceTotalAngleParams named maxAngleChange.

Calls MR_ReduceTotalAngleParams_Set_maxAngleChange().

◆ set_not_flippable()

void meshlib::ReduceTotalAngleParams::set_not_flippable ( value:Option<&meshlib::UndirectedEdgeBitSet > )

Edges specified by this bit-set will never be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named notFlippable.

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

◆ set_region()

void meshlib::ReduceTotalAngleParams::set_region ( value:Option<&meshlib::FaceBitSet > )

Only edges with left and right faces in this set can be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named region.

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

◆ set_vert_region()

void meshlib::ReduceTotalAngleParams::set_vert_region ( value:Option<&meshlib::VertBitSet > )

Only edges with origin or destination in this set before or after flip can be flipped Modifies a member variable of class MR::ReduceTotalAngleParams named vertRegion.

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

◆ vert_region()

auto meshlib::ReduceTotalAngleParams::vert_region ( ) const -> *const *const meshlib::ffi::MR_VertBitSet

Only edges with origin or destination in this set before or after flip can be flipped Returns a pointer to a member variable of class MR::ReduceTotalAngleParams named vertRegion.

Calls MR_ReduceTotalAngleParams_Get_vertRegion(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.

◆ vert_region_mut()

auto meshlib::ReduceTotalAngleParams::vert_region_mut ( ) -> *mut *const meshlib::ffi::MR_VertBitSet

Only edges with origin or destination in this set before or after flip can be flipped Returns a mutable pointer to a member variable of class MR::ReduceTotalAngleParams named vertRegion.

Calls MR_ReduceTotalAngleParams_GetMutable_vertRegion(). Some types are raw C types, see the C bindings for the details. The reference to this object might be preserved as the return value.


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