getBoundary3d | R Documentation |
Constructs a mesh of line segments corresponding to non-shared (i.e. boundary) edges of triangles or quads in the original mesh.
getBoundary3d(mesh, sorted = FALSE, simplify = TRUE, ...)
mesh |
A mesh object. |
sorted |
Whether the result should have the segments sorted in sequential order. |
simplify |
Whether to simplify the resulting mesh, dropping all unused
vertices. If |
... |
Material properties to apply to the mesh. |
A "mesh3d"
object containing 0 or more segments.
Duncan Murdoch
mesh3d
x <- cube3d(col = "blue")
x$ib <- x$ib[,-(1:2)]
b <- getBoundary3d(x, sorted = TRUE, col = "black")
open3d()
shade3d(x, alpha=0.2)
shade3d(b)
# Show edge vertices in sequence:
text3d(t(b$vb), texts = 1:ncol(b$vb), adj = 0)
c(b$is[1,1], b$is[2,])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.