[Paraview] Returning a point cloud

2011-08-18 Thread Federico Milano
Hi. I want to show a colored point cloud (vtkPointSet) returning from a custom filter. In my custom filter, I prepare the pointCloud in this way: vtkSmartPointervtkPointSet pointCloud = vtkSmartPointervtkPolyData::New(); pointCloud-SetPoints(points);

Re: [Paraview] Returning a point cloud

2011-08-18 Thread Burlen Loring
Hi Federico, You have to create some vertex cells. So use a polydata or unstructured grid instead of pointset. Polydata is the easier you'd make a cell array like this: 1 0 1 1 1 2 ... 1 n where n is the number of points, and add this with SetVerts method. You won't have to use the Delaunay