MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::Dipole:

Public Member Functions

auto assign_from_another (_other:&meshlib::Dipole) -> &mut meshlib::Dipole
auto add_if_good_approx (q:&meshlib::Vector3f, betaSq:f32, addTo:&mut f32) const -> bool
auto pos () const -> &meshlib::Vector3f
auto pos_mut () -> &mut meshlib::Vector3f
void set_pos (value:meshlib::Vector3f)
auto area () const -> &f32
auto area_mut () -> &mut f32
void set_area (value:f32)
auto dir_area () const -> &meshlib::Vector3f
auto dir_area_mut () -> &mut meshlib::Vector3f
void set_dir_area (value:meshlib::Vector3f)
auto rr () const -> &f32
auto rr_mut () -> &mut f32
void set_rr (value:f32)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::Dipole >
static auto construct_from (pos:meshlib::Vector3f, area:f32, dirArea:meshlib::Vector3f, rr:f32) -> meshlib::Owned< meshlib::Dipole >
static auto construct_from_another (_other:&meshlib::Dipole) -> meshlib::Owned< meshlib::Dipole >
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

Single oriented point or two oppositely charged points close together, representing a mesh part (one or more triangles) https://www.dgp.toronto.edu/projects/fast-winding-numbers/fast-winding-numbers-for-soups-and-clouds-siggraph-2018-barill-et-al.pdf Generated from class MR::Dipole.

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

Member Function Documentation

◆ add_if_good_approx()

auto meshlib::Dipole::add_if_good_approx ( q:&meshlib::Vector3f ,
betaSq:f32 ,
addTo:&mut f32 ) const -> bool

returns true if this dipole is good approximation for a point q; and adds the contribution of this dipole to the winding number at point q to addTo Generated from method MR::Dipole::addIfGoodApprox.

Calls MR_Dipole_addIfGoodApprox().

◆ area()

auto meshlib::Dipole::area ( ) const -> &f32

Returns a pointer to a member variable of class MR::Dipole named area.

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

◆ area_mut()

auto meshlib::Dipole::area_mut ( ) -> &mut f32

Returns a mutable pointer to a member variable of class MR::Dipole named area.

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

◆ assign_from_another()

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

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

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

◆ construct_from()

auto meshlib::Dipole::construct_from ( pos:meshlib::Vector3f ,
area:f32 ,
dirArea:meshlib::Vector3f ,
rr:f32  ) -> meshlib::Owned< meshlib::Dipole >
static

Constructs MR::Dipole elementwise.

Calls MR_Dipole_ConstructFrom(). The reference to the parameter pos might be preserved in the constructed object. The reference to the parameter dirArea might be preserved in the constructed object.

◆ construct_from_another()

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

Generated from constructor MR::Dipole::Dipole.

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

◆ dir_area()

auto meshlib::Dipole::dir_area ( ) const -> &meshlib::Vector3f

Returns a pointer to a member variable of class MR::Dipole named dirArea.

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

◆ dir_area_mut()

auto meshlib::Dipole::dir_area_mut ( ) -> &mut meshlib::Vector3f

Returns a mutable pointer to a member variable of class MR::Dipole named dirArea.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_Dipole_DefaultConstruct().

◆ pos()

auto meshlib::Dipole::pos ( ) const -> &meshlib::Vector3f

Returns a pointer to a member variable of class MR::Dipole named pos.

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

◆ pos_mut()

auto meshlib::Dipole::pos_mut ( ) -> &mut meshlib::Vector3f

Returns a mutable pointer to a member variable of class MR::Dipole named pos.

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

◆ rr()

auto meshlib::Dipole::rr ( ) const -> &f32

maximum squared distance from pos to any corner of the bounding box Returns a pointer to a member variable of class MR::Dipole named rr.

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

◆ rr_mut()

auto meshlib::Dipole::rr_mut ( ) -> &mut f32

maximum squared distance from pos to any corner of the bounding box Returns a mutable pointer to a member variable of class MR::Dipole named rr.

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

◆ set_area()

void meshlib::Dipole::set_area ( value:f32 )

Modifies a member variable of class MR::Dipole named area.

Calls MR_Dipole_Set_area().

◆ set_dir_area()

void meshlib::Dipole::set_dir_area ( value:meshlib::Vector3f )

Modifies a member variable of class MR::Dipole named dirArea.

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

◆ set_pos()

void meshlib::Dipole::set_pos ( value:meshlib::Vector3f )

Modifies a member variable of class MR::Dipole named pos.

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

◆ set_rr()

void meshlib::Dipole::set_rr ( value:f32 )

maximum squared distance from pos to any corner of the bounding box Modifies a member variable of class MR::Dipole named rr.

Calls MR_Dipole_Set_rr().


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