[vtkusers] Combining resliced images and polygons

Jothybasu K Selvaraj jothybasu at gmail.com
Fri Mar 26 06:32:34 EDT 2010


Instead of using Clipper use vtkCutter, that will give you a contour not
half sphere.

Jothy

On Thu, Mar 25, 2010 at 10:14 PM, Scott Johnson
<Scott.Johnson at neuwave.com>wrote:

>  Hi Folks,
>
>
>
> I’m looking for a pointer.
>
>
>
> I’m trying to display a resliced image, either axial, coronal, or sagital
> and then display a contour representing the same plane cutting through a
> polygonal shape.  In my current example I have created a sphere which
> intersects some of the image slices.  As I scroll through the slices I
> expect to see circles where the slice intersects the sphere.
>
>
>
> Right now I have created a SphereSource -> ClipPolyData -> PolyDataMapper
> -> Actor.  The ClipPolyData has a plane as the clip function.
>
>
>
> For the images I have ImageReslice -> ImageMapToWindowLevelColors ->
> ImageActor
>
>
>
> Both of these actors are connected to a Renderer and added to a
> RenderWindow.
>
>
>
> What I get is a slice and half of a sphere floating over it.  I can’t get
> the circle to be reflected on the image.  I’ve also tried to use an
> ImageViewer2 for the display to no avail.
>
>
>
> My original plan was to sync the plane definitions in the ImageReslice and
> the clipping plane, but I can’t get past this point.
>
>
>
> This seems much more difficult than it needs to be.  Is there a simpler
> way?
>
>
>
> Thanks
>
>
>
>                                 -- Scott
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100326/ebd519cb/attachment.htm>


More information about the vtkusers mailing list