Commit ed312f3e authored by Zhanping Liu's avatar Zhanping Liu
Browse files

To allow a cell array to be visible in ParaView.

Specify a name for the 'cell origin array' such that this array
is visible in ParaView.
parent 6b3950a6
......@@ -370,6 +370,7 @@ int vtkClipClosedSurface::RequestData(
// Make the scalars
lineScalars = vtkUnsignedCharArray::New();
lineScalars->SetName( "CellOriginColor" );
vtkDataArray *tryInputScalars = input->GetCellData()->GetScalars();
......@@ -421,6 +422,7 @@ int vtkClipClosedSurface::RequestData(
if (lineScalars)
polyScalars = vtkUnsignedCharArray::New();
polyScalars->SetName( "CellOriginColor" );
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