HopfTorusMesh | R Documentation |
Triangle mesh of a Hopf torus.
HopfTorusMesh(nlobes = 3, A = 0.44, alpha = NULL, nu, nv, rgl = TRUE)
nlobes |
number of lobes of the Hopf torus, a positive integr |
A |
parameter of the Hopf torus, number strictly between
|
alpha |
if not |
nu, nv |
numbers of subdivisions, integers (at least 3) |
rgl |
Boolean, whether to return a rgl mesh |
A triangle rgl mesh (class mesh3d
) if
rgl=TRUE
, otherwise a cgalMesh
list (vertices, faces,
and normals).
library(MeshesOperations) library(rgl) mesh <- HopfTorusMesh(nu = 90, nv = 90) open3d(windowRect = c(50, 50, 562, 562)) view3d(0, 0, zoom = 0.75) shade3d(mesh, color = "forestgreen") wire3d(mesh) mesh <- HopfTorusMesh(nu = 90, nv = 90, alpha = 1.5) open3d(windowRect = c(50, 50, 562, 562)) view3d(0, 0, zoom = 0.75) shade3d(mesh, color = "yellowgreen") wire3d(mesh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.