Commit de9c1deb authored by whitlocb's avatar whitlocb
Browse files

Change order in which new fields are added to prevent the scalar from being disturbed

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@23134 18c085ea-50e0-402c-830e-de6fd14e8384
parent a54f8258
......@@ -304,6 +304,20 @@ avtStreamlinePolyDataFilter::CreateIntegralCurveOutput(std::vector<avtIntegralCu
pd->GetPointData()->AddArray(params);
pd->GetPointData()->AddArray(tangents);
if(extractTime)
{
times = vtkFloatArray::New();
times->Allocate(numPts);
times->SetName(timeArrayName.c_str());
pd->GetPointData()->AddArray(times);
}
if(extractID)
{
ids = vtkFloatArray::New();
ids->Allocate(numPts);
ids->SetName(idArrayName.c_str());
pd->GetPointData()->AddArray(ids);
}
if (displayMethod == PICS_DISPLAY_RIBBONS)
{
thetas = vtkFloatArray::New();
......@@ -325,20 +339,6 @@ avtStreamlinePolyDataFilter::CreateIntegralCurveOutput(std::vector<avtIntegralCu
scaleTubeRad->SetName(scaleRadiusArrayName.c_str());
pd->GetPointData()->AddArray(scaleTubeRad);
}
if(extractTime)
{
times = vtkFloatArray::New();
times->Allocate(numPts);
times->SetName(timeArrayName.c_str());
pd->GetPointData()->AddArray(times);
}
if(extractID)
{
ids = vtkFloatArray::New();
ids->Allocate(numPts);
ids->SetName(idArrayName.c_str());
pd->GetPointData()->AddArray(ids);
}
double correlationDistMinDistToUse = correlationDistanceMinDist;
double correlationDistAngTolToUse = 0.0;
......
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