Skip to content
Snippets Groups Projects
Commit 893f8cc0 authored by Robert K's avatar Robert K
Browse files

[feature] add vtk type polygon to geometry types. Grid output works, just the

type was missing.
parent be04a447
No related branches found
No related tags found
No related merge requests found
......@@ -179,11 +179,12 @@ namespace Dune
vertex = 1,
line = 3,
triangle = 5,
polygon = 7,
quadrilateral = 9,
tetrahedron = 10,
hexahedron = 12,
prism = 13,
pyramid = 14
pyramid = 14 //, polyhedron = 42
};
//! mapping from GeometryType to VTKGeometryType
......@@ -203,6 +204,12 @@ namespace Dune
if (t.isPrism()) return prism;
if (t.isHexahedron()) return hexahedron;
if (t.isNone() )
{
if( t.dim() == 2 ) return polygon;
// if( t.dim() == 3 ) return polyhedron;
}
DUNE_THROW(IOError,"VTKWriter: unsupported GeometryType " << t);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment