cyclideMesh | R Documentation |
Triangle mesh of a Dupin cyclide.
cyclideMesh(a, c, mu, nu = 90L, nv = 40L, rgl = TRUE)
a, c, mu |
cyclide parameters, positive numbers such that
|
nu, nv |
numbers of subdivisions, integers (at least 3) |
rgl |
Boolean, whether to return a rgl mesh |
The Dupin cyclide in the plane z=0:
A triangle rgl mesh (class mesh3d
) if
rgl=TRUE
, otherwise a cgalMesh
list (vertices, faces,
and normals).
library(MeshesOperations) library(rgl) mesh <- cyclideMesh(a = 97, c = 32, mu = 57) sphere <- sphereMesh(x = 32, y = 0, z = 0, r = 40) open3d(windowRect = c(50, 50, 562, 562)) view3d(0, 0, zoom = 0.75) shade3d(mesh, color = "chartreuse") wire3d(mesh) shade3d(sphere, color = "red") wire3d(sphere)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.