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.
int32 ComputeSlopeAngles( Float64VectorArray p_oSourceNormals, Float32Array p_oSlopeAngles )
Parameter Type | Parameter Name | Documentation |
---|---|---|
<Float64VectorArray> | p_oSourceNormals | A pointer to a <Float64VectorArray>, where each <Float64Vector> object in the array represents the surface normal of a point on the surface. |
<Float32Array> | p_oSlopeAngles | A 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. |
None published. Please look for an example in the Scenome Scripting Language code base.