SurfFlatNormal

Calculates the flat surface normals.

Syntax

IppStatus ipprSurfFlatNormal_32f(const Ipp32f* pTrnglNorm, const Ipp32s* pTrngl, Ipp32f* pSurfNorm[3], int len);

Parameters

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.

Description

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.

Return Values

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.

Submit feedback on this help topic

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