Commit e4150497 authored by David C. Lonie's avatar David C. Lonie
Browse files

Fix out-of-range array access in HyperOctreeContour.

The input uses a dual grid, which reverses cell/point data.
The output point data was allocated based on the input
point data, rather than the input cell data (which is stored in
this->InPD). Fixing this ensures that the point data used in
contour operations is correct.
parent 25f0495b
......@@ -339,7 +339,7 @@ int vtkHyperOctreeContourFilter::RequestData(
this->OutCD->CopyAllocate(this->InCD,estimatedSize,estimatedSize/2);
this->OutPD=this->Output->GetPointData();
this->OutPD->CopyAllocate(this->Input->GetPointData(),estimatedSize,estimatedSize/2);
this->OutPD->CopyAllocate(this->InPD,estimatedSize,estimatedSize/2);
this->OutPD->CopyScalarsOn();
static double bounds[6]={0,1,0,1,0,1};
......
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