# In 3D Slicer, is it possible to simulate femur cut in real-time without iMSTK?

**URL:** <https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543>\
**Category:** Support\
**Created:** [December 19, 2025, 8:09am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543 "2025-12-19T08:09:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://discourse.slicer.org/u/Vincent)\
**Post date:** [December 19, 2025, 8:09am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/1 "2025-12-19T08:09:19Z")

</div>

Hi,

Support and development of [iMSTK](https://gitlab.kitware.com/iMSTK/iMSTK) has been discontinued since May-02-2025.

I would like to simulate [femur cut](https://imstk.gitlab.io/Examples/FemurCut.html) in real-time with 3D Slicer. I have tried Mask volume effect, but it is not fast enough (the FPS is very low).

In 3D Slicer, is it possible to simulate femur cut in real-time without iMSTK?

Thanks in advance,

Best regards,

Vincent

---

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://discourse.slicer.org/u/Vincent)\
**Post date:** [December 29, 2025, 1:43am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/2 "2025-12-29T01:43:28Z")

</div>

Hi,

@jcfr , @Sam_Horvath would you mind giving me some advice ?

Thanks in advance,

Best regards,

Vincent

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [December 29, 2025, 2:11pm UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/3 "2025-12-29T14:11:08Z")

</div>

Maybe you want [the Dynamic Modeler](https://slicer.readthedocs.io/en/latest/user_guide/modules/dynamicmodeler.html) or maybe you can get by with [just Clipping](https://slicer.readthedocs.io/en/latest/user_guide/modules/models.html#:~:text=inside%20the%20model.-,Clipping,-%3A%20Enable%20clipped%20display).

---

<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 31, 2025, 2:11am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/4 "2025-12-31T02:11:33Z")

</div>

Yes, you can use Dynamic Modeler module’s ROI cut tool to simulate bone cut in real-time.

Just a simple demo (with a little Python scripting you can make the cut incremental, apply constraints, etc.):

---

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://discourse.slicer.org/u/Vincent)\
**Post date:** [December 31, 2025, 4:35am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/5 "2025-12-31T04:35:19Z")

</div>

@pieper@lassoan Thank you so much for your help.

@lassoan would you mind sharing your code with me?

I have tried the Dynamic Modeler widget. When I click Continuous update of Apply button for ROI cut, the FPS of 3D Slicer becomes very low instantly.

---

<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 31, 2025, 1:17pm UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/6 "2025-12-31T13:17:51Z")

</div>

I didn’t do any scripting, so there is nothing to share. M

About performance: Image segmentation provides an extremely dense mesh. You can usually remove 95 to 99.9% of the points without any visible difference (using Surface Toolbox’s uniform remeshing or decimation tools). You can also some off parts into separate models that you are sure the user will not cut into (e.g., the femur head and the lower half of the femur). This way the model your will have to interactively cut will have 100-1000x less points, so the updates will be extremely fast. In general, when you are doing real-time simulation, the default high- accuracy computations would take to much time, so you often need to do similar tricks and various fast approximations.

---

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://discourse.slicer.org/u/Vincent)\
**Post date:** [January 2, 2026, 5:20am UTC](https://discourse.slicer.org/t/in-3d-slicer-is-it-possible-to-simulate-femur-cut-in-real-time-without-imstk/45543/7 "2026-01-02T05:20:38Z")

</div>

@lassoan thank you so much. I will try the ticks you suggests later.

I have one more question. How to set the same model as both of input model node and Clipped output model node (outside) for running Continuous update of ROI cut.?

Dynamic Modeler widget does not allow me to set the same model as both of input model node and Clipped output model node (outside) for running Continuous update of ROI cut.

If I clone my bone model and set the cloned bone model as Clipped output model node (outside) and then set my bone model invisible, the consequence is that the removed part of bone recovers when ROI node move away from the bone model. Therefore I think I need to set the same model as both of input model node and Clipped output model node (outside) for running Continuous update of ROI cut.
