[vtkusers] problem when I delete points or cells

Goodwin Lawlor goodwin.lawlor at ucd.ie
Thu Feb 13 11:50:53 EST 2003


I've written a class to do what you want... If you check the list
archive there's a posting about it.

The class is attached with a test example

Hope this helps,

Goodwin

-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com] On Behalf Of Theodore
Papatheodorou
Sent: 13 February 2003 16:57
To: vtkusers at public.kitware.com
Subject: [vtkusers] problem when I delete points or cells


Hi,
I have a 3d Surface of type vtkPolyData. Whenever I try to erase a point
by calling polydata->DeletePoint(n) my program crashes. I thought the
reason might be because other vertices are pointing to that point and
that is why. Even when I deleted cells though, my program crashed? Is
there a reason for it? How can I erase points and/or cells from my
surface without it crashing calling "Segmentation Error" in Linux. I am
using VTK 4.0. Thanks for the help.

Theodoros Papatheodorou

_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkRemoveCellsFilter.h
Type: application/octet-stream
Size: 2687 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030213/63c00ab2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkRemoveCellsFilter.cxx
Type: application/octet-stream
Size: 2508 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030213/63c00ab2/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestRemoveCellsFilter.tcl
Type: application/octet-stream
Size: 945 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030213/63c00ab2/attachment-0002.obj>


More information about the vtkusers mailing list