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

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

Inheritance diagram for meshlib.TriPointd:

Public Member Functions

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

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

Constructor & Destructor Documentation

◆ TriPointd() [1/7]

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

◆ TriPointd() [2/7]

meshlib.TriPointd.TriPointd ( )

Constructs an empty (default-constructed) instance.

Calls MR_TriPointd_DefaultConstruct().

◆ TriPointd() [3/7]

meshlib.TriPointd.TriPointd ( meshlib.TriPointd _other)

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

Calls MR_TriPointd_ConstructFromAnother().

◆ TriPointd() [4/7]

meshlib.TriPointd.TriPointd ( meshlib.NoInit _1)

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

Calls MR_TriPointd_Construct_1().

◆ TriPointd() [5/7]

meshlib.TriPointd.TriPointd ( double a,
double b )

Generated from constructor MR::TriPointd::TriPointd.

Calls MR_TriPointd_Construct_2().

◆ TriPointd() [6/7]

meshlib.TriPointd.TriPointd ( meshlib.Vector3d p,
meshlib.Vector3d v0,
meshlib.Vector3d v1,
meshlib.Vector3d 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::TriPointd::TriPointd. 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_TriPointd_Construct_5().

◆ TriPointd() [7/7]

meshlib.TriPointd.TriPointd ( meshlib.Vector3d p,
meshlib.Vector3d v1,
meshlib.Vector3d 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::TriPointd::TriPointd. 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_TriPointd_Construct_4().

Member Function Documentation

◆ a()

double meshlib.TriPointd.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::TriPointd named a. The reference to this object might be preserved as the return value.

Calls MR_TriPointd_Get_a().

◆ assignFromAnother()

meshlib.TriPointd meshlib.TriPointd.assignFromAnother ( meshlib.TriPointd _other)

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

Calls MR_TriPointd_AssignFromAnother().

◆ b()

double meshlib.TriPointd.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::TriPointd named b. The reference to this object might be preserved as the return value.

Calls MR_TriPointd_Get_b().

◆ eps()

double meshlib.TriPointd.eps ( )
static

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

Calls MR_TriPointd_Get_eps().

◆ inVertex()

int meshlib.TriPointd.inVertex ( )

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

Calls MR_TriPointd_inVertex().

◆ lnext()

meshlib.TriPointd meshlib.TriPointd.lnext ( )

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

Calls MR_TriPointd_lnext().

◆ onEdge()

int meshlib.TriPointd.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::TriPointd::onEdge.

Calls MR_TriPointd_onEdge().

◆ opEqual()

boolean meshlib.TriPointd.opEqual ( meshlib.TriPointd rhs)

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

Calls MR_equal_MR_TriPointd().

◆ opNotEqual()

boolean meshlib.TriPointd.opNotEqual ( meshlib.TriPointd rhs)

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

Calls MR_not_equal_MR_TriPointd().

◆ setA()

void meshlib.TriPointd.setA ( double 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::TriPointd named a.

Calls MR_TriPointd_Set_a().

◆ setB()

void meshlib.TriPointd.setB ( double 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::TriPointd named b.

Calls MR_TriPointd_Set_b().


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