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

Public Member Functions

bool __bool__ (self)
bool __eq__ (self, ConstMeshTriPointd rhs)
 __init__ (self, *args, **kwargs)
bool __ne__ (self, ConstMeshTriPointd rhs)
MeshTriPointd canonical (self, ConstMeshTopology topology)
bool fromTriangle (self, ConstMeshTopology topology, ConstFaceId f)
std_array_WeightedVertexT_double_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)
MeshTriPointd lnext (self, ConstMeshTopology topology)
EdgePointd onEdge (self, ConstMeshTopology topology)
bool valid (self)
ConstTriPointd bary (self)
ConstEdgeId e (self)

Static Protected Attributes

typing _offsetof_bary = 8
typing _offsetof_e = 0

Detailed Description

Generated from:  MR::MeshTriPointd

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.ConstMeshTriPointd.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

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

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

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

4. __init__(self: meshlib.mrmeshpy.ConstMeshTriPointd, ep: meshlib.mrmeshpy.ConstEdgePointd) -> None

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

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

Implicit copy constructor.

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

Member Function Documentation

◆ __bool__()

bool mrmeshpy.ConstMeshTriPointd.__bool__ ( self)

◆ __eq__()

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

◆ __ne__()

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

◆ bary()

ConstTriPointd mrmeshpy.ConstMeshTriPointd.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.MeshTriPointd, and mrmeshpy.MeshTriPointd.

◆ canonical()

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

◆ e()

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

Reimplemented in mrmeshpy.MeshTriPointd, and mrmeshpy.MeshTriPointd.

◆ fromTriangle()

bool mrmeshpy.ConstMeshTriPointd.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_double_3 mrmeshpy.ConstMeshTriPointd.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.ConstMeshTriPointd.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.ConstMeshTriPointd.inVertex ( self)
returns true if the point is in a vertex

◆ inVertex() [2/2]

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

◆ isBd()

bool mrmeshpy.ConstMeshTriPointd.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()

MeshTriPointd mrmeshpy.ConstMeshTriPointd.lnext ( self,
ConstMeshTopology topology )
represents the same point relative to next edge in the same triangle

◆ onEdge()

EdgePointd mrmeshpy.ConstMeshTriPointd.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.ConstMeshTriPointd.valid ( self)
consider this valid if the edge ID is valid

Member Data Documentation

◆ _offsetof_bary

typing mrmeshpy.ConstMeshTriPointd._offsetof_bary = 8
staticprotected

◆ _offsetof_e

typing mrmeshpy.ConstMeshTriPointd._offsetof_e = 0
staticprotected

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