mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 13:04:49 +00:00
Fix bug where sometimes cartesian point offsets wouldn't get detected correctly for poorly geolocated files
This commit is contained in:
@@ -535,6 +535,13 @@ class IfcImporter:
|
|||||||
return point[0]
|
return point[0]
|
||||||
|
|
||||||
for point in self.file.by_type("IfcCartesianPoint"):
|
for point in self.file.by_type("IfcCartesianPoint"):
|
||||||
|
is_used_in_placement = False
|
||||||
|
for inverse in self.file.get_inverse(point):
|
||||||
|
if inverse.is_a("IfcAxis2Placement3D"):
|
||||||
|
is_used_in_placement = True
|
||||||
|
break
|
||||||
|
if is_used_in_placement:
|
||||||
|
continue
|
||||||
elements_checked += 1
|
elements_checked += 1
|
||||||
if elements_checked > element_checking_threshold:
|
if elements_checked > element_checking_threshold:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user