Calculates the flat surface normals.
IppStatus ipprSurfFlatNormal_32f(const Ipp32f* pTrnglNorm, const Ipp32s* pTrngl, Ipp32f* pSurfNorm[3], int len);
pTrngNorm |
Pointer to the array of the triangles' normasl. |
pTrngl |
Pointer to the array of the triangles' indexes. |
pSurfNorm |
Array of pointers to separate coordinate (x, y, z) planes of surface normals at intersections points. |
len |
Number of rays in the block. |
The function ipprSurfFlatNormal is declared in the ippr.h file. This function calculates the flat surface normals in the points of intersection of rays with triangles. In fact the function copies pre-computed triangles' normals from the pTrngNorm to the array of the surface normals pSurfNorm.
The code example demonstrates how to use this function.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.