TriangleNormal

Calculates the triangle normals.

Syntax

IppStatus ipprTriangleNormal_32f(const Ipp32f* pTrnglCoor, const int* pTrnglIndex, Ipp32f* pTrnglNorm, int lenTrngl);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.