Added some functions to use in polyhedron and others