How can I make a Pyramid ?


How Can I make a Pyramid and get It’s vtkImageData ?
(I want vtkImageData of my Pyramid)

Thanks a lot :))

Hi Shahpouri

Take a look at for drawing a pyramid.

To get vtkImageData, you can use vtkWindowToImageFilter,

Kind regards
Jens Munk

Hi Jens

Thanks you , but vtkWindowToImageFilter give me 2D image
but I want 3D ImageData of pyramid.

can you Help me about in this way?

check this example

1 Like

Thank you so much