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

Public Member Functions

auto assign_from_another (_other:&meshlib::SpacingSettings) -> &mut meshlib::SpacingSettings
auto region () const -> *const *const meshlib::ffi::MR_VertBitSet
auto region_mut () -> *mut *const meshlib::ffi::MR_VertBitSet
void set_region (value:Option<&meshlib::VertBitSet >)
auto dist () const -> &meshlib::std_function_float_from_MR_UndirectedEdgeId
auto dist_mut () -> &mut meshlib::std_function_float_from_MR_UndirectedEdgeId
void set_dist (value:&meshlib::std_function_float_from_MR_UndirectedEdgeId)
auto num_iters () const -> &core::ffi::c_int
auto num_iters_mut () -> &mut core::ffi::c_int
void set_num_iters (value:core::ffi::c_int)
auto stabilizer () const -> &f32
auto stabilizer_mut () -> &mut f32
void set_stabilizer (value:f32)
auto max_sum_neg_w () const -> &f32
auto max_sum_neg_w_mut () -> &mut f32
void set_max_sum_neg_w (value:f32)
auto is_inverted () const -> &meshlib::std_function_bool_from_MR_FaceId
auto is_inverted_mut () -> &mut meshlib::std_function_bool_from_MR_FaceId
void set_is_inverted (value:&meshlib::std_function_bool_from_MR_FaceId)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::SpacingSettings >
static auto construct_from (region:Option<&meshlib::VertBitSet >, dist:&meshlib::std_function_float_from_MR_UndirectedEdgeId, numIters:core::ffi::c_int, stabilizer:f32, maxSumNegW:f32, isInverted:&meshlib::std_function_bool_from_MR_FaceId) -> meshlib::Owned< meshlib::SpacingSettings >
static auto construct_from_another (_other:&meshlib::SpacingSettings) -> meshlib::Owned< meshlib::SpacingSettings >
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::SpacingSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::SpacingSettings::construct_from ( region:Option<&meshlib::VertBitSet > ,
dist:&meshlib::std_function_float_from_MR_UndirectedEdgeId ,
numIters:core::ffi::c_int ,
stabilizer:f32 ,
maxSumNegW:f32 ,
isInverted:&meshlib::std_function_bool_from_MR_FaceId  ) -> meshlib::Owned< meshlib::SpacingSettings >
static

Constructs MR::SpacingSettings elementwise.

Calls MR_SpacingSettings_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter dist might be preserved in the constructed object. The reference to the parameter isInverted might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::SpacingSettings::SpacingSettings.

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

◆ dist()

auto meshlib::SpacingSettings::dist ( ) const -> &meshlib::std_function_float_from_MR_UndirectedEdgeId

must be defined by the caller Returns a pointer to a member variable of class MR::SpacingSettings named dist.

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

◆ dist_mut()

auto meshlib::SpacingSettings::dist_mut ( ) -> &mut meshlib::std_function_float_from_MR_UndirectedEdgeId

must be defined by the caller Returns a mutable pointer to a member variable of class MR::SpacingSettings named dist.

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

◆ is_inverted()

auto meshlib::SpacingSettings::is_inverted ( ) const -> &meshlib::std_function_bool_from_MR_FaceId

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration Returns a pointer to a member variable of class MR::SpacingSettings named isInverted.

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

◆ is_inverted_mut()

auto meshlib::SpacingSettings::is_inverted_mut ( ) -> &mut meshlib::std_function_bool_from_MR_FaceId

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration Returns a mutable pointer to a member variable of class MR::SpacingSettings named isInverted.

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

◆ max_sum_neg_w()

auto meshlib::SpacingSettings::max_sum_neg_w ( ) const -> &f32

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically Returns a pointer to a member variable of class MR::SpacingSettings named maxSumNegW.

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

◆ max_sum_neg_w_mut()

auto meshlib::SpacingSettings::max_sum_neg_w_mut ( ) -> &mut f32

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically Returns a mutable pointer to a member variable of class MR::SpacingSettings named maxSumNegW.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_SpacingSettings_DefaultConstruct().

◆ num_iters()

auto meshlib::SpacingSettings::num_iters ( ) const -> &core::ffi::c_int

the algorithm is iterative, the more iterations the closer result to exact solution Returns a pointer to a member variable of class MR::SpacingSettings named numIters.

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

◆ num_iters_mut()

auto meshlib::SpacingSettings::num_iters_mut ( ) -> &mut core::ffi::c_int

the algorithm is iterative, the more iterations the closer result to exact solution Returns a mutable pointer to a member variable of class MR::SpacingSettings named numIters.

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

◆ region()

auto meshlib::SpacingSettings::region ( ) const -> *const *const meshlib::ffi::MR_VertBitSet

vertices to be moved by the algorithm, nullptr means all valid vertices Returns a pointer to a member variable of class MR::SpacingSettings named region.

Calls MR_SpacingSettings_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::SpacingSettings::region_mut ( ) -> *mut *const meshlib::ffi::MR_VertBitSet

vertices to be moved by the algorithm, nullptr means all valid vertices Returns a mutable pointer to a member variable of class MR::SpacingSettings named region.

Calls MR_SpacingSettings_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_dist()

void meshlib::SpacingSettings::set_dist ( value:&meshlib::std_function_float_from_MR_UndirectedEdgeId )

must be defined by the caller Modifies a member variable of class MR::SpacingSettings named dist.

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

◆ set_is_inverted()

void meshlib::SpacingSettings::set_is_inverted ( value:&meshlib::std_function_bool_from_MR_FaceId )

if this predicated is given, then all inverted faces will be converted in degenerate faces at the end of each iteration Modifies a member variable of class MR::SpacingSettings named isInverted.

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

◆ set_max_sum_neg_w()

void meshlib::SpacingSettings::set_max_sum_neg_w ( value:f32 )

maximum sum of minus negative weights, if it is exceeded then stabilizer is increased automatically Modifies a member variable of class MR::SpacingSettings named maxSumNegW.

Calls MR_SpacingSettings_Set_maxSumNegW().

◆ set_num_iters()

void meshlib::SpacingSettings::set_num_iters ( value:core::ffi::c_int )

the algorithm is iterative, the more iterations the closer result to exact solution Modifies a member variable of class MR::SpacingSettings named numIters.

Calls MR_SpacingSettings_Set_numIters().

◆ set_region()

void meshlib::SpacingSettings::set_region ( value:Option<&meshlib::VertBitSet > )

vertices to be moved by the algorithm, nullptr means all valid vertices Modifies a member variable of class MR::SpacingSettings named region.

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

◆ set_stabilizer()

void meshlib::SpacingSettings::set_stabilizer ( value:f32 )

too small number here can lead to instability, too large - to slow convergence Modifies a member variable of class MR::SpacingSettings named stabilizer.

Calls MR_SpacingSettings_Set_stabilizer().

◆ stabilizer()

auto meshlib::SpacingSettings::stabilizer ( ) const -> &f32

too small number here can lead to instability, too large - to slow convergence Returns a pointer to a member variable of class MR::SpacingSettings named stabilizer.

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

◆ stabilizer_mut()

auto meshlib::SpacingSettings::stabilizer_mut ( ) -> &mut f32

too small number here can lead to instability, too large - to slow convergence Returns a mutable pointer to a member variable of class MR::SpacingSettings named stabilizer.

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


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