MeshLib C# Docs
Loading...
Searching...
No Matches

encodes a point inside a triangular mesh face using barycentric coordinates More...

Inheritance diagram for MR.MeshTriPoint:

Public Member Functions

unsafe MeshTriPoint ()
 Constructs an empty (default-constructed) instance.
unsafe MeshTriPoint (MR.Const_MeshTriPoint _other)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
 MeshTriPoint (MeshTriPoint _other)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
unsafe MeshTriPoint (MR.Const_NoInit _1)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
unsafe MeshTriPoint (MR.EdgeId e, MR.Const_TriPointf bary)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
unsafe MeshTriPoint (MR.Const_EdgePoint ep)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
unsafe MeshTriPoint (MR.Const_MeshTopology topology, MR.VertId v)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
unsafe MR.MeshTriPoint assign (MR.Const_MeshTriPoint _other)
 Generated from method MR::MeshTriPoint::operator=.
Public Member Functions inherited from MR.Const_MeshTriPoint
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.
 Const_MeshTriPoint (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 MeshTriPoint (MR.Const_NoInit _1)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
static unsafe implicit operator MeshTriPoint (MR.Const_EdgePoint ep)
 Generated from constructor MR.MeshTriPoint.MeshTriPoint.
Static Public Member Functions inherited from MR.Const_MeshTriPoint
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)

Properties

new unsafe ref MR.EdgeId e [get]
 left face of this edge is considered
new unsafe MR.TriPointf bary [get, protected set]
 barycentric coordinates
Properties inherited from MR.Const_MeshTriPoint
unsafe ref readonly MR.EdgeId e [get]
 left face of this edge is considered
unsafe MR.Const_TriPointf bary [get, protected set]
 barycentric coordinates

Additional Inherited Members

Protected Member Functions inherited from MR.Const_MeshTriPoint
virtual unsafe void Dispose (bool disposing)
Protected Attributes inherited from MR.Const_MeshTriPoint
unsafe MR.EdgeId__ref_storage_e

Detailed Description

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 non-const half of the class.

Constructor & Destructor Documentation

◆ MeshTriPoint() [1/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( )
inline

Constructs an empty (default-constructed) instance.

◆ MeshTriPoint() [2/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( MR.Const_MeshTriPoint _other)
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ MeshTriPoint() [3/7]

MR.MeshTriPoint.MeshTriPoint ( MeshTriPoint _other)
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ MeshTriPoint() [4/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( MR.Const_NoInit _1)
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ MeshTriPoint() [5/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( MR.EdgeId e,
MR.Const_TriPointf bary )
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ MeshTriPoint() [6/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( MR.Const_EdgePoint ep)
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ MeshTriPoint() [7/7]

unsafe MR.MeshTriPoint.MeshTriPoint ( MR.Const_MeshTopology topology,
MR.VertId v )
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

Member Function Documentation

◆ assign()

unsafe MR.MeshTriPoint MR.MeshTriPoint.assign ( MR.Const_MeshTriPoint _other)
inline

Generated from method MR::MeshTriPoint::operator=.

◆ operator MeshTriPoint() [1/2]

unsafe implicit MR.MeshTriPoint.operator MeshTriPoint ( MR.Const_EdgePoint ep)
inlinestatic

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ operator MeshTriPoint() [2/2]

unsafe implicit MR.MeshTriPoint.operator MeshTriPoint ( MR.Const_NoInit _1)
inlinestatic

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

Property Documentation

◆ bary

new unsafe MR.TriPointf MR.MeshTriPoint.bary
getprotected set

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

◆ e

new unsafe ref MR.EdgeId MR.MeshTriPoint.e
get

left face of this edge is considered


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