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

Public Member Functions

auto assign_from_another (_other:&meshlib::DistanceFromWeightedPointsComputeParams) -> &mut meshlib::DistanceFromWeightedPointsComputeParams
auto min_bidir_dist () const -> &f32
auto min_bidir_dist_mut () -> &mut f32
void set_min_bidir_dist (value:f32)
auto max_bidir_dist () const -> &f32
auto max_bidir_dist_mut () -> &mut f32
void set_max_bidir_dist (value:f32)
auto point_weight () const -> &meshlib::std_function_float_from_MR_VertId
auto point_weight_mut () -> &mut meshlib::std_function_float_from_MR_VertId
void set_point_weight (value:&meshlib::std_function_float_from_MR_VertId)
auto min_weight () const -> &f32
auto min_weight_mut () -> &mut f32
void set_min_weight (value:f32)
auto max_weight () const -> &f32
auto max_weight_mut () -> &mut f32
void set_max_weight (value:f32)
auto max_weight_grad () const -> &f32
auto max_weight_grad_mut () -> &mut f32
void set_max_weight_grad (value:f32)
auto bidirectional_mode () const -> &bool
auto bidirectional_mode_mut () -> &mut bool
void set_bidirectional_mode (value:bool)
auto upcast_to_distance_from_weighted_points_params () const -> &meshlib::DistanceFromWeightedPointsParams
auto upcast_to_distance_from_weighted_points_params_mut () -> &mut meshlib::DistanceFromWeightedPointsParams

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DistanceFromWeightedPointsComputeParams >
static auto construct_from_another (_other:&meshlib::DistanceFromWeightedPointsComputeParams) -> meshlib::Owned< meshlib::DistanceFromWeightedPointsComputeParams >
static auto static_downcast_from_distance_from_weighted_points_params (object:&meshlib::DistanceFromWeightedPointsParams) -> &Self
static auto static_downcast_from_distance_from_weighted_points_params_mut (object:&mut meshlib::DistanceFromWeightedPointsParams) -> &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::DistanceFromWeightedPointsComputeParams. Base classes: Direct: (non-virtual) MR::DistanceFromWeightedPointsParams

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ bidirectional_mode()

auto meshlib::DistanceFromWeightedPointsComputeParams::bidirectional_mode ( ) const -> &bool

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode.

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

◆ bidirectional_mode_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::bidirectional_mode_mut ( ) -> &mut bool

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode.

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

◆ construct_from_another()

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

Generated from constructor MR::DistanceFromWeightedPointsComputeParams::DistanceFromWeightedPointsComputeParams.

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

◆ max_bidir_dist()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_bidir_dist ( ) const -> &f32

find the closest point only if weighted bidirectional distance to it is less than given value Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist.

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

◆ max_bidir_dist_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_bidir_dist_mut ( ) -> &mut f32

find the closest point only if weighted bidirectional distance to it is less than given value Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist.

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

◆ max_weight()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_weight ( ) const -> &f32

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight.

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

◆ max_weight_grad()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_weight_grad ( ) const -> &f32

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad.

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

◆ max_weight_grad_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_weight_grad_mut ( ) -> &mut f32

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad.

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

◆ max_weight_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::max_weight_mut ( ) -> &mut f32

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight.

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

◆ min_bidir_dist()

auto meshlib::DistanceFromWeightedPointsComputeParams::min_bidir_dist ( ) const -> &f32

default 0 here does not work for negative distances Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist.

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

◆ min_bidir_dist_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::min_bidir_dist_mut ( ) -> &mut f32

default 0 here does not work for negative distances Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist.

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

◆ min_weight()

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

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight.

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

◆ min_weight_mut()

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

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DistanceFromWeightedPointsComputeParams_DefaultConstruct().

◆ point_weight()

auto meshlib::DistanceFromWeightedPointsComputeParams::point_weight ( ) const -> &meshlib::std_function_float_from_MR_VertId

function returning the weight of each point, must be set by the user Returns a pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight.

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

◆ point_weight_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::point_weight_mut ( ) -> &mut meshlib::std_function_float_from_MR_VertId

function returning the weight of each point, must be set by the user Returns a mutable pointer to a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight.

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

◆ set_bidirectional_mode()

void meshlib::DistanceFromWeightedPointsComputeParams::set_bidirectional_mode ( value:bool )

for points, it must always true; for triangles: if true the distances grow in both directions from each triangle, reaching minimum in the triangle; if false the distances grow to infinity in the direction of triangle's normals, and decrease to minus infinity in the opposite direction Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named bidirectionalMode.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_bidirectionalMode().

◆ set_max_bidir_dist()

void meshlib::DistanceFromWeightedPointsComputeParams::set_max_bidir_dist ( value:f32 )

find the closest point only if weighted bidirectional distance to it is less than given value Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxBidirDist.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_maxBidirDist().

◆ set_max_weight()

void meshlib::DistanceFromWeightedPointsComputeParams::set_max_weight ( value:f32 )

maximal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeight.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_maxWeight().

◆ set_max_weight_grad()

void meshlib::DistanceFromWeightedPointsComputeParams::set_max_weight_grad ( value:f32 )

maximal magnitude of gradient of points' weight in the cloud, >=0; if maxWeightGrad < 1 then more search optimizations can be done Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named maxWeightGrad.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_maxWeightGrad().

◆ set_min_bidir_dist()

void meshlib::DistanceFromWeightedPointsComputeParams::set_min_bidir_dist ( value:f32 )

default 0 here does not work for negative distances Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named minBidirDist.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_minBidirDist().

◆ set_min_weight()

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

minimal weight among all points in the cloud; if this value is imprecise, then more computations will be made by algorithm Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named minWeight.

Calls MR_DistanceFromWeightedPointsComputeParams_Set_minWeight().

◆ set_point_weight()

void meshlib::DistanceFromWeightedPointsComputeParams::set_point_weight ( value:&meshlib::std_function_float_from_MR_VertId )

function returning the weight of each point, must be set by the user Modifies a member variable of class MR::DistanceFromWeightedPointsComputeParams named pointWeight.

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

◆ static_downcast_from_distance_from_weighted_points_params()

auto meshlib::DistanceFromWeightedPointsComputeParams::static_downcast_from_distance_from_weighted_points_params ( object:&meshlib::DistanceFromWeightedPointsParams ) -> &Self
static

Static downcast from the base class MR::DistanceFromWeightedPointsParams.

Calls MR_DistanceFromWeightedPointsComputeParams_StaticDowncastFrom_MR_DistanceFromWeightedPointsParams(). Undefined behavior if the object isn't actually a DistanceFromWeightedPointsComputeParams.

Note
This function is unsafe.

◆ static_downcast_from_distance_from_weighted_points_params_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::static_downcast_from_distance_from_weighted_points_params_mut ( object:&mut meshlib::DistanceFromWeightedPointsParams ) -> &mut Self
static

Static downcast from the base class MR::DistanceFromWeightedPointsParams.

Calls MR_DistanceFromWeightedPointsComputeParams_MutableStaticDowncastFrom_MR_DistanceFromWeightedPointsParams(). Undefined behavior if the object isn't actually a DistanceFromWeightedPointsComputeParams.

Note
This function is unsafe.

◆ upcast_to_distance_from_weighted_points_params()

auto meshlib::DistanceFromWeightedPointsComputeParams::upcast_to_distance_from_weighted_points_params ( ) const -> &meshlib::DistanceFromWeightedPointsParams

Upcasts to the base class MR::DistanceFromWeightedPointsParams.

Calls MR_DistanceFromWeightedPointsComputeParams_UpcastTo_MR_DistanceFromWeightedPointsParams().

◆ upcast_to_distance_from_weighted_points_params_mut()

auto meshlib::DistanceFromWeightedPointsComputeParams::upcast_to_distance_from_weighted_points_params_mut ( ) -> &mut meshlib::DistanceFromWeightedPointsParams

Upcasts to the base class MR::DistanceFromWeightedPointsParams.

Calls MR_DistanceFromWeightedPointsComputeParams_MutableUpcastTo_MR_DistanceFromWeightedPointsParams().


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