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

Public Member Functions

auto assign_from_another (_other:&meshlib::PointsToMeshParameters) -> &mut meshlib::PointsToMeshParameters
auto sigma () const -> &f32
auto sigma_mut () -> &mut f32
void set_sigma (value:f32)
auto min_weight () const -> &f32
auto min_weight_mut () -> &mut f32
void set_min_weight (value:f32)
auto inv_sigma_modifier () const -> &f32
auto inv_sigma_modifier_mut () -> &mut f32
void set_inv_sigma_modifier (value:f32)
auto sqrt_angle_weight () const -> &bool
auto sqrt_angle_weight_mut () -> &mut bool
void set_sqrt_angle_weight (value:bool)
auto voxel_size () const -> &f32
auto voxel_size_mut () -> &mut f32
void set_voxel_size (value:f32)
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 v_colors () const -> *const *mut meshlib::ffi::MR_VertColors
auto v_colors_mut () -> *mut *mut meshlib::ffi::MR_VertColors
void set_v_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)
auto compute_volume () const -> &meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume
auto compute_volume_mut () -> &mut meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume
void set_compute_volume (value:&meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PointsToMeshParameters >
static auto construct_from (sigma:f32, minWeight:f32, invSigmaModifier:f32, sqrtAngleWeight:bool, voxelSize:f32, ptColors:Option<&meshlib::VertColors >, vColors:Option<&mut meshlib::VertColors >, progress:&meshlib::std_function_bool_from_float, computeVolume:&meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume) -> meshlib::Owned< meshlib::PointsToMeshParameters >
static auto construct_from_another (_other:&meshlib::PointsToMeshParameters) -> meshlib::Owned< meshlib::PointsToMeshParameters >
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::PointsToMeshParameters.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ compute_volume()

auto meshlib::PointsToMeshParameters::compute_volume ( ) const -> &meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume

builds the intermediate volume, e.g. MR::Cuda::ComputePointsToDistanceVolume to build it on GPU; if it is not set or cannot process this input, MR::ComputePointsToDistanceVolume is used Returns a pointer to a member variable of class MR::PointsToMeshParameters named computeVolume.

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

◆ compute_volume_mut()

auto meshlib::PointsToMeshParameters::compute_volume_mut ( ) -> &mut meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume

builds the intermediate volume, e.g. MR::Cuda::ComputePointsToDistanceVolume to build it on GPU; if it is not set or cannot process this input, MR::ComputePointsToDistanceVolume is used Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named computeVolume.

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

◆ construct_from()

auto meshlib::PointsToMeshParameters::construct_from ( sigma:f32 ,
minWeight:f32 ,
invSigmaModifier:f32 ,
sqrtAngleWeight:bool ,
voxelSize:f32 ,
ptColors:Option<&meshlib::VertColors > ,
vColors:Option<&mut meshlib::VertColors > ,
progress:&meshlib::std_function_bool_from_float ,
computeVolume:&meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume  ) -> meshlib::Owned< meshlib::PointsToMeshParameters >
static

Constructs MR::PointsToMeshParameters elementwise.

Calls MR_PointsToMeshParameters_ConstructFrom(). The reference to the parameter ptColors might be preserved in the constructed object. The reference to the parameter vColors might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. The reference to the parameter computeVolume might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::PointsToMeshParameters::PointsToMeshParameters.

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

◆ inv_sigma_modifier()

auto meshlib::PointsToMeshParameters::inv_sigma_modifier ( ) const -> &f32

coefficient used for weight calculation: e^(dist^2 * -invSigmaModifier * sigma^-2) values: (0;inf) Returns a pointer to a member variable of class MR::PointsToMeshParameters named invSigmaModifier.

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

◆ inv_sigma_modifier_mut()

auto meshlib::PointsToMeshParameters::inv_sigma_modifier_mut ( ) -> &mut f32

coefficient used for weight calculation: e^(dist^2 * -invSigmaModifier * sigma^-2) values: (0;inf) Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named invSigmaModifier.

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

◆ min_weight()

auto meshlib::PointsToMeshParameters::min_weight ( ) const -> &f32

minimum sum of influence weights from surrounding points for a triangle to appear, meaning that there shall be at least this number of points in close proximity Returns a pointer to a member variable of class MR::PointsToMeshParameters named minWeight.

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

◆ min_weight_mut()

auto meshlib::PointsToMeshParameters::min_weight_mut ( ) -> &mut f32

minimum sum of influence weights from surrounding points for a triangle to appear, meaning that there shall be at least this number of points in close proximity Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named minWeight.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PointsToMeshParameters_DefaultConstruct().

◆ progress()

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

Progress callback Returns a pointer to a member variable of class MR::PointsToMeshParameters named progress.

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

◆ progress_mut()

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

Progress callback Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named progress.

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

◆ pt_colors()

auto meshlib::PointsToMeshParameters::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::PointsToMeshParameters named ptColors.

Calls MR_PointsToMeshParameters_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::PointsToMeshParameters::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::PointsToMeshParameters named ptColors.

Calls MR_PointsToMeshParameters_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.

◆ set_compute_volume()

void meshlib::PointsToMeshParameters::set_compute_volume ( value:&meshlib::std_shared_ptr_MR_IComputePointsToDistanceVolume )

builds the intermediate volume, e.g. MR::Cuda::ComputePointsToDistanceVolume to build it on GPU; if it is not set or cannot process this input, MR::ComputePointsToDistanceVolume is used Modifies a member variable of class MR::PointsToMeshParameters named computeVolume.

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

◆ set_inv_sigma_modifier()

void meshlib::PointsToMeshParameters::set_inv_sigma_modifier ( value:f32 )

coefficient used for weight calculation: e^(dist^2 * -invSigmaModifier * sigma^-2) values: (0;inf) Modifies a member variable of class MR::PointsToMeshParameters named invSigmaModifier.

Calls MR_PointsToMeshParameters_Set_invSigmaModifier().

◆ set_min_weight()

void meshlib::PointsToMeshParameters::set_min_weight ( value:f32 )

minimum sum of influence weights from surrounding points for a triangle to appear, meaning that there shall be at least this number of points in close proximity Modifies a member variable of class MR::PointsToMeshParameters named minWeight.

Calls MR_PointsToMeshParameters_Set_minWeight().

◆ set_progress()

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

Progress callback Modifies a member variable of class MR::PointsToMeshParameters named progress.

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

◆ set_pt_colors()

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

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

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

◆ set_sigma()

void meshlib::PointsToMeshParameters::set_sigma ( value:f32 )

it the distance of highest influence of a point; the maximal influence distance is 3*sigma; beyond that distance the influence is strictly zero Modifies a member variable of class MR::PointsToMeshParameters named sigma.

Calls MR_PointsToMeshParameters_Set_sigma().

◆ set_sqrt_angle_weight()

void meshlib::PointsToMeshParameters::set_sqrt_angle_weight ( value:bool )

changes the way point angle affects weight, by default it is linearly increasing with dot product if enabled - increasing as dot product^(0.5) (with respect to its sign) Modifies a member variable of class MR::PointsToMeshParameters named sqrtAngleWeight.

Calls MR_PointsToMeshParameters_Set_sqrtAngleWeight().

◆ set_v_colors()

void meshlib::PointsToMeshParameters::set_v_colors ( value:Option<&mut meshlib::VertColors > )

optional output: averaged colors of mesh vertices Modifies a member variable of class MR::PointsToMeshParameters named vColors.

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

◆ set_voxel_size()

void meshlib::PointsToMeshParameters::set_voxel_size ( value:f32 )

Size of voxel in grid conversions; The user is responsible for setting some positive value here Modifies a member variable of class MR::PointsToMeshParameters named voxelSize.

Calls MR_PointsToMeshParameters_Set_voxelSize().

◆ sigma()

auto meshlib::PointsToMeshParameters::sigma ( ) const -> &f32

it the distance of highest influence of a point; the maximal influence distance is 3*sigma; beyond that distance the influence is strictly zero Returns a pointer to a member variable of class MR::PointsToMeshParameters named sigma.

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

◆ sigma_mut()

auto meshlib::PointsToMeshParameters::sigma_mut ( ) -> &mut f32

it the distance of highest influence of a point; the maximal influence distance is 3*sigma; beyond that distance the influence is strictly zero Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named sigma.

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

◆ sqrt_angle_weight()

auto meshlib::PointsToMeshParameters::sqrt_angle_weight ( ) const -> &bool

changes the way point angle affects weight, by default it is linearly increasing with dot product if enabled - increasing as dot product^(0.5) (with respect to its sign) Returns a pointer to a member variable of class MR::PointsToMeshParameters named sqrtAngleWeight.

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

◆ sqrt_angle_weight_mut()

auto meshlib::PointsToMeshParameters::sqrt_angle_weight_mut ( ) -> &mut bool

changes the way point angle affects weight, by default it is linearly increasing with dot product if enabled - increasing as dot product^(0.5) (with respect to its sign) Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named sqrtAngleWeight.

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

◆ v_colors()

auto meshlib::PointsToMeshParameters::v_colors ( ) const -> *const *mut meshlib::ffi::MR_VertColors

optional output: averaged colors of mesh vertices Returns a pointer to a member variable of class MR::PointsToMeshParameters named vColors.

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

◆ v_colors_mut()

auto meshlib::PointsToMeshParameters::v_colors_mut ( ) -> *mut *mut meshlib::ffi::MR_VertColors

optional output: averaged colors of mesh vertices Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named vColors.

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

◆ voxel_size()

auto meshlib::PointsToMeshParameters::voxel_size ( ) const -> &f32

Size of voxel in grid conversions; The user is responsible for setting some positive value here Returns a pointer to a member variable of class MR::PointsToMeshParameters named voxelSize.

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

◆ voxel_size_mut()

auto meshlib::PointsToMeshParameters::voxel_size_mut ( ) -> &mut f32

Size of voxel in grid conversions; The user is responsible for setting some positive value here Returns a mutable pointer to a member variable of class MR::PointsToMeshParameters named voxelSize.

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


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