[vtkusers] Points from a vtkSphereSource?
Amy Squillacote
amy.squillacote at kitware.com
Thu Mar 22 08:45:29 EDT 2007
Yes. In C++, the code would look something like the following.
vtkSphereSource *sphere = vtkSphereSource::New();
sphere->Update();
vtkPoints *pts = sphere->GetOutput()->GetPoints();
If you want the coordinates from the vtkPoints, use the
GetNumberOfPoints() and GetPoint() methods.
- Amy
Richard A Rowe wrote:
> Hi all,
>
> Is there anyway to get the points from a vtkSphereSource?
>
> Regards,
>
> Richard.
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
--
Amy Squillacote
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
Phone: (518) 371-3971 x106
More information about the vtkusers
mailing list