mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
Add more warning related to rep usage. See #724
This commit is contained in:
@@ -1964,6 +1964,14 @@ IfcSchema::IfcProduct::list::ptr IfcGeom::Kernel::products_represented_by(const
|
|||||||
Logger::Warning("Representation used by IfcRepresentationMap and IfcProductDefinitionShape", representation);
|
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) {
|
if (maps->size() == 1) {
|
||||||
IfcSchema::IfcRepresentationMap* map = *maps->begin();
|
IfcSchema::IfcRepresentationMap* map = *maps->begin();
|
||||||
if (is_identity_transform(map->MappingOrigin())) {
|
if (is_identity_transform(map->MappingOrigin())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user