torus: Torus

Description Usage Arguments Value Author(s) References Examples

Description

A function to generate a torus in any dimension

Usage

1
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)

Author(s)

Barret Schloerke

References

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

Examples

1
2
## Generates a torus
torus(p = 3, n = 1000)

schloerke/geozoo documentation built on May 29, 2019, 3:40 p.m.