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

Public Member Functions

auto assign_from_another (_other:&meshlib::PlaneAccumulator) -> &mut meshlib::PlaneAccumulator
void add_plane_mr_plane3d (pl:&meshlib::Plane3d)
void add_plane_mr_plane3f (pl:&meshlib::Plane3f)
auto find_best_cross_point_mr_vector3d (p0:&meshlib::Vector3d, tol:f64, rank:Option<&mut core::ffi::c_int >, space:Option<&mut meshlib::Vector3d >) const -> meshlib::Vector3d
auto find_best_cross_point_mr_vector3f (p0:&meshlib::Vector3f, tol:f32, rank:Option<&mut core::ffi::c_int >, space:Option<&mut meshlib::Vector3f >) const -> meshlib::Vector3f

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::PlaneAccumulator >
static auto construct_from_another (_other:&meshlib::PlaneAccumulator) -> meshlib::Owned< meshlib::PlaneAccumulator >
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 planes to find then their crossing point Generated from class MR::PlaneAccumulator.

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

Member Function Documentation

◆ add_plane_mr_plane3d()

void meshlib::PlaneAccumulator::add_plane_mr_plane3d ( pl:&meshlib::Plane3d )

Generated from method MR::PlaneAccumulator::addPlane.

Calls MR_PlaneAccumulator_addPlane_MR_Plane3d().

◆ add_plane_mr_plane3f()

void meshlib::PlaneAccumulator::add_plane_mr_plane3f ( pl:&meshlib::Plane3f )

Generated from method MR::PlaneAccumulator::addPlane.

Calls MR_PlaneAccumulator_addPlane_MR_Plane3f().

◆ assign_from_another()

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

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

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

◆ construct_from_another()

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

Generated from constructor MR::PlaneAccumulator::PlaneAccumulator.

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

◆ find_best_cross_point_mr_vector3d()

auto meshlib::PlaneAccumulator::find_best_cross_point_mr_vector3d ( p0:&meshlib::Vector3d ,
tol:f64 ,
rank:Option<&mut core::ffi::c_int > ,
space:Option<&mut meshlib::Vector3d >  ) const -> meshlib::Vector3d

computes the point that minimizes the sum of squared distances to accumulated planes; if such point is not unique then returns the one closest to p0

Parameters
tolrelative epsilon-tolerance for too small number detection
rankoptional output for solution matrix rank according to given tolerance
spacerank=1: unit normal to solution plane, rank=2: unit direction of solution line, rank=3: zero vector Generated from method MR::PlaneAccumulator::findBestCrossPoint.

Calls MR_PlaneAccumulator_findBestCrossPoint_MR_Vector3d().

◆ find_best_cross_point_mr_vector3f()

auto meshlib::PlaneAccumulator::find_best_cross_point_mr_vector3f ( p0:&meshlib::Vector3f ,
tol:f32 ,
rank:Option<&mut core::ffi::c_int > ,
space:Option<&mut meshlib::Vector3f >  ) const -> meshlib::Vector3f

Generated from method MR::PlaneAccumulator::findBestCrossPoint.

Calls MR_PlaneAccumulator_findBestCrossPoint_MR_Vector3f().

◆ new()

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

Constructs an empty (default-constructed) instance.

Calls MR_PlaneAccumulator_DefaultConstruct().


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