# Size of STL/OBJ files - too many triangles

**URL:** https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137
**Category:** Support
**Tags:** segmentation, faq
**Created:** [December 18, 2018, 10:58pm UTC](https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137 "2018-12-18T22:58:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sarvpriya1985](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sarvpriya1985/32/4094_2.png) [@sarvpriya1985](https://discourse.slicer.org/u/sarvpriya1985)
#### Post date: [December 18, 2018, 10:58pm UTC](https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137/1 "2018-12-18T22:58:43Z")

</div>

Operating system: windows 10  
Slicer version:4. 10  
Expected behavior:  
Actual behavior:  
Hi everyone,  
Is there a way to compress the size of 3D models before exporting them as STL or OBJ format. Sometimes these are about 100 MBs and its difficult to put them in presentations.

Thanks,  
Sarv

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [December 18, 2018, 11:33pm UTC](https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137/2 "2018-12-18T23:33:06Z")

</div>

There are two ways:

- Changes segmentation conversion parameter to enable decimation: Go to Segmentations module, long-click the Create button for Closed surface, select Advanced create or Update (depending on whether you had surfaces already or not). In the popup window choose the only path, and set a non-zero Decimation factor. 0.8 means that 80% of the triangles will be removed. Then export segmentation to STL
- Export segmentation to Model node (in Segmentations module bottom section or in Data module by right-clicking the segmentation). Then go to the Surface Toolbox module and do decimation on the model.

---

<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: [December 19, 2018, 3:46am UTC](https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137/3 "2018-12-19T03:46:45Z")

</div>

2 posts were split to a new topic: [Publishing segmentations on the web (sketchfab)](https://discourse.slicer.org/t/publishing-segmentations-on-the-web-sketchfab/5140)

---

<div class="post-metadata">

### Author: ![Coloradoultrasound](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coloradoultrasound/32/3835_2.png) [@Coloradoultrasound](https://discourse.slicer.org/u/Coloradoultrasound)
#### Post date: [November 12, 2019, 5:22am UTC](https://discourse.slicer.org/t/size-of-stl-obj-files-too-many-triangles/5137/4 "2019-11-12T05:22:03Z")

</div>

I really appreciate you taking the time to share this with me. I tried to follow your instructions but maybe I’m missing some options in the Mac version. I see the tool and understand what you are talking about. My issue is that once I have a volume in the segment editor I don’t see that option for the segment. I am working with 3-D ultrasound images and GE files. Cartesian volume.
