[vtkusers] Outline of a result from a vtkimagereslicemapper
David Gobbi
david.gobbi at gmail.com
Thu Sep 18 16:22:21 EDT 2014
Hi Doug,
In order to create a polydata that outlines the slice, you'll need
to use the vtkCutter:
1) use GenerateFacesOn() on the vtkOutlineFilter to make it create
a closed box
2) use vtkCutter to cut the box with the slice plane from the mapper
(mapper->GetSlicePlane() or mapper->GetSlicePlaneInDataCoords())
in order to create a polyline that outlines the slice
3) I also recommend passing the polyline through vtkTubeFilter in
order to give the outline a finite thickness
- David
On Thu, Sep 18, 2014 at 1:00 PM, Doug Hoppes <dhoppes at mbfbioscience.com>
wrote:
> Hi all,
>
>
>
> I've gotten the image reslice mapper working beautifully
> for my image volume. However, I'm trying to get the outline filter to work
> so that I can show a bound region around my image slice. All I'm showing
> is a small square in the upper left corner:
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140918/44355042/attachment.html>
More information about the vtkusers
mailing list