MeshLib JavaScript Docs
Loading...
Searching...
No Matches
MeshTriPoint Class Reference

Public Attributes

number e
object 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

object 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

number MeshTriPoint::e

left face of this edge is considered


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