[vtkusers] manipulating a cloud of points
Janet Kim
janet at dragonflyesque.com
Thu Apr 20 15:53:40 EDT 2006
Hi Clement,
1) I believe that you can just set up a vtkPolyData so that each
point in the cloud has a vertex. Then just input the
vtkPolyData to your mapper, etc.
2) If it is in 3D, you can set up a vtkBoxWidget to encase
the points you want to select, then vtkClipPolyData
will help you get the ids of the points inside the boxWidget.
You can also use vtkExtractPolyDataGeometry, I think. This
method doesn't let the user draw a rectangle, but you can
manipulate the pose and position of the bounding box so that
the points you want are selected.
janet
On Thu, 20 Apr 2006, Clement Chauplannaz wrote:
> hello,
>
> I'm concerned with two issues related to cloud of points and vtk.
>
> 1) I would like to display a cloud of points, and only the points. Up to now,
> I'm drawing a surface using the points.
> 2) I would also like to draw a rectangle with the mouse and get the ids of
> the points inside this shape. At the moment, I'm using vtkSelectVisiblePoints
> with a still rectangle, as I don't know if there is an easy way to allow the
> user to draw a selection rectangle and get the pixel coordinates of the
> rectangle.
>
> Thanks in advance
> Clément
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. Check
> the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list