Commit 8a23675b authored by Joachim Pouderoux's avatar Joachim Pouderoux Committed by Code Review

Merge topic 'AllowEmptyCellsInXMLReader' into master

ce953409 Small fixes to allow empty cells.
parents c9f37a26 ce953409
......@@ -157,6 +157,10 @@ int vtkTriangleFilter::RequestData(
this->UpdateProgress ((float)cellNum / numCells);
abort = this->GetAbortExecute();
}
if ( npts == 0 )
{
continue;
}
if ( npts == 3 )
{
newPolys->InsertNextCell(3,pts);
......
......@@ -601,7 +601,7 @@ int vtkXMLUnstructuredDataReader::ReadCellArray(vtkIdType numberOfCells,
vtkIdType i;
for(i=0; i < numberOfCells; ++i)
{
if(coffset[i] <= lastOffset)
if(coffset[i] < lastOffset)
{
vtkErrorMacro("Cannot read cell connectivity from " << eCells->GetName()
<< " in piece " << this->Piece
......
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