mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Openings now move with the host by default. Small change, big impact.
This commit is contained in:
@@ -104,9 +104,13 @@ class Usecase:
|
||||
for referenced_placement in placement.ReferencedByPlacements:
|
||||
matrix = ifcopenshell.util.placement.get_local_placement(referenced_placement)
|
||||
for obj in referenced_placement.PlacesObject:
|
||||
# Although a port is technically a nested child, it is generally
|
||||
# more intuitive that the ports always move with the parent.
|
||||
if obj.is_a("IfcDistributionPort"):
|
||||
# Although a port is technically a nested child, it is generally
|
||||
# more intuitive that the ports always move with the parent.
|
||||
continue
|
||||
elif obj.is_a("IfcFeatureElement"):
|
||||
# Feature elements affect the geometry of their parent, and
|
||||
# so logically should always move with the parent.
|
||||
continue
|
||||
results.append({"product": obj, "matrix": matrix, "is_si": False, "should_transform_children": False})
|
||||
results.extend(self.get_children_settings(referenced_placement))
|
||||
|
||||
Reference in New Issue
Block a user