Commit bf5b1a64 authored by Martin Heistermann's avatar Martin Heistermann

Remove final dynamic_cast with better solution.

parent 8304669b
......@@ -56,6 +56,7 @@
#include <ACG/GL/gl.hh>
#include <ACG/Utils/VSToolsT.hh>
#include <vector>
#include <type_traits>
#include <ACG/GL/RenderObject.hh>
#include <ACG/GL/VertexDeclaration.hh>
......@@ -206,7 +207,7 @@ DrawModes::DrawMode VolumeMeshNodeT<VolumeMeshT>::availableDrawModes() const {
if (colorAttrib_.edge_colors_available())
result |= drawModes_.edgesColoredPerEdge;
if (dynamic_cast<const HexahedralMeshTopologyKernel*>(&mesh_) != NULL)
if (std::is_base_of<HexahedralMeshTopologyKernel, VolumeMeshT>::value)
{
result |= drawModes_.irregularInnerEdges;
result |= drawModes_.irregularOuterEdges;
......
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