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

Public Member Functions

 __init__ (self, *args, **kwargs)
TriPointf aBary (self, Const_std_array_Vector3_float_3 ta)
TriPointf bBary (self, Const_std_array_Vector3_float_3 tb)
ConstVector3f a (self)
int aEdge (self)
ConstVector3f b (self)
int bEdge (self)
float distSq (self)
bool overlap (self)

Static Protected Attributes

typing _offsetof_a = 0
typing _offsetof_aEdge = 29
typing _offsetof_b = 12
typing _offsetof_bEdge = 30
typing _offsetof_distSq = 24
typing _offsetof_overlap = 28

Detailed Description

Generated from:  MR::TriTriDistanceResult<float>
Aliases:  TriTriDistanceResultf

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

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

Implicit aggregate constructor.

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

Member Function Documentation

◆ a()

ConstVector3f mrmeshpy.ConstTriTriDistanceResult_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

◆ aBary()

TriPointf mrmeshpy.ConstTriTriDistanceResult_float.aBary ( self,
Const_std_array_Vector3_float_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_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

◆ b()

ConstVector3f mrmeshpy.ConstTriTriDistanceResult_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

◆ bBary()

TriPointf mrmeshpy.ConstTriTriDistanceResult_float.bBary ( self,
Const_std_array_Vector3_float_3 tb )
barycentric coordinates of point b in triangle tb, given to findTriTriDistance as the second one

◆ bEdge()

int mrmeshpy.ConstTriTriDistanceResult_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

◆ distSq()

float mrmeshpy.ConstTriTriDistanceResult_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

◆ overlap()

bool mrmeshpy.ConstTriTriDistanceResult_float.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_float, and mrmeshpy.TriTriDistanceResult_float.

Member Data Documentation

◆ _offsetof_a

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_a = 0
staticprotected

◆ _offsetof_aEdge

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_aEdge = 29
staticprotected

◆ _offsetof_b

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_b = 12
staticprotected

◆ _offsetof_bEdge

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_bEdge = 30
staticprotected

◆ _offsetof_distSq

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_distSq = 24
staticprotected

◆ _offsetof_overlap

typing mrmeshpy.ConstTriTriDistanceResult_float._offsetof_overlap = 28
staticprotected

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