Commit 65cbeb8f authored by Mathieu Westphal's avatar Mathieu Westphal Committed by Kitware Robot

Merge topic 'CutterFix'

4a86c5b7 Fix vtkContourHelper CellData copy over
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Nicolas Vuaille's avatarNicolas Vuaille <nicolas.vuaille@kitware.com>
Acked-by: Michael Migliore's avatarMichael Migliore <michael.migliore@kitware.com>
Merge-request: !4385
parents f1f8a3cf 4a86c5b7
......@@ -92,7 +92,8 @@ void vtkContourHelper::Contour(vtkCell* cell, double value, vtkDataArray *cellSc
else //for whatever reason, the cell contouring is already outputting polys
{
vtkIdType outCellId = this->Polys->InsertNextCell(cellSize, cellVerts);
this->OutCd->CopyData(this->InCd, cellId, outCellId);
this->OutCd->CopyData(this->InCd, cellId, outCellId +
this->Verts->GetNumberOfCells() + this->Lines->GetNumberOfCells());
}
}
......@@ -104,7 +105,8 @@ void vtkContourHelper::Contour(vtkCell* cell, double value, vtkDataArray *cellSc
if(poly->GetNumberOfIds()!=0)
{
vtkIdType outCellId = this->Polys->InsertNextCell(poly);
this->OutCd->CopyData(this->InCd, cellId, outCellId);
this->OutCd->CopyData(this->InCd, cellId, outCellId +
this->Verts->GetNumberOfCells() + this->Lines->GetNumberOfCells());
}
poly->Delete();
}
......
......@@ -17,7 +17,9 @@
* @brief A utility class used by various contour filters
*
* This is a simple utility class that can be used by various contour filters to
* produce either triangles or polygons based on the outputTriangles parameter
* produce either triangles and/or polygons based on the outputTriangles parameter
* When working with multidimensional dataset, it is needed to process cells
* from low to high dimensions.
* @sa
* vtkContourGrid vtkCutter vtkContourFilter
*/
......
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