powered by
Coordinates of the vertices of the triangles of a triangulated 3D convex hull.
TrianglesXYZ(hull)
A matrix with three columns. Each row represents the coordinates of a vertex of a triangle.
an output of cxhull applied to 3D points and with the option triangulate=TRUE
cxhull
triangulate=TRUE
library(cxhull) library(rgl) dodecahedron <- t(dodecahedron3d()$vb[-4L, ]) hull <- cxhull(dodecahedron, triangulate = TRUE) triangles <- TrianglesXYZ(hull) triangles3d(triangles, color = "firebrick")
Run the code above in your browser using DataLab