MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::RelaxParams:

Public Member Functions

auto assign_from_another (_other:&meshlib::RelaxParams) -> &mut meshlib::RelaxParams
auto iterations () const -> &core::ffi::c_int
auto iterations_mut () -> &mut core::ffi::c_int
void set_iterations (value:core::ffi::c_int)
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 force () const -> &f32
auto force_mut () -> &mut f32
void set_force (value:f32)
auto update_caches () const -> &bool
auto update_caches_mut () -> &mut bool
void set_update_caches (value:bool)
auto limit_near_initial () const -> &bool
auto limit_near_initial_mut () -> &mut bool
void set_limit_near_initial (value:bool)
auto max_initial_dist () const -> &f32
auto max_initial_dist_mut () -> &mut f32
void set_max_initial_dist (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::RelaxParams >
static auto construct_from_another (_other:&meshlib::RelaxParams) -> meshlib::Owned< meshlib::RelaxParams >
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::RelaxParams. Derived classes: Direct: (non-virtual) MR::MeshRelaxParams MR::PointCloudRelaxParams Indirect: (non-virtual) MR::MeshApproxRelaxParams MR::MeshEqualizeTriAreasParams MR::PointCloudApproxRelaxParams

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::RelaxParams::RelaxParams.

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

◆ force()

auto meshlib::RelaxParams::force ( ) const -> &f32

speed of relaxing, typical values (0.0, 0.5] Returns a pointer to a member variable of class MR::RelaxParams named force.

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

◆ force_mut()

auto meshlib::RelaxParams::force_mut ( ) -> &mut f32

speed of relaxing, typical values (0.0, 0.5] Returns a mutable pointer to a member variable of class MR::RelaxParams named force.

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

◆ iterations()

auto meshlib::RelaxParams::iterations ( ) const -> &core::ffi::c_int

number of iterations Returns a pointer to a member variable of class MR::RelaxParams named iterations.

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

◆ iterations_mut()

auto meshlib::RelaxParams::iterations_mut ( ) -> &mut core::ffi::c_int

number of iterations Returns a mutable pointer to a member variable of class MR::RelaxParams named iterations.

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

◆ limit_near_initial()

auto meshlib::RelaxParams::limit_near_initial ( ) const -> &bool

if true then maximal displacement of each point during denoising will be limited Returns a pointer to a member variable of class MR::RelaxParams named limitNearInitial.

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

◆ limit_near_initial_mut()

auto meshlib::RelaxParams::limit_near_initial_mut ( ) -> &mut bool

if true then maximal displacement of each point during denoising will be limited Returns a mutable pointer to a member variable of class MR::RelaxParams named limitNearInitial.

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

◆ max_initial_dist()

auto meshlib::RelaxParams::max_initial_dist ( ) const -> &f32

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Returns a pointer to a member variable of class MR::RelaxParams named maxInitialDist.

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

◆ max_initial_dist_mut()

auto meshlib::RelaxParams::max_initial_dist_mut ( ) -> &mut f32

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Returns a mutable pointer to a member variable of class MR::RelaxParams named maxInitialDist.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_RelaxParams_DefaultConstruct().

◆ region()

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

region to relax Returns a pointer to a member variable of class MR::RelaxParams named region.

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

region to relax Returns a mutable pointer to a member variable of class MR::RelaxParams named region.

Calls MR_RelaxParams_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_force()

void meshlib::RelaxParams::set_force ( value:f32 )

speed of relaxing, typical values (0.0, 0.5] Modifies a member variable of class MR::RelaxParams named force.

Calls MR_RelaxParams_Set_force().

◆ set_iterations()

void meshlib::RelaxParams::set_iterations ( value:core::ffi::c_int )

number of iterations Modifies a member variable of class MR::RelaxParams named iterations.

Calls MR_RelaxParams_Set_iterations().

◆ set_limit_near_initial()

void meshlib::RelaxParams::set_limit_near_initial ( value:bool )

if true then maximal displacement of each point during denoising will be limited Modifies a member variable of class MR::RelaxParams named limitNearInitial.

Calls MR_RelaxParams_Set_limitNearInitial().

◆ set_max_initial_dist()

void meshlib::RelaxParams::set_max_initial_dist ( value:f32 )

maximum distance between a point and its position before relaxation, ignored if limitNearInitial = false Modifies a member variable of class MR::RelaxParams named maxInitialDist.

Calls MR_RelaxParams_Set_maxInitialDist().

◆ set_region()

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

region to relax Modifies a member variable of class MR::RelaxParams named region.

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

◆ set_update_caches()

void meshlib::RelaxParams::set_update_caches ( value:bool )

in functions taking Mesh or PointCloud: if false then all mesh caches (AABB trees) are invalidated after relaxation, if true then they are updated only in the region (faster, but the trees might become less efficient) Modifies a member variable of class MR::RelaxParams named updateCaches.

Calls MR_RelaxParams_Set_updateCaches().

◆ update_caches()

auto meshlib::RelaxParams::update_caches ( ) const -> &bool

in functions taking Mesh or PointCloud: if false then all mesh caches (AABB trees) are invalidated after relaxation, if true then they are updated only in the region (faster, but the trees might become less efficient) Returns a pointer to a member variable of class MR::RelaxParams named updateCaches.

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

◆ update_caches_mut()

auto meshlib::RelaxParams::update_caches_mut ( ) -> &mut bool

in functions taking Mesh or PointCloud: if false then all mesh caches (AABB trees) are invalidated after relaxation, if true then they are updated only in the region (faster, but the trees might become less efficient) Returns a mutable pointer to a member variable of class MR::RelaxParams named updateCaches.

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


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