mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Merge remote-tracking branch 'origin/v0.6.0' into v0.7.0
# Conflicts: # .github/workflows/ci.yml # src/ifcparse/IfcParse.cpp
This commit is contained in:
@@ -10,7 +10,7 @@ import functools
|
||||
import multiprocessing
|
||||
|
||||
try:
|
||||
from OCC.Core import AIS
|
||||
from OCC.Core import AIS
|
||||
|
||||
USE_OCCT_HANDLE = False
|
||||
except ImportError:
|
||||
@@ -433,30 +433,30 @@ class application(QtWidgets.QApplication):
|
||||
|
||||
instanceSelected = QtCore.pyqtSignal([object])
|
||||
|
||||
# @staticmethod
|
||||
# def ais_to_key(ais_handle):
|
||||
# def yield_shapes():
|
||||
# ais = ais_handle.GetObject()
|
||||
# if hasattr(ais, "Shape"):
|
||||
# yield ais.Shape()
|
||||
# return
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(ais_handle)
|
||||
# if not shp.IsNull():
|
||||
# yield shp.Shape()
|
||||
# return
|
||||
# mult = ais_handle
|
||||
# if mult.IsNull():
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(ais_handle)
|
||||
# if not shp.IsNull():
|
||||
# yield shp
|
||||
# else:
|
||||
# li = mult.GetObject().ConnectedTo()
|
||||
# for i in range(li.Length()):
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(li.Value(i + 1))
|
||||
# if not shp.IsNull():
|
||||
# yield shp
|
||||
# @staticmethod
|
||||
# def ais_to_key(ais_handle):
|
||||
# def yield_shapes():
|
||||
# ais = ais_handle.GetObject()
|
||||
# if hasattr(ais, "Shape"):
|
||||
# yield ais.Shape()
|
||||
# return
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(ais_handle)
|
||||
# if not shp.IsNull():
|
||||
# yield shp.Shape()
|
||||
# return
|
||||
# mult = ais_handle
|
||||
# if mult.IsNull():
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(ais_handle)
|
||||
# if not shp.IsNull():
|
||||
# yield shp
|
||||
# else:
|
||||
# li = mult.GetObject().ConnectedTo()
|
||||
# for i in range(li.Length()):
|
||||
# shp = OCC.AIS.Handle_AIS_Shape.DownCast(li.Value(i + 1))
|
||||
# if not shp.IsNull():
|
||||
# yield shp
|
||||
|
||||
# return tuple(shp.HashCode(1 << 24) for shp in yield_shapes())
|
||||
# return tuple(shp.HashCode(1 << 24) for shp in yield_shapes())
|
||||
|
||||
def __init__(self, widget):
|
||||
qtViewer3d.__init__(self, widget)
|
||||
@@ -486,8 +486,8 @@ class application(QtWidgets.QApplication):
|
||||
for shape in shapes:
|
||||
ais = display_shape(shape, viewer_handle=v)
|
||||
product = f[shape.data.id]
|
||||
|
||||
if USE_OCCT_HANDLE:
|
||||
|
||||
if USE_OCCT_HANDLE:
|
||||
ais.GetObject().SetSelectionPriority(self.counter)
|
||||
self.ais_to_product[self.counter] = product
|
||||
self.product_to_ais[product] = ais
|
||||
|
||||
@@ -133,7 +133,7 @@ class tree(ifcopenshell_wrapper.tree):
|
||||
|
||||
def add_file(self, file, settings):
|
||||
ifcopenshell_wrapper.tree.add_file(self, file.wrapped_data, settings)
|
||||
|
||||
|
||||
def add_iterator(self, iterator):
|
||||
ifcopenshell_wrapper.tree.add_file(self, iterator)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user