![]() | |||||||||||||||
5.1 3dhtml
Content of 3dhtml.js: Point3D
A single point in 3-dimensional space. This is used to represent the models' points.
Model
A collection of points that make up a model.
Matrix
A matrix object used to define transformations.
Material
A material has a body, basically containing a string with HTML code (which will make up the content of a point's DIV). Additionally it has a JavaScript statement - the refresh() method - that is called when drawing the points, so the material appearance can be changed by changing what is happening in the DIV.
Modulator
This is basically an object encapsulating a function of some sort. It can be used to influence parameters such as the scaling of a model, its movement or the color of a point.For an example, see implementation of MouseModulator.js.
Helper functions
|