From 5237f4a634bab05eb762d20edef3684daadf6a21 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 17 Nov 2019 14:07:32 +0100 Subject: [PATCH] Add warning related to rep usage. See #724 --- src/ifcgeom/IfcGeomFunctions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 88561dd8ec..09d1306dae 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -1959,6 +1959,11 @@ IfcSchema::IfcProduct::list::ptr IfcGeom::Kernel::products_represented_by(const } IfcSchema::IfcRepresentationMap::list::ptr maps = representation->RepresentationMap(); + + if (products->size() && maps->size()) { + Logger::Warning("Representation used by IfcRepresentationMap and IfcProductDefinitionShape", representation); + } + if (maps->size() == 1) { IfcSchema::IfcRepresentationMap* map = *maps->begin(); if (is_identity_transform(map->MappingOrigin())) {