Constructor
new Geometry()
Geometry contains geometrical data like coordinates, normals, texCoords, colors,etc.
Members
attributes
The attributes - An array of module:graphics.Attribute used by the shader program
content
The content - A description of all the vertex data in this geometry. For example,
"content" : Shape.XYZ | Shape.RGB | Shape.ST
The various available values are:
- Shape.XYZ
- Shape.XYZW
- Shape.NXYZ
- Shape.RGB
- Shape.RGBA
- Shape.ST
data
The data - A Float32Array array containing the vertex data
Example
If the content is Shape.XYZ | Shape.RGB, it means that in the same array, one vertex is defined by three X,Y, and Z-coordinates plus
three Red, Green, and Blue color values like this...
var data [X Y Z R G B X Y Z R G B ... Z R G B ]
indices
The indices - A UInt32Array array of indices pointing to the vertex array
type :string
- 'none'
- 'POINTS'
- 'LINES'
- 'TRIANGLES'
Type:
- string