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

Public Member Functions

auto assign_from_another (_other:&meshlib::Laplacian_Attractor) -> &mut meshlib::Laplacian_Attractor
auto p () const -> &meshlib::MeshTriPoint
auto p_mut () -> &mut meshlib::MeshTriPoint
void set_p (value:&meshlib::MeshTriPoint)
auto target () const -> &meshlib::Vector3d
auto target_mut () -> &mut meshlib::Vector3d
void set_target (value:meshlib::Vector3d)
auto weight () const -> &f64
auto weight_mut () -> &mut f64
void set_weight (value:f64)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Laplacian_Attractor >
static auto construct_from (p:&meshlib::MeshTriPoint, target:meshlib::Vector3d, weight:f64) -> meshlib::Owned< meshlib::Laplacian_Attractor >
static auto construct_from_another (_other:&meshlib::Laplacian_Attractor) -> meshlib::Owned< meshlib::Laplacian_Attractor >
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

attracts the given point inside some mesh's triangle to the given target with the given weight Generated from class MR::Laplacian::Attractor.

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

Member Function Documentation

◆ assign_from_another()

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

Generated from method MR::Laplacian::Attractor::operator=.

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

◆ construct_from()

auto meshlib::Laplacian_Attractor::construct_from ( p:&meshlib::MeshTriPoint ,
target:meshlib::Vector3d ,
weight:f64  ) -> meshlib::Owned< meshlib::Laplacian_Attractor >
static

Constructs MR::Laplacian::Attractor elementwise.

Calls MR_Laplacian_Attractor_ConstructFrom(). The reference to the parameter p might be preserved in the constructed object. The reference to the parameter target might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Laplacian::Attractor::Attractor.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Laplacian_Attractor_DefaultConstruct().

◆ p()

auto meshlib::Laplacian_Attractor::p ( ) const -> &meshlib::MeshTriPoint

Returns a pointer to a member variable of class MR::Laplacian::Attractor named p.

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

◆ p_mut()

auto meshlib::Laplacian_Attractor::p_mut ( ) -> &mut meshlib::MeshTriPoint

Returns a mutable pointer to a member variable of class MR::Laplacian::Attractor named p.

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

◆ set_p()

void meshlib::Laplacian_Attractor::set_p ( value:&meshlib::MeshTriPoint )

Modifies a member variable of class MR::Laplacian::Attractor named p.

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

◆ set_target()

void meshlib::Laplacian_Attractor::set_target ( value:meshlib::Vector3d )

Modifies a member variable of class MR::Laplacian::Attractor named target.

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

◆ set_weight()

void meshlib::Laplacian_Attractor::set_weight ( value:f64 )

the weight or priority of this attractor relative to all other equations, which must be compatible with weights of other equations; the weight of ordinary equations is 1 for VertexMass::Unit, and 1 / sqrt( double area around central vertex ) for VertexMass::NeiArea Modifies a member variable of class MR::Laplacian::Attractor named weight.

Calls MR_Laplacian_Attractor_Set_weight().

◆ target()

auto meshlib::Laplacian_Attractor::target ( ) const -> &meshlib::Vector3d

Returns a pointer to a member variable of class MR::Laplacian::Attractor named target.

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

◆ target_mut()

auto meshlib::Laplacian_Attractor::target_mut ( ) -> &mut meshlib::Vector3d

Returns a mutable pointer to a member variable of class MR::Laplacian::Attractor named target.

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

◆ weight()

auto meshlib::Laplacian_Attractor::weight ( ) const -> &f64

the weight or priority of this attractor relative to all other equations, which must be compatible with weights of other equations; the weight of ordinary equations is 1 for VertexMass::Unit, and 1 / sqrt( double area around central vertex ) for VertexMass::NeiArea Returns a pointer to a member variable of class MR::Laplacian::Attractor named weight.

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

◆ weight_mut()

auto meshlib::Laplacian_Attractor::weight_mut ( ) -> &mut f64

the weight or priority of this attractor relative to all other equations, which must be compatible with weights of other equations; the weight of ordinary equations is 1 for VertexMass::Unit, and 1 / sqrt( double area around central vertex ) for VertexMass::NeiArea Returns a mutable pointer to a member variable of class MR::Laplacian::Attractor named weight.

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


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