see if this helps:<div><br></div><div><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractPolyLinesFromPolyData">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractPolyLinesFromPolyData</a></div><div><br><br><div class="gmail_quote">
On Tue, Mar 5, 2013 at 11:51 AM, Billy Okal <span dir="ltr"><<a href="mailto:okal.billy@gmail.com" target="_blank">okal.billy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
Hi All,
</div><div><br></div><div>I am new to VTK and I am trying to get the values of a mesh at a given contour/isosurface.</div><div><br></div><div>I am getting the contours using the following</div><div><br></div>
<div><div>vtkSmartPointer<vtkCutter> cutter = vtkSmartPointer<vtkCutter>::New();</div><div> cutter->SetCutFunction(plane);</div><div> cutter->SetGenerateCutScalars(1);</div><div>#if VTK_MAJOR_VERSION <= 5</div>
<div> cutter->SetInput(inputPolyData);</div><div>#else</div><div> cutter->SetInputData(inputPolyData);</div><div>#endif</div><div> cutter->GenerateValues(20, -distanceMin, distanceMax);</div><div> vtkSmartPointer<vtkPolyDataMapper> cutterMapper = vtkSmartPointer<vtkPolyDataMapper>::New();</div>
<div> cutterMapper->SetInputConnection( cutter->GetOutputPort());</div><div> cutterMapper->ScalarVisibilityOff();</div></div>
<div><div><br></div><div><br></div><div>But now I want to store the (x,y,z) positions of the mesh surface along each contour to an array of points. How can I do this? Is there any implemented utility to do this?</div>
<div><br></div><div>thanks,</div><div><br></div><div><br></div><div>billy</div><div><br></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>