wf3d.pupil: OpenGL wavefront plot

View source: R/pupil.r

wf3d.pupilR Documentation

OpenGL wavefront plot

Description

Interactive plot of a wavefront using the OpenGL package rgl. This is a 3D plotting method for objects of class "pupil".

Usage

wf3d.pupil(wf, cp=NULL, zoom.wf = 1, surf.col = topo.colors(256), bg.col = "black",
    eqa=FALSE, new.window=TRUE)

Arguments

wf

A matrix of wavefront values

cp

A list describing the pupil boundary

zoom.wf

Zoom factor for heights

surf.col

Color palette for surface

bg.col

Background color

eqa

Equal area per color?

new.window

If TRUE (the default), open a new rgl deice. Otherwise clears and re-uses an existing window if available

Details

The default color palette will match the colors in the default version of plot.pupil.

Value

none

Author(s)

M.L. Peck mpeck1@ix.netcom.com

References

The rgl package is available from CRAN.

See Also

plot.pupil

Examples

# create a random wavefront

wf <- pupil(zcoef=rnorm(length(makezlist()$n), mean=0, sd=0.01))
# the default method

plot(wf)

#this is more fun

wf3d(wf)

mlpeck/zernike documentation built on April 19, 2024, 3:16 p.m.