7fd59977 |
1 | // File: BRepFeat_Builder.cxx |
2 | // Created: Tue Jun 13 14:30:58 1995 |
3 | // Author: Jacques GOUSSARD |
4 | // <jag@bravox> |
5 | |
6 | |
7 | #include <BRepFeat_Builder.ixx> |
8 | |
9 | #include <TopOpeBRepBuild_HBuilder.hxx> |
10 | #include <TopOpeBRepDS_HDataStructure.hxx> |
11 | #include <TopTools_ListIteratorOfListOfShape.hxx> |
12 | #include <BOP_HistoryCollector.hxx> |
13 | |
14 | |
15 | //======================================================================= |
16 | //function : Modified |
17 | //purpose : |
18 | //======================================================================= |
19 | |
20 | const TopTools_ListOfShape& BRepFeat_Builder::Modified |
21 | (const TopoDS_Shape& F) |
22 | { |
23 | myGenerated.Clear(); |
24 | TopTools_ListIteratorOfListOfShape it; |
25 | const Handle(BOP_HistoryCollector)& B = myBuilder.History(); |
26 | const TopTools_ListOfShape& aLM=B->Modified(F); |
27 | it.Initialize(aLM); |
28 | for (; it.More(); it.Next()) { |
29 | myGenerated.Append(it.Value()); |
30 | } |
31 | return myGenerated; |
32 | } |
33 | |