mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-02 04:59:52 +00:00
You can now import structural curve members (again)
This commit is contained in:
@@ -705,12 +705,18 @@ class IfcImporter:
|
|||||||
print("Done creating geometry")
|
print("Done creating geometry")
|
||||||
|
|
||||||
def create_annotation(self):
|
def create_annotation(self):
|
||||||
|
self.create_curve_products(self.file.by_type("IfcAnnotation"))
|
||||||
|
|
||||||
|
def create_structural_elements(self):
|
||||||
|
self.create_curve_products(self.file.by_type("IfcStructuralCurveMember"))
|
||||||
|
|
||||||
|
def create_curve_products(self, products):
|
||||||
if self.ifc_import_settings.should_use_cpu_multiprocessing:
|
if self.ifc_import_settings.should_use_cpu_multiprocessing:
|
||||||
iterator = ifcopenshell.geom.iterator(
|
iterator = ifcopenshell.geom.iterator(
|
||||||
self.settings_2d,
|
self.settings_2d,
|
||||||
self.file,
|
self.file,
|
||||||
multiprocessing.cpu_count(),
|
multiprocessing.cpu_count(),
|
||||||
include=self.file.by_type("IfcAnnotation")
|
include=products
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
iterator = ifcopenshell.geom.iterator(
|
iterator = ifcopenshell.geom.iterator(
|
||||||
@@ -733,10 +739,6 @@ class IfcImporter:
|
|||||||
break
|
break
|
||||||
print("Done creating geometry")
|
print("Done creating geometry")
|
||||||
|
|
||||||
def create_structural_elements(self):
|
|
||||||
for element in self.file.by_type("IfcStructuralCurveMember"):
|
|
||||||
pass # TODO
|
|
||||||
|
|
||||||
def create_product(self, element, shape=None):
|
def create_product(self, element, shape=None):
|
||||||
if element is None:
|
if element is None:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user