[vtkusers] Minor problem in vtkVolumeRayCastMIPFunction.cxx
Tuhin Sinha
tk.sinha at vanderbilt.edu
Tue Apr 13 15:45:55 EDT 2004
I noticed a mis-typed line when examining the code in
vtkVolumeRayCastMIPFunction.cxx.
Variables voxel and prev_voxel are declared as int[3] arrays. Yet there
is a memcpy on line 170 (v1.30) that copies 3 floats from voxel to
prev_voxel.
I have appended a patch to the latest CVS version (v1.30) of
vtkVolumeRayCastMIPFunction.cxx that corrects this line.
Best Regards,
Tuhin Sinha
###PATCH FOLLOWS###
170c170
< memcpy( prev_voxel, voxel, 3*sizeof(float) );
---
> memcpy( prev_voxel, voxel, 3*sizeof(int) );
-------------- next part --------------
170c170
< memcpy( prev_voxel, voxel, 3*sizeof(float) );
---
> memcpy( prev_voxel, voxel, 3*sizeof(int) );
More information about the vtkusers
mailing list