<div dir="ltr">This should help you<br><br>vtkSmartPointer&lt;vtkProbeFilter&gt;pf=<br>            vtkSmartPointer&lt;vtkProbeFilter&gt;::New();<br>    pf-&gt;SetInput(cube);//cube as vtkImageData<br>    pf-&gt;SetSource(line);line as vtkPolyData<br>
    pf-&gt;Update();<br><br>//Returns the result as a vtkTable<br>    vtkSmartPointer&lt;vtkDataObjectToTable&gt;polyDataToTable=<br>            vtkSmartPointer&lt;vtkDataObjectToTable&gt;::New();<br>    polyDataToTable-&gt;SetInputConnection(pf-&gt;GetOutputPort());<br>
    polyDataToTable-&gt;SetFieldType(vtkDataObjectToTable::POINT_DATA);<br>    polyDataToTable-&gt;Update();<br><br>Jothy<br><br><div class="gmail_quote">On Wed, May 9, 2012 at 2:17 PM, Brian Curtis <span dir="ltr">&lt;<a href="mailto:bcurtis3@masonlive.gmu.edu" target="_blank">bcurtis3@masonlive.gmu.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m looking for an example that does this or a few examples that show the proper way to do this.<br>
<br>
I&#39;m not sure how to understand vtkProbeFilter from <a href="http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html" target="_blank">http://www.vtk.org/doc/<u></u>nightly/html/<u></u>classvtkProbeFilter.html</a> and what part of it will do the work I need.<br>

<br>
vtkProbeFilter-&gt;Probe requires three vtkDataSet but how do I get my points into a dataset?<br>
<br>
Thanks for your help,<br>
~Brian<br>
<br>
On 05/08/2012 11:10 AM, Brian Curtis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am interested in creating the following simple example in order to expand off of at a later time:<br>
- Create a cube (8 points) with scalar values all set to 1<br>
- Create a line (5 points) that intersects with cube<br>
- Get scalar interpolations for the line from the cube<br>
<br>
Cube pts:<br>
float pts[8][3] = { {-1.0, -1.0, -1.0}, {-1.0, 1.0, -1.0},<br>
                        {-1.0, 1.0, 1.0}, {-1.0, -1.0, 1.0},<br>
                        {1.0, -1.0, -1.0}, {1.0, 1.0, -1.0},<br>
                        {1.0, 1.0, 1.0}, {1.0, -1.0, 1.0} };<br>
Line pts:<br>
float line[5][3] = { {-2.0, 2.0, -2.0}, {-1.0, 1.0, -1.0},<br>
                         {0.0, 0.0, 0.0}, {1.0, -1.0, 1.0}, {2.0, -2.0, 2.0} };<br>
<br>
I could not find a simple example to do this, and I&#39;m not exactly sure if probefilter is the right way to go about this. What the best (and easiest) way to approach this problem?<br>
<br>
Thanks,<br>
~Brian<br>
<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>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_<u></u>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/<u></u>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothy<br></div><br>
</div>