[vtkusers] Get individual points from vtkSphereSource
Berkowitz, Benjamin M
benjamin-berkowitz at uiowa.edu
Mon Feb 25 15:13:45 EST 2013
That would certainly work too and is another good option. I'll have to think about which one is better for my application. Thanks for the tip.
On Feb 25, 2013, at 2:07 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> If you just need points, and not a mesh, you might want to look at
> vtkPointSource. It can provide a list of random points on the surface
> of a sphere.
> - David
> On Mon, Feb 25, 2013 at 12:54 PM, Berkowitz, Benjamin M
> <benjamin-berkowitz at uiowa.edu> wrote:
>> David and Bill, that worked. Thanks for your help
>> On Feb 25, 2013, at 7:20 AM, David Doria <daviddoria at gmail.com> wrote:
>>> On Fri, Feb 22, 2013 at 4:13 PM, Berkowitz, Benjamin M
>>> <benjamin-berkowitz at uiowa.edu> wrote:
>>>> I created a sphere source, and I need to get the locations of that sphere's individual surface mesh points. Since this isn't a conventional polydata, is that possible?
>>> vtkSphereSource::GetOutput() returns a vtkPolyData, so you can do
>>> anything you want with it just as you would any other vtkPolyData.
More information about the vtkusers