ICimDocument::LightParameters

Use this method to get and set the light parameters. The light source parameter contains the following parameters.

No of parameters

Parameter Setting

4

ambient

8

diffuse

12

specular

16

position

19

spotDirection

22

Target

1

spotExponent

1

spotCutoff

1

spotCosCutoff

1

constantAttenuation

1

linearAttenuation

1

quadraticAttenuation

Compatibility

Cimatron 2026 or later

Syntax

bool LightParameters(int iLightCount, out double[] aFloatParams, out int[] aIntParams);

def LightParameters(int iLightCount, double[] aFloatParams, int[] aIntParams)

Return Type

Return: bool

oRet

  • TRUE(1)-Properties were retrieved

  • FALSE(0)-Properties were not retrieved

   

Input Type

Input: int

iLightCount—Light count for properties to get.iLightCount is from 0 to 7

Input: double[]

Light source parameters

Input: int[]

Color Properties: first is color, second is type

Remarks

None

Example