Extract surface of a volumetric region of interest

How can I extract surfaces from a segmented volumetric region of interest in code to extract radiomics from different slices of a volume?