0025609: Clean up the duplicate classes in TKBO project
[occt.git] / src / TopExp / TopExp.cxx
index b011b50..58dc97c 100644 (file)
@@ -62,6 +62,18 @@ void TopExp::MapShapes(const TopoDS_Shape& S,
   }
 }
 
+//=======================================================================
+//function : MapShapes
+//purpose  : 
+//=======================================================================
+void TopExp::MapShapes(const TopoDS_Shape& S,
+                       TopTools_MapOfShape& M)
+{
+  M.Add(S);
+  for (TopoDS_Iterator it(S); it.More(); it.Next())
+    MapShapes(it.Value(), M);
+}
+
 //=======================================================================
 //function : MapShapesAndAncestors
 //purpose  :