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

Public Member Functions

auto assign_from_another (_other:&meshlib::ImproveSamplingSettings) -> &mut meshlib::ImproveSamplingSettings
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 min_points_in_sample () const -> &core::ffi::c_int
auto min_points_in_sample_mut () -> &mut core::ffi::c_int
void set_min_points_in_sample (value:core::ffi::c_int)
auto pt2sm () const -> *const *mut meshlib::ffi::MR_VertMap
auto pt2sm_mut () -> *mut *mut meshlib::ffi::MR_VertMap
void set_pt2sm (value:Option<&mut meshlib::VertMap >)
auto cloud_of_samples () const -> *const *mut meshlib::ffi::MR_PointCloud
auto cloud_of_samples_mut () -> *mut *mut meshlib::ffi::MR_PointCloud
void set_cloud_of_samples (value:Option<&mut meshlib::PointCloud >)
auto pts_in_sm () const -> *const *mut meshlib::ffi::MR_Vector_int_MR_VertId
auto pts_in_sm_mut () -> *mut *mut meshlib::ffi::MR_Vector_int_MR_VertId
void set_pts_in_sm (value:Option<&mut meshlib::Vector_int_MR_VertId >)
auto pt_colors () const -> *const *const meshlib::ffi::MR_VertColors
auto pt_colors_mut () -> *mut *const meshlib::ffi::MR_VertColors
void set_pt_colors (value:Option<&meshlib::VertColors >)
auto sm_colors () const -> *const *mut meshlib::ffi::MR_VertColors
auto sm_colors_mut () -> *mut *mut meshlib::ffi::MR_VertColors
void set_sm_colors (value:Option<&mut meshlib::VertColors >)
auto progress () const -> &meshlib::std_function_bool_from_float
auto progress_mut () -> &mut meshlib::std_function_bool_from_float
void set_progress (value:&meshlib::std_function_bool_from_float)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::ImproveSamplingSettings >
static auto construct_from (numIters:core::ffi::c_int, minPointsInSample:core::ffi::c_int, pt2sm:Option<&mut meshlib::VertMap >, cloudOfSamples:Option<&mut meshlib::PointCloud >, ptsInSm:Option<&mut meshlib::Vector_int_MR_VertId >, ptColors:Option<&meshlib::VertColors >, smColors:Option<&mut meshlib::VertColors >, progress:&meshlib::std_function_bool_from_float) -> meshlib::Owned< meshlib::ImproveSamplingSettings >
static auto construct_from_another (_other:&meshlib::ImproveSamplingSettings) -> meshlib::Owned< meshlib::ImproveSamplingSettings >
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::ImproveSamplingSettings.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ cloud_of_samples()

auto meshlib::ImproveSamplingSettings::cloud_of_samples ( ) const -> *const *mut meshlib::ffi::MR_PointCloud

optional output: new cloud containing averaged points and normals for each sample Returns a pointer to a member variable of class MR::ImproveSamplingSettings named cloudOfSamples.

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

◆ cloud_of_samples_mut()

auto meshlib::ImproveSamplingSettings::cloud_of_samples_mut ( ) -> *mut *mut meshlib::ffi::MR_PointCloud

optional output: new cloud containing averaged points and normals for each sample Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named cloudOfSamples.

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

◆ construct_from()

auto meshlib::ImproveSamplingSettings::construct_from ( numIters:core::ffi::c_int ,
minPointsInSample:core::ffi::c_int ,
pt2sm:Option<&mut meshlib::VertMap > ,
cloudOfSamples:Option<&mut meshlib::PointCloud > ,
ptsInSm:Option<&mut meshlib::Vector_int_MR_VertId > ,
ptColors:Option<&meshlib::VertColors > ,
smColors:Option<&mut meshlib::VertColors > ,
progress:&meshlib::std_function_bool_from_float  ) -> meshlib::Owned< meshlib::ImproveSamplingSettings >
static

Constructs MR::ImproveSamplingSettings elementwise.

Calls MR_ImproveSamplingSettings_ConstructFrom(). The reference to the parameter pt2sm might be preserved in the constructed object. The reference to the parameter cloudOfSamples might be preserved in the constructed object. The reference to the parameter ptsInSm might be preserved in the constructed object. The reference to the parameter ptColors might be preserved in the constructed object. The reference to the parameter smColors might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::ImproveSamplingSettings::ImproveSamplingSettings.

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

◆ min_points_in_sample()

auto meshlib::ImproveSamplingSettings::min_points_in_sample ( ) const -> &core::ffi::c_int

if a sample represents less than this number of input points then such sample will be discarded; it can be used to remove outliers Returns a pointer to a member variable of class MR::ImproveSamplingSettings named minPointsInSample.

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

◆ min_points_in_sample_mut()

auto meshlib::ImproveSamplingSettings::min_points_in_sample_mut ( ) -> &mut core::ffi::c_int

if a sample represents less than this number of input points then such sample will be discarded; it can be used to remove outliers Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named minPointsInSample.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_ImproveSamplingSettings_DefaultConstruct().

◆ num_iters()

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

the number of algorithm iterations to perform Returns a pointer to a member variable of class MR::ImproveSamplingSettings named numIters.

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

◆ num_iters_mut()

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

the number of algorithm iterations to perform Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named numIters.

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

◆ progress()

auto meshlib::ImproveSamplingSettings::progress ( ) const -> &meshlib::std_function_bool_from_float

output progress status and receive cancel signal Returns a pointer to a member variable of class MR::ImproveSamplingSettings named progress.

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

◆ progress_mut()

auto meshlib::ImproveSamplingSettings::progress_mut ( ) -> &mut meshlib::std_function_bool_from_float

output progress status and receive cancel signal Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named progress.

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

◆ pt2sm()

auto meshlib::ImproveSamplingSettings::pt2sm ( ) const -> *const *mut meshlib::ffi::MR_VertMap

optional output: mapping from input point id to sample id Returns a pointer to a member variable of class MR::ImproveSamplingSettings named pt2sm.

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

◆ pt2sm_mut()

auto meshlib::ImproveSamplingSettings::pt2sm_mut ( ) -> *mut *mut meshlib::ffi::MR_VertMap

optional output: mapping from input point id to sample id Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named pt2sm.

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

◆ pt_colors()

auto meshlib::ImproveSamplingSettings::pt_colors ( ) const -> *const *const meshlib::ffi::MR_VertColors

optional input: colors of input points Returns a pointer to a member variable of class MR::ImproveSamplingSettings named ptColors.

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

◆ pt_colors_mut()

auto meshlib::ImproveSamplingSettings::pt_colors_mut ( ) -> *mut *const meshlib::ffi::MR_VertColors

optional input: colors of input points Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named ptColors.

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

◆ pts_in_sm()

auto meshlib::ImproveSamplingSettings::pts_in_sm ( ) const -> *const *mut meshlib::ffi::MR_Vector_int_MR_VertId

optional output: the number of points in each sample Returns a pointer to a member variable of class MR::ImproveSamplingSettings named ptsInSm.

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

◆ pts_in_sm_mut()

auto meshlib::ImproveSamplingSettings::pts_in_sm_mut ( ) -> *mut *mut meshlib::ffi::MR_Vector_int_MR_VertId

optional output: the number of points in each sample Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named ptsInSm.

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

void meshlib::ImproveSamplingSettings::set_cloud_of_samples ( value:Option<&mut meshlib::PointCloud > )

optional output: new cloud containing averaged points and normals for each sample Modifies a member variable of class MR::ImproveSamplingSettings named cloudOfSamples.

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

◆ set_min_points_in_sample()

void meshlib::ImproveSamplingSettings::set_min_points_in_sample ( value:core::ffi::c_int )

if a sample represents less than this number of input points then such sample will be discarded; it can be used to remove outliers Modifies a member variable of class MR::ImproveSamplingSettings named minPointsInSample.

Calls MR_ImproveSamplingSettings_Set_minPointsInSample().

◆ set_num_iters()

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

the number of algorithm iterations to perform Modifies a member variable of class MR::ImproveSamplingSettings named numIters.

Calls MR_ImproveSamplingSettings_Set_numIters().

◆ set_progress()

void meshlib::ImproveSamplingSettings::set_progress ( value:&meshlib::std_function_bool_from_float )

output progress status and receive cancel signal Modifies a member variable of class MR::ImproveSamplingSettings named progress.

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

◆ set_pt2sm()

void meshlib::ImproveSamplingSettings::set_pt2sm ( value:Option<&mut meshlib::VertMap > )

optional output: mapping from input point id to sample id Modifies a member variable of class MR::ImproveSamplingSettings named pt2sm.

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

◆ set_pt_colors()

void meshlib::ImproveSamplingSettings::set_pt_colors ( value:Option<&meshlib::VertColors > )

optional input: colors of input points Modifies a member variable of class MR::ImproveSamplingSettings named ptColors.

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

◆ set_pts_in_sm()

void meshlib::ImproveSamplingSettings::set_pts_in_sm ( value:Option<&mut meshlib::Vector_int_MR_VertId > )

optional output: the number of points in each sample Modifies a member variable of class MR::ImproveSamplingSettings named ptsInSm.

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

◆ set_sm_colors()

void meshlib::ImproveSamplingSettings::set_sm_colors ( value:Option<&mut meshlib::VertColors > )

optional output: averaged colors of samples Modifies a member variable of class MR::ImproveSamplingSettings named smColors.

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

◆ sm_colors()

auto meshlib::ImproveSamplingSettings::sm_colors ( ) const -> *const *mut meshlib::ffi::MR_VertColors

optional output: averaged colors of samples Returns a pointer to a member variable of class MR::ImproveSamplingSettings named smColors.

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

◆ sm_colors_mut()

auto meshlib::ImproveSamplingSettings::sm_colors_mut ( ) -> *mut *mut meshlib::ffi::MR_VertColors

optional output: averaged colors of samples Returns a mutable pointer to a member variable of class MR::ImproveSamplingSettings named smColors.

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


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