# Generate cad from slicer models

**URL:** <https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477>\
**Category:** Support\
**Created:** [February 29, 2020, 2:54am UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477 "2020-02-29T02:54:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [February 29, 2020, 2:54am UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/1 "2020-02-29T02:54:17Z")

</div>

Hello all,  
Is there any way to fit NURBS or do similar tasks to convert the slicer models or segmentations into cad files?

---

<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:** [February 29, 2020, 4:21am UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/2 "2020-02-29T04:21:54Z")

</div>

No, we don’t have a solution reverse-engineering anatomical shapes to parametric/NURBS surfaces within Slicer. Usually you import the mesh that you created in Slicer into your CAD software and you reverse-engineer manually there. Some CAD software has automatic methods that work for simple shapes.

---

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [February 29, 2020, 4:52am UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/3 "2020-02-29T04:52:00Z")

</div>

Thank you very much for your response.  
Do you know any open source cad software that I can use for the geometries that are not necessarily simple?

---

<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:** [February 29, 2020, 8:06pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/4 "2020-02-29T20:06:35Z")

</div>

[Blender](https://www.blender.org/) can do everything (it is the “3D Slicer” of 3D modeling), so I’m quite sure it can do this, too. There are commercial solutions that are freely available if you are in an academic institution (e.g., Autodesk Fusion 360).

---

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [February 29, 2020, 8:29pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/5 "2020-02-29T20:29:12Z")

</div>

Thank you very much for your help.

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [March 1, 2020, 1:19pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/6 "2020-03-01T13:19:24Z")

</div>

This too will help

---

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [March 1, 2020, 5:21pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/7 "2020-03-01T17:21:32Z")

</div>

Thank you very much for your help. But does it help to convert the cloud of points to cad files?  
To me it seems that it is just related to modify the cloud on points and not converting them.

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [March 1, 2020, 5:25pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/8 "2020-03-01T17:25:38Z")

</div>

> [@Aep93](#):
>
> and

This does not, but combination of 3D Slicer, Blender and FreeCAD should be able to do most of the conversions necessary.

---

<div class="post-metadata">

**Author:** ![Aep93](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/aep93/32/5990_2.png) [@Aep93](https://discourse.slicer.org/u/Aep93)\
**Post date:** [March 1, 2020, 5:36pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/9 "2020-03-01T17:36:54Z")

</div>

Thanks for your answer. Based on what I understood, we can get ply files from slicer and then import them into blender (in the toolbox you sent). There we can maybe reduce the intensity of the points(?) and export a new ply file. Then use freecad to convert the ply to cad files? Do you think this may work?

---

<div class="post-metadata">

**Author:** ![manjula](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/manjula/32/80981_2.png) [@manjula](https://discourse.slicer.org/u/manjula)\
**Post date:** [March 1, 2020, 6:17pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/10 "2020-03-01T18:17:38Z")

</div>

Well up to importing the ply to FreeCAD will surely work. Then ply to CAD in FreeCAD i have never tried.

---

<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:** [March 1, 2020, 7:08pm UTC](https://discourse.slicer.org/t/generate-cad-from-slicer-models/10477/11 "2020-03-01T19:08:48Z")

</div>

Slicer exports segmentation as a surface mesh, not just as a cloud of points. Therefore, for manipulating segmentations in Blender you don’t need point cloud visualization tool (you would only need it if you had surface scans or other point cloud data set as input).
