mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 14:38:05 +00:00
Fallback to non-native if boolean operations exist. See #865.
This commit is contained in:
@@ -381,6 +381,8 @@ class IfcImporter():
|
|||||||
|
|
||||||
def parse_native_swept_disk_solid(self):
|
def parse_native_swept_disk_solid(self):
|
||||||
for element in self.file.by_type('IfcSweptDiskSolid'):
|
for element in self.file.by_type('IfcSweptDiskSolid'):
|
||||||
|
if [e for e in self.file.get_inverse(element) if e.is_a('IfcBooleanResult')]:
|
||||||
|
continue
|
||||||
self.swap_out_with_dummy_geometry(element)
|
self.swap_out_with_dummy_geometry(element)
|
||||||
|
|
||||||
def parse_native_extruded_area_solid(self):
|
def parse_native_extruded_area_solid(self):
|
||||||
@@ -390,10 +392,14 @@ class IfcImporter():
|
|||||||
'IfcRectangleProfileDef'
|
'IfcRectangleProfileDef'
|
||||||
]:
|
]:
|
||||||
continue
|
continue
|
||||||
|
if [e for e in self.file.get_inverse(element) if e.is_a('IfcBooleanResult')]:
|
||||||
|
continue
|
||||||
self.swap_out_with_dummy_geometry(element)
|
self.swap_out_with_dummy_geometry(element)
|
||||||
|
|
||||||
def parse_native_faceted_brep(self):
|
def parse_native_faceted_brep(self):
|
||||||
for element in self.file.by_type('IfcFacetedBrep'):
|
for element in self.file.by_type('IfcFacetedBrep'):
|
||||||
|
if [e for e in self.file.get_inverse(element) if e.is_a('IfcBooleanResult')]:
|
||||||
|
continue
|
||||||
self.swap_out_with_dummy_geometry(element)
|
self.swap_out_with_dummy_geometry(element)
|
||||||
|
|
||||||
def swap_out_with_dummy_geometry(self, element):
|
def swap_out_with_dummy_geometry(self, element):
|
||||||
|
|||||||
Reference in New Issue
Block a user