1chandu 66f29e8117 Changes to Picking module & fix Picking example (#256)
* Add separate functions for highlightColor, filterColor in Picking module.
* Fix Picking example
* Fix Model object creation in examples and update docs.
2017-07-07 19:50:48 -07:00
..
2017-05-29 08:49:24 -07:00

Geometry Module

A geometry holds a set of attributes (native JavaScript arrays) (vertices, normals, texCoords, indices) and a drawType.

Class Description
Geometry Base class, holds vertex attributes and drawType
ConeGeometry Vertex attributes for a cone
CubeGeometry Vertex attributes for a cube
IcoSphereGeometry Vertex attributes for an icosahedron
PlaneGeometry Vertex attributes for a plane
SphereGeometry Vertex attributes for a sphere
SphereGeometry Vertex attributes for a sphere

It should be fairly straightforward to use other primitives, e.g. from npm modules. As long as you have a number of attributes you can wrap them in a Geometry or set them directly on a Model or a Program.