[WIP] Porting geometry

Only Rg at this point.