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

Public Member Functions

 PlaneAccumulator (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 PlaneAccumulator ()
 PlaneAccumulator (meshlib.PlaneAccumulator _other)
meshlib.PlaneAccumulator assignFromAnother (meshlib.PlaneAccumulator _other)
void addPlane (meshlib.Plane3d pl)
void addPlane (meshlib.Plane3f pl)
meshlib.Vector3d findBestCrossPoint (meshlib.Vector3d p0, double tol, meshlib.int_output rank, meshlib.Vector3d space)
meshlib.Vector3f findBestCrossPoint (meshlib.Vector3f p0, float tol, meshlib.int_output rank, meshlib.Vector3f space)
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 planes to find then their crossing point Generated from class MR::PlaneAccumulator.

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

Constructor & Destructor Documentation

◆ PlaneAccumulator() [1/3]

meshlib.PlaneAccumulator.PlaneAccumulator ( 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.

◆ PlaneAccumulator() [2/3]

meshlib.PlaneAccumulator.PlaneAccumulator ( )

Constructs an empty (default-constructed) instance.

Calls MR_PlaneAccumulator_DefaultConstruct().

◆ PlaneAccumulator() [3/3]

meshlib.PlaneAccumulator.PlaneAccumulator ( meshlib.PlaneAccumulator _other)

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

Calls MR_PlaneAccumulator_ConstructFromAnother().

Member Function Documentation

◆ addPlane() [1/2]

void meshlib.PlaneAccumulator.addPlane ( meshlib.Plane3d pl)

Generated from method MR::PlaneAccumulator::addPlane.

Calls MR_PlaneAccumulator_addPlane_MR_Plane3d().

◆ addPlane() [2/2]

void meshlib.PlaneAccumulator.addPlane ( meshlib.Plane3f pl)

Generated from method MR::PlaneAccumulator::addPlane.

Calls MR_PlaneAccumulator_addPlane_MR_Plane3f().

◆ assignFromAnother()

meshlib.PlaneAccumulator meshlib.PlaneAccumulator.assignFromAnother ( meshlib.PlaneAccumulator _other)

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

Calls MR_PlaneAccumulator_AssignFromAnother().

◆ findBestCrossPoint() [1/2]

meshlib.Vector3d meshlib.PlaneAccumulator.findBestCrossPoint ( meshlib.Vector3d p0,
double tol,
meshlib.int_output rank,
meshlib.Vector3d space )

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

◆ findBestCrossPoint() [2/2]

meshlib.Vector3f meshlib.PlaneAccumulator.findBestCrossPoint ( meshlib.Vector3f p0,
float tol,
meshlib.int_output rank,
meshlib.Vector3f space )

Generated from method MR::PlaneAccumulator::findBestCrossPoint.

Calls MR_PlaneAccumulator_findBestCrossPoint_MR_Vector3f().


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