cyclideMesh: Cyclide mesh

View source: R/someMeshes.R

cyclideMeshR Documentation

Cyclide mesh

Description

Triangle mesh of a Dupin cyclide.

Usage

cyclideMesh(a, c, mu, nu = 90L, nv = 40L, rgl = TRUE)

Arguments

a, c, mu

cyclide parameters, positive numbers such that c < mu < a

nu, nv

numbers of subdivisions, integers (at least 3)

rgl

Boolean, whether to return a rgl mesh

Details

The Dupin cyclide in the plane z=0: cyclide

Value

A triangle rgl mesh (class mesh3d) if rgl=TRUE, otherwise a cgalMesh list (vertices, faces, and normals).

Examples

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)

stla/MeshesOperations documentation built on Oct. 23, 2022, 8:23 a.m.