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

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.
 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 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)

Protected Attributes

unsafe MR.EdgeId__ref_storage_e

Properties

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

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

Constructor & Destructor Documentation

◆ Const_MeshTriPoint() [1/7]

unsafe MR.Const_MeshTriPoint.Const_MeshTriPoint ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_MeshTriPoint() [2/7]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ Const_MeshTriPoint() [3/7]

MR.Const_MeshTriPoint.Const_MeshTriPoint ( MeshTriPoint _other)
inline

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ Const_MeshTriPoint() [4/7]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ Const_MeshTriPoint() [5/7]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ Const_MeshTriPoint() [6/7]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ Const_MeshTriPoint() [7/7]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

Member Function Documentation

◆ canonical()

unsafe MR.MeshTriPoint MR.Const_MeshTriPoint.canonical ( MR.Const_MeshTopology topology)
inline

represents the same point relative to the topology.edgeWithLeft( topology.left( e ) ) Generated from method MR.MeshTriPoint.canonical.

◆ Dispose() [1/2]

virtual void MR.Const_MeshTriPoint.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_MeshTriPoint.Dispose ( bool disposing)
inlineprotectedvirtual

◆ Equals() [1/2]

bool MR.Const_MeshTriPoint.Equals ( MR.Const_MeshTriPoint? rhs)
inline

◆ Equals() [2/2]

override bool MR.Const_MeshTriPoint.Equals ( object? other)
inline

◆ fromTriangle()

unsafe bool MR.Const_MeshTriPoint.fromTriangle ( MR.Const_MeshTopology topology,
MR.FaceId f )
inline

returns true if the point is inside or on the boundary of given triangular face Generated from method MR.MeshTriPoint.fromTriangle.

◆ getWeightedVerts()

unsafe MR.Std.Array_MRWeightedVertex_3 MR.Const_MeshTriPoint.getWeightedVerts ( MR.Const_MeshTopology topology)
inline

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.

◆ inVertex() [1/2]

unsafe bool MR.Const_MeshTriPoint.inVertex ( )
inline

returns true if the point is in a vertex Generated from method MR.MeshTriPoint.inVertex.

◆ inVertex() [2/2]

unsafe MR.VertId MR.Const_MeshTriPoint.inVertex ( MR.Const_MeshTopology topology)
inline

returns valid vertex id if the point is in vertex, otherwise returns invalid id Generated from method MR.MeshTriPoint.inVertex.

◆ isBd()

unsafe bool MR.Const_MeshTriPoint.isBd ( MR.Const_MeshTopology topology,
MR.Const_FaceBitSet? region = null )
inline

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.

◆ lnext()

unsafe MR.MeshTriPoint MR.Const_MeshTriPoint.lnext ( MR.Const_MeshTopology topology)
inline

represents the same point relative to next edge in the same triangle Generated from method MR.MeshTriPoint.lnext.

◆ onEdge()

unsafe MR.EdgePoint MR.Const_MeshTriPoint.onEdge ( MR.Const_MeshTopology topology)
inline

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.

◆ operator bool()

unsafe MR.Const_MeshTriPoint.operator bool ( MR.Const_MeshTriPoint _this)
inlineexplicitstatic

Generated from conversion operator MR::MeshTriPoint::operator bool.

◆ operator Const_MeshTriPoint() [1/2]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ operator Const_MeshTriPoint() [2/2]

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

Generated from constructor MR.MeshTriPoint.MeshTriPoint.

◆ operator!=()

unsafe bool MR.Const_MeshTriPoint.operator!= ( MR.Const_MeshTriPoint _this,
MR.Const_MeshTriPoint rhs )
inlinestatic

◆ operator==()

unsafe bool MR.Const_MeshTriPoint.operator== ( MR.Const_MeshTriPoint _this,
MR.Const_MeshTriPoint rhs )
inlinestatic

returns true if two points are equal including equal not-unique representation Generated from method MR::MeshTriPoint::operator==.

◆ valid()

unsafe bool MR.Const_MeshTriPoint.valid ( )
inline

consider this valid if the edge ID is valid Generated from method MR.MeshTriPoint.valid.

Member Data Documentation

◆ __ref_storage_e

unsafe MR.EdgeId* MR.Const_MeshTriPoint.__ref_storage_e
protected

Property Documentation

◆ bary

unsafe MR.Const_TriPointf MR.Const_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

unsafe ref readonly MR.EdgeId MR.Const_MeshTriPoint.e
get

left face of this edge is considered


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