[vtk-developers] vtkCell3D.cxx teeny bug

Charl P. Botha c.p.botha at its.tudelft.nl
Mon May 21 16:28:33 EDT 2001


Dear VTK-Developers,

vtkCell3D.cxx (checked out right now) makes use of a variable that was
declared in a previous for-scope (and thus only exists within that scope).
This is not allowed by ANSI anymore (and GNU compilers error on this).
Apply simple attached patch to fix (vtkCell3D.cxx is in common/).

Regards,

-- 
charl p. botha      | computer graphics and cad/cam 
http://cpbotha.net/ | http://www.cg.its.tudelft.nl/
-------------- next part --------------
--- vtkCell3D.cxx~	Mon May 21 22:07:50 2001
+++ vtkCell3D.cxx	Mon May 21 22:23:18 2001
@@ -131,7 +131,7 @@
       // generate edge intersection point
       this->Points->GetPoint(edges[0],p1);
       this->Points->GetPoint(edges[1],p2);
-      for (i=0; i<3; i++)
+      for (int i=0; i<3; i++)
         {
         x[i] = p1[i] + t * (p2[i] - p1[i]);
         }


More information about the vtk-developers mailing list