[vtkusers] Get individual points from vtkSphereSource

David Gobbi david.gobbi at gmail.com
Mon Feb 25 15:07:07 EST 2013


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
>
> Ben
>
>
>
> 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?
>>>
>>> Thanks,
>>> Ben
>>
>> Ben,
>>
>> vtkSphereSource::GetOutput() returns a vtkPolyData, so you can do
>> anything you want with it just as you would any other vtkPolyData.
>>
>> David



More information about the vtkusers mailing list