bug in vtkGeometryFilter
Rainer Sabelka
sabelka at iue.tuwien.ac.at
Wed Apr 12 16:09:20 EDT 2000
Dear VTK developers,
when the vtkGeometryFilter (from the latest nightly release) gets an
unstructured grid on its input that contains no cells it causes a
segmentaion violation. This happens because the local var Connectivity
is NULL in vtkGeometryFilter::UnstructuredGridExecute().
I'll attach a suggestion for a fix.
Regards,
Rainer
--- vtk.old/graphics/vtkGeometryFilter.cxx Wed Apr 12 20:17:11 2000
+++ vtk/graphics/vtkGeometryFilter.cxx Wed Apr 12 20:17:46 2000
@@ -515,6 +515,7 @@
{
vtkUnstructuredGrid *input= (vtkUnstructuredGrid *)this->GetInput();
vtkCellArray *Connectivity = input->GetCells();
+ if(Connectivity==NULL) return;
int i, cellId;
int allVisible;
int npts, *pts;
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list