From c385257c923863ec82ace5d821232a80f9325bc0 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 18 Nov 2019 12:59:48 +0100 Subject: [PATCH] Add more warning related to rep usage. See #724 --- src/ifcgeom/IfcGeomFunctions.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 09d1306dae..504d303fa3 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -1964,6 +1964,14 @@ IfcSchema::IfcProduct::list::ptr IfcGeom::Kernel::products_represented_by(const Logger::Warning("Representation used by IfcRepresentationMap and IfcProductDefinitionShape", representation); } + if (prodreps->size() > 1) { + Logger::Warning("Multiple IfcProductDefinitionShapes for representation", representation); + } + + if (maps->size() > 1) { + Logger::Warning("Multiple IfcRepresentationMaps for representation", representation); + } + if (maps->size() == 1) { IfcSchema::IfcRepresentationMap* map = *maps->begin(); if (is_identity_transform(map->MappingOrigin())) {