Skip to content

Commit 825a493

Browse files
committed
Add an additional reuse_ok check to the products associated to the *mapped* representation
1 parent 241c95e commit 825a493

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ifcgeom/IfcGeomIterator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ namespace IfcGeom {
455455
bool representation_processed_as_mapped_item = false;
456456
IfcSchema::IfcRepresentation* representation_mapped_to = kernel.representation_mapped_to(representation);
457457
if (representation_mapped_to) {
458-
representation_processed_as_mapped_item = geometry_reuse_ok_for_current_representation_ ||
459-
ok_mapped_representations->contains(representation_mapped_to);
458+
representation_processed_as_mapped_item = geometry_reuse_ok_for_current_representation_ && (
459+
ok_mapped_representations->contains(representation_mapped_to) || reuse_ok_(kernel.products_represented_by(representation_mapped_to)));
460460
}
461461

462462
if (representation_processed_as_mapped_item) {

0 commit comments

Comments
 (0)