Geometry pass

Implementation of the geometry and all the methods needed