<div dir="ltr"><div>Hi AC,<br><br></div>From a vtkPolyData (or any vtkPointSet) you'll want get the polydata's vtkPoints object through GetPoints() and on that object you can call InsertNextPoint(). To insert another cell into a polydata use the InsertNextCell() method on vtkPolyData. Keep in mind that for the VTK pipeline though that it's expected that filters do NOT modify their inputs.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 7, 2017 at 3:23 PM, alican <span dir="ltr"><<a href="mailto:alican1812@hotmail.com" target="_blank">alican1812@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have looked into docs and examples, I have read a lot on this forum, there<br>
are options to delete points or cells, to replace a point or a cell, but no<br>
option to add. I know how to add point to a new polydata.<br>
I figured out that I can add a point to a new polydata and then use<br>
vtkAppendFilter.<br>
But it seems too complicate for so simple a task.<br>
<br>
So what should I do if I want to add a point or cell to existing polydata?<br>
Isn't there a simpler way?<br>
<br>
If it is a dumb question and I am missing something obvious, I am sorry.<br>
AC<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>