InfInterfaces LightSource (Object)
All Frameworks Object Hierarchy This Framework Indexes
LightSource (Object)
Represents the light source.
The light source is the object that stores lighting data used by a
viewer to display a scene where a document is presented.
Two kinds of light sources are available: an infinite light source
and a neon lighting system simulating a set of parallel neon tubes.
Method Index
GetDirection
Returns the lighting direction as an array of 3 variants.
PutDirection
Defines the lighting direction as an array of 3 variants.
Methods
o Sub GetDirection ( oDirection )
Returns the lighting direction as an array of 3 variants.
This value is available with an infinite light source only.
Example:
This example gets the lighting direction of the LightSource
light source to the direction with components (5,8,-2).
Dim direction(2)
LightSource.GetDirection direction
o Sub PutDirection ( oDirection )
Defines the lighting direction as an array of 3 variants.
This value can be set with an infinite light source only.
Example:
This example defines the lighting direction of the LightSource
light source to the direction with components (5,8,-2).
LightSource.PutDirection Array(5,8,-2)
Copyright © 2003, Dassault Systèmes. All rights reserved.