Save segmentation as PLY file

Hi Andras,
I am saving PLY file but it is still saving STL file.

Regards,
Saima Safdar

Please provide more details.

I am saving the segments using

slicer.modules.segmentations.logic().ExportSegmentsClosedSurfaceRepresentationToFiles("/home/saima/2021_5_28/slicer work/modelFiles/", segmentationNode, None,"PLY", True, 1.0, False )

The function saves as stl not ply

Regards,
saima Safdar

I am saving the segments using

slicer.modules.segmentations.logic().ExportSegmentsClosedSurfaceRepresentationToFiles("/home/saima/2021_5_28/slicer work/modelFiles/", segmentationNode, None,"PLY", True, 1.0, False )

The function saves as stl not ply

Regards,
saima Safdar

This method supports STL and OBJ - see documentation. You can export to PNG by exporting the segmentation to model nodes and then save the model nodes to files.

1 Like