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

Public Member Functions

auto assign_from_another (_other:&meshlib::PointCloudRelaxParams) -> &mut meshlib::PointCloudRelaxParams
auto neighborhood_radius () const -> &f32
auto neighborhood_radius_mut () -> &mut f32
void set_neighborhood_radius (value:f32)
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)
auto upcast_to_relax_params () const -> &meshlib::RelaxParams
auto upcast_to_relax_params_mut () -> &mut meshlib::RelaxParams

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PointCloudRelaxParams >
static auto construct_from_another (_other:&meshlib::PointCloudRelaxParams) -> meshlib::Owned< meshlib::PointCloudRelaxParams >
static auto static_downcast_from_relax_params (object:&meshlib::RelaxParams) -> &Self
static auto static_downcast_from_relax_params_mut (object:&mut meshlib::RelaxParams) -> &mut Self
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::PointCloudRelaxParams. Base classes: Direct: (non-virtual) MR::RelaxParams Derived classes: Direct: (non-virtual) MR::PointCloudApproxRelaxParams

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::PointCloudRelaxParams::PointCloudRelaxParams.

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

◆ force()

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

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

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

◆ force_mut()

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

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

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

◆ iterations()

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

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

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

◆ iterations_mut()

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

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

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

◆ limit_near_initial()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named limitNearInitial.

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

◆ limit_near_initial_mut()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named limitNearInitial.

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

◆ max_initial_dist()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named maxInitialDist.

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

◆ max_initial_dist_mut()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named maxInitialDist.

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

◆ neighborhood_radius()

auto meshlib::PointCloudRelaxParams::neighborhood_radius ( ) const -> &f32

radius to find neighbors in, 0.0 - default, 0.1*boundibg box diagonal Returns a pointer to a member variable of class MR::PointCloudRelaxParams named neighborhoodRadius.

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

◆ neighborhood_radius_mut()

auto meshlib::PointCloudRelaxParams::neighborhood_radius_mut ( ) -> &mut f32

radius to find neighbors in, 0.0 - default, 0.1*boundibg box diagonal Returns a mutable pointer to a member variable of class MR::PointCloudRelaxParams named neighborhoodRadius.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PointCloudRelaxParams_DefaultConstruct().

◆ region()

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

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

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

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

Calls MR_PointCloudRelaxParams_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::PointCloudRelaxParams::set_force ( value:f32 )

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

Calls MR_PointCloudRelaxParams_Set_force().

◆ set_iterations()

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

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

Calls MR_PointCloudRelaxParams_Set_iterations().

◆ set_limit_near_initial()

void meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named limitNearInitial.

Calls MR_PointCloudRelaxParams_Set_limitNearInitial().

◆ set_max_initial_dist()

void meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named maxInitialDist.

Calls MR_PointCloudRelaxParams_Set_maxInitialDist().

◆ set_neighborhood_radius()

void meshlib::PointCloudRelaxParams::set_neighborhood_radius ( value:f32 )

radius to find neighbors in, 0.0 - default, 0.1*boundibg box diagonal Modifies a member variable of class MR::PointCloudRelaxParams named neighborhoodRadius.

Calls MR_PointCloudRelaxParams_Set_neighborhoodRadius().

◆ set_region()

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

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

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

◆ set_update_caches()

void meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named updateCaches.

Calls MR_PointCloudRelaxParams_Set_updateCaches().

◆ static_downcast_from_relax_params()

auto meshlib::PointCloudRelaxParams::static_downcast_from_relax_params ( object:&meshlib::RelaxParams ) -> &Self
static

Static downcast from the base class MR::RelaxParams.

Calls MR_PointCloudRelaxParams_StaticDowncastFrom_MR_RelaxParams(). Undefined behavior if the object isn't actually a PointCloudRelaxParams.

Note
This function is unsafe.

◆ static_downcast_from_relax_params_mut()

auto meshlib::PointCloudRelaxParams::static_downcast_from_relax_params_mut ( object:&mut meshlib::RelaxParams ) -> &mut Self
static

Static downcast from the base class MR::RelaxParams.

Calls MR_PointCloudRelaxParams_MutableStaticDowncastFrom_MR_RelaxParams(). Undefined behavior if the object isn't actually a PointCloudRelaxParams.

Note
This function is unsafe.

◆ upcast_to_relax_params()

auto meshlib::PointCloudRelaxParams::upcast_to_relax_params ( ) const -> &meshlib::RelaxParams

Upcasts to the base class MR::RelaxParams.

Calls MR_PointCloudRelaxParams_UpcastTo_MR_RelaxParams().

◆ upcast_to_relax_params_mut()

auto meshlib::PointCloudRelaxParams::upcast_to_relax_params_mut ( ) -> &mut meshlib::RelaxParams

Upcasts to the base class MR::RelaxParams.

Calls MR_PointCloudRelaxParams_MutableUpcastTo_MR_RelaxParams().

◆ update_caches()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named updateCaches.

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

◆ update_caches_mut()

auto meshlib::PointCloudRelaxParams::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::PointCloudRelaxParams named updateCaches.

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