Inherits from CC3VertexArray : CC3Identifiable : NSObject
Declared in CC3VertexArrays.h

Overview

A CC3VertexArray that manages the normal aspect of an array of vertices.

Instance Methods

flipNormals

Reverses the direction of all of the normals in this mesh.

- (void)flipNormals

Declared In

CC3VertexArrays.h

normalAt:

Returns the normal element at the specified index in the underlying vertex content.

- (CC3Vector)normalAt:(GLuint)index

Discussion

The index refers to vertices, not bytes. The implementation takes into consideration the vertexStride and elementOffset properties to access the correct element.

If the releaseRedundantContent method has been invoked and the underlying vertex content has been released, this method will raise an assertion exception.

Declared In

CC3VertexArrays.h

setNormal:at:

Sets the normal element at the specified index in the underlying vertex content to the specified normal value.

- (void)setNormal:(CC3Vector)aNormal at:(GLuint)index

Discussion

The index refers to vertices, not bytes. The implementation takes into consideration the vertexStride and elementOffset properties to access the correct element.

If the releaseRedundantContent method has been invoked and the underlying vertex content has been released, this method will raise an assertion exception.

Declared In

CC3VertexArrays.h