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

Public Member Functions

auto assign_from_another (_other:&meshlib::FixCreasesParams) -> &mut meshlib::FixCreasesParams
auto crease_angle () const -> &f32
auto crease_angle_mut () -> &mut f32
void set_crease_angle (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 max_iters () const -> &core::ffi::c_int
auto max_iters_mut () -> &mut core::ffi::c_int
void set_max_iters (value:core::ffi::c_int)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::FixCreasesParams >
static auto construct_from (creaseAngle:f32, criticalTriAspectRatio:f32, maxIters:core::ffi::c_int) -> meshlib::Owned< meshlib::FixCreasesParams >
static auto construct_from_another (_other:&meshlib::FixCreasesParams) -> meshlib::Owned< meshlib::FixCreasesParams >
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 structure for fixMeshCreases function Generated from class MR::FixCreasesParams.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::FixCreasesParams::construct_from ( creaseAngle:f32 ,
criticalTriAspectRatio:f32 ,
maxIters:core::ffi::c_int  ) -> meshlib::Owned< meshlib::FixCreasesParams >
static

Constructs MR::FixCreasesParams elementwise.

Calls MR_FixCreasesParams_ConstructFrom().

◆ construct_from_another()

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

Generated from constructor MR::FixCreasesParams::FixCreasesParams.

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

◆ crease_angle()

auto meshlib::FixCreasesParams::crease_angle ( ) const -> &f32

edges with dihedral angle sharper this will be considered as creases Returns a pointer to a member variable of class MR::FixCreasesParams named creaseAngle.

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

◆ crease_angle_mut()

auto meshlib::FixCreasesParams::crease_angle_mut ( ) -> &mut f32

edges with dihedral angle sharper this will be considered as creases Returns a mutable pointer to a member variable of class MR::FixCreasesParams named creaseAngle.

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

◆ critical_tri_aspect_ratio()

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

planar check is skipped for faces with worse aspect ratio Returns a pointer to a member variable of class MR::FixCreasesParams named criticalTriAspectRatio.

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

◆ critical_tri_aspect_ratio_mut()

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

planar check is skipped for faces with worse aspect ratio Returns a mutable pointer to a member variable of class MR::FixCreasesParams named criticalTriAspectRatio.

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

◆ max_iters()

auto meshlib::FixCreasesParams::max_iters ( ) const -> &core::ffi::c_int

maximum number of algorithm iterations Returns a pointer to a member variable of class MR::FixCreasesParams named maxIters.

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

◆ max_iters_mut()

auto meshlib::FixCreasesParams::max_iters_mut ( ) -> &mut core::ffi::c_int

maximum number of algorithm iterations Returns a mutable pointer to a member variable of class MR::FixCreasesParams named maxIters.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_FixCreasesParams_DefaultConstruct().

◆ set_crease_angle()

void meshlib::FixCreasesParams::set_crease_angle ( value:f32 )

edges with dihedral angle sharper this will be considered as creases Modifies a member variable of class MR::FixCreasesParams named creaseAngle.

Calls MR_FixCreasesParams_Set_creaseAngle().

◆ set_critical_tri_aspect_ratio()

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

planar check is skipped for faces with worse aspect ratio Modifies a member variable of class MR::FixCreasesParams named criticalTriAspectRatio.

Calls MR_FixCreasesParams_Set_criticalTriAspectRatio().

◆ set_max_iters()

void meshlib::FixCreasesParams::set_max_iters ( value:core::ffi::c_int )

maximum number of algorithm iterations Modifies a member variable of class MR::FixCreasesParams named maxIters.

Calls MR_FixCreasesParams_Set_maxIters().


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