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 |
Generated from: MR::TriTriDistanceResult<float> Aliases: TriTriDistanceResultf
| 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
| 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.
| 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
| 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.
| 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.
| 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
| 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.
| 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.
| 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.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |