How to Extract the Geometry and Topology from Very Large 3D Segmentations