powered by
trimesh(T, p) displays the triangles defined in the m-by-3 matrix T and points p as a mesh. Each row of T specifies a triangle by giving the 3 indices of its points in X.
trimesh(T, p)
T
p
X
trimesh(T, p, p2, add = FALSE, axis = FALSE, boxed = FALSE, ...)
T is a m-by-3 matrix. A row of T contains indices into X of the vertices of a triangle. T is usually the output of delaunayn.
m
delaunayn
A vector or a matrix.
if p is not a matrix p and p2 are bind to a matrix with cbind.
p2
cbind
Add to existing plot in current active device?
Draw axes?
Plot box?
Parameters to the rendering device. See the rgl package.
Raoul Grasman
tetramesh, rgl, delaunayn, convhulln, surf.tri
tetramesh
rgl
convhulln
surf.tri
#example trimesh p = cbind(x=rnorm(30), y=rnorm(30)) tt = delaunayn(p) trimesh(tt,p)
Run the code above in your browser using DataLab