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

Public Member Functions

auto assign_from_another (_other:&meshlib::PointAccumulator) -> &mut meshlib::PointAccumulator
void add_point_1_mr_vector3d (pt:&meshlib::Vector3d)
void add_point_2_mr_vector3d (pt:&meshlib::Vector3d, weight:f64)
void add_point_1_mr_vector3f (pt:&meshlib::Vector3f)
void add_point_2_mr_vector3f (pt:&meshlib::Vector3f, weight:f32)
auto get_best_plane () const -> meshlib::Owned< meshlib::Plane3d >
auto get_best_planef () const -> meshlib::Owned< meshlib::Plane3f >
auto get_best_line () const -> meshlib::Owned< meshlib::Line3d >
auto get_best_linef () const -> meshlib::Owned< meshlib::Line3f >
auto get_centered_covariance_eigen_mr_vector3d (centroid:&mut meshlib::Vector3d, eigenvectors:&mut meshlib::Matrix3d, eigenvalues:&mut meshlib::Vector3d) const -> bool
auto get_centered_covariance_eigen_mr_vector3f (centroid:&mut meshlib::Vector3f, eigenvectors:&mut meshlib::Matrix3f, eigenvalues:&mut meshlib::Vector3f) const -> bool
auto get_basic_xf () const -> meshlib::AffineXf3d
auto get_basic_xf3f () const -> meshlib::AffineXf3f
auto get4_basic_xfs () const -> meshlib::std_array_MR_AffineXf3d_4
auto get4_basic_xfs3f () const -> meshlib::std_array_MR_AffineXf3f_4
auto valid () const -> bool

Static Public Member Functions

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

Class to accumulate points and make best line / plane approximation Generated from class MR::PointAccumulator.

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

Member Function Documentation

◆ add_point_1_mr_vector3d()

void meshlib::PointAccumulator::add_point_1_mr_vector3d ( pt:&meshlib::Vector3d )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_1_MR_Vector3d().

◆ add_point_1_mr_vector3f()

void meshlib::PointAccumulator::add_point_1_mr_vector3f ( pt:&meshlib::Vector3f )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_1_MR_Vector3f().

◆ add_point_2_mr_vector3d()

void meshlib::PointAccumulator::add_point_2_mr_vector3d ( pt:&meshlib::Vector3d ,
weight:f64  )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_2_MR_Vector3d().

◆ add_point_2_mr_vector3f()

void meshlib::PointAccumulator::add_point_2_mr_vector3f ( pt:&meshlib::Vector3f ,
weight:f32  )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_2_MR_Vector3f().

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::PointAccumulator::PointAccumulator.

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

◆ get4_basic_xfs()

auto meshlib::PointAccumulator::get4_basic_xfs ( ) const -> meshlib::std_array_MR_AffineXf3d_4

returns 4 transformations, each maps (0,0,0) into point centroid, and maps vectors (1,0,0), (0,1,0), (0,0,1) into +/- first, +/- second, +/- third eigenvectors (forming positive reference frame) corresponding to ascending eigenvalues Generated from method MR::PointAccumulator::get4BasicXfs.

Calls MR_PointAccumulator_get4BasicXfs().

◆ get4_basic_xfs3f()

auto meshlib::PointAccumulator::get4_basic_xfs3f ( ) const -> meshlib::std_array_MR_AffineXf3f_4

Generated from method MR::PointAccumulator::get4BasicXfs3f.

Calls MR_PointAccumulator_get4BasicXfs3f().

◆ get_basic_xf()

auto meshlib::PointAccumulator::get_basic_xf ( ) const -> meshlib::AffineXf3d

returns the transformation that maps (0,0,0) into point centroid, and maps vectors (1,0,0), (0,1,0), (0,0,1) into first, second, third eigenvectors corresponding to ascending eigenvalues Generated from method MR::PointAccumulator::getBasicXf.

Calls MR_PointAccumulator_getBasicXf().

◆ get_basic_xf3f()

auto meshlib::PointAccumulator::get_basic_xf3f ( ) const -> meshlib::AffineXf3f

Generated from method MR::PointAccumulator::getBasicXf3f.

Calls MR_PointAccumulator_getBasicXf3f().

◆ get_best_line()

auto meshlib::PointAccumulator::get_best_line ( ) const -> meshlib::Owned< meshlib::Line3d >

computes the best approximating line from the accumulated points Generated from method MR::PointAccumulator::getBestLine.

Calls MR_PointAccumulator_getBestLine().

◆ get_best_linef()

auto meshlib::PointAccumulator::get_best_linef ( ) const -> meshlib::Owned< meshlib::Line3f >

Generated from method MR::PointAccumulator::getBestLinef.

Calls MR_PointAccumulator_getBestLinef().

◆ get_best_plane()

auto meshlib::PointAccumulator::get_best_plane ( ) const -> meshlib::Owned< meshlib::Plane3d >

computes the best approximating plane from the accumulated points Generated from method MR::PointAccumulator::getBestPlane.

Calls MR_PointAccumulator_getBestPlane().

◆ get_best_planef()

auto meshlib::PointAccumulator::get_best_planef ( ) const -> meshlib::Owned< meshlib::Plane3f >

Generated from method MR::PointAccumulator::getBestPlanef.

Calls MR_PointAccumulator_getBestPlanef().

◆ get_centered_covariance_eigen_mr_vector3d()

auto meshlib::PointAccumulator::get_centered_covariance_eigen_mr_vector3d ( centroid:&mut meshlib::Vector3d ,
eigenvectors:&mut meshlib::Matrix3d ,
eigenvalues:&mut meshlib::Vector3d  ) const -> bool

computes centroid and eigenvectors/eigenvalues of the covariance matrix of the accumulated points Generated from method MR::PointAccumulator::getCenteredCovarianceEigen.

Calls MR_PointAccumulator_getCenteredCovarianceEigen_MR_Vector3d().

◆ get_centered_covariance_eigen_mr_vector3f()

auto meshlib::PointAccumulator::get_centered_covariance_eigen_mr_vector3f ( centroid:&mut meshlib::Vector3f ,
eigenvectors:&mut meshlib::Matrix3f ,
eigenvalues:&mut meshlib::Vector3f  ) const -> bool

Generated from method MR::PointAccumulator::getCenteredCovarianceEigen.

Calls MR_PointAccumulator_getCenteredCovarianceEigen_MR_Vector3f().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PointAccumulator_DefaultConstruct().

◆ valid()

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

Generated from method MR::PointAccumulator::valid.

Calls MR_PointAccumulator_valid().


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