Finish off writeGeometry