MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.TriPointd Class Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__() [1/6]

None meshlib.mrmeshpy.TriPointd.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/6]

None meshlib.mrmeshpy.TriPointd.__init__ ( self)

◆ __init__() [3/6]

None meshlib.mrmeshpy.TriPointd.__init__ ( self,
float a,
float b )

◆ __init__() [4/6]

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

◆ __init__() [5/6]

None meshlib.mrmeshpy.TriPointd.__init__ ( self,
Vector3d p,
Vector3d v1,
Vector3d v2 )
given a point coordinates and triangle (0,v1,v2) computes barycentric coordinates of the point

◆ __init__() [6/6]

None meshlib.mrmeshpy.TriPointd.__init__ ( self,
TriPointd arg0 )
Implicit copy constructor.

Member Function Documentation

◆ __eq__()

bool meshlib.mrmeshpy.TriPointd.__eq__ ( self,
TriPointd rhs )
returns true if two points have equal (a,b) representation

◆ a() [1/2]

float meshlib.mrmeshpy.TriPointd.a ( self)
a in [0,1], a=0 => point is on [v2,v0] edge, a=1 => point is in v1

◆ a() [2/2]

None meshlib.mrmeshpy.TriPointd.a ( self,
float arg1 )

◆ b() [1/2]

float meshlib.mrmeshpy.TriPointd.b ( self)
b in [0,1], b=0 => point is on [v0,v1] edge, b=1 => point is in v2

◆ b() [2/2]

None meshlib.mrmeshpy.TriPointd.b ( self,
float arg1 )

◆ inVertex()

int meshlib.mrmeshpy.TriPointd.inVertex ( self)
returns [0,2] if the point is in a vertex or -1 otherwise

◆ lnext()

TriPointd meshlib.mrmeshpy.TriPointd.lnext ( self)
represents the same point relative to next edge in the same triangle

◆ onEdge()

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]

Member Data Documentation

◆ eps

typing meshlib.mrmeshpy.TriPointd.eps = 2.220446049250313e-15
static

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