Calculates the triangle normals.
IppStatus ipprTriangleNormal_32f(const Ipp32f* pTrnglCoor, const int* pTrnglIndex, Ipp32f* pTrnglNorm, int lenTrngl);
pTrnglCoor |
Pointer to the coordinates of the vertexes of the triangles. |
pTrnglIndex |
Pointer to the indexes of the triangles. |
pTrnglNorm |
Pointer to the normal of triangles. |
lenTrngl |
Number of triangles in the mesh. |
The function ipprTriangleNormal is declared in the ippr.h file. This function calculates the triangle mesh normals.
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 if one of the specified pointers is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.