Copying vertices into localVertices if provided an array of the same length.