[vtkusers] vtkRaycaster patch

Schaap, J.A. (LKEB) J.A.Schaap at lumc.nl
Tue Apr 24 11:25:44 EDT 2001


Hi,

In the vtkRaycaster (revision 1.43) I found some unnecessary additions like
2*i+0
Maybe the compiler sees that +0 is meaningless, so if its clever it will
discard it, but in the meanwhile I think it's better to remove the +0 's.

there are 6 occurences at:

vtkRayCaster.cxx(751):    this->RowBounds[index][i*2+0] = this->ImageSize[0]
+ 1;
vtkRayCaster.cxx(793):	  if ( ((int)x - 1) < this->RowBounds[index][2*j+0]
)
vtkRayCaster.cxx(795):	    this->RowBounds[index][2*j+0] = (int)x - 1;
vtkRayCaster.cxx(807):	  if ( ((int)x1 - 1) < this->RowBounds[index][2*j+0]
)
vtkRayCaster.cxx(809):	    this->RowBounds[index][2*j+0] = (int)x1 - 1;
vtkRayCaster.cxx(1104):	  if ( i >= raycaster->RowBounds[k][2*j+0] &&


Best regards, Jorrit

--
Jorrit Schaap
Division of Image Processing
Leiden University Medical Center
+31 71 5266206




More information about the vtkusers mailing list