# Stl saving as DICOM (standard compliant)

**URL:** <https://discourse.slicer.org/t/stl-saving-as-dicom-standard-compliant/25711>\
**Category:** Support\
**Created:** [October 14, 2022, 11:02pm UTC](https://discourse.slicer.org/t/stl-saving-as-dicom-standard-compliant/25711 "2022-10-14T23:02:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 16, 2022, 6:33am UTC](https://discourse.slicer.org/t/stl-saving-as-dicom-standard-compliant/25711/3 "2022-10-16T06:33:21Z")

</div>

It would be straightforward to implement a DICOM export plugin based on DCMTK’s [stl2dcm example](https://github.com/DCMTK/dcmtk/blob/master/dcmdata/apps/stl2dcm.cc). However, I agree with @pieper in that this is a niche file format, therefore it is not clear if it is worth the effort of implementing and maintaining importers/exporters for it. I don’t think anyone form the Slicer developer team has ever seen such a DICOM file. It is also telling that DCMTK does not have a dcm2stl utility - most likely because people don’t come across such files.

Note that segmentations can also be stored in a mesh format, see: [A.57&nbsp;Surface Segmentation IOD](https://dicom.nema.org/dicom/2013/output/chtml/part03/sect_A.57.html). It is a bit more general-purpose representation (not so tightly linked to 3D printing as the encapsulated STL), but it has not become widely used either. I only remember this single discussion on this forum about this information object: [Load DICOM Surface Segmentation Objects](https://discourse.slicer.org/t/load-dicom-surface-segmentation-objects/1125)

If you just need to store encapsulated data files on a PACS in DICOM format then you may also consider Slicer’s embedded MRML scene format (read/written by the “Slicer Data Bundle” plugin). It is not compatible with any other software, but it is already implemented and it works with all data objects that Slicer supports.

---

_[View the full topic](https://discourse.slicer.org/t/stl-saving-as-dicom-standard-compliant/25711)._
