Major refactoring. (PolyhedronGeometry)