MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.PointAccumulator Class Reference
Inheritance diagram for meshlib.PointAccumulator:

Public Member Functions

 PointAccumulator (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PointAccumulator ()
 PointAccumulator (meshlib.PointAccumulator _other)
meshlib.PointAccumulator assignFromAnother (meshlib.PointAccumulator _other)
void addPoint (meshlib.Vector3d pt)
void addPoint (meshlib.Vector3d pt, double weight)
void addPoint (meshlib.Vector3f pt)
void addPoint (meshlib.Vector3f pt, float weight)
meshlib.Plane3d getBestPlane ()
meshlib.Plane3f getBestPlanef ()
meshlib.Line3d getBestLine ()
meshlib.Line3f getBestLinef ()
boolean getCenteredCovarianceEigen (meshlib.Vector3d centroid, meshlib.Matrix3d eigenvectors, meshlib.Vector3d eigenvalues)
boolean getCenteredCovarianceEigen (meshlib.Vector3f centroid, meshlib.Matrix3f eigenvectors, meshlib.Vector3f eigenvalues)
meshlib.AffineXf3d getBasicXf ()
meshlib.AffineXf3f getBasicXf3f ()
meshlib.std_array_MR_AffineXf3d_4 get4BasicXfs ()
meshlib.std_array_MR_AffineXf3f_4 get4BasicXfs3f ()
boolean valid ()
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

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

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ PointAccumulator() [1/3]

meshlib.PointAccumulator.PointAccumulator ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ PointAccumulator() [2/3]

meshlib.PointAccumulator.PointAccumulator ( )

Constructs an empty (default-constructed) instance.

Calls MR_PointAccumulator_DefaultConstruct().

◆ PointAccumulator() [3/3]

meshlib.PointAccumulator.PointAccumulator ( meshlib.PointAccumulator _other)

Generated from constructor MR::PointAccumulator::PointAccumulator. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_PointAccumulator_ConstructFromAnother().

Member Function Documentation

◆ addPoint() [1/4]

void meshlib.PointAccumulator.addPoint ( meshlib.Vector3d pt)

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_1_MR_Vector3d().

◆ addPoint() [2/4]

void meshlib.PointAccumulator.addPoint ( meshlib.Vector3d pt,
double weight )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_2_MR_Vector3d().

◆ addPoint() [3/4]

void meshlib.PointAccumulator.addPoint ( meshlib.Vector3f pt)

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_1_MR_Vector3f().

◆ addPoint() [4/4]

void meshlib.PointAccumulator.addPoint ( meshlib.Vector3f pt,
float weight )

Generated from method MR::PointAccumulator::addPoint.

Calls MR_PointAccumulator_addPoint_2_MR_Vector3f().

◆ assignFromAnother()

meshlib.PointAccumulator meshlib.PointAccumulator.assignFromAnother ( meshlib.PointAccumulator _other)

Generated from method MR::PointAccumulator::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_PointAccumulator_AssignFromAnother().

◆ get4BasicXfs()

meshlib.std_array_MR_AffineXf3d_4 meshlib.PointAccumulator.get4BasicXfs ( )

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().

◆ get4BasicXfs3f()

meshlib.std_array_MR_AffineXf3f_4 meshlib.PointAccumulator.get4BasicXfs3f ( )

Generated from method MR::PointAccumulator::get4BasicXfs3f.

Calls MR_PointAccumulator_get4BasicXfs3f().

◆ getBasicXf()

meshlib.AffineXf3d meshlib.PointAccumulator.getBasicXf ( )

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().

◆ getBasicXf3f()

meshlib.AffineXf3f meshlib.PointAccumulator.getBasicXf3f ( )

Generated from method MR::PointAccumulator::getBasicXf3f.

Calls MR_PointAccumulator_getBasicXf3f().

◆ getBestLine()

meshlib.Line3d meshlib.PointAccumulator.getBestLine ( )

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

Calls MR_PointAccumulator_getBestLine().

◆ getBestLinef()

meshlib.Line3f meshlib.PointAccumulator.getBestLinef ( )

Generated from method MR::PointAccumulator::getBestLinef.

Calls MR_PointAccumulator_getBestLinef().

◆ getBestPlane()

meshlib.Plane3d meshlib.PointAccumulator.getBestPlane ( )

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

Calls MR_PointAccumulator_getBestPlane().

◆ getBestPlanef()

meshlib.Plane3f meshlib.PointAccumulator.getBestPlanef ( )

Generated from method MR::PointAccumulator::getBestPlanef.

Calls MR_PointAccumulator_getBestPlanef().

◆ getCenteredCovarianceEigen() [1/2]

boolean meshlib.PointAccumulator.getCenteredCovarianceEigen ( meshlib.Vector3d centroid,
meshlib.Matrix3d eigenvectors,
meshlib.Vector3d eigenvalues )

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().

◆ getCenteredCovarianceEigen() [2/2]

boolean meshlib.PointAccumulator.getCenteredCovarianceEigen ( meshlib.Vector3f centroid,
meshlib.Matrix3f eigenvectors,
meshlib.Vector3f eigenvalues )

Generated from method MR::PointAccumulator::getCenteredCovarianceEigen.

Calls MR_PointAccumulator_getCenteredCovarianceEigen_MR_Vector3f().

◆ valid()

boolean meshlib.PointAccumulator.valid ( )

Generated from method MR::PointAccumulator::valid.

Calls MR_PointAccumulator_valid().


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