Commit 562dcc4e authored by js9's avatar js9

fix dead code in tube filter that read past end of array.


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@22728 18c085ea-50e0-402c-830e-de6fd14e8384
parent e018eb09
......@@ -310,6 +310,9 @@ int vtkVisItTubeFilter::RequestData(
// Jeremy Meredith, Wed May 26 14:52:29 EDT 2010
// Allow cell scalars for tube radius.
//
// Jeremy Meredith, Thu Jan 23 13:21:34 EST 2014
// Fix dead code that read past the end of an array.
//
int vtkVisItTubeFilter::GeneratePoints(vtkIdType offset, vtkIdType inCellId,
vtkIdType npts, vtkIdType *pts,
vtkPoints *inPts, vtkPoints *newPts,
......@@ -428,15 +431,6 @@ int vtkVisItTubeFilter::GeneratePoints(vtkIdType offset, vtkIdType inCellId,
vtkMath::Normalize(nP);
// Compute a scale factor based on scalars or vectors
double value = 0;
if (inScalars)
{
if (cellScalars)
value = inScalars->GetComponent(offset,0);
else
value = inScalars->GetComponent(offset,0);
}
if ( inScalars && this->VaryRadius == VTK_VARY_RADIUS_BY_SCALAR )
{
double value = (cellScalars ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment