Learn R Programming

geozoo (version 0.5.1)

torus: Torus

Description

A function to generate a torus in any dimension

Usage

torus(p = 3, n = 10000, radius = 2^((p - 2):0))

Arguments

p
dimension of object
n
number of points
radius
radiuses of the torus, set from largest to smallest

Value

points
location of points
edges
edges of the object (null)

References

http://schloerke.github.io/geozoo/mobius/torus/

Examples

Run this code
## Generates a torus
torus(p = 3, n = 1000)

Run the code above in your browser using DataLab