Commit c628b8c5 authored by mdurant's avatar mdurant
Browse files

Allowing 2d polygons with more than 8 vertices to be VTK_POLYGONs. 3d...

Allowing 2d polygons with more than 8 vertices to be VTK_POLYGONs.  3d datasets with more than 8 vertices per cell are still an error

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@15818 18c085ea-50e0-402c-830e-de6fd14e8384
parent 9b97c717
......@@ -1820,18 +1820,21 @@ avtVsFileFormat::getUnstructuredMesh(VsUnstructuredMesh* unstructuredMesh,
else if( numTopologicalDims == 3 ) cellType = VTK_HEXAHEDRON;
break;
default:
if (warningCount < 30) {
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
<< "Error: invalid number of vertices for cell #"
<< cellCount << ": " << cellVerts << std::endl;
} else if (warningCount == 30) {
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
<< "Exceeded maximum number of errors. "
<< "Error messages disabled for remaining cells."
<< std::endl;
}
++warningCount;
cellType = VTK_EMPTY_CELL;
if (numTopologicalDims == 2) cellType = VTK_POLYGON;
else {
if (warningCount < 30) {
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
<< "Error: invalid number of vertices for cell #"
<< cellCount << ": " << cellVerts << std::endl;
} else if (warningCount == 30) {
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
<< "Exceeded maximum number of errors. "
<< "Error messages disabled for remaining cells."
<< std::endl;
}
++warningCount;
cellType = VTK_EMPTY_CELL;
}
break;
}
......
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