# Design bone flap for skull

**URL:** <https://discourse.slicer.org/t/design-bone-flap-for-skull/15864>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 5, 2021, 1:02pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864 "2021-02-05T13:02:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [February 5, 2021, 1:02pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/1 "2021-02-05T13:02:45Z")

</div>

Dear teachers, as you can see, I made a bone flap, but there is a little bulge. Is there any tool to change the curvature of the model so that it will be perfect?Or is there a way to reshape the model like an iron wire, which can be twisted

 ![捕获](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/1/c10d23eea2950f5eb5bb6fab79adb8428f8d3b27.jpeg)

---

<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 5, 2021, 3:26pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/2 "2021-02-05T15:26:21Z")

</div>

You can warp your segmentation using Fiducial registration wizard (in SlicerIGT extension). It allows you to define landmark positions on your current segmentation (“From”) and define a target position for each of those landmarks in another list (“To”).

A completely different approach could be to mirror this CT along the left-right axis (or warp a healthy individual’s head CT to this one) using [image registration](https://slicer.readthedocs.io/en/latest/user_guide/registration.html). This new volume will have bone at the location where you previously had a hole, so if you choose this new volume as master volume, you can easily fill in the hole using Paint effect (with “Sphere brush” option enabled and “Editable intensity range” in Masking section set to include only bone).

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [February 5, 2021, 3:38pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/3 "2021-02-05T15:38:21Z")

</div>

A good way. I tested it and the result was perfect. Thank you very much Professor Andras Lasso

---

<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 5, 2021, 3:38pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/4 "2021-02-05T15:38:58Z")

</div>

Which method did you end up using successfully?

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [February 5, 2021, 3:46pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/5 "2021-02-05T15:46:37Z")

</div>

I use the skulls of healthy people to rigidly match, and then segment them. Very good results can be obtained. For some patients with frontal bone defects, the mirror method is not acceptable, but normal skulls can be matched and subtracted. ![捕获](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/7/d7afca499c1bceaa75ec0b48c0a41cf8f1acc7a8.jpeg)

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [February 5, 2021, 3:50pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/6 "2021-02-05T15:50:23Z")

</div>

One way in Minics is to draw some curves on the edge, and then generate a surface based on the curves

---

<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 5, 2021, 3:51pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/7 "2021-02-05T15:51:15Z")

</div>

Thank you. It looks nice! If you ever need to touch up the boundaries between the patient and template, you can use the recently added [smoothing brush](https://discourse.slicer.org/t/new-segment-editing-feature-smoothing-brush/14577) feature.

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [February 5, 2021, 3:54pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/8 "2021-02-05T15:54:17Z")

</div>

I don’t know why version 4.13 is a beta version, so I still prefer to use the stable version 4.11.I hope to use the stable version 4.13 😄

---

<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 5, 2021, 4:26pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/9 "2021-02-05T16:26:58Z")

</div>

> [@slicer365](#):
>
> One way in Minics is to draw some curves on the edge, and then generate a surface based on the curves

We have that feature implemented in several modules that have not been publicly released yet (the PI prefers to get publication out before making the module available). Probably they will be out in about 6 months. In parallel, @RafaelPalomar is working on new markups for curved surface editing. Since we have multiple funded projects to add/improve surface editing capabilities to Slicer, I would expect that we will have multiple new tools available within a year.

> [@slicer365](#):
>
> I don’t know why version 4.13 is a beta version, so I still prefer to use the stable version 4.11.I hope to use the stable version 4.13

We are close to fixing all the regressions that recent developments introduced. Probably the new stable will be out within weeks.

---

<div class="post-metadata">

**Author:** ![Pinslahore](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Pinslahore](https://discourse.slicer.org/u/Pinslahore)\
**Post date:** [November 11, 2021, 12:46pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/10 "2021-11-11T12:46:49Z")

</div>

Hi sir

I need your help to reconstruct this defect in skull

 ![20211111_160116](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/5/c5856c3c7bc8164fca2354e5bf097bf9feec4c92.jpeg)  
 ![20211111_160128](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/6/a605f348f955a6d7e1b93491295be1e4f300f3be.jpeg)  
of a patient and need a file for 3d printing . I donot have much knowledge to use this softwear i want you to guide me in this regard i am gratefull .

---

<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:** [November 11, 2021, 1:06pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/11 "2021-11-11T13:06:45Z")

</div>

The missing area is so large that mirroring the other side of the skull would probably work better - as described above:

> [@lassoan](#):
>
> A completely different approach could be to mirror this CT along the left-right axis (or warp a healthy individual’s head CT to this one) using [image registration](https://slicer.readthedocs.io/en/latest/user_guide/registration.html). This new volume will have bone at the location where you previously had a hole, so if you choose this new volume as master volume, you can easily fill in the hole using Paint effect (with “Sphere brush” option enabled and “Editable intensity range” in Masking section set to include only bone).

Is your input a CT image?

---

<div class="post-metadata">

**Author:** ![Pinslahore](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Pinslahore](https://discourse.slicer.org/u/Pinslahore)\
**Post date:** [November 11, 2021, 2:00pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/12 "2021-11-11T14:00:43Z")

</div>

Yes i am Using CT SCAN BRAIN WITH 3D RECONST

---

<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:** [November 11, 2021, 2:34pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/13 "2021-11-11T14:34:12Z")

</div>

If you have a CT image as input then then a workflow like this should work:

- Import the CT
- Create a copy of the CT (by going to right-click and click Clone)
- Mirror the CT around the LR axis by applying a transform in Transforms module that has `-1` in the top-left corner and then click the harden button to harden that transform on the volume  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/0/b0ab4352514fc2263628fc766a1d0e528b68fdc1.png)
- If the original and mirrored CTs are not aligned then harden the needed, align the original and the cloned image using registration method described on [this page](https://slicer.readthedocs.io/en/latest/user_guide/registration.html)
- Select the original CT as background volume (by clicking on the eye icon in Data module)
- Go to Segment Editor module
- Create a new segment, segment the skull using Threshold effect
- Click “Show 3D” button to see the bone in the 3D view
- Select the mirrored CT as master volume
- Create a new segment
- Use Threshold effect to specify editable intensity range (to limit painting to bone region)
- Select Scissors effect
- Choose Fill inside mode (so that region that are circled will be filled in the segment)
- Choose Masking / Editable area → Outside all segments (to prevent the new segment overwriting the original bone shape)
- Trace the boundary of the defect using Scissors in the 3D view

---

<div class="post-metadata">

**Author:** ![Pinslahore](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Pinslahore](https://discourse.slicer.org/u/Pinslahore)\
**Post date:** [November 11, 2021, 4:08pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/14 "2021-11-11T16:08:42Z")

</div>

Sir can you a vedio tutorial for the above mention procedure

---

<div class="post-metadata">

**Author:** ![Pinslahore](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Pinslahore](https://discourse.slicer.org/u/Pinslahore)\
**Post date:** [November 11, 2021, 4:09pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/15 "2021-11-11T16:09:15Z")

</div>

I had tried it but unsuccessfull

---

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [November 11, 2021, 5:04pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/16 "2021-11-11T17:04:17Z")

</div>

Are you willing to share the data?

---

<div class="post-metadata">

**Author:** ![Pinslahore](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@Pinslahore](https://discourse.slicer.org/u/Pinslahore)\
**Post date:** [November 11, 2021, 5:55pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/17 "2021-11-11T17:55:37Z")

</div>

Ist it look like this

 ![20211111_225220](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/c/fc4a72d7f9649daf2e94304754b9ae82cce8c576.jpeg)

And when yo rotate the 3d it look like this

 ![20211111_225005](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1d7508e20a884838e7463d6e8cfd07c90f776f30.jpeg)

How can it be corrected

Ho can i get finally saved reconstructed image in stl file .

---

<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:** [November 11, 2021, 6:34pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/18 "2021-11-11T18:34:17Z")

</div>

It seems that you have missed this step:

> - Use Threshold effect to specify editable intensity range (to limit painting to bone region)

Select the bone intensity range and then click “Use for masking”. After this, Scissors effect will only fill where there is bone in the master volume.

---

<div class="post-metadata">

**Author:** ![johny723](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@johny723](https://discourse.slicer.org/u/johny723)\
**Post date:** [February 10, 2024, 12:14pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/19 "2024-02-10T12:14:31Z")

</div>

What would you do if the defect was bilateral or located in the midline? This procedure would not work. Does 3d Slicer have any method of reconstructing such defects? Thanks!

---

<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 10, 2024, 5:00pm UTC](https://discourse.slicer.org/t/design-bone-flap-for-skull/15864/20 "2024-02-10T17:00:26Z")

</div>

You can register a similar patient’s skull with deformable image registration, or create a flap from scratch using Baffle planner module (provided by SlicerHear extension):

> [@New module: Baffle planner - for designing surface patches](https://discourse.slicer.org/t/new-module-baffle-planner-for-designing-surface-patches/16799):
>
> A new [Baffle planner module](https://github.com/SlicerHeart/SlicerHeart/blob/master/Docs/BafflePlanner.md) has been added in [SlicerHeart extension](https://github.com/SlicerHeart/SlicerHeart#slicerheart-extension-for-3d-slicer) that can be generally used whenever a smooth surface patch needed that conforms to pre-existing anatomical boundary. By default a “soap-bubble” surface is created for the specified curve but the surface shape can be edited by specifying additional surface points in either slice or 3D views. The module can generate an infinitely thin open surface, or a closed surface with specified thickness. The module can also generate a flat…
