|
Action:
|
Displays an entity, a list of entities, or entities in specified view as shaded solids.
|
|
|
Filename:
|
rbase/rnd_scm/rndr_scm.cxx
|
|
|
Syntax:
|
(render [entity-list=all] [view=active])
|
|
|
Arg Types:
|
entity-list
|
entity | (entity ... )
|
|
view
|
view
|
|
|
Returns:
|
unspecified
|
|
|
Description:
|
If any of the entities are not already faceted, facets are applied according to
refinement properties.
|
|
|
Rendered images are displayed against a white background unless specified otherwise by
render:set-background. Light entities established by
light:list affect how the rendering looks. If no lights are specified, then a default eye (camera) light is used.
render:mode returns the current rendering mode.
|
|
|
entity-list specifies an entity or list of entities to render. If
entity-list is not specified, all entities are rendered in the active view.
|
|
|
view specifies the view in which to render the entities; the default is the active view.
|
|
|
Example:
|
; render
|
|
; Create a solid block.
|
|
(define block1
|
|
|
(solid:block (position -30 -30 -30)
|
|
|
(position 0 0 0)))
|
|
;; block1
|
|
; Create a solid sphere.
|
|
(define sphere1 (solid:sphere (position 5 5 5) 25))
|
|
;; sphere1
|
|
; Render the block and the sphere.
|
|
(render)
|
|
;; ()
|
|
; OUTPUT Example
|
|
|
|
|
Figure 3-10. render
|