converting Geomtrmetry class to 3d