Public Member Functions | |
bool | __eq__ (self, TriPointd rhs) |
None | __init__ (self) |
None | __init__ (self, float a, float b) |
None | __init__ (self, Vector3d p, Vector3d v0, Vector3d v1, Vector3d v2) |
None | __init__ (self, Vector3d p, Vector3d v1, Vector3d v2) |
None | __init__ (self, TriPointd arg0) |
int | inVertex (self) |
TriPointd | lnext (self) |
int | onEdge (self) |
float | a (self) |
None | a (self, float arg1) |
float | b (self) |
None | b (self, float arg1) |
Static Public Member Functions | |
None | __init__ (*args, **kwargs) |
Static Public Attributes | |
typing | eps = 2.220446049250313e-15 |
Generated from: MR::TriPointd Aliases: TriPoint_double \\brief encodes a point inside a triangle using barycentric coordinates \\ingroup MathGroup \\details Notations used below: v0, v1, v2 - points of the triangle
|
static |
None meshlib.mrmeshpy.TriPointd.__init__ | ( | self | ) |
None meshlib.mrmeshpy.TriPointd.__init__ | ( | self, | |
float | a, | ||
float | b ) |
None meshlib.mrmeshpy.TriPointd.__init__ | ( | self, | |
Vector3d | p, | ||
Vector3d | v0, | ||
Vector3d | v1, | ||
Vector3d | v2 ) |
given a point coordinates and triangle (v0,v1,v2) computes barycentric coordinates of the point
given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point
None meshlib.mrmeshpy.TriPointd.__init__ | ( | self, | |
TriPointd | arg0 ) |
Implicit copy constructor.
bool meshlib.mrmeshpy.TriPointd.__eq__ | ( | self, | |
TriPointd | rhs ) |
returns true if two points have equal (a,b) representation
float meshlib.mrmeshpy.TriPointd.a | ( | self | ) |
a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1
None meshlib.mrmeshpy.TriPointd.a | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.TriPointd.b | ( | self | ) |
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2
None meshlib.mrmeshpy.TriPointd.b | ( | self, | |
float | arg1 ) |
int meshlib.mrmeshpy.TriPointd.inVertex | ( | self | ) |
returns [0,2] if the point is in a vertex or -1 otherwise
TriPointd meshlib.mrmeshpy.TriPointd.lnext | ( | self | ) |
represents the same point relative to next edge in the same triangle
int meshlib.mrmeshpy.TriPointd.onEdge | ( | self | ) |
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]
|
static |