cyclideMesh | R Documentation |
Triangle mesh of a Dupin cyclide.
cyclideMesh(a, c, mu, nu = 90L, nv = 40L)
a, c, mu |
cyclide parameters, positive numbers such that
|
nu, nv |
numbers of subdivisions, integers (at least 3) |
The Dupin cyclide in the plane z=0:
A triangle rgl mesh (class mesh3d
).
library(cgalMeshes)
library(rgl)
mesh <- cyclideMesh(a = 97, c = 32, mu = 57)
sphere <- sphereMesh(x = 32, y = 0, z = 0, r = 40)
open3d(windowRect = 50 + c(0, 0, 512, 512))
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.