ComputeSlopeAngles Data Member Function

Populates the <Float64Array> submitted to this function with the slope angle ( in degrees from 0.0 to 90.0 ) of each normal in the <Float64VectorArray> submitted to this function. Note that the <Float64VectorArray> should contain normalized normals as computed by the ComputeFilteredNormals data interface. Do not submit worldspace normals to this function.

Prototype

int32 ComputeSlopeAngles( Float64VectorArray p_oSourceNormals, Float32Array p_oSlopeAngles )

Parameters

Parameter Type Parameter Name Documentation
<Float64VectorArray>p_oSourceNormalsA pointer to a <Float64VectorArray>, where each <Float64Vector> object in the array represents the surface normal of a point on the surface.
<Float32Array>p_oSlopeAnglesA pointer to a <Float64Array> that will be populated with slope angles. 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.