GaussianSplatter fix
Randall Hopper
aa8vb at ipass.net
Sat May 6 23:11:28 EDT 2000
Attached is a patch to VTK 3.1.2 to fix vtkGaussianSplatter capping in
i-j planes. If i != j, it doesn't work correctly and can corrupt memory.
--
Randall Hopper
aa8vb at ipass.net
-------------- next part --------------
--- ORIG/vtkGaussianSplatter.cxx Fri Feb 4 12:05:19 2000
+++ vtkGaussianSplatter.cxx Sat May 6 22:52:40 2000
@@ -356,7 +356,7 @@
{
for (i=0; i<this->SampleDimensions[0]; i++)
{
- s->SetScalar(i+j*this->SampleDimensions[1], this->CapValue);
+ s->SetScalar(i+j*this->SampleDimensions[0], this->CapValue);
}
}
k = this->SampleDimensions[2] - 1;
@@ -365,7 +365,7 @@
{
for (i=0; i<this->SampleDimensions[0]; i++)
{
- s->SetScalar(idx+i+j*this->SampleDimensions[1], this->CapValue);
+ s->SetScalar(idx+i+j*this->SampleDimensions[0], this->CapValue);
}
}
// j-k planes
More information about the vtkusers
mailing list