the value after the name in the cell set constructor is dimensionality, not numcells.

This commit is contained in:
Jeremy Meredith 2015-08-28 16:57:06 -04:00
parent 8afee80e55
commit f62f1755e7

@ -56,8 +56,7 @@ vtkm::cont::DataSet RunExternalFaces(vtkm::cont::DataSet &ds)
}
vtkm::cont::CellSetExplicit<> new_cs(cellset.GetNumberOfPoints(),"cells",
static_cast<vtkm::IdComponent>(output_shapes.GetNumberOfValues()));
vtkm::cont::CellSetExplicit<> new_cs(cellset.GetNumberOfPoints(),"cells", 2);
new_cs.Fill(output_shapes, output_numIndices, output_conn);
new_ds.AddCellSet(new_cs);