|
Action:
|
Determines if a Scheme object is an environment map.
|
|
|
Filename:
|
rbase/rnd_scm/emap_scm.cxx
|
|
|
Syntax:
|
(environment-map? object)
|
|
|
Arg Types:
|
object
|
scheme-object
|
|
|
Returns:
|
boolean
|
|
|
Description:
|
This extension returns
#t if the specified object is an environment map; otherwise, it returns
#f.
|
|
|
An environmental map is an entity associated with rendering reflections. It may be thought of as the six faces of a cube surrounding a model. Each of the inward facing faces contains an image that is wrapped onto reflective objects during rendering. Therefore, environmental maps only provide direction reflections. Reflections of reflections require ray tracing rendering methods. Environmental maps are saved when the part is saved. It is represented in the form
#[entity m n], where
m refers to the entity and
n to the part.
|
|
|
object specifies the
scheme-object that has to be queried for an environment map.
|
|
|
Example:
|
; environment-map?
|
|
; Create a procedurally defined environment map.
|
|
(define emap1 (environment-map:stripe 5 20 30))
|
|
;; emap1
|
|
; Determine if it is actually an environment map.
|
|
(environment-map? emap1)
|
|
;; #t
|