[vtk-developers] buglet in vtkCell3D.cxx

Charl P. Botha c.p.botha at its.tudelft.nl
Tue May 29 08:32:41 EDT 2001


VTK-Developers,

In current CVS VTK (just checked out) there's still a little buglet in
vtkCell3D.cxx.  It re-uses a variable (i) which has been declared in a
previous for loop scope.  Please apply the previous patch.

Regards,

-- 
charl p. botha      | computer graphics and cad/cam 
http://cpbotha.net/ | http://www.cg.its.tudelft.nl/
-------------- next part --------------
--- vtkCell3D.cxx.orig	Tue May 29 14:28:06 2001
+++ vtkCell3D.cxx	Tue May 29 14:28:28 2001
@@ -133,7 +133,7 @@
       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