# How to reslice polydata insert into imagedata?

**URL:** <https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800>\
**Category:** Development\
**Created:** [October 1, 2020, 4:31pm UTC](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800 "2020-10-01T16:31:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11111](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/11111/32/8272_2.png) [@11111](https://discourse.slicer.org/u/11111)\
**Post date:** [October 1, 2020, 4:31pm UTC](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800/1 "2020-10-01T16:31:20Z")

</div>

Hey guys, I am now building a medical project and need some tips.  
This project is for surgeon. A doctor need to implant bone nail and interactive with nails.

I have bone image data from CT, and STL file of nails.  
I can read both of object, but I don’t know how do implement this project better.  
So I come to ask.

Here is the function I need to do

1. insert nail into bone and the nail can be moved  
I add nail to the position I want and active with vtklinewidget2 for calculate the rotate angle this origin position
2. I need to reslice whole 3D in window result to 2D slice image, Like below. Here comes the problem.  
I can do reslice with reslicewidget , but when nail is implant. I am not sure how to show slice of nail and set it at right postion.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/9/89774fc3deed409b18c29600b0233f7c0836738c.jpeg)  
Should I concat both of object to imagedata or polydata?  
Is it possible to make slice without extension, only using origin VTK package?

---

<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:** [October 1, 2020, 6:02pm UTC](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800/2 "2020-10-01T18:02:25Z")

</div>

Looking at this code might help:

> [@How to install pedicle screws simulator extension?](https://discourse.slicer.org/t/how-to-install-pedicle-screws-simulator-extension/1073/33):
>
> Feel free to send any questions to this forum. So far we are OK here - Canada has not been hit very hard yet.

---

<div class="post-metadata">

**Author:** ![11111](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/11111/32/8272_2.png) [@11111](https://discourse.slicer.org/u/11111)\
**Post date:** [October 2, 2020, 6:29am UTC](https://discourse.slicer.org/t/how-to-reslice-polydata-insert-into-imagedata/13800/3 "2020-10-02T06:29:17Z")

</div>

Is it reslice base on NRMLmarkupNosw?
