Added some fixes for polyhedrons.