R/sphere.tri.R

Defines functions sphere.tri

#' Triangulation of a sphere
#'
#' For now, retriangulate icoshedron3d() from rgl.
#'  
#' @import rgl
#' @export

sphere.tri <- function(N=2) {
  g <- icosahedron3d()
  for(i in 1:N) g <- subdivision3d(g)
  g
}
antiphon/sphere documentation built on April 6, 2022, 8:10 p.m.