Hi again,<br><br>My application is using Qt to render splines and curves on top of the vtk window. I am using vtkParametricSpline and vtkParametricFunctionSource classes to generate splines. When rendering with vtk the vtkPolyDataMapper does all the rendering, I guess. Now, my question is how I can convert the output (vtkPolyData) to polygon or line values that I can use with QPainterPath in Qt.
<br><br>The code to generate the output is simple. It is:<br><br>vtkParametricSpline * spline =vtkParametricSpline::New();<br>spline->SetPoints(inputPoints); <br>spline->ClosedOff();<br><br>vtkParametricFunctionSource * splineSource = vtkParametricFunctionSource::New();
<br>splineSource->SetParametricFunction(spline);<br>splineSource->Update();<br><br>// How to convert data as to use with Qt<br>vtkPolyData * data = splineSource->GetOutput();<br><br>Now, how can I convert this data array to Qt compatible array or points...
<br><br>Would really appreciate some help here.<br><br>Anja<br><br>