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

Reply via email to