# Endocast from STL

**URL:** <https://discourse.slicer.org/t/endocast-from-stl/43450>\
**Category:** Support\
**Created:** [June 22, 2025, 11:58am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450 "2025-06-22T11:58:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/samino/32/80166_2.png) [@Samino](https://discourse.slicer.org/u/Samino)\
**Post date:** [June 22, 2025, 11:58am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/1 "2025-06-22T11:58:09Z")

</div>

Hi

Is there a way I can generate an endocast from an STL file?  
The cavity I want to use for generating the endocast has external openings.

Any help would be highly appreciated!

TIA

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 22, 2025, 4:37pm UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/2 "2025-06-22T16:37:54Z")

</div>

You can, but results may not be ideal.

You can convert your stl to a segmentation, and then use the WrapSurfaceSolidfy extension to fill the cavity. But sometimes conversion has artifacts that interfere with getting a good result, hence it is better practice to create the endocast from the original volume that the model was derived from.

---

<div class="post-metadata">

**Author:** ![ThomasVanParys](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@ThomasVanParys](https://discourse.slicer.org/u/ThomasVanParys)\
**Post date:** [June 23, 2025, 9:54am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/3 "2025-06-23T09:54:42Z")

</div>

_Endomaker_ in R Studio works directly on the 3D meshes, in .STL, .PLY, or .OBJ format: [R: endomaker](https://search.r-project.org/CRAN/refmans/Arothron/html/endomaker.html).  
For a segmentation in Slicer, there is the SegmentEndocast function, but this may be picking up more than just the intracranial volume, such as aspects of the brainstem and orbit.

---

<div class="post-metadata">

**Author:** ![Samino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/samino/32/80166_2.png) [@Samino](https://discourse.slicer.org/u/Samino)\
**Post date:** [June 25, 2025, 9:31am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/4 "2025-06-25T09:31:54Z")

</div>

Thank you @muratmaga. I’ll look into this method!

---

<div class="post-metadata">

**Author:** ![Samino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/samino/32/80166_2.png) [@Samino](https://discourse.slicer.org/u/Samino)\
**Post date:** [June 25, 2025, 9:33am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/5 "2025-06-25T09:33:21Z")

</div>

Thank you @ThomasVanParys. Unfortunately I have no experience using R…  
🙁

---

<div class="post-metadata">

**Author:** ![Drnoor\_fatima](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drnoor_fatima/32/80501_2.png) [@Drnoor\_fatima](https://discourse.slicer.org/u/Drnoor_fatima)\
**Post date:** [June 25, 2025, 11:33am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/6 "2025-06-25T11:33:49Z")

</div>

Hi! I saw your question and actually created a kit that solves exactly this problem using 3D Slicer.  
It includes a sample cavity STL, a ready-made endocast, and a step-by-step workflow using the Segment Editor + Smoothing/Logical Operators.  
Here’s the kit if you’re still working on this: [STL Endocast Generation Kit – 3D Slicer Workflow for Open Cavity Models](https://noorfatima60.gumroad.com/l/hcdnqn)  
Happy to help if you run into issues!

---

<div class="post-metadata">

**Author:** ![Samino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/samino/32/80166_2.png) [@Samino](https://discourse.slicer.org/u/Samino)\
**Post date:** [July 5, 2025, 8:34am UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/7 "2025-07-05T08:34:38Z")

</div>

Hi @Drnoor_fatima  
DM sent. Please could you have a look when you have a moment 🙂

Cheers

Sam

---

<div class="post-metadata">

**Author:** ![Samino](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/samino/32/80166_2.png) [@Samino](https://discourse.slicer.org/u/Samino)\
**Post date:** [August 12, 2025, 12:35pm UTC](https://discourse.slicer.org/t/endocast-from-stl/43450/8 "2025-08-12T12:35:11Z")

</div>

Hi @Drnoor_fatima

I’ve purchased and downloaded the STL Endocast Generation kit from your website.  
However I don’t understand how to use it. The Readme file is pretty basic. If you are able to assist me I’d be very grateful.

Cheers

Sam
