MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshTriPoint Struct Reference

#include <MRMeshTriPoint.h>

Public Attributes

MREdgeId e
 left face of this edge is considered
 
MRTriPointf bary
 

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

Member Data Documentation

◆ bary

MRTriPointf MRMeshTriPoint::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

MREdgeId MRMeshTriPoint::e

left face of this edge is considered


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