4 Commits

Author SHA1 Message Date
Jedd Morgan 94dedacc5d Update README.md (#15) 2025-07-28 10:39:10 +01:00
Sebastian Witt bafbcd8b87 Rendermaterials inherit material names instead of type + unique id (#14) 2025-07-22 15:57:50 +01:00
Jedd Morgan e97929470f ruff (#12) 2025-07-15 17:33:43 +01:00
Jedd Morgan c8d62477cc Add null check (#11) 2025-07-15 16:25:46 +01:00
4 changed files with 10 additions and 2 deletions
+4
View File
@@ -1 +1,5 @@
# ifc-openshell-file-importer
⚠ We have moved this code into the specklepy repo - https://github.com/specklesystems/specklepy/tree/main/src/speckleifc ⚠
Please open new issues and PRs there
+1 -1
View File
@@ -5,7 +5,7 @@ from argparse import ArgumentParser
from os import getenv
from specklepy.core.api.client import SpeckleClient
from specklepy.core.api.credentials import Account, get_accounts_for_server
from specklepy.core.api.credentials import Account
from specklepy.core.api.inputs.version_inputs import CreateVersionInput
from specklepy.core.api.models.current import Version
from specklepy.core.api.operations import send
@@ -15,6 +15,8 @@ def _create_iterator_settings() -> settings:
ifc_settings.set("use-world-coords", True)
# Tiny performance improvement,
ifc_settings.set("no-wire-intersection-check", True)
# Rendermaterials inherit the material names instead of type + unique id
ifc_settings.set("use-material-names", True)
# IfcOpenshell defaults to 0.001mm here, which leads to very dense meshes.
# lowering the mesh quality a bit here leads to meshes
+3 -1
View File
@@ -42,7 +42,9 @@ def _get_ifc_object_properties(element: entity_instance) -> dict[str, object]:
if not rel.is_a("IfcRelDefinesByProperties"):
continue
definition: entity_instance = rel.RelatingPropertyDefinition
definition: entity_instance | None = rel.RelatingPropertyDefinition
if not definition:
continue
if not definition.is_a("IfcPropertySet"):
continue