On 2/13/08, <b class="gmail_sendername">jonathan grimm</b> <<a href="mailto:flymolo@gmail.com">flymolo@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Because the documentation is unclear:<br><br>"Get the points in this contour as a vtkPolyData" made me believe you get just the clicked points and no connectivity.</blockquote><div><br>It returns the polydata that is rendered on the viewport. I'll make the doc more explicit. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So how do I get just the non interpolated points?</blockquote><div><br>for (int i = 0; i < contourRep->GetNumberOfNodes() ; i++)<br>
contourRep->GetNthNodeWorldPosition(i, p);<br><br>--<br>Kent:<br><br>As Bill mentioned, if you are really trying to model a 3D segmentation with 2D contours and then cut them along arbitrary planes and show them on different render windows, its easier to have your datastructures represent a 3D object and then use VTK classes to do the work for you.<br>
<br>For instance, if you had a bunch of closed contours on the sagittal plane representing a segmentation of the data, use vtkRuledSurfaceFilter and cap it. You have a vtkPolyData representing your segmentation.<br><br>Then a vtkCutter should be able to show it as cuts along any plane. <br>
<br>--<br>karthik<br></div></div>