vertices <- rbind(
c(-2.1806973249, -2.1806973249, -2.1806973249),
c(-3.5617820682, 0.00000000000, 0.00000000000),
c(0.00000000000, -3.5617820682, 0.00000000000),
c(0.00000000000, 0.00000000000, -3.5617820682),
c(-2.1806973249, -2.1806973249, 2.18069732490),
c(0.00000000000, 0.00000000000, 3.56178206820),
c(-2.1806973249, 2.18069732490, -2.1806973249),
c(0.00000000000, 3.56178206820, 0.00000000000),
c(-2.1806973249, 2.18069732490, 2.18069732490),
c(2.18069732490, -2.1806973249, -2.1806973249),
c(3.56178206820, 0.00000000000, 0.00000000000),
c(2.18069732490, -2.1806973249, 2.18069732490),
c(2.18069732490, 2.18069732490, -2.1806973249),
c(2.18069732490, 2.18069732490, 2.18069732490))
faces <- rbind(
c(3, 2, 0),
c(0, 1, 3),
c(2, 1, 0),
c(4, 2, 5),
c(5, 1, 4),
c(4, 1, 2),
c(6, 7, 3),
c(3, 1, 6),
c(6, 1, 7),
c(5, 7, 8),
c(8, 1, 5),
c(7, 1, 8),
c(9, 2, 3),
c(3, 10, 9),
c(9, 10, 2),
c(5, 2, 11),
c(11, 10, 5),
c(2, 10, 11),
c(3, 7, 12),
c(12, 10, 3),
c(7, 10, 12),
c(13, 7, 5),
c(5, 10, 13),
c(13, 10, 7)) + 1
library(MeshesOperations)
NonConvexPolyhedron <- Mesh(vertices, faces)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.