encodes a point inside a triangular mesh face using barycentric coordinates More...
Inheritance diagram for MR.Const_MeshTriPoint:Classes | |
| struct | _Underlying |
Public Member Functions | |
| virtual void | Dispose () |
| unsafe | Const_MeshTriPoint () |
| Constructs an empty (default-constructed) instance. | |
| unsafe | Const_MeshTriPoint (MR.Const_MeshTriPoint _other) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| unsafe | Const_MeshTriPoint (MR.Const_NoInit _1) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| unsafe | Const_MeshTriPoint (MR.EdgeId e, MR.Const_TriPointf bary) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| unsafe | Const_MeshTriPoint (MR.Const_EdgePoint ep) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| unsafe | Const_MeshTriPoint (MR.Const_MeshTopology topology, MR.VertId v) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| unsafe MR.VertId | inVertex (MR.Const_MeshTopology topology) |
returns valid vertex id if the point is in vertex, otherwise returns invalid id Generated from method MR.MeshTriPoint.inVertex. | |
| unsafe bool | inVertex () |
returns true if the point is in a vertex Generated from method MR.MeshTriPoint.inVertex. | |
| unsafe MR.EdgePoint | onEdge (MR.Const_MeshTopology topology) |
returns valid value if the point is on edge and topology.left(result.e) == topology.left(this->e), otherwise returns invalid MeshEdgePoint Generated from method MR.MeshTriPoint.onEdge. | |
| unsafe bool | isBd (MR.Const_MeshTopology topology, MR.Const_FaceBitSet? region=null) |
returns true if the point is in vertex or on edge, and that location is on the boundary of the region Generated from method MR.MeshTriPoint.isBd. | |
| unsafe bool | fromTriangle (MR.Const_MeshTopology topology, MR.FaceId f) |
returns true if the point is inside or on the boundary of given triangular face Generated from method MR.MeshTriPoint.fromTriangle. | |
| unsafe bool | valid () |
consider this valid if the edge ID is valid Generated from method MR.MeshTriPoint.valid. | |
| unsafe MR.MeshTriPoint | lnext (MR.Const_MeshTopology topology) |
represents the same point relative to next edge in the same triangle Generated from method MR.MeshTriPoint.lnext. | |
| unsafe MR.MeshTriPoint | canonical (MR.Const_MeshTopology topology) |
represents the same point relative to the topology.edgeWithLeft( topology.left( e ) ) Generated from method MR.MeshTriPoint.canonical. | |
| unsafe MR.Std.Array_MRWeightedVertex_3 | getWeightedVerts (MR.Const_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 Generated from method MR.MeshTriPoint.getWeightedVerts. | |
| bool | Equals (MR.Const_MeshTriPoint? rhs) |
| override bool | Equals (object? other) |
Static Public Member Functions | |
| static unsafe implicit | operator Const_MeshTriPoint (MR.Const_NoInit _1) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| static unsafe implicit | operator Const_MeshTriPoint (MR.Const_EdgePoint ep) |
Generated from constructor MR.MeshTriPoint.MeshTriPoint. | |
| static unsafe | operator bool (MR.Const_MeshTriPoint _this) |
Generated from conversion operator MR.MeshTriPoint.operator bool. | |
| static unsafe bool | operator== (MR.Const_MeshTriPoint _this, MR.Const_MeshTriPoint rhs) |
returns true if two points are equal including equal not-unique representation Generated from method MR.MeshTriPoint.operator==. | |
| static unsafe bool | operator!= (MR.Const_MeshTriPoint _this, MR.Const_MeshTriPoint rhs) |
Protected Member Functions | |
| virtual unsafe void | Dispose (bool disposing) |
Properties | |
| unsafe ref readonly MR.EdgeId | e [get] |
| unsafe MR.Const_TriPointf | bary [get] |
Properties inherited from MR.Misc.Object< Const_MeshTriPoint > | |
| virtual bool | _IsOwning [get] |
| Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough. | |
Additional Inherited Members | |
Protected Attributes inherited from MR.Misc.Object< Const_MeshTriPoint > | |
| bool | _IsOwningVal |
encodes a point inside a triangular mesh face using barycentric coordinates
Notations used below:
v0 - the value in org( e )
v1 - the value in dest( e )
v2 - the value in dest( next( e ) ) Generated from class MR.MeshTriPoint. This is the const half of the class.
|
get |
barycentric coordinates
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