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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::MeshPointAndDistance) -> &mut meshlib::MeshPointAndDistance
auto bidir_dist () const -> f32
auto dist () const -> f32
auto op_compare_three_way (other:&meshlib::MeshPointAndDistance) const -> meshlib::std_partial_ordering
auto op_less (other:&meshlib::MeshPointAndDistance) const -> bool
auto op_greater (other:&meshlib::MeshPointAndDistance) const -> bool
auto op_less_equal (other:&meshlib::MeshPointAndDistance) const -> bool
auto op_greater_equal (other:&meshlib::MeshPointAndDistance) const -> bool
auto valid () const -> bool
auto loc () const -> &meshlib::Vector3f
auto loc_mut () -> &mut meshlib::Vector3f
void set_loc (value:meshlib::Vector3f)
auto mtp () const -> &meshlib::MeshTriPoint
auto mtp_mut () -> &mut meshlib::MeshTriPoint
void set_mtp (value:&meshlib::MeshTriPoint)
auto eucledean_dist () const -> &f32
auto eucledean_dist_mut () -> &mut f32
void set_eucledean_dist (value:f32)
auto w () const -> &f32
auto w_mut () -> &mut f32
void set_w (value:f32)
auto bidirectional_or_outside () const -> &bool
auto bidirectional_or_outside_mut () -> &mut bool
void set_bidirectional_or_outside (value:bool)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::MeshPointAndDistance >
static auto construct_from (loc:meshlib::Vector3f, mtp:&meshlib::MeshTriPoint, eucledeanDist:f32, w:f32, bidirectionalOrOutside:bool) -> meshlib::Owned< meshlib::MeshPointAndDistance >
static auto construct_from_another (_other:&meshlib::MeshPointAndDistance) -> meshlib::Owned< meshlib::MeshPointAndDistance >
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::MeshPointAndDistance.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ bidir_dist()

auto meshlib::MeshPointAndDistance::bidir_dist ( ) const -> f32

bidirectional distance from input location to mtp considering point's weight Generated from method MR::MeshPointAndDistance::bidirDist.

Calls MR_MeshPointAndDistance_bidirDist().

◆ bidirectional_or_outside()

auto meshlib::MeshPointAndDistance::bidirectional_or_outside ( ) const -> &bool

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Returns a pointer to a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside.

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

◆ bidirectional_or_outside_mut()

auto meshlib::MeshPointAndDistance::bidirectional_or_outside_mut ( ) -> &mut bool

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside.

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

◆ construct_from()

auto meshlib::MeshPointAndDistance::construct_from ( loc:meshlib::Vector3f ,
mtp:&meshlib::MeshTriPoint ,
eucledeanDist:f32 ,
w:f32 ,
bidirectionalOrOutside:bool  ) -> meshlib::Owned< meshlib::MeshPointAndDistance >
static

Constructs MR::MeshPointAndDistance elementwise.

Calls MR_MeshPointAndDistance_ConstructFrom(). The reference to the parameter loc might be preserved in the constructed object. The reference to the parameter mtp might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::MeshPointAndDistance::MeshPointAndDistance.

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

◆ convert_to_bool()

auto meshlib::MeshPointAndDistance::convert_to_bool ( ) const -> bool

Generated from conversion operator MR::MeshPointAndDistance::operator bool.

Calls MR_MeshPointAndDistance_ConvertTo_bool().

◆ dist()

auto meshlib::MeshPointAndDistance::dist ( ) const -> f32

the distance from input location to mtp considering point's weight and location inside/outside; dist() is continuous function of location unlike innerDist(), which makes 2*weight jump if the location moves through the surface Generated from method MR::MeshPointAndDistance::dist.

Calls MR_MeshPointAndDistance_dist().

◆ eucledean_dist()

auto meshlib::MeshPointAndDistance::eucledean_dist ( ) const -> &f32

euclidean distance from input location to mtp Returns a pointer to a member variable of class MR::MeshPointAndDistance named eucledeanDist.

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

◆ eucledean_dist_mut()

auto meshlib::MeshPointAndDistance::eucledean_dist_mut ( ) -> &mut f32

euclidean distance from input location to mtp Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named eucledeanDist.

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

◆ loc()

auto meshlib::MeshPointAndDistance::loc ( ) const -> &meshlib::Vector3f

point location Returns a pointer to a member variable of class MR::MeshPointAndDistance named loc.

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

◆ loc_mut()

auto meshlib::MeshPointAndDistance::loc_mut ( ) -> &mut meshlib::Vector3f

point location Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named loc.

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

◆ mtp()

auto meshlib::MeshPointAndDistance::mtp ( ) const -> &meshlib::MeshTriPoint

the corresponding point on mesh in barycentric representation Returns a pointer to a member variable of class MR::MeshPointAndDistance named mtp.

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

◆ mtp_mut()

auto meshlib::MeshPointAndDistance::mtp_mut ( ) -> &mut meshlib::MeshTriPoint

the corresponding point on mesh in barycentric representation Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named mtp.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_MeshPointAndDistance_DefaultConstruct().

◆ op_compare_three_way()

auto meshlib::MeshPointAndDistance::op_compare_three_way ( other:&meshlib::MeshPointAndDistance ) const -> meshlib::std_partial_ordering

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<=>.

Calls MR_compare_three_way_MR_MeshPointAndDistance().

◆ op_greater()

auto meshlib::MeshPointAndDistance::op_greater ( other:&meshlib::MeshPointAndDistance ) const -> bool

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator>.

Calls MR_greater_MR_MeshPointAndDistance().

◆ op_greater_equal()

auto meshlib::MeshPointAndDistance::op_greater_equal ( other:&meshlib::MeshPointAndDistance ) const -> bool

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator>=.

Calls MR_greater_equal_MR_MeshPointAndDistance().

◆ op_less()

auto meshlib::MeshPointAndDistance::op_less ( other:&meshlib::MeshPointAndDistance ) const -> bool

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<.

Calls MR_less_MR_MeshPointAndDistance().

◆ op_less_equal()

auto meshlib::MeshPointAndDistance::op_less_equal ( other:&meshlib::MeshPointAndDistance ) const -> bool

comparison telling which point is closer to the location Generated from method MR::MeshPointAndDistance::operator<=.

Calls MR_less_equal_MR_MeshPointAndDistance().

◆ set_bidirectional_or_outside()

void meshlib::MeshPointAndDistance::set_bidirectional_or_outside ( value:bool )

either 1) bidirectional distances are computed, or 2) input location is locally outside of the surface (by pseudonormal) used for optimization Modifies a member variable of class MR::MeshPointAndDistance named bidirectionalOrOutside.

Calls MR_MeshPointAndDistance_Set_bidirectionalOrOutside().

◆ set_eucledean_dist()

void meshlib::MeshPointAndDistance::set_eucledean_dist ( value:f32 )

euclidean distance from input location to mtp Modifies a member variable of class MR::MeshPointAndDistance named eucledeanDist.

Calls MR_MeshPointAndDistance_Set_eucledeanDist().

◆ set_loc()

void meshlib::MeshPointAndDistance::set_loc ( value:meshlib::Vector3f )

point location Modifies a member variable of class MR::MeshPointAndDistance named loc.

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

◆ set_mtp()

void meshlib::MeshPointAndDistance::set_mtp ( value:&meshlib::MeshTriPoint )

the corresponding point on mesh in barycentric representation Modifies a member variable of class MR::MeshPointAndDistance named mtp.

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

◆ set_w()

void meshlib::MeshPointAndDistance::set_w ( value:f32 )

point's weight Modifies a member variable of class MR::MeshPointAndDistance named w.

Calls MR_MeshPointAndDistance_Set_w().

◆ valid()

auto meshlib::MeshPointAndDistance::valid ( ) const -> bool

check for validity, otherwise there is no point closer than maxBidirDist Generated from method MR::MeshPointAndDistance::valid.

Calls MR_MeshPointAndDistance_valid().

◆ w()

auto meshlib::MeshPointAndDistance::w ( ) const -> &f32

point's weight Returns a pointer to a member variable of class MR::MeshPointAndDistance named w.

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

◆ w_mut()

auto meshlib::MeshPointAndDistance::w_mut ( ) -> &mut f32

point's weight Returns a mutable pointer to a member variable of class MR::MeshPointAndDistance named w.

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


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