# Algorithm to convert VTKPolyData to X-ray image like DRR

**URL:** https://discourse.vtk.org/t/algorithm-to-convert-vtkpolydata-to-x-ray-image-like-drr/13694
**Category:** Development
**Created:** [April 11, 2024, 9:14am UTC](https://discourse.vtk.org/t/algorithm-to-convert-vtkpolydata-to-x-ray-image-like-drr/13694 "2024-04-11T09:14:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gongwaner](https://discourse.vtk.org/user_avatar/discourse.vtk.org/gongwaner/32/6996_2.png) [@gongwaner](https://discourse.vtk.org/u/gongwaner)
#### Post date: [April 11, 2024, 9:14am UTC](https://discourse.vtk.org/t/algorithm-to-convert-vtkpolydata-to-x-ray-image-like-drr/13694/1 "2024-04-11T09:14:19Z")

</div>

Hi,  
There have been some discussions [here](https://discourse.itk.org/t/creating-digitally-reconstructed-radiographs-from-chest-ct/5801) and [here](https://discourse.vtk.org/t/algorithm-to-convert-a-ct-image-to-an-x-ray-image/2726/2) about converting VTKImageData to 2d x-ray image using DRR. The implementation of the algorithm can be found in ITK example, making it quite convenient to port to VTK.  
I’m wondering if there’s anything similar for input as 3D mesh. ie, convert VTKPolyData to 2d x-ray image.

Thanks!
