MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstTriTriDistanceResult_double Class Reference
Inheritance diagram for mrmeshpy.ConstTriTriDistanceResult_double:

Public Member Functions

 __init__ (self, *args, **kwargs)
TriPointd aBary (self, Const_std_array_Vector3_double_3 ta)
TriPointd bBary (self, Const_std_array_Vector3_double_3 tb)
ConstVector3d a (self)
int aEdge (self)
ConstVector3d b (self)
int bEdge (self)
float distSq (self)
bool overlap (self)

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_aEdge = 57
typing _offsetof_b = 24
typing _offsetof_bEdge = 58
typing _offsetof_distSq = 48
typing _offsetof_overlap = 56

Detailed Description

Generated from:  MR::TriTriDistanceResult<double>
Aliases:  TriTriDistanceResultd

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstTriTriDistanceResult_double.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstTriTriDistanceResult_double) -> None

2. __init__(self: meshlib.mrmeshpy.ConstTriTriDistanceResult_double, arg0: meshlib.mrmeshpy.ConstTriTriDistanceResult_double) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstTriTriDistanceResult_double, a: meshlib.mrmeshpy.ConstVector3d, b: meshlib.mrmeshpy.ConstVector3d, distSq: float, overlap: bool, aEdge: int, bEdge: int) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstTriTriDistanceResult_double, : meshlib.mrmeshpy.ConstTriTriDistanceResult_double) -> None

Member Function Documentation

◆ a()

ConstVector3d mrmeshpy.ConstTriTriDistanceResult_double.a ( self)
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.

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

◆ aBary()

TriPointd mrmeshpy.ConstTriTriDistanceResult_double.aBary ( self,
Const_std_array_Vector3_double_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

◆ aEdge()

int mrmeshpy.ConstTriTriDistanceResult_double.aEdge ( self)
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

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

◆ b()

ConstVector3d mrmeshpy.ConstTriTriDistanceResult_double.b ( self)
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.

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

◆ bBary()

TriPointd mrmeshpy.ConstTriTriDistanceResult_double.bBary ( self,
Const_std_array_Vector3_double_3 tb )
barycentric coordinates of point b in triangle tb, given to findTriTriDistance as the second one

◆ bEdge()

int mrmeshpy.ConstTriTriDistanceResult_double.bEdge ( self)
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

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

◆ distSq()

float mrmeshpy.ConstTriTriDistanceResult_double.distSq ( self)
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.

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

◆ overlap()

bool mrmeshpy.ConstTriTriDistanceResult_double.overlap ( self)
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

Reimplemented in mrmeshpy.TriTriDistanceResult_double, and mrmeshpy.TriTriDistanceResult_double.

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_a = 0
staticprotected

◆ _offsetof_aEdge

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_aEdge = 57
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_b = 24
staticprotected

◆ _offsetof_bEdge

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_bEdge = 58
staticprotected

◆ _offsetof_distSq

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_distSq = 48
staticprotected

◆ _offsetof_overlap

typing mrmeshpy.ConstTriTriDistanceResult_double._offsetof_overlap = 56
staticprotected

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