Commit 287dc32f authored by Will Schroeder's avatar Will Schroeder
Browse files

ERR: Fixed order of use bug.

parent ae10320c
......@@ -6,8 +6,6 @@
Date: $Date$
Version: $Revision$
Description:
---------------------------------------------------------------------------
This file is part of the Visualization Library. No part of this file
or its contents may be copied, reproduced or altered in any way
without the express written consent of the authors.
......@@ -19,7 +17,7 @@ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 1993, 1994
void vlHedgeHog::Execute()
{
vlPoints *inPts;
vlDataSet *input=this->Input;
int numPts;
vlFloatPoints *newPts;
vlPointData *pd;
......@@ -33,14 +31,14 @@ void vlHedgeHog::Execute()
//
this->Initialize();
numPts = this->Input->GetNumberOfPoints();
numPts = input->GetNumberOfPoints();
pd = input->GetPointData();
inVectors = pd->GetVectors();
if ( !inVectors || numPts < 1 )
{
vlErrorMacro(<<"No input data");
return;
}
pd = this->Input->GetPointData();
this->PointData.CopyAllocate(pd, 2*numPts);
newPts = new vlFloatPoints(2*numPts);
......@@ -51,7 +49,7 @@ void vlHedgeHog::Execute()
//
for (ptId=0; ptId < numPts; ptId++)
{
x = inPts->GetPoint(ptId);
x = input->GetPoint(ptId);
v = inVectors->GetVector(ptId);
for (i=0; i<3; i++)
{
......
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