[vtkusers] Orthogonal cross-sections from vtkImageData
Dan Lipsa
dan.lipsa at kitware.com
Mon Aug 20 10:54:24 EDT 2018
Rao,
Take a look at vtkCutter
Dan
On Sun, Aug 19, 2018 at 3:18 PM Koteswara Rao Ruvva via vtkusers <
vtkusers at public.kitware.com> wrote:
> Hello all,
>
> I need to compute three orthogonal cross-sections thru vtkImageData. I use
> the following code and it works fine.
>
> self.sagittal = vtk.vtkImageActor()
>
> self.sagittal.GetMapper().SetInputConnection(self.imageData.GetOutputPort())
> self.sagittal.SetDisplayExtent(int(self.nx/2), int(self.nx/2), 0,
> self.ny, 0, self.nz)
>
> How do I compute cross-sections that are not parallel to coordinate planes
> and have arbitrary orientation. I tried vtkProbeFilter with planes but I
> don't get any data back. Please advise.
>
> Thank you
> Rao
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180820/14ca9ec1/attachment.html>
More information about the vtkusers
mailing list