Find surface triangles from tetrahedron mesh typically obtained with
delaunayn.
Usage
surf.tri(p, t)
Arguments
p
An n-by-3 matrix. The rows of p represent
n points in dim-dimensional space.
t
Matrix with 4 columns, interpreted as output of
delaunayn.
Details
surf.tri and convhulln serve a similar purpose in 3D,
but surf.tri also works for non-convex meshes obtained e.g. with
distmeshnd. It also does not produce currently unavoidable
diagnostic output on the console as convhulln does at the Rterm
console–i.e., surf.tri is silent.
Value
An m-by-3 index matrix of which each row defines a
triangle. The indices refer to the rows in p.