[vtkusers] vtkHull (cvs 1.24): bugs and fix

Hua Qian hqian at irus.rri.ca
Mon Jun 18 11:38:04 EDT 2001


Found some more bugs in vtkHull (cvs 1.24). Attached is the "cvs diff"
after I fixed the bugs. 

Hua
-- 
* * ** *** ***** ******** ************* *********************   
Hua Qian, Ph.D.                          Programmer/Analyst          
Imaging Research Laboratories            voice: (519) 663-5777x34066 
The John P. Robarts Research Institute   email: hqian at irus.rri.ca


Index: vtkHull.cxx
===================================================================
RCS file: /vtk/cvsroot/vtk/graphics/vtkHull.cxx,v
retrieving revision 1.24
diff -r1.24 vtkHull.cxx
205c205
<   if ( A == plane[0] && B == plane[1] && C != plane[2] )
---
>   if ( A == plane[0] && B == plane[1] && C == plane[2] )
210c210
<   // Add the plane at the end of the array. Normalize the direction,
---
>   // Set plane that has index i. Normalize the direction,
234c234
<   int i;
---
>   int i, j;
242,244c242,244
<     i = -i - 1;
<     this->Planes[4*i + 3] = (D > this->Planes[4*i + 3] ? 
<                              D : this->Planes[4*i + 3]);
---
>     j = -i - 1;
>     this->Planes[4*j + 3] = (D > this->Planes[4*j + 3] ? 
>                              D : this->Planes[4*j + 3]);
251c251
<   int i;
---
>   int i, j;
259,261c259,261
<     i = -i - 1;
<     this->Planes[4*i + 3] = (D > this->Planes[4*i + 3] ? 
<                              D : this->Planes[4*i + 3]);
---
>     j = -i - 1;
>     this->Planes[4*j + 3] = (D > this->Planes[4*j + 3] ? 
>                              D : this->Planes[4*j + 3]);
274c274
<       this->SetPlane(i, plane[0],plane[1],plane[2]);
---
>       this->SetPlane(i, A,B,C);




More information about the vtkusers mailing list