new Polyhedron()
Constructs a new polyhedron.
Members
- 
centroid :Vector3
 - 
    
    
The centroid of this polyhedron.
 - 
edges :Array.<HalfEdge>
 - 
    
    
A list of unique edges (no opponent half edges).
 - 
faces :Array.<Polygon>
 - 
    
    
The faces of this polyhedron.
 - 
vertices :Array.<Vector3>
 - 
    
    
A list of unique vertices.
 
Methods
- 
    
        
computeCentroid() → {Polyhedron}
 - 
    
    
Computes the centroid of this polyhedron. Assumes its faces have valid centroids.
 - 
    
        
computeUniqueEdges() → {Polyhedron}
 - 
    
    
Computes unique edges of this polyhedron. Assumes Polyhedron#faces is properly set.
 - 
    
        
computeUniqueVertices() → {Polyhedron}
 - 
    
    
Computes unique vertices of this polyhedron. Assumes Polyhedron#faces is properly set.
 - 
    
        
fromAABB() → {Polyhedron}
 - 
    
    
Configures this polyhedron so it does represent the given AABB.