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

Public Member Functions

auto convert_to_bool () const -> bool
auto assign_from_another (_other:&meshlib::PointAndDistance) -> &mut meshlib::PointAndDistance
auto valid () const -> bool
auto v_id () const -> &meshlib::VertId
auto v_id_mut () -> &mut meshlib::VertId
void set_v_id (value:meshlib::VertId)
auto dist () const -> &f32
auto dist_mut () -> &mut f32
void set_dist (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PointAndDistance >
static auto construct_from (vId:meshlib::VertId, dist:f32) -> meshlib::Owned< meshlib::PointAndDistance >
static auto construct_from_another (_other:&meshlib::PointAndDistance) -> meshlib::Owned< meshlib::PointAndDistance >
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::PointAndDistance.

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

Member Function Documentation

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::PointAndDistance::construct_from ( vId:meshlib::VertId ,
dist:f32  ) -> meshlib::Owned< meshlib::PointAndDistance >
static

Constructs MR::PointAndDistance elementwise.

Calls MR_PointAndDistance_ConstructFrom(). The reference to the parameter vId might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::PointAndDistance::PointAndDistance.

Calls MR_PointAndDistance_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::PointAndDistance::convert_to_bool ( ) const -> bool

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

Calls MR_PointAndDistance_ConvertTo_bool().

◆ dist()

auto meshlib::PointAndDistance::dist ( ) const -> &f32

the distance from input location to point vId considering point's weight Returns a pointer to a member variable of class MR::PointAndDistance named dist.

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

◆ dist_mut()

auto meshlib::PointAndDistance::dist_mut ( ) -> &mut f32

the distance from input location to point vId considering point's weight Returns a mutable pointer to a member variable of class MR::PointAndDistance named dist.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PointAndDistance_DefaultConstruct().

◆ set_dist()

void meshlib::PointAndDistance::set_dist ( value:f32 )

the distance from input location to point vId considering point's weight Modifies a member variable of class MR::PointAndDistance named dist.

Calls MR_PointAndDistance_Set_dist().

◆ set_v_id()

void meshlib::PointAndDistance::set_v_id ( value:meshlib::VertId )

a cloud's point Modifies a member variable of class MR::PointAndDistance named vId.

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

◆ v_id()

auto meshlib::PointAndDistance::v_id ( ) const -> &meshlib::VertId

a cloud's point Returns a pointer to a member variable of class MR::PointAndDistance named vId.

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

◆ v_id_mut()

auto meshlib::PointAndDistance::v_id_mut ( ) -> &mut meshlib::VertId

a cloud's point Returns a mutable pointer to a member variable of class MR::PointAndDistance named vId.

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

◆ valid()

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

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

Calls MR_PointAndDistance_valid().


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