/**
* A set of polygons describing a convex shape.
* @class ConvexPolyhedron
* @constructor
* @extends Shape
* @description The shape MUST be convex for the code to work properly. No polygons may be coplanar (contained
* in the same 3D plane), instead these should be merged into one polygon.
*
* @param {array} points An array of Vec3's
* @param {array} faces Array of integer arrays, describing which vertices that is included in each face.
*
* @author qiao /
You must be registered to see the links
(original author, see
You must be registered to see the links
)
* @author schteppe /
You must be registered to see the links
* @see
You must be registered to see the links
* @see
You must be registered to see the links
*
* @todo Move the clipping functions to ContactGenerator?
* @todo Automatically merge coplanar polygons in constructor.
*/
function ConvexPolyhedron(points, faces, uniqueAxes) {
var that = this;
Shape.call(this);
this.type = Shape.types.CONVEXPOLYHEDRON;