rgl.ellipsoids: rgl.ellipsoids

View source: R/rgl.r

rgl.ellipsoidsR Documentation

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

Details

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

Value

rgl mesh

Author(s)

baptiste Auguie

See Also

Other user_level rgl: rgl.ellipsoid()

Examples

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

baptiste/cda documentation built on May 6, 2022, 5:52 a.m.