1 // File: BRepFeat_SplitShape.cxx
2 // Created: Mon Sep 4 10:06:40 1995
3 // Author: Jacques GOUSSARD
7 #include <BRepFeat_SplitShape.ixx>
9 #include <TopTools_ListIteratorOfListOfShape.hxx>
10 #include <Standard_Failure.hxx>
12 //=======================================================================
15 //=======================================================================
17 void BRepFeat_SplitShape::Build ()
19 mySShape.Perform(myWOnShape);
20 if (mySShape.IsDone()) {
22 myShape = mySShape.ResultingShape();
28 //=======================================================================
29 //function : DirectLeft
31 //=======================================================================
33 const TopTools_ListOfShape& BRepFeat_SplitShape::DirectLeft() const
35 return mySShape.DirectLeft();
39 //=======================================================================
40 //function : DirectLeft
42 //=======================================================================
44 const TopTools_ListOfShape& BRepFeat_SplitShape::Left() const
46 return mySShape.Left();
49 //=======================================================================
50 //function : isDeleted
52 //=======================================================================
54 Standard_Boolean BRepFeat_SplitShape::IsDeleted(const TopoDS_Shape& F)
56 TopTools_ListIteratorOfListOfShape itl
57 (((LocOpe_Spliter*) &mySShape)->DescendantShapes(F));
58 // tout ceci pour truander le const
60 return (!itl.More());// a priori impossible
63 //=======================================================================
66 //=======================================================================
68 const TopTools_ListOfShape& BRepFeat_SplitShape::Modified
69 (const TopoDS_Shape& F)
71 return mySShape.DescendantShapes(F);