ComputeSlopeAngleMap Data Member Function

Converts a <Float32Array> containing slope angles into a <ColorArray> containing quantized values from 0-255. 0 is 0 degrees and 255 is 90 degrees.

Prototype

int32 ComputeSlopeAngleMap( Float32Array p_afElevation, ColorArray p_acSlopeAnglesRGB )

Parameters

Parameter Type Parameter Name Documentation
<Float32Array>p_afElevationA pointer to a <Float32Array> containing the slope angle data.
<ColorArray>p_acSlopeAnglesRGBA pointer to a <ColorArray> that will contain the quantized slope angles in RGB colorspace. You can pass in a non-null zero count array and this function will allocate sufficient storage. Alternatively, you can pre-allocate enough storage if you need precise control over when memory allocation occurs.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.