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

Public Member Functions

auto assign_from_another (_other:&meshlib::QuadricApprox) -> &mut meshlib::QuadricApprox
void add_point (point:&meshlib::Vector3d, weight:Option< f64 >)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::QuadricApprox >
static auto construct_from_another (_other:&meshlib::QuadricApprox) -> meshlib::Owned< meshlib::QuadricApprox >
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

Accumulate points and make best quadric approximation

\( a*x^2 + b*x*y + c*y^2 + d*x + e*y + f = z \) Generated from class MR::QuadricApprox.

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

Member Function Documentation

◆ add_point()

void meshlib::QuadricApprox::add_point ( point:&meshlib::Vector3d ,
weight:Option< f64 >  )

Adds point to accumulation with weight Generated from method MR::QuadricApprox::addPoint.

Calls MR_QuadricApprox_addPoint().

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::QuadricApprox::QuadricApprox.

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

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_QuadricApprox_DefaultConstruct().


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