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 |
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 ) )
| 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
| bool mrmeshpy.ConstMeshTriPointd.__bool__ | ( | self | ) |
| bool mrmeshpy.ConstMeshTriPointd.__eq__ | ( | self, | |
| ConstMeshTriPointd | rhs ) |
returns true if two points are equal including equal not-unique representation
| bool mrmeshpy.ConstMeshTriPointd.__ne__ | ( | self, | |
| ConstMeshTriPointd | rhs ) |
returns true if two points are equal including equal not-unique representation
| 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.
| MeshTriPointd mrmeshpy.ConstMeshTriPointd.canonical | ( | self, | |
| ConstMeshTopology | topology ) |
represents the same point relative to the topology.edgeWithLeft( topology.left( e ) )
| ConstEdgeId mrmeshpy.ConstMeshTriPointd.e | ( | self | ) |
left face of this edge is considered
Reimplemented in mrmeshpy.MeshTriPointd, and mrmeshpy.MeshTriPointd.
| bool mrmeshpy.ConstMeshTriPointd.fromTriangle | ( | self, | |
| ConstMeshTopology | topology, | ||
| ConstFaceId | f ) |
returns true if the point is inside or on the boundary of given triangular face
| 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
| 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
| bool mrmeshpy.ConstMeshTriPointd.inVertex | ( | self | ) |
returns true if the point is in a vertex
| VertId mrmeshpy.ConstMeshTriPointd.inVertex | ( | self, | |
| ConstMeshTopology | topology ) |
returns valid vertex id if the point is in vertex, otherwise returns invalid id
| 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
| MeshTriPointd mrmeshpy.ConstMeshTriPointd.lnext | ( | self, | |
| ConstMeshTopology | topology ) |
represents the same point relative to next edge in the same triangle
| 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
| bool mrmeshpy.ConstMeshTriPointd.valid | ( | self | ) |
consider this valid if the edge ID is valid
|
staticprotected |
|
staticprotected |