[vtkusers] Passing vtkPolyData to function

cel02000 cel02000 at yahoo.com
Fri May 25 23:31:40 EDT 2012


Dear All,

I have a function which takes a vtkPolyData in its argument. Inside the
function, I want to assign this polydata to the output of vtkCleanPoly. I
don't get the correct result by the following code. Could someone help me
with how I should do this assignment in line 7 in the following code?

1    int myfun(vtkSmartPointer<vtkPolyData>& polyDataOut)
2    {
3         vtkSmartPointer<vtkCleanPolyData> cleanPoly =
tkSmartPointer<vtkCleanPolyData> ::New();
4         cleanPoly->SetInput( polyDataInput );
5         cleanPoly->Update();
6
7         polyDataOut = cleanPoly->GetOutput(); // my question is in this
line.
8
9         return 0;
10    }

Thanks.

--
View this message in context: http://vtk.1045678.n5.nabble.com/Passing-vtkPolyData-to-function-tp5713423.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list