Scene: Construct POVRay Scene object.

Description Usage Value Author(s) Examples

Description

Constructs an R object that holds POVRay object descriptions, and methods to save and render the scene.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
myScene = Scene()

## Method to save scene to a .POV file.
myScene$save(path = filename)

## Method to push an object into the scene.
myScene$push(object = object)

## Method to add arbitrary code to scene.
myScene$add(text = text)

## Method to render scene in POVRay.
myScene$render(width = 640, height=400)

Value

Returns an environment of class Scene.

Author(s)

Grant Williamson (g.williamson@gmail.com)

Examples

1
2
3
4
5
6
7
myScene = Scene()
myScene$push(light_1)
myScene$push(camera_1)
myScene$add("background{color rbg<1,1,1>}")
myScene$push(cylinder)
myScene$save("scene.pov")
myScene$render(w=800,h=600)

ozjimbob/r-povray documentation built on May 24, 2019, 5:56 p.m.