mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Revert "More descriptive RuntimeError: Failed to process shape #3383"
This reverts commit 1542217117.
This commit is contained in:
@@ -275,23 +275,14 @@ class Geometry(blenderbim.core.tool.Geometry):
|
|||||||
settings.set(settings.WELD_VERTICES, True)
|
settings.set(settings.WELD_VERTICES, True)
|
||||||
|
|
||||||
context = representation.ContextOfItems
|
context = representation.ContextOfItems
|
||||||
try:
|
if context.ContextIdentifier == "Body" and context.TargetView == "MODEL_VIEW":
|
||||||
if context.ContextIdentifier == "Body" and context.TargetView == "MODEL_VIEW":
|
if element.is_a("IfcTypeProduct") or not apply_openings:
|
||||||
if element.is_a("IfcTypeProduct") or not apply_openings:
|
|
||||||
shape = ifcopenshell.geom.create_shape(settings, representation)
|
|
||||||
else:
|
|
||||||
shape = ifcopenshell.geom.create_shape(settings, element)
|
|
||||||
else:
|
|
||||||
settings.set(settings.INCLUDE_CURVES, True)
|
|
||||||
shape = ifcopenshell.geom.create_shape(settings, representation)
|
shape = ifcopenshell.geom.create_shape(settings, representation)
|
||||||
except RuntimeError as e:
|
else:
|
||||||
error_msg = (
|
shape = ifcopenshell.geom.create_shape(settings, element)
|
||||||
f"\nfor object {obj.name}"
|
else:
|
||||||
f"\n{element}"
|
settings.set(settings.INCLUDE_CURVES, True)
|
||||||
f"\n{representation}."
|
shape = ifcopenshell.geom.create_shape(settings, representation)
|
||||||
"\nTry to investigate geometry problems with the object representation or just delete it."
|
|
||||||
)
|
|
||||||
raise RuntimeError(e.args[0] + error_msg) from e
|
|
||||||
|
|
||||||
ifc_importer = blenderbim.bim.import_ifc.IfcImporter(ifc_import_settings)
|
ifc_importer = blenderbim.bim.import_ifc.IfcImporter(ifc_import_settings)
|
||||||
ifc_importer.file = tool.Ifc.get()
|
ifc_importer.file = tool.Ifc.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user