Learn R Programming

geozoo (version 0.5.1)

cube.solid.random: Solid Cube

Description

A function to generate a solid cube with random points

Usage

cube.solid.random(p = 3, n = 850 * (2^p))

Arguments

p
dimension of object
n
number of points

Value

points
location of points
edges
edges of the object

References

http://schloerke.github.io/geozoo/cube/

Examples

Run this code
## Generates a solid cube with random points
cube.solid.random(p = 3, n = 1000)

Run the code above in your browser using DataLab