<style> p {margin-top:0px;margin-bottom:0px;} </style> <table border=0 width=100%% cellpadding=0 cellspacing=0 align=center> <tr> <td valign=top style='padding:8pt;'><font size=2><P><BR>
Yep, SetPoint should do the both. If the index is new, it will insert otherwise it will overwrite. Regarding deleting the point, I haven't done this before but I think you can make a copy of existing and delete a point or points on original by compressing the index and assigning the appropiate coordinates at those indices using the SetPoint() method. Use GetPoint to get the appropiate compression thru the copied array.<BR>
<BR>
<BR>
<BR>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<P></P>
<P></P>
<P>---------[ Received Mail Content ]----------<BR>
</P>
<P></P>
<P><B>Subject : </B>[vtkusers] Re: updating a point in vtkPoints<BR>
</P>
<P></P>
<P><B>Date : </B>Mon, 13 Nov 2006 11:21:22 +0000<BR>
</P>
<P></P>
<P><B>From : </B>"Anja Ende" <anja.ende@googlemail.com><BR>
</P>
<P></P>
<P><B>To : </B>VTK <vtkusers@vtk.org><BR>
</P>
<P></P>
<P><BR>
</P>
<P></P>
<P>Also, how does one go about deleting a point from vtkPoints??</P>
<P></P>
<P><BR>
</P>
<P></P>
<P><BR>
Thanks,</P>
<P></P>
<P><BR>
Anja</P>
<P></P>
<P><BR>
</P>
<P></P>
<P><BR>
On 13/11/06, Anja Ende <ANJA.ENDE@GOOGLEMAIL.COM>wrote:</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Hi everyone,</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> I have a vtkPoints object that has certain well..points :) What I want to</P>
<P></P>
<P><BR>
> do is update a point at a particular index.</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Will the SetPoint call insert a new point or will it update the point if</P>
<P></P>
<P><BR>
> it already exists?</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Thanks!</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Cheers,</P>
<P></P>
<P><BR>
></P>
<P></P>
<P><BR>
> Anja</P>
<P></P>
<P><BR>
</P></BLOCKQUOTE>
<P></P></font></td></tr>
</table>
<br/>
<div>
<hr style="width:85%;margin-left:0px;text-align:left"/><br/>
Lycos Cinema : Catch up with your friends and see free movies online - watch, chat & connect now >>
<a href="http://cinema.lycos.com/?if_Event=mail" target="_blank"><u>http://cinema.lycos.com</u></a>
</div>