Commit 886ad06c authored by Will Schroeder's avatar Will Schroeder
Browse files

ERR: Minor bug fixes.

parent 7d9e4bfd
......@@ -111,12 +111,11 @@ void vlContourFilter::Execute()
// Update ourselves. Because we don't know upfront how many verts, lines,
// polys we've created, take care to reclaim memory.
//
newPoints->Squeeze();
this->SetPoints(newPoints);
this->PointData.SetScalars(newScalars);
if (newVerts->GetNumberOfCells())
{
newVerts->Squeeze();
this->SetVerts(newVerts);
}
else
......@@ -126,7 +125,6 @@ void vlContourFilter::Execute()
if (newLines->GetNumberOfCells())
{
newLines->Squeeze();
this->SetLines(newLines);
}
else
......@@ -136,7 +134,6 @@ void vlContourFilter::Execute()
if (newPolys->GetNumberOfCells())
{
newPolys->Squeeze();
this->SetPolys(newPolys);
}
else
......@@ -144,7 +141,7 @@ void vlContourFilter::Execute()
delete newPolys;
}
this->PointData.SetScalars(newScalars);
this->Squeeze();
}
void vlContourFilter::PrintSelf(ostream& os, vlIndent indent)
......
......@@ -280,3 +280,16 @@ void vlStructuredGeometryFilter::SetExtent(int *extent)
}
}
}
void vlStructuredGeometryFilter::PrintSelf(ostream& os, vlIndent indent)
{
if (this->ShouldIPrint(vlStructuredGeometryFilter::GetClassName()))
{
vlStructuredDataSetToPolyFilter::PrintSelf(os,indent);
os << indent << "Extent: \n";
os << indent << " Imin,Imax: (" << this->Extent[0] << ", " << this->Extent[1] << ")\n";
os << indent << " Jmin,Jmax: (" << this->Extent[2] << ", " << this->Extent[3] << ")\n";
os << indent << " Kmin,Kmax: (" << this->Extent[4] << ", " << this->Extent[5] << ")\n";
}
}
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