Hey all,<div><br></div><div>I am new to VTK, and I need a little help from y&#39;all. </div><div><br></div><div>I basically have an ordered set of 3D points stored as vtkPoints. I basically want to filter the outliers, and fit the inliers into a smooth curve.</div>
<div>I haven&#39;t figured out how to filter the outliers. But, I am fitting the curves to a kochanek spline and am able to see the output displayed in the renderer.</div><div>But, I am not sure how to get the new set of points back as vtkPoints for processing. </div>
<div><br></div><div>This is what I have.</div><div><br></div><div>                        vtkSmartPointer&lt;vtkPoints&gt; points = vtkSmartPointer&lt;vtkPoints&gt;::New();</div><div><br></div><div>                         /* Do something and populate the points */</div>
<div><br></div><div><div>                        vtkSmartPointer&lt;vtkParametricSpline&gt; kochanekspline = vtkSmartPointer&lt;vtkParametricSpline&gt;::New();</div><div>                        vtkSmartPointer&lt;vtkKochanekSpline&gt; kxSpline = vtkSmartPointer&lt;vtkKochanekSpline&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>vtkSmartPointer&lt;vtkKochanekSpline&gt; kySpline = vtkSmartPointer&lt;vtkKochanekSpline&gt;::New();</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>vtkSmartPointer&lt;vtkKochanekSpline&gt; kzSpline = vtkSmartPointer&lt;vtkKochanekSpline&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>kochanekspline-&gt;SetPoints(points);
</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>vtkSmartPointer&lt;vtkParametricFunctionSource&gt; functionSource1 = vtkSmartPointer&lt;vtkParametricFunctionSource&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>functionSource1-&gt;SetParametricFunction(kochanekspline);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>functionSource1-&gt;Update();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>splineMapper-&gt;SetInputConnection(functionSource1-&gt;GetOutputPort());</div></div><div><br></div><div>I would like to get the new spline fitted bunch of points back into &#39;points&#39; or some other similar collection. Any idea how I should go about it?</div>
<div><br></div><div>Thanks in advance.</div>