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

Public Member Functions

 TriTriDistanceResult_double (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 TriTriDistanceResult_double ()
 TriTriDistanceResult_double (meshlib.Vector3d a, meshlib.Vector3d b, double distSq, boolean overlap, byte aEdge, byte bEdge)
 TriTriDistanceResult_double (meshlib.TriTriDistanceResult_double _other)
meshlib.TriTriDistanceResult_double assignFromAnother (meshlib.TriTriDistanceResult_double _other)
meshlib.TriPointd aBary (meshlib.std_array_MR_Vector3d_3 ta)
meshlib.TriPointd bBary (meshlib.std_array_MR_Vector3d_3 tb)
meshlib.Vector3d a ()
void setA (meshlib.Vector3d value)
meshlib.Vector3d b ()
void setB (meshlib.Vector3d value)
double distSq ()
void setDistSq (double value)
boolean overlap ()
void setOverlap (boolean value)
byte aEdge ()
void setAEdge (byte value)
byte bEdge ()
void setBEdge (byte 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 ()

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

Generated from class MR::TriTriDistanceResult<double>.

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

Constructor & Destructor Documentation

◆ TriTriDistanceResult_double() [1/4]

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

◆ TriTriDistanceResult_double() [2/4]

meshlib.TriTriDistanceResult_double.TriTriDistanceResult_double ( )

Constructs an empty (default-constructed) instance.

Calls MR_TriTriDistanceResult_double_DefaultConstruct().

◆ TriTriDistanceResult_double() [3/4]

meshlib.TriTriDistanceResult_double.TriTriDistanceResult_double ( meshlib.Vector3d a,
meshlib.Vector3d b,
double distSq,
boolean overlap,
byte aEdge,
byte bEdge )

Constructs MR::TriTriDistanceResult<double> elementwise. The reference to the parameter a might be preserved in the constructed object. The reference to the parameter b might be preserved in the constructed object. The reference to the parameter aEdge might be preserved in the constructed object. The reference to the parameter bEdge might be preserved in the constructed object.

Calls MR_TriTriDistanceResult_double_ConstructFrom().

◆ TriTriDistanceResult_double() [4/4]

meshlib.TriTriDistanceResult_double.TriTriDistanceResult_double ( meshlib.TriTriDistanceResult_double _other)

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

Calls MR_TriTriDistanceResult_double_ConstructFromAnother().

Member Function Documentation

◆ a()

meshlib.Vector3d meshlib.TriTriDistanceResult_double.a ( )

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named a. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_a().

◆ aBary()

meshlib.TriPointd meshlib.TriTriDistanceResult_double.aBary ( meshlib.std_array_MR_Vector3d_3 ta)

barycentric coordinates of point a in triangle ta, given to findTriTriDistance as the first one; unlike the ones computed from the position of the point, they place a point found on an edge or in a vertex there Generated from method MR::TriTriDistanceResult<double>::aBary.

Calls MR_TriTriDistanceResult_double_aBary().

◆ aEdge()

byte meshlib.TriTriDistanceResult_double.aEdge ( )

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named aEdge. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_aEdge().

◆ assignFromAnother()

meshlib.TriTriDistanceResult_double meshlib.TriTriDistanceResult_double.assignFromAnother ( meshlib.TriTriDistanceResult_double _other)

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

Calls MR_TriTriDistanceResult_double_AssignFromAnother().

◆ b()

meshlib.Vector3d meshlib.TriTriDistanceResult_double.b ( )

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named b. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_b().

◆ bBary()

meshlib.TriPointd meshlib.TriTriDistanceResult_double.bBary ( meshlib.std_array_MR_Vector3d_3 tb)

barycentric coordinates of point b in triangle tb, given to findTriTriDistance as the second one Generated from method MR::TriTriDistanceResult<double>::bBary.

Calls MR_TriTriDistanceResult_double_bBary().

◆ bEdge()

byte meshlib.TriTriDistanceResult_double.bEdge ( )

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named bEdge. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_bEdge().

◆ distSq()

double meshlib.TriTriDistanceResult_double.distSq ( )

If the triangles are disjoint, it is the squared distance them (equal to the squared distance between a and b points). If the triangles overlap, it is zero. Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named distSq. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_distSq().

◆ overlap()

boolean meshlib.TriTriDistanceResult_double.overlap ( )

overlap==true means that the triangles are intersecting and not just touch one another => distSq == 0 if distSq == 0 and overlap == false, then the triangles just touch one another Returns a pointer to a member variable of class MR::TriTriDistanceResult<double> named overlap. The reference to this object might be preserved as the return value.

Calls MR_TriTriDistanceResult_double_Get_overlap().

◆ setA()

void meshlib.TriTriDistanceResult_double.setA ( meshlib.Vector3d value)

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Modifies a member variable of class MR::TriTriDistanceResult<double> named a. The reference to the parameter value might be preserved in this object in element a.

Calls MR_TriTriDistanceResult_double_Set_a().

◆ setAEdge()

void meshlib.TriTriDistanceResult_double.setAEdge ( byte value)

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Modifies a member variable of class MR::TriTriDistanceResult<double> named aEdge. The reference to the parameter value might be preserved in this object in element aEdge.

Calls MR_TriTriDistanceResult_double_Set_aEdge().

◆ setB()

void meshlib.TriTriDistanceResult_double.setB ( meshlib.Vector3d value)

If the triangles are disjoint, these points are the closest points of the corresponding triangles. However, if the triangles overlap, these are basically a random pair of points from the triangles, not coincident points on the intersection of the triangles, as might be expected. Modifies a member variable of class MR::TriTriDistanceResult<double> named b. The reference to the parameter value might be preserved in this object in element b.

Calls MR_TriTriDistanceResult_double_Set_b().

◆ setBEdge()

void meshlib.TriTriDistanceResult_double.setBEdge ( byte value)

the edges of the triangles with points a and b, numbered as in TriPoint::onEdge() (which also contain a point found in a vertex), or -1 if the point is inside its triangle Modifies a member variable of class MR::TriTriDistanceResult<double> named bEdge. The reference to the parameter value might be preserved in this object in element bEdge.

Calls MR_TriTriDistanceResult_double_Set_bEdge().

◆ setDistSq()

void meshlib.TriTriDistanceResult_double.setDistSq ( double value)

If the triangles are disjoint, it is the squared distance them (equal to the squared distance between a and b points). If the triangles overlap, it is zero. Modifies a member variable of class MR::TriTriDistanceResult<double> named distSq.

Calls MR_TriTriDistanceResult_double_Set_distSq().

◆ setOverlap()

void meshlib.TriTriDistanceResult_double.setOverlap ( boolean value)

overlap==true means that the triangles are intersecting and not just touch one another => distSq == 0 if distSq == 0 and overlap == false, then the triangles just touch one another Modifies a member variable of class MR::TriTriDistanceResult<double> named overlap.

Calls MR_TriTriDistanceResult_double_Set_overlap().


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