Object3D.js
Summary
This file defines the class for a 3D Object, which is essentially a set of vertices and an ordered list of faces.
dependencies = ['point3D', 'Plane'];
require(dependencies);
function Object3D(vertices, faces) {
}
Object3D.prototype = {
addVertex: function(point) {
},
addFace: function(vertices) {
},
projectOnto: function(plane) {
for(i = 0; i < this.vertices.length; i++) {
this.vertices[i] = plane.pointClosestTo(this.vertices[i]);
}
}
}
Documentation generated by
JSDoc on Tue Aug 5 10:22:22 2008