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

Public Member Functions

auto assign_from_another (_other:&meshlib::PointsToDistanceVolumeParams) -> &mut meshlib::PointsToDistanceVolumeParams
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 pt_normals () const -> *const *const meshlib::ffi::MR_VertCoords
auto pt_normals_mut () -> *mut *const meshlib::ffi::MR_VertCoords
void set_pt_normals (value:Option<&meshlib::VertCoords >)
auto origin () const -> &meshlib::Vector3f
auto origin_mut () -> &mut meshlib::Vector3f
void set_origin (value:meshlib::Vector3f)
auto cb () const -> &meshlib::std_function_bool_from_float
auto cb_mut () -> &mut meshlib::std_function_bool_from_float
void set_cb (value:&meshlib::std_function_bool_from_float)
auto voxel_size () const -> &meshlib::Vector3f
auto voxel_size_mut () -> &mut meshlib::Vector3f
void set_voxel_size (value:meshlib::Vector3f)
auto dimensions () const -> &meshlib::Vector3i
auto dimensions_mut () -> &mut meshlib::Vector3i
void set_dimensions (value:meshlib::Vector3i)
auto upcast_to_distance_volume_params () const -> &meshlib::DistanceVolumeParams
auto upcast_to_distance_volume_params_mut () -> &mut meshlib::DistanceVolumeParams

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PointsToDistanceVolumeParams >
static auto construct_from_another (_other:&meshlib::PointsToDistanceVolumeParams) -> meshlib::Owned< meshlib::PointsToDistanceVolumeParams >
static auto static_downcast_from_distance_volume_params (object:&meshlib::DistanceVolumeParams) -> &Self
static auto static_downcast_from_distance_volume_params_mut (object:&mut meshlib::DistanceVolumeParams) -> &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::PointsToDistanceVolumeParams. Base classes: Direct: (non-virtual) MR::DistanceVolumeParams

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ cb()

auto meshlib::PointsToDistanceVolumeParams::cb ( ) const -> &meshlib::std_function_bool_from_float

progress callback Returns a pointer to a member variable of class MR::PointsToDistanceVolumeParams named cb.

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

◆ cb_mut()

auto meshlib::PointsToDistanceVolumeParams::cb_mut ( ) -> &mut meshlib::std_function_bool_from_float

progress callback Returns a mutable pointer to a member variable of class MR::PointsToDistanceVolumeParams named cb.

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

◆ construct_from_another()

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

Generated from constructor MR::PointsToDistanceVolumeParams::PointsToDistanceVolumeParams.

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

◆ dimensions()

auto meshlib::PointsToDistanceVolumeParams::dimensions ( ) const -> &meshlib::Vector3i

num voxels along each axis Returns a pointer to a member variable of class MR::PointsToDistanceVolumeParams named dimensions.

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

◆ dimensions_mut()

auto meshlib::PointsToDistanceVolumeParams::dimensions_mut ( ) -> &mut meshlib::Vector3i

num voxels along each axis Returns a mutable pointer to a member variable of class MR::PointsToDistanceVolumeParams named dimensions.

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

◆ inv_sigma_modifier()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named invSigmaModifier.

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

◆ inv_sigma_modifier_mut()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named invSigmaModifier.

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

◆ min_weight()

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

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

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

◆ min_weight_mut()

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

minimum sum of influence weights from surrounding points for a voxel to get a value, 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::PointsToDistanceVolumeParams named minWeight.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PointsToDistanceVolumeParams_DefaultConstruct().

◆ origin()

auto meshlib::PointsToDistanceVolumeParams::origin ( ) const -> &meshlib::Vector3f

origin point of voxels box Returns a pointer to a member variable of class MR::PointsToDistanceVolumeParams named origin.

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

◆ origin_mut()

auto meshlib::PointsToDistanceVolumeParams::origin_mut ( ) -> &mut meshlib::Vector3f

origin point of voxels box Returns a mutable pointer to a member variable of class MR::PointsToDistanceVolumeParams named origin.

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

◆ pt_normals()

auto meshlib::PointsToDistanceVolumeParams::pt_normals ( ) const -> *const *const meshlib::ffi::MR_VertCoords

optional input: if this pointer is set then function will use these normals instead of ones present in cloud Returns a pointer to a member variable of class MR::PointsToDistanceVolumeParams named ptNormals.

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

auto meshlib::PointsToDistanceVolumeParams::pt_normals_mut ( ) -> *mut *const meshlib::ffi::MR_VertCoords

optional input: if this pointer is set then function will use these normals instead of ones present in cloud Returns a mutable pointer to a member variable of class MR::PointsToDistanceVolumeParams named ptNormals.

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

void meshlib::PointsToDistanceVolumeParams::set_cb ( value:&meshlib::std_function_bool_from_float )

progress callback Modifies a member variable of class MR::PointsToDistanceVolumeParams named cb.

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

◆ set_dimensions()

void meshlib::PointsToDistanceVolumeParams::set_dimensions ( value:meshlib::Vector3i )

num voxels along each axis Modifies a member variable of class MR::PointsToDistanceVolumeParams named dimensions.

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

◆ set_inv_sigma_modifier()

void meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named invSigmaModifier.

Calls MR_PointsToDistanceVolumeParams_Set_invSigmaModifier().

◆ set_min_weight()

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

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

Calls MR_PointsToDistanceVolumeParams_Set_minWeight().

◆ set_origin()

void meshlib::PointsToDistanceVolumeParams::set_origin ( value:meshlib::Vector3f )

origin point of voxels box Modifies a member variable of class MR::PointsToDistanceVolumeParams named origin.

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

◆ set_pt_normals()

void meshlib::PointsToDistanceVolumeParams::set_pt_normals ( value:Option<&meshlib::VertCoords > )

optional input: if this pointer is set then function will use these normals instead of ones present in cloud Modifies a member variable of class MR::PointsToDistanceVolumeParams named ptNormals.

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

◆ set_sigma()

void meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sigma.

Calls MR_PointsToDistanceVolumeParams_Set_sigma().

◆ set_sqrt_angle_weight()

void meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sqrtAngleWeight.

Calls MR_PointsToDistanceVolumeParams_Set_sqrtAngleWeight().

◆ set_voxel_size()

void meshlib::PointsToDistanceVolumeParams::set_voxel_size ( value:meshlib::Vector3f )

size of voxel on each axis Modifies a member variable of class MR::PointsToDistanceVolumeParams named voxelSize.

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

◆ sigma()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sigma.

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

◆ sigma_mut()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sigma.

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

◆ sqrt_angle_weight()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sqrtAngleWeight.

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

◆ sqrt_angle_weight_mut()

auto meshlib::PointsToDistanceVolumeParams::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::PointsToDistanceVolumeParams named sqrtAngleWeight.

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

◆ static_downcast_from_distance_volume_params()

auto meshlib::PointsToDistanceVolumeParams::static_downcast_from_distance_volume_params ( object:&meshlib::DistanceVolumeParams ) -> &Self
static

Static downcast from the base class MR::DistanceVolumeParams.

Calls MR_PointsToDistanceVolumeParams_StaticDowncastFrom_MR_DistanceVolumeParams(). Undefined behavior if the object isn't actually a PointsToDistanceVolumeParams.

Note
This function is unsafe.

◆ static_downcast_from_distance_volume_params_mut()

auto meshlib::PointsToDistanceVolumeParams::static_downcast_from_distance_volume_params_mut ( object:&mut meshlib::DistanceVolumeParams ) -> &mut Self
static

Static downcast from the base class MR::DistanceVolumeParams.

Calls MR_PointsToDistanceVolumeParams_MutableStaticDowncastFrom_MR_DistanceVolumeParams(). Undefined behavior if the object isn't actually a PointsToDistanceVolumeParams.

Note
This function is unsafe.

◆ upcast_to_distance_volume_params()

auto meshlib::PointsToDistanceVolumeParams::upcast_to_distance_volume_params ( ) const -> &meshlib::DistanceVolumeParams

Upcasts to the base class MR::DistanceVolumeParams.

Calls MR_PointsToDistanceVolumeParams_UpcastTo_MR_DistanceVolumeParams().

◆ upcast_to_distance_volume_params_mut()

auto meshlib::PointsToDistanceVolumeParams::upcast_to_distance_volume_params_mut ( ) -> &mut meshlib::DistanceVolumeParams

Upcasts to the base class MR::DistanceVolumeParams.

Calls MR_PointsToDistanceVolumeParams_MutableUpcastTo_MR_DistanceVolumeParams().

◆ voxel_size()

auto meshlib::PointsToDistanceVolumeParams::voxel_size ( ) const -> &meshlib::Vector3f

size of voxel on each axis Returns a pointer to a member variable of class MR::PointsToDistanceVolumeParams named voxelSize.

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

◆ voxel_size_mut()

auto meshlib::PointsToDistanceVolumeParams::voxel_size_mut ( ) -> &mut meshlib::Vector3f

size of voxel on each axis Returns a mutable pointer to a member variable of class MR::PointsToDistanceVolumeParams named voxelSize.

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