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

Public Member Functions

bool __bool__ (self)
bool __eq__ (self, ConstMeshTriPoint rhs)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstMeshTriPoint rhs)
MeshTriPoint canonical (self, ConstMeshTopology topology)
bool fromTriangle (self, ConstMeshTopology topology, ConstFaceId f)
std_array_WeightedVertexT_float_3 getWeightedVerts (self, ConstMeshTopology topology)
VertId inVertex (self, ConstMeshTopology topology)
bool inVertex (self)
float interpolate (self, ConstMeshTopology topology, ConstVertScalars field)
bool isBd (self, ConstMeshTopology topology, ConstFaceBitSet region=None)
MeshTriPoint lnext (self, ConstMeshTopology topology)
EdgePoint onEdge (self, ConstMeshTopology topology)
bool valid (self)
ConstTriPointf bary (self)
ConstEdgeId e (self)

Static Protected Attributes

typing _offsetof_bary = 4
typing _offsetof_e = 0

Detailed Description

Generated from:  MR::MeshTriPoint
Aliases:  MeshTriPointf

encodes a point inside a triangular mesh face using barycentric coordinates
\\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__()

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

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

2. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, : meshlib.mrmeshpy.ConstNoInit) -> None

3. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, e: meshlib.mrmeshpy.ConstEdgeId, bary: meshlib.mrmeshpy.ConstTriPointf) -> None

4. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, ep: meshlib.mrmeshpy.ConstEdgePoint) -> None

5. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, topology: meshlib.mrmeshpy.ConstMeshTopology, v: meshlib.mrmeshpy.ConstVertId) -> None

6. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, arg0: meshlib.mrmeshpy.ConstMeshTriPoint) -> None

Implicit copy constructor.

7. __init__(self: meshlib.mrmeshpy.ConstMeshTriPoint, : meshlib.mrmeshpy.ConstMeshTriPoint) -> None

Member Function Documentation

◆ __bool__()

bool mrmeshpy.ConstMeshTriPoint.__bool__ ( self)

◆ __eq__()

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

◆ __ne__()

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

◆ bary()

ConstTriPointf mrmeshpy.ConstMeshTriPoint.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

Reimplemented in mrmeshpy.MeshTriPoint, and mrmeshpy.MeshTriPoint.

◆ canonical()

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

◆ e()

ConstEdgeId mrmeshpy.ConstMeshTriPoint.e ( self)
left face of this edge is considered

Reimplemented in mrmeshpy.MeshTriPoint, and mrmeshpy.MeshTriPoint.

◆ fromTriangle()

bool mrmeshpy.ConstMeshTriPoint.fromTriangle ( self,
ConstMeshTopology topology,
ConstFaceId f )
returns true if the point is inside or on the boundary of given triangular face

◆ getWeightedVerts()

std_array_WeightedVertexT_float_3 mrmeshpy.ConstMeshTriPoint.getWeightedVerts ( self,
ConstMeshTopology 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

◆ interpolate()

float mrmeshpy.ConstMeshTriPoint.interpolate ( self,
ConstMeshTopology topology,
ConstVertScalars field )
linearly interpolates the values given in vertices to find the field's value at this point

◆ inVertex() [1/2]

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

◆ inVertex() [2/2]

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

◆ isBd()

bool mrmeshpy.ConstMeshTriPoint.isBd ( self,
ConstMeshTopology topology,
ConstFaceBitSet 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 mrmeshpy.ConstMeshTriPoint.lnext ( self,
ConstMeshTopology topology )
represents the same point relative to next edge in the same triangle

◆ onEdge()

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

◆ valid()

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

Member Data Documentation

◆ _offsetof_bary

typing mrmeshpy.ConstMeshTriPoint._offsetof_bary = 4
staticprotected

◆ _offsetof_e

typing mrmeshpy.ConstMeshTriPoint._offsetof_e = 0
staticprotected

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