Skip to contents

Returns the center coordinates of every face of the solid: 20 on the icosahedron, 8 on the octahedron, 4 on the tetrahedron.

Usage

hexify_face_centers(polyhedron = c("icosahedron", "octahedron", "tetrahedron"))

Arguments

polyhedron

The solid: "icosahedron" (default), "octahedron" or "tetrahedron", in its default orientation

Value

Data frame with one row per face and columns lon, lat (radians)

Examples

centers <- hexify_face_centers()
plot(centers$lon, centers$lat)
nrow(hexify_face_centers("octahedron"))