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, ...@@ -1820,18 +1820,21 @@ avtVsFileFormat::getUnstructuredMesh(VsUnstructuredMesh* unstructuredMesh,
else if( numTopologicalDims == 3 ) cellType = VTK_HEXAHEDRON; else if( numTopologicalDims == 3 ) cellType = VTK_HEXAHEDRON;
break; break;
default: default:
if (warningCount < 30) { if (numTopologicalDims == 2) cellType = VTK_POLYGON;
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " " else {
<< "Error: invalid number of vertices for cell #" if (warningCount < 30) {
<< cellCount << ": " << cellVerts << std::endl; VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
} else if (warningCount == 30) { << "Error: invalid number of vertices for cell #"
VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " " << cellCount << ": " << cellVerts << std::endl;
<< "Exceeded maximum number of errors. " } else if (warningCount == 30) {
<< "Error messages disabled for remaining cells." VsLog::debugLog() << __CLASS__ << __FUNCTION__ << " " << __LINE__ << " "
<< std::endl; << "Exceeded maximum number of errors. "
} << "Error messages disabled for remaining cells."
++warningCount; << std::endl;
cellType = VTK_EMPTY_CELL; }
++warningCount;
cellType = VTK_EMPTY_CELL;
}
break; 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