Kent,<br><br>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<br>
<br>Bill<br><br><div class="gmail_quote">On Wed, Feb 13, 2008 at 12:15 PM, kent williams <<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
See, now that is why they pay you the big bucks, Dean! I actually use<br>
the ContourAsPolyData thinger to build a binary image from the contour<br>
collection I build, but didn't think of it in this context.<br>
<br>
I can certainly iterate through the points and find plane<br>
intersections myself, but is there a VTK class or filter that will do<br>
it for me. I may not be the smartest tool in the shed, but I have<br>
been looking through the documentation and not seeing anything<br>
obvious.<br>
<div><div></div><div class="Wj3C7c"><br>
On Tue, Feb 12, 2008 at 3:13 PM, <<a href="mailto:dean.inglis@camris.ca">dean.inglis@camris.ca</a>> wrote:<br>
> why do you have to do anything with the contour<br>
> rep? Why not just get the polydata from the<br>
> rep (GetContourRepresentationAsPolyData) and find<br>
> the intersection of that with whatever plane?<br>
><br>
> Dean<br>
><br>
><br>
> > Subject: [vtk-developers] vtkContourWidget -- how to display 'off-plane'<br>
> > contours?<br>
><br>
> ><br>
> > As long as I'm asking hard questions, consider this scenario.<br>
> ><br>
> > My application maintains 3 orthogonal views of the same volume:<br>
> > Sagittal, Axial, Coronal.<br>
> ><br>
> > The advantage of using VTK is not having to write all the code that's<br>
> > already in VTK. The disadvantage is that if you want to do something<br>
> > not currently done in VTK, you have to crack open a bunch of 'black<br>
> > boxes' and monkey around with the spaghetti wiring inside.<br>
> ><br>
> > Our old tracing application let you trace on one view (e.g. Sagittal),<br>
> > and in the other 2 views, it displayed the intersection of all the<br>
> > traced contours with the image plane of those other two views.<br>
> ><br>
> > So I'm in the unenviable position of cracking open the<br>
> > vtkContourRepresentation, and somehow finding the intersection of the<br>
> > contour and the plane of an orthoganal view, and then show the<br>
> > intersection.<br>
> ><br>
> > So I guess my question is this: How would I do this the VTK way?<br>
> > _______________________________________________<br>
> > vtk-developers mailing list<br>
> > <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
> > <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
> ><br>
><br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>