[vtkusers] getting point information from vtkCutter

Randall Hand randall.hand at gmail.com
Mon Feb 6 10:03:11 EST 2006


Refer to the documentation for vtkPointSet, the parent class for
vtkPolyData. http://www.vtk.org/doc/release/5.0/html/a01876.html

Then do something like:

double *point;
vtkPointSet *dataset = cutterFilter->GetOutput();
for(i=0; i<dataset->GetNumberOfPoints(); i++) {
    point = dataset->GetPoint(i);
    printf("Point %i: %lf, %lf, %lf\n", i, point[0], point[1], point[2]);
}

On 2/6/06, Clare Fitzpatrick <clare.fitzpatrick at ucd.ie> wrote:
>
> Hi All,
>
> From what i understand, an instance of vtkCutter gives a PolyData output,
> which is basically a list of points or lines. So where is this list stored
> and is it possible to access the coordinates of these points?
> I am intersecting two cutting planes and i want to extract the points of
> intersection. So far i have been able to use vtkGlyph3D to apply spheres (or
> whatever) onto the intersecting points but I dont know how to get their
> coordinates (without using vtkPicker - i want to do this automatically!).
>
> Thanks,
> Clare
>
>
> _______________________________________________
> 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
>
>
>


--
Randall Hand
Visualization Scientist,
ERDC-MSRC Vicksburg, MS
Homepage: http://www.yeraze.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060206/e7665286/attachment.htm>


More information about the vtkusers mailing list