MeshLib Java Docs
Loading...
Searching...
No Matches

encodes a point inside a triangle using barycentric coordinates More...

Inheritance diagram for meshlib.TriPointf:

Public Member Functions

 TriPointf (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 TriPointf ()
 TriPointf (meshlib.TriPointf _other)
 TriPointf (meshlib.NoInit _1)
 TriPointf (float a, float b)
 TriPointf (meshlib.Vector3f p, meshlib.Vector3f v0, meshlib.Vector3f v1, meshlib.Vector3f v2, java.lang.Integer edge)
 TriPointf (meshlib.Vector3f p, meshlib.Vector3f v1, meshlib.Vector3f v2, java.lang.Integer edge)
meshlib.TriPointf assignFromAnother (meshlib.TriPointf _other)
meshlib.TriPointf lnext ()
int inVertex ()
int onEdge ()
boolean opEqual (meshlib.TriPointf rhs)
boolean opNotEqual (meshlib.TriPointf rhs)
float a ()
void setA (float value)
float b ()
void setB (float value)
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 ()

Static Public Member Functions

static float eps ()

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

encodes a point inside a triangle using barycentric coordinates

Notations used below: v0, v1, v2 - points of the triangle Generated from class MR::TriPointf.

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

Constructor & Destructor Documentation

◆ TriPointf() [1/7]

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

◆ TriPointf() [2/7]

meshlib.TriPointf.TriPointf ( )

Constructs an empty (default-constructed) instance.

Calls MR_TriPointf_DefaultConstruct().

◆ TriPointf() [3/7]

meshlib.TriPointf.TriPointf ( meshlib.TriPointf _other)

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

Calls MR_TriPointf_ConstructFromAnother().

◆ TriPointf() [4/7]

meshlib.TriPointf.TriPointf ( meshlib.NoInit _1)

Generated from constructor MR::TriPointf::TriPointf. The reference to the parameter _1 might be preserved in the constructed object.

Calls MR_TriPointf_Construct_1().

◆ TriPointf() [5/7]

meshlib.TriPointf.TriPointf ( float a,
float b )

Generated from constructor MR::TriPointf::TriPointf.

Calls MR_TriPointf_Construct_2().

◆ TriPointf() [6/7]

meshlib.TriPointf.TriPointf ( meshlib.Vector3f p,
meshlib.Vector3f v0,
meshlib.Vector3f v1,
meshlib.Vector3f v2,
java.lang.Integer edge )

given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR::TriPointf::TriPointf. The reference to the parameter p might be preserved in the constructed object. The reference to the parameter v0 might be preserved in the constructed object. The reference to the parameter v1 might be preserved in the constructed object. The reference to the parameter v2 might be preserved in the constructed object.

Calls MR_TriPointf_Construct_5().

◆ TriPointf() [7/7]

meshlib.TriPointf.TriPointf ( meshlib.Vector3f p,
meshlib.Vector3f v1,
meshlib.Vector3f v2,
java.lang.Integer edge )

given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point; if the point is known to be on an edge, numbered as in onEdge(), then pass it to place the point exactly there Generated from constructor MR::TriPointf::TriPointf. The reference to the parameter p might be preserved in the constructed object. The reference to the parameter v1 might be preserved in the constructed object. The reference to the parameter v2 might be preserved in the constructed object.

Calls MR_TriPointf_Construct_4().

Member Function Documentation

◆ a()

float meshlib.TriPointf.a ( )

< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1 Returns a pointer to a member variable of class MR::TriPointf named a. The reference to this object might be preserved as the return value.

Calls MR_TriPointf_Get_a().

◆ assignFromAnother()

meshlib.TriPointf meshlib.TriPointf.assignFromAnother ( meshlib.TriPointf _other)

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

Calls MR_TriPointf_AssignFromAnother().

◆ b()

float meshlib.TriPointf.b ( )

< b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 Returns a pointer to a member variable of class MR::TriPointf named b. The reference to this object might be preserved as the return value.

Calls MR_TriPointf_Get_b().

◆ eps()

float meshlib.TriPointf.eps ( )
static

Returns a pointer to a member variable of class MR::TriPointf named eps.

Calls MR_TriPointf_Get_eps().

◆ inVertex()

int meshlib.TriPointf.inVertex ( )

returns [0,2] if the point is in a vertex or -1 otherwise Generated from method MR::TriPointf::inVertex.

Calls MR_TriPointf_inVertex().

◆ lnext()

meshlib.TriPointf meshlib.TriPointf.lnext ( )

represents the same point relative to next edge in the same triangle Generated from method MR::TriPointf::lnext.

Calls MR_TriPointf_lnext().

◆ onEdge()

int meshlib.TriPointf.onEdge ( )

returns [0,2] if the point is on edge or -1 otherwise: 0 means edge [v1,v2]; 1 means edge [v2,v0]; 2 means edge [v0,v1] Generated from method MR::TriPointf::onEdge.

Calls MR_TriPointf_onEdge().

◆ opEqual()

boolean meshlib.TriPointf.opEqual ( meshlib.TriPointf rhs)

returns true if two points have equal (a,b) representation Generated from method MR::TriPointf::operator==.

Calls MR_equal_MR_TriPointf().

◆ opNotEqual()

boolean meshlib.TriPointf.opNotEqual ( meshlib.TriPointf rhs)

returns true if two points have equal (a,b) representation Generated from method MR::TriPointf::operator!=.

Calls MR_not_equal_MR_TriPointf().

◆ setA()

void meshlib.TriPointf.setA ( float value)

< a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1 Modifies a member variable of class MR::TriPointf named a.

Calls MR_TriPointf_Set_a().

◆ setB()

void meshlib.TriPointf.setB ( float value)

< b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2 Modifies a member variable of class MR::TriPointf named b.

Calls MR_TriPointf_Set_b().


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