MathWorx

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.


Class Summary
Object3D  

/**MathWorx Copyright (c) 2008 Shane Steinert-Threlkeld
Dual-licensed under the MIT and GNU GPL Licenses.
For more information, see LICENSE file */

/**@fileoverview 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]);
		}
	}

} //end Object3D prototype

MathWorx

Documentation generated by JSDoc on Tue Aug 5 10:22:22 2008