From 2fd81e2094b202295d66ebbff8ad0174a5855ff1 Mon Sep 17 00:00:00 2001 From: Rafael Senties Martinelli Date: Thu, 18 Jul 2024 11:07:32 +0200 Subject: [PATCH] Fix TopTools_ListIteratorOfListOfShape import TopTools_ListIteratorOfListOfShape must be replaced by TopTools_ListOfListOfShape --- src/Extend/TopologyUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Extend/TopologyUtils.py b/src/Extend/TopologyUtils.py index 47659fda9..b13166000 100644 --- a/src/Extend/TopologyUtils.py +++ b/src/Extend/TopologyUtils.py @@ -38,7 +38,7 @@ ) from OCC.Core.TopExp import TopExp_Explorer, topexp from OCC.Core.TopTools import ( - TopTools_ListIteratorOfListOfShape, + TopTools_ListOfListOfShape, TopTools_IndexedDataMapOfShapeListOfShape, ) from OCC.Core.TopoDS import ( @@ -332,7 +332,7 @@ def _map_shapes_and_ancestors( if results.Size() == 0: yield None - topology_iterator = TopTools_ListIteratorOfListOfShape(results) + topology_iterator = TopTools_ListOfListOfShape(results) while topology_iterator.More(): topo_entity = self.topology_factory[topology_type_2]( topology_iterator.Value() @@ -380,7 +380,7 @@ def _number_shapes_ancestors( results = _map.FindFromKey(topological_entity) if results.Size() == 0: return None - topology_iterator = TopTools_ListIteratorOfListOfShape(results) + topology_iterator = TopTools_ListOfListOfShape(results) while topology_iterator.More(): topo_set.add(topology_iterator.Value()) topology_iterator.Next()