From 8ec201900393ebfee3e27c3bcd2cb3bfd0227eff Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 25 Aug 2019 11:50:40 +0200 Subject: [PATCH] Fix enumeration order --- src/ifcgeom/kernel_agnostic/AbstractKernel.cpp | 3 ++- src/ifcgeom/taxonomy.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/kernel_agnostic/AbstractKernel.cpp b/src/ifcgeom/kernel_agnostic/AbstractKernel.cpp index 4c1d7dcce1..ac6db16dfd 100644 --- a/src/ifcgeom/kernel_agnostic/AbstractKernel.cpp +++ b/src/ifcgeom/kernel_agnostic/AbstractKernel.cpp @@ -19,7 +19,8 @@ namespace { template <> struct dispatch_conversion { - static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel*, const ifcopenshell::geometry::taxonomy::item*, ifcopenshell::geometry::ConversionResults&) { + static bool dispatch(ifcopenshell::geometry::kernels::AbstractKernel*, const ifcopenshell::geometry::taxonomy::item* item, ifcopenshell::geometry::ConversionResults&) { + Logger::Error("No conversion for " + std::to_string(item->kind())); return false; } }; diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index 21a187fc4b..122f5a0fef 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -24,7 +24,7 @@ public: topology_error() : std::runtime_error("Generic topology error") {} }; -enum kinds { MATRIX4, POINT3, DIRECTION3, LINE, CIRCLE, ELLIPSE, BSPLINE, EDGE, LOOP, FACE, SHELL, EXTRUSION, NODE, COLOUR, STYLE, COLLECTION }; +enum kinds { MATRIX4, POINT3, DIRECTION3, LINE, CIRCLE, ELLIPSE, BSPLINE, EDGE, LOOP, FACE, SHELL, EXTRUSION, NODE, COLLECTION, COLOUR, STYLE }; struct item { const IfcUtil::IfcBaseClass* instance;