This functio was used by an early version of tri_fun.

tri_pip(tri, pts)

Arguments

tri

list P n2 coordinates and T matrix of n3 indices defining triangles

pts

input points