[vtkusers] How to insert new node into existing mesh?

rakesh patil prakeshofficial at gmail.com
Wed Jan 12 08:11:12 EST 2011


Cant I collect the neighboring nodes of the point where user clicks and
triangulate only those points and merge back to the mesh? Is it possible
like that?? First part is possible but second part i think is difficult(
impossible rather) :-)

On Wed, Jan 12, 2011 at 6:13 PM, David Doria <daviddoria at gmail.com> wrote:

> On Wed, Jan 12, 2011 at 6:53 AM, rakesh patil <prakeshofficial at gmail.com>
> wrote:
> > Hello,
> > I have a triangular mesh. I need to insert one more node in this mesh, in
> > such a way that, after adding the new point, it should automatically be
> > triangulated and displayed. How to implement this?
> > Thanks
>
> I think you could just do
> polydata->GetPoints()->InsertNextPoint(x,y,z) to get the new point
> into the mesh. However, I don't think there's an easy way to
> triangulate just the new part.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110112/605806f3/attachment.htm>


More information about the vtkusers mailing list