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

Public Member Functions

auto assign_from_another (_other:&meshlib::DenoiseViaNormalsSettings) -> &mut meshlib::DenoiseViaNormalsSettings
auto fast_indicator_computation () const -> &bool
auto fast_indicator_computation_mut () -> &mut bool
void set_fast_indicator_computation (value:bool)
auto beta () const -> &f32
auto beta_mut () -> &mut f32
void set_beta (value:f32)
auto gamma () const -> &f32
auto gamma_mut () -> &mut f32
void set_gamma (value:f32)
auto normal_iters () const -> &core::ffi::c_int
auto normal_iters_mut () -> &mut core::ffi::c_int
void set_normal_iters (value:core::ffi::c_int)
auto point_iters () const -> &core::ffi::c_int
auto point_iters_mut () -> &mut core::ffi::c_int
void set_point_iters (value:core::ffi::c_int)
auto guide_weight () const -> &f32
auto guide_weight_mut () -> &mut f32
void set_guide_weight (value:f32)
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 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 out_creases () const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet
auto out_creases_mut () -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet
void set_out_creases (value:Option<&mut meshlib::UndirectedEdgeBitSet >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DenoiseViaNormalsSettings >
static auto construct_from (fastIndicatorComputation:bool, beta:f32, gamma:f32, normalIters:core::ffi::c_int, pointIters:core::ffi::c_int, guideWeight:f32, limitNearInitial:bool, maxInitialDist:f32, region:Option<&meshlib::FaceBitSet >, outCreases:Option<&mut meshlib::UndirectedEdgeBitSet >) -> meshlib::Owned< meshlib::DenoiseViaNormalsSettings >
static auto construct_from_another (_other:&meshlib::DenoiseViaNormalsSettings) -> meshlib::Owned< meshlib::DenoiseViaNormalsSettings >
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::DenoiseViaNormalsSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ beta()

auto meshlib::DenoiseViaNormalsSettings::beta ( ) const -> &f32

0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named beta.

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

◆ beta_mut()

auto meshlib::DenoiseViaNormalsSettings::beta_mut ( ) -> &mut f32

0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named beta.

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

◆ construct_from()

auto meshlib::DenoiseViaNormalsSettings::construct_from ( fastIndicatorComputation:bool ,
beta:f32 ,
gamma:f32 ,
normalIters:core::ffi::c_int ,
pointIters:core::ffi::c_int ,
guideWeight:f32 ,
limitNearInitial:bool ,
maxInitialDist:f32 ,
region:Option<&meshlib::FaceBitSet > ,
outCreases:Option<&mut meshlib::UndirectedEdgeBitSet >  ) -> meshlib::Owned< meshlib::DenoiseViaNormalsSettings >
static

Constructs MR::DenoiseViaNormalsSettings elementwise.

Calls MR_DenoiseViaNormalsSettings_ConstructFrom(). The reference to the parameter region might be preserved in the constructed object. The reference to the parameter outCreases might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::DenoiseViaNormalsSettings::DenoiseViaNormalsSettings.

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

◆ fast_indicator_computation()

auto meshlib::DenoiseViaNormalsSettings::fast_indicator_computation ( ) const -> &bool

use approximated computation, which is much faster than precise solution Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named fastIndicatorComputation.

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

◆ fast_indicator_computation_mut()

auto meshlib::DenoiseViaNormalsSettings::fast_indicator_computation_mut ( ) -> &mut bool

use approximated computation, which is much faster than precise solution Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named fastIndicatorComputation.

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

◆ gamma()

auto meshlib::DenoiseViaNormalsSettings::gamma ( ) const -> &f32

the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ... Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named gamma.

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

◆ gamma_mut()

auto meshlib::DenoiseViaNormalsSettings::gamma_mut ( ) -> &mut f32

the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ... Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named gamma.

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

◆ guide_weight()

auto meshlib::DenoiseViaNormalsSettings::guide_weight ( ) const -> &f32

how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage), must be > 0 Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named guideWeight.

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

◆ guide_weight_mut()

auto meshlib::DenoiseViaNormalsSettings::guide_weight_mut ( ) -> &mut f32

how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage), must be > 0 Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named guideWeight.

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

◆ limit_near_initial()

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

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

◆ limit_near_initial_mut()

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

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

◆ max_initial_dist()

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

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

◆ max_initial_dist_mut()

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

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DenoiseViaNormalsSettings_DefaultConstruct().

◆ normal_iters()

auto meshlib::DenoiseViaNormalsSettings::normal_iters ( ) const -> &core::ffi::c_int

the number of iterations to smooth normals and find creases; the more the better quality, but longer computation Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named normalIters.

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

◆ normal_iters_mut()

auto meshlib::DenoiseViaNormalsSettings::normal_iters_mut ( ) -> &mut core::ffi::c_int

the number of iterations to smooth normals and find creases; the more the better quality, but longer computation Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named normalIters.

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

◆ out_creases()

auto meshlib::DenoiseViaNormalsSettings::out_creases ( ) const -> *const *mut meshlib::ffi::MR_UndirectedEdgeBitSet

optionally returns creases found during smoothing, only among the edges with both incident faces in the region Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named outCreases.

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

◆ out_creases_mut()

auto meshlib::DenoiseViaNormalsSettings::out_creases_mut ( ) -> *mut *mut meshlib::ffi::MR_UndirectedEdgeBitSet

optionally returns creases found during smoothing, only among the edges with both incident faces in the region Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named outCreases.

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

◆ point_iters()

auto meshlib::DenoiseViaNormalsSettings::point_iters ( ) const -> &core::ffi::c_int

the number of iterations to update vertex coordinates from found normals; the more the better quality, but longer computation Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named pointIters.

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

◆ point_iters_mut()

auto meshlib::DenoiseViaNormalsSettings::point_iters_mut ( ) -> &mut core::ffi::c_int

the number of iterations to update vertex coordinates from found normals; the more the better quality, but longer computation Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named pointIters.

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

◆ region()

auto meshlib::DenoiseViaNormalsSettings::region ( ) const -> *const *const meshlib::ffi::MR_FaceBitSet

if given, then only the normals of these faces are denoised, and only the vertices with all incident faces in the region are moved Returns a pointer to a member variable of class MR::DenoiseViaNormalsSettings named region.

Calls MR_DenoiseViaNormalsSettings_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::DenoiseViaNormalsSettings::region_mut ( ) -> *mut *const meshlib::ffi::MR_FaceBitSet

if given, then only the normals of these faces are denoised, and only the vertices with all incident faces in the region are moved Returns a mutable pointer to a member variable of class MR::DenoiseViaNormalsSettings named region.

Calls MR_DenoiseViaNormalsSettings_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_beta()

void meshlib::DenoiseViaNormalsSettings::set_beta ( value:f32 )

0.001 - sharp edges, 0.01 - moderate edges, 0.1 - smooth edges Modifies a member variable of class MR::DenoiseViaNormalsSettings named beta.

Calls MR_DenoiseViaNormalsSettings_Set_beta().

◆ set_fast_indicator_computation()

void meshlib::DenoiseViaNormalsSettings::set_fast_indicator_computation ( value:bool )

use approximated computation, which is much faster than precise solution Modifies a member variable of class MR::DenoiseViaNormalsSettings named fastIndicatorComputation.

Calls MR_DenoiseViaNormalsSettings_Set_fastIndicatorComputation().

◆ set_gamma()

void meshlib::DenoiseViaNormalsSettings::set_gamma ( value:f32 )

the amount of smoothing: 0 - no smoothing, 1 - average smoothing, ... Modifies a member variable of class MR::DenoiseViaNormalsSettings named gamma.

Calls MR_DenoiseViaNormalsSettings_Set_gamma().

◆ set_guide_weight()

void meshlib::DenoiseViaNormalsSettings::set_guide_weight ( value:f32 )

how much resulting points must be attracted to initial points (e.g. to avoid general shrinkage), must be > 0 Modifies a member variable of class MR::DenoiseViaNormalsSettings named guideWeight.

Calls MR_DenoiseViaNormalsSettings_Set_guideWeight().

◆ set_limit_near_initial()

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

Calls MR_DenoiseViaNormalsSettings_Set_limitNearInitial().

◆ set_max_initial_dist()

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

Calls MR_DenoiseViaNormalsSettings_Set_maxInitialDist().

◆ set_normal_iters()

void meshlib::DenoiseViaNormalsSettings::set_normal_iters ( value:core::ffi::c_int )

the number of iterations to smooth normals and find creases; the more the better quality, but longer computation Modifies a member variable of class MR::DenoiseViaNormalsSettings named normalIters.

Calls MR_DenoiseViaNormalsSettings_Set_normalIters().

◆ set_out_creases()

void meshlib::DenoiseViaNormalsSettings::set_out_creases ( value:Option<&mut meshlib::UndirectedEdgeBitSet > )

optionally returns creases found during smoothing, only among the edges with both incident faces in the region Modifies a member variable of class MR::DenoiseViaNormalsSettings named outCreases.

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

◆ set_point_iters()

void meshlib::DenoiseViaNormalsSettings::set_point_iters ( value:core::ffi::c_int )

the number of iterations to update vertex coordinates from found normals; the more the better quality, but longer computation Modifies a member variable of class MR::DenoiseViaNormalsSettings named pointIters.

Calls MR_DenoiseViaNormalsSettings_Set_pointIters().

◆ set_region()

void meshlib::DenoiseViaNormalsSettings::set_region ( value:Option<&meshlib::FaceBitSet > )

if given, then only the normals of these faces are denoised, and only the vertices with all incident faces in the region are moved Modifies a member variable of class MR::DenoiseViaNormalsSettings named region.

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


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