Add warning related to rep usage. See #724

This commit is contained in:
Thomas Krijnen
2019-11-17 14:07:32 +01:00
parent 448a56afe9
commit 5237f4a634
+5
View File
@@ -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())) {