[vtkusers] Modifying a point without creating the cells again

Samuel Rodríguez Bescos srodrigu at gbt.tfo.upm.es
Tue Jul 22 11:47:55 EDT 2003


Thanks a lot Will and Michal for your help

Sam


=====================================
Samuel Rodríguez Bescós
Grupo de Bioingeniería y Telemedicina
ETSI Telecomunicación - UPM
Ciudad Universitaria s/n
28040 MADRID - ESPAÑA

Tel. +34 91 549 57 00 ext. 332
Fax + 34 91 336 68 28
e-mail: srodrigu at gbt.tfo.upm.es
http://www.gbt.tfo.upm.es
=====================================
----- Original Message -----
From: "Will Schroeder" <will.schroeder at kitware.com>
To: "micha³ strzelecki" <nexgen at poczta.onet.pl>; <vtkusers at vtk.org>;
<srodrigu at gbt.tfo.upm.es>
Sent: Tuesday, July 22, 2003 12:53 PM
Subject: Re: [vtkusers] Modifying a point without creating the cells again


> At 12:47 PM 7/22/2003 +0200, =?iso-8859-2?Q?micha=B3_strzelecki?= wrote:
> >-> Hello everybody,
> >
> >-> I've a question about vtkPolyData:
> >-> Is it posible to modify one point position without updating the
> >information
>
>
> >Yes it is posible.
> >
> >in c++:
> >  vtkPolyData *p = vtkPolyData::New();
> >
> >float newpoint[3] = {3, 10, -40};
> >
> >// this line replace coordinations of point
> >// pointid is index of point you want to change
> >  p->GetPoints()->SetPoint(pointid, newpoint);
>
> If you do direct writes into data arrays like you may have to invoke a
> p->Modified() to indicate that the points have changed. Otherwise the
> pipeline may not update properly.
>
> Will
>
>
> William J. Schroeder, Ph.D.
> Kitware, Inc.
> 469 Clifton Corporate Parkway
> Clifton Park, NY 12065
> will.schroeder at kitware.com
> 1-518-371-3971 x102 (phone)
> 1-518-371-3971 (fax)
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list