function VertexIterator(vertexBuffer) {
        // Store the vertex buffer
        this.vertexBuffer = vertexBuffer;

        // Lock the vertex buffer
        this.buffer = this.vertexBuffer.lock();

        // Create an empty list
        this.accessors = [];
        this.element = {};

        // Add a new 'setter' function for each element
        var vertexFormat = this.vertexBuffer.getFormat();
        for (var i = 0; i < vertexFormat.elements.length; i++) {
            var vertexElement = vertexFormat.elements[i];
            this.accessors[i] = new VertexIteratorAccessor(this.buffer, vertexElement);
            this.element[vertexElement.name] = this.accessors[i];
        }
    }
/**
     * @constructor
     * @name pc.VertexIterator
     * @classdesc A vertex iterator simplifies the process of writing vertex data to a vertex buffer.
     * @description Returns a new pc.VertexIterator object.
     * @param {pc.VertexBuffer} vertexBuffer The vertex buffer to be iterated.
     */
@constructor
@name pc.VertexIterator
@classdesc A vertex iterator simplifies the process of writing vertex data to a vertex buffer.
@description Returns a new pc.VertexIterator object.
@param {pc.VertexBuffer} vertexBuffer The vertex buffer to be iterated.
@constructor @name pc . VertexIterator @classdesc A vertex iterator simplifies the process of writing vertex data to a vertex buffer . @description Returns a new pc . VertexIterator object . @param { pc . VertexBuffer } vertexBuffer The vertex buffer to be iterated .
function VertexIterator(vertexBuffer) {
        this.vertexBuffer = vertexBuffer;
        this.buffer = this.vertexBuffer.lock();
        this.accessors = [];
        this.element = {};
        var vertexFormat = this.vertexBuffer.getFormat();
        for (var i = 0; i < vertexFormat.elements.length; i++) {
            var vertexElement = vertexFormat.elements[i];
            this.accessors[i] = new VertexIteratorAccessor(this.buffer, vertexElement);
            this.element[vertexElement.name] = this.accessors[i];
        }
    }
function VertexIterator ( vertexBuffer ) { this . vertexBuffer = vertexBuffer ; this . buffer = this . vertexBuffer . lock ( ) ; this . accessors = [ ] ; this . element = { } ; var vertexFormat = this . vertexBuffer . getFormat ( ) ; for ( var i = 0 ; i < vertexFormat . elements . length ; i ++ ) { var vertexElement = vertexFormat . elements [ i ] ; this . accessors [ i ] = new VertexIteratorAccessor ( this . buffer , vertexElement ) ; this . element [ vertexElement . name ] = this . accessors [ i ] ; } }
@constructor
 @name pc.VertexIterator
 @classdesc A vertex iterator simplifies the process of writing vertex data to a vertex buffer.
@constructor @name pc . VertexIterator @classdesc A vertex iterator simplifies the process of writing vertex data to a vertex buffer .
// Store the vertex buffer
 // Lock the vertex buffer
 // Create an empty list
 // Add a new 'setter' function for each element
