mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
Add warning related to rep usage. See #724
This commit is contained in:
@@ -1959,6 +1959,11 @@ IfcSchema::IfcProduct::list::ptr IfcGeom::Kernel::products_represented_by(const
|
|||||||
}
|
}
|
||||||
|
|
||||||
IfcSchema::IfcRepresentationMap::list::ptr maps = representation->RepresentationMap();
|
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) {
|
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