cartesianToBarycentric
Convert coordinates from Cartesian to barycentric
Description
B = cartesianToBarycentric(
returns the barycentric coordinates of the points inTR
,ID
,C
)C
relative to the triangulation objectTR
. Each row ofC
contains the Cartesian coordinates of a point with respect to the triangle or tetrahedron indexed byID
. The identification numbers of the triangles or tetrahedra inTR
are the corresponding row numbers of the propertyTR.ConnectivityList
.