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

Public Member Functions

auto assign_from_another (_other:&meshlib::DeloneSettings) -> &mut meshlib::DeloneSettings
auto max_deviation_after_flip () const -> &f32
auto max_deviation_after_flip_mut () -> &mut f32
void set_max_deviation_after_flip (value:f32)
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 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 >)
auto cache () const -> *const *mut meshlib::ffi::MR_DeloneFlipsCache
auto cache_mut () -> *mut *mut meshlib::ffi::MR_DeloneFlipsCache
void set_cache (value:Option<&mut meshlib::DeloneFlipsCache >)

Static Public Member Functions

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

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ cache()

auto meshlib::DeloneSettings::cache ( ) const -> *const *mut meshlib::ffi::MR_DeloneFlipsCache

optional buffers reused between calls, see DeloneFlipsCache; flipping several meshes in parallel, give every thread its own cache Returns a pointer to a member variable of class MR::DeloneSettings named cache.

Calls MR_DeloneSettings_Get_cache(). 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.

◆ cache_mut()

auto meshlib::DeloneSettings::cache_mut ( ) -> *mut *mut meshlib::ffi::MR_DeloneFlipsCache

optional buffers reused between calls, see DeloneFlipsCache; flipping several meshes in parallel, give every thread its own cache Returns a mutable pointer to a member variable of class MR::DeloneSettings named cache.

Calls MR_DeloneSettings_GetMutable_cache(). 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.

◆ construct_from()

auto meshlib::DeloneSettings::construct_from ( maxDeviationAfterFlip:f32 ,
maxAngleChange:f32 ,
criticalTriAspectRatio:f32 ,
region:Option<&meshlib::FaceBitSet > ,
notFlippable:Option<&meshlib::UndirectedEdgeBitSet > ,
vertRegion:Option<&meshlib::VertBitSet > ,
cache:Option<&mut meshlib::DeloneFlipsCache >  ) -> meshlib::Owned< meshlib::DeloneSettings >
static

Constructs MR::DeloneSettings elementwise.

Calls MR_DeloneSettings_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. The reference to the parameter cache might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::DeloneSettings::DeloneSettings.

Calls MR_DeloneSettings_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::DeloneSettings::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::DeloneSettings named criticalTriAspectRatio.

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

◆ critical_tri_aspect_ratio_mut()

auto meshlib::DeloneSettings::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::DeloneSettings named criticalTriAspectRatio.

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

◆ max_angle_change()

auto meshlib::DeloneSettings::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::DeloneSettings named maxAngleChange.

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

◆ max_angle_change_mut()

auto meshlib::DeloneSettings::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::DeloneSettings named maxAngleChange.

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

◆ max_deviation_after_flip()

auto meshlib::DeloneSettings::max_deviation_after_flip ( ) const -> &f32

Maximal allowed surface deviation during every individual flip Returns a pointer to a member variable of class MR::DeloneSettings named maxDeviationAfterFlip.

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

◆ max_deviation_after_flip_mut()

auto meshlib::DeloneSettings::max_deviation_after_flip_mut ( ) -> &mut f32

Maximal allowed surface deviation during every individual flip Returns a mutable pointer to a member variable of class MR::DeloneSettings named maxDeviationAfterFlip.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DeloneSettings_DefaultConstruct().

◆ not_flippable()

auto meshlib::DeloneSettings::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::DeloneSettings named notFlippable.

Calls MR_DeloneSettings_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::DeloneSettings::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::DeloneSettings named notFlippable.

Calls MR_DeloneSettings_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::DeloneSettings::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::DeloneSettings named region.

Calls MR_DeloneSettings_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::DeloneSettings::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::DeloneSettings named region.

Calls MR_DeloneSettings_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_cache()

void meshlib::DeloneSettings::set_cache ( value:Option<&mut meshlib::DeloneFlipsCache > )

optional buffers reused between calls, see DeloneFlipsCache; flipping several meshes in parallel, give every thread its own cache Modifies a member variable of class MR::DeloneSettings named cache.

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

◆ set_critical_tri_aspect_ratio()

void meshlib::DeloneSettings::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::DeloneSettings named criticalTriAspectRatio.

Calls MR_DeloneSettings_Set_criticalTriAspectRatio().

◆ set_max_angle_change()

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

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

Calls MR_DeloneSettings_Set_maxAngleChange().

◆ set_max_deviation_after_flip()

void meshlib::DeloneSettings::set_max_deviation_after_flip ( value:f32 )

Maximal allowed surface deviation during every individual flip Modifies a member variable of class MR::DeloneSettings named maxDeviationAfterFlip.

Calls MR_DeloneSettings_Set_maxDeviationAfterFlip().

◆ set_not_flippable()

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

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

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

◆ set_region()

void meshlib::DeloneSettings::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::DeloneSettings named region.

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

◆ set_vert_region()

void meshlib::DeloneSettings::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::DeloneSettings named vertRegion.

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

◆ vert_region()

auto meshlib::DeloneSettings::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::DeloneSettings named vertRegion.

Calls MR_DeloneSettings_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::DeloneSettings::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::DeloneSettings named vertRegion.

Calls MR_DeloneSettings_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: