some constants added, polyhedron generation added to primitives