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

Public Member Functions

 QuadricApprox (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 QuadricApprox ()
 QuadricApprox (meshlib.QuadricApprox _other)
meshlib.QuadricApprox assignFromAnother (meshlib.QuadricApprox _other)
void addPoint (meshlib.Vector3d point, java.lang.Double weight)
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

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.

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

Constructor & Destructor Documentation

◆ QuadricApprox() [1/3]

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

◆ QuadricApprox() [2/3]

meshlib.QuadricApprox.QuadricApprox ( )

Constructs an empty (default-constructed) instance.

Calls MR_QuadricApprox_DefaultConstruct().

◆ QuadricApprox() [3/3]

meshlib.QuadricApprox.QuadricApprox ( meshlib.QuadricApprox _other)

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

Calls MR_QuadricApprox_ConstructFromAnother().

Member Function Documentation

◆ addPoint()

void meshlib.QuadricApprox.addPoint ( meshlib.Vector3d point,
java.lang.Double weight )

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

Calls MR_QuadricApprox_addPoint().

◆ assignFromAnother()

meshlib.QuadricApprox meshlib.QuadricApprox.assignFromAnother ( meshlib.QuadricApprox _other)

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

Calls MR_QuadricApprox_AssignFromAnother().


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