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 filter to see this.

Burlen

On 08/18/2011 09:54 AM, Federico Milano wrote:
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:

vtkSmartPointer<vtkPointSet> pointCloud = vtkSmartPointer<vtkPolyData>::New();
   pointCloud->SetPoints(points);
   pointCloud->GetPointData()->SetScalars(distances);
   pointCloud->Update();

output->DeepCopy(pointCloud);

points is a vtkPoints and distances is a vtkDoubleArray.

The problem is that nothing is showing. If instead of using a vtkPointSet I use a vtkPolyData and filter it with a vtkDelaunay2D, it shows some points, but other points are left out (Do you know why is this happening?). If I use a vtkDelaunay3D, again, I see nothing.

Do you know why is this happening? What do you recommend to build point clouds?

I would really appreciate any suggestion.

Thanks in advance,

Federico


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to