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

Public Member Functions

bool __bool__ (self)
 
bool __eq__ (self, MeshTriPoint rhs)
 
None __init__ (self)
 
None __init__ (self, Id_EdgeTag e, TriPointf bary)
 
None __init__ (self, EdgePoint ep)
 
None __init__ (self, MeshTopology topology, VertId v)
 
None __init__ (self, MeshTriPoint arg0)
 
MeshTriPoint canonical (self, MeshTopology topology)
 
bool fromTriangle (self, MeshTopology topology, FaceId f)
 
std_array_WeightedVertex_3 getWeightedVerts (self, MeshTopology topology)
 
VertId inVertex (self, MeshTopology topology)
 
bool inVertex (self)
 
bool isBd (self, MeshTopology topology, FaceBitSet region=None)
 
MeshTriPoint lnext (self, MeshTopology topology)
 
EdgePoint onEdge (self, MeshTopology topology)
 
bool valid (self)
 
TriPointf bary (self)
 
None bary (self, TriPointf arg1)
 
Id_EdgeTag e (self)
 
None e (self, Id_EdgeTag arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 

Detailed Description

Generated from:  MR::MeshTriPoint

encodes a point inside a triangular mesh face using barycentric coordinates
\\ingroup MeshGroup
\\details Notations used below: \\n
  v0 - the value in org( e ) \\n
  v1 - the value in dest( e ) \\n
  v2 - the value in dest( next( e ) )

Constructor & Destructor Documentation

◆ __init__() [1/6]

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

◆ __init__() [2/6]

None meshlib.mrmeshpy.MeshTriPoint.__init__ ( self)

◆ __init__() [3/6]

None meshlib.mrmeshpy.MeshTriPoint.__init__ ( self,
Id_EdgeTag e,
TriPointf bary )

◆ __init__() [4/6]

None meshlib.mrmeshpy.MeshTriPoint.__init__ ( self,
EdgePoint ep )

◆ __init__() [5/6]

None meshlib.mrmeshpy.MeshTriPoint.__init__ ( self,
MeshTopology topology,
VertId v )

◆ __init__() [6/6]

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

Member Function Documentation

◆ __bool__()

bool meshlib.mrmeshpy.MeshTriPoint.__bool__ ( self)

◆ __eq__()

bool meshlib.mrmeshpy.MeshTriPoint.__eq__ ( self,
MeshTriPoint rhs )
returns true if two points are equal including equal not-unique representation

◆ bary() [1/2]

TriPointf meshlib.mrmeshpy.MeshTriPoint.bary ( self)
barycentric coordinates
\\details a in [0,1], a=0 => point is on next( e ) edge, a=1 => point is in dest( e )
b in [0,1], b=0 => point is on e edge, b=1 => point is in dest( next( e ) )
a+b in [0,1], a+b=0 => point is in org( e ), a+b=1 => point is on prev( e.sym() ) edge

◆ bary() [2/2]

None meshlib.mrmeshpy.MeshTriPoint.bary ( self,
TriPointf arg1 )

◆ canonical()

MeshTriPoint meshlib.mrmeshpy.MeshTriPoint.canonical ( self,
MeshTopology topology )
represents the same point relative to the topology.edgeWithLeft( topology.left( e ) )

◆ e() [1/2]

Id_EdgeTag meshlib.mrmeshpy.MeshTriPoint.e ( self)
left face of this edge is considered

◆ e() [2/2]

None meshlib.mrmeshpy.MeshTriPoint.e ( self,
Id_EdgeTag arg1 )

◆ fromTriangle()

bool meshlib.mrmeshpy.MeshTriPoint.fromTriangle ( self,
MeshTopology topology,
FaceId f )
returns true if the point is inside or on the boundary of given triangular face

◆ getWeightedVerts()

std_array_WeightedVertex_3 meshlib.mrmeshpy.MeshTriPoint.getWeightedVerts ( self,
MeshTopology topology )
returns three weighted triangle's vertices with the sum of not-negative weights equal to 1, and the largest weight in the closest vertex

◆ inVertex() [1/2]

bool meshlib.mrmeshpy.MeshTriPoint.inVertex ( self)
returns true if the point is in a vertex

◆ inVertex() [2/2]

VertId meshlib.mrmeshpy.MeshTriPoint.inVertex ( self,
MeshTopology topology )
returns valid vertex id if the point is in vertex, otherwise returns invalid id

◆ isBd()

bool meshlib.mrmeshpy.MeshTriPoint.isBd ( self,
MeshTopology topology,
FaceBitSet region = None )
returns true if the point is in vertex or on edge, and that location is on the boundary of the region

◆ lnext()

MeshTriPoint meshlib.mrmeshpy.MeshTriPoint.lnext ( self,
MeshTopology topology )
represents the same point relative to next edge in the same triangle

◆ onEdge()

EdgePoint meshlib.mrmeshpy.MeshTriPoint.onEdge ( self,
MeshTopology topology )
returns valid value if the point is on edge and topology.left(result.e) == topology.left(this->e),
otherwise returns invalid MeshEdgePoint

◆ valid()

bool meshlib.mrmeshpy.MeshTriPoint.valid ( self)
consider this valid if the edge ID is valid

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