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

Public Member Functions

auto assign_from_another (_other:&meshlib::DistanceFromWeightedPointsParams) -> &mut meshlib::DistanceFromWeightedPointsParams
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)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::DistanceFromWeightedPointsParams >
static auto construct_from (pointWeight:&meshlib::std_function_float_from_MR_VertId, minWeight:f32, maxWeight:f32, maxWeightGrad:f32, bidirectionalMode:bool) -> meshlib::Owned< meshlib::DistanceFromWeightedPointsParams >
static auto construct_from_another (_other:&meshlib::DistanceFromWeightedPointsParams) -> meshlib::Owned< meshlib::DistanceFromWeightedPointsParams >
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::DistanceFromWeightedPointsParams. Derived classes: Direct: (non-virtual) MR::DistanceFromWeightedPointsComputeParams

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ bidirectional_mode()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named bidirectionalMode.

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

◆ bidirectional_mode_mut()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named bidirectionalMode.

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

◆ construct_from()

auto meshlib::DistanceFromWeightedPointsParams::construct_from ( pointWeight:&meshlib::std_function_float_from_MR_VertId ,
minWeight:f32 ,
maxWeight:f32 ,
maxWeightGrad:f32 ,
bidirectionalMode:bool  ) -> meshlib::Owned< meshlib::DistanceFromWeightedPointsParams >
static

Constructs MR::DistanceFromWeightedPointsParams elementwise.

Calls MR_DistanceFromWeightedPointsParams_ConstructFrom(). The reference to the parameter pointWeight might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::DistanceFromWeightedPointsParams::DistanceFromWeightedPointsParams.

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

◆ max_weight()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeight.

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

◆ max_weight_grad()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeightGrad.

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

◆ max_weight_grad_mut()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeightGrad.

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

◆ max_weight_mut()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeight.

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

◆ min_weight()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named minWeight.

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

◆ min_weight_mut()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named minWeight.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_DistanceFromWeightedPointsParams_DefaultConstruct().

◆ point_weight()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named pointWeight.

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

◆ point_weight_mut()

auto meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named pointWeight.

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

◆ set_bidirectional_mode()

void meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named bidirectionalMode.

Calls MR_DistanceFromWeightedPointsParams_Set_bidirectionalMode().

◆ set_max_weight()

void meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeight.

Calls MR_DistanceFromWeightedPointsParams_Set_maxWeight().

◆ set_max_weight_grad()

void meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named maxWeightGrad.

Calls MR_DistanceFromWeightedPointsParams_Set_maxWeightGrad().

◆ set_min_weight()

void meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named minWeight.

Calls MR_DistanceFromWeightedPointsParams_Set_minWeight().

◆ set_point_weight()

void meshlib::DistanceFromWeightedPointsParams::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::DistanceFromWeightedPointsParams named pointWeight.

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


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