[vtkusers] Points from a vtkSphereSource?

Richard A Rowe rar109 at york.ac.uk
Thu Mar 22 08:53:06 EDT 2007


Awesome!

Cheers Amy,

I always forget that Update() method.

Thanks again,

Richard.

----- Original Message ----- 
From: "Amy Squillacote" <amy.squillacote at kitware.com>
To: "Richard A Rowe" <rar109 at york.ac.uk>
Cc: <vtkusers at vtk.org>
Sent: Thursday, March 22, 2007 12:45 PM
Subject: Re: [vtkusers] Points from a vtkSphereSource?


> 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