Learn R Programming

cda (version 2.0.0)

rgl.ellipsoids: rgl.ellipsoids

Description

Create a list of rgl ellipsoids oriented in space

Usage

rgl.ellipsoids(positions, sizes, angles, colour = "red", ...)

Arguments

positions
matrix of positions
sizes
matrix of axis lengths
angles
matrix of Euler angles
colour
colour of each ellipsoid
...
additional params

Value

rgl mesh

Details

each ellipsoid is specified by its position, dimensions, and Euler angles

See Also

Other user_level rgl: rgl.ellipsoid

Examples

Run this code
cl <- helix(0.5, 1, 36, delta=pi/6, n.smooth=1e3)
sizes <- equal_sizes(0.04,0.02,0.02,NROW(cl$positions))
## Not run:  require(rgl) ; rgl.ellipsoids(cl$positions, sizes, cl$angles, col="gold") 

Run the code above in your browser using DataLab