[vtkusers] Re: [vtk-developers] vtkContourWidget -- how to display 'off-plane' contours?
Bill Lorensen
bill.lorensen at gmail.com
Wed Feb 13 13:11:21 EST 2008
Kent,
vtkCutter should cut a polyline and produce points. You can use a vtkPlane
as the implicit function and a zero for the iso value. There is an example
in Examples/VisualizationAlgorithms/Tcl/CutCombuster.tcl
Bill
On Wed, Feb 13, 2008 at 12:15 PM, kent williams <nkwmailinglists at gmail.com>
wrote:
> See, now that is why they pay you the big bucks, Dean! I actually use
> the ContourAsPolyData thinger to build a binary image from the contour
> collection I build, but didn't think of it in this context.
>
> I can certainly iterate through the points and find plane
> intersections myself, but is there a VTK class or filter that will do
> it for me. I may not be the smartest tool in the shed, but I have
> been looking through the documentation and not seeing anything
> obvious.
>
> On Tue, Feb 12, 2008 at 3:13 PM, <dean.inglis at camris.ca> wrote:
> > why do you have to do anything with the contour
> > rep? Why not just get the polydata from the
> > rep (GetContourRepresentationAsPolyData) and find
> > the intersection of that with whatever plane?
> >
> > Dean
> >
> >
> > > Subject: [vtk-developers] vtkContourWidget -- how to display
> 'off-plane'
> > > contours?
> >
> > >
> > > As long as I'm asking hard questions, consider this scenario.
> > >
> > > My application maintains 3 orthogonal views of the same volume:
> > > Sagittal, Axial, Coronal.
> > >
> > > The advantage of using VTK is not having to write all the code that's
> > > already in VTK. The disadvantage is that if you want to do something
> > > not currently done in VTK, you have to crack open a bunch of 'black
> > > boxes' and monkey around with the spaghetti wiring inside.
> > >
> > > Our old tracing application let you trace on one view (e.g.
> Sagittal),
> > > and in the other 2 views, it displayed the intersection of all the
> > > traced contours with the image plane of those other two views.
> > >
> > > So I'm in the unenviable position of cracking open the
> > > vtkContourRepresentation, and somehow finding the intersection of the
> > > contour and the plane of an orthoganal view, and then show the
> > > intersection.
> > >
> > > So I guess my question is this: How would I do this the VTK way?
> > > _______________________________________________
> > > vtk-developers mailing list
> > > vtk-developers at vtk.org
> > > http://www.vtk.org/mailman/listinfo/vtk-developers
> > >
> >
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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/20080213/35faff57/attachment.htm>
More information about the vtkusers
mailing list