encodes a point inside a triangle using barycentric coordinates More...
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) | |
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.
| 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.
| meshlib.TriPointd.TriPointd | ( | ) |
Constructs an empty (default-constructed) instance.
Calls MR_TriPointd_DefaultConstruct().
| 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().
| 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().
| meshlib.TriPointd.TriPointd | ( | double | a, |
| double | b ) |
Generated from constructor MR::TriPointd::TriPointd.
Calls MR_TriPointd_Construct_2().
| 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().
| 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().
| 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().
| 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().
| 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().
|
static |
Returns a pointer to a member variable of class MR::TriPointd named eps.
Calls MR_TriPointd_Get_eps().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().