torus: Torus

Description Usage Arguments Value Author(s) References Examples

View source: R/torus.R

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)

geozoo documentation built on May 2, 2019, 5:06 a.m.