MeshLib
 
Loading...
Searching...
No Matches
MeshTriPoint Struct Reference

#include <MRMeshTriPoint.h>

Public Member Functions

 ~MeshTriPoint ()
 left face of this edge is considered
 

Public Attributes

MR::DotNet::EdgeId e
 
MR::DotNet::TriPoint bary
 
internal : MeshTriPoint( MR::MeshTriPoint* mtp )
 

Related Symbols

(Note that these are not member symbols.)

MRMESH_API bool same (const MeshTopology &topology, const MeshTriPoint &lhs, const MeshTriPoint &rhs)
 returns true if two points are equal considering different representations
 
MRMESH_API bool fromSameTriangle (const MeshTopology &topology, MeshTriPoint &a, MeshTriPoint &b)
 
bool fromSameTriangle (const MeshTopology &topology, MeshTriPoint &&a, MeshTriPoint &&b)
 
MRMESH_API MeshTriPoint getVertexAsMeshTriPoint (const MeshTopology &topology, EdgeId e, VertId v)
 returns MeshTriPoint representation of given vertex with given edge field; or invalid MeshTriPoint if it is not possible
 

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

Constructor & Destructor Documentation

◆ ~MeshTriPoint()

MeshTriPoint::~MeshTriPoint ( )

left face of this edge is considered

Friends And Related Symbol Documentation

◆ fromSameTriangle() [1/2]

bool fromSameTriangle ( const MeshTopology & topology,
MeshTriPoint && a,
MeshTriPoint && b )
related

returns true if points a and b are located insides or on a boundary of the same triangle; if true a.e and b.e are updated to have that triangle on the left

◆ fromSameTriangle() [2/2]

MRMESH_API bool fromSameTriangle ( const MeshTopology & topology,
MeshTriPoint & a,
MeshTriPoint & b )
related

returns true if points a and b are located insides or on a boundary of the same triangle; if true a.e and b.e are updated to have that triangle on the left

◆ getVertexAsMeshTriPoint()

MRMESH_API MeshTriPoint getVertexAsMeshTriPoint ( const MeshTopology & topology,
EdgeId e,
VertId v )
related

returns MeshTriPoint representation of given vertex with given edge field; or invalid MeshTriPoint if it is not possible

◆ same()

MRMESH_API bool same ( const MeshTopology & topology,
const MeshTriPoint & lhs,
const MeshTriPoint & rhs )
related

returns true if two points are equal considering different representations

Member Data Documentation

◆ __pad0__

internal MeshTriPoint::__pad0__

◆ bary

MR::DotNet::TriPoint MeshTriPoint::bary

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

MR::DotNet::EdgeId MeshTriPoint::e

The documentation for this struct was generated from the following files: