[vtkusers] vtkpoints --- getpoints example

Saeed Mahdizadeh Bakhshmand saeedbakhshmand at gmail.com
Wed Jun 8 17:17:04 EDT 2016


Just an update and alternative solution that I found: I could figure to
copy group of points directly from source vtkpoints to destination
vtkPoints using InsertPoints and avoid GetPoints completely:

des_pts.InsertPoints(dsStart,n,srcStart,src_pts)

On Wed, Jun 8, 2016 at 3:48 PM, Saeed Mahdizadeh Bakhshmand <
saeedbakhshmand at gmail.com> wrote:

> Hello,
>
> I am trying to copy a group of point coordinates from one vtkPoints to
> another vtkPoints. I initially used GetPoint(id) in a for loop, but in
> order to optimize my code and speed up its execution, I am trying to avoid
> nested loops and as a result I hope to use GetPoints(ptId,fp) but couldn't
> figure out what fp should be?
>
> Regards,
> Saeed
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160608/b3db45d7/attachment.html>


More information about the vtkusers mailing list