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()