Commit a218f1e8 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic '11697-fix-d3-data-type' into pv-master

9aa84edb Perserve original data type in D3 filter
parents 1054596b 9aa84edb
......@@ -197,6 +197,11 @@ int vtkExtractCells::RequestData(
newCD->CopyAllocate(CD, numCells);
vtkPoints *pts = vtkPoints::New();
if(vtkPointSet* inputPS = vtkPointSet::SafeDownCast(input))
{
// preserve input datatype
pts->SetDataType(inputPS->GetPoints()->GetDataType());
}
pts->SetNumberOfPoints(numPoints);
for (vtkIdType newId =0; newId<numPoints; newId++)
......
Supports Markdown
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