0024510: Remove unused local variables
[occt.git] / src / BRepFeat / BRepFeat_Gluer.cxx
1 // Created on: 1996-03-08
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and / or modify it
9 // under the terms of the GNU Lesser General Public version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <BRepFeat_Gluer.ixx>
18 #include <TopoDS.hxx>
19 #include <TopTools_ListOfShape.hxx>
20
21 //=======================================================================
22 //function : Build
23 //purpose  : 
24 //=======================================================================
25
26 void BRepFeat_Gluer::Build()
27 {
28   myGluer.Perform();
29   if (myGluer.IsDone()) {
30     Done();
31     myShape = myGluer.ResultingShape();
32   }
33   else {
34     NotDone();
35   }
36 }
37
38
39
40 //=======================================================================
41 //function : isdeleted
42 //purpose  : 
43 //=======================================================================
44
45 Standard_Boolean BRepFeat_Gluer::IsDeleted
46    (const TopoDS_Shape& F) 
47 {
48   return (myGluer.DescendantFaces(TopoDS::Face(F)).IsEmpty());
49 }
50
51 //=======================================================================
52 //function : Modified
53 //purpose  : 
54 //=======================================================================
55
56 const TopTools_ListOfShape& BRepFeat_Gluer::Modified
57    (const TopoDS_Shape& F)
58 {
59   if (F.ShapeType() == TopAbs_FACE) {
60     const TopTools_ListOfShape& LS = myGluer.DescendantFaces(TopoDS::Face(F));
61     if (!LS.IsEmpty()) {
62       if (!LS.First().IsSame(F))
63         return myGluer.DescendantFaces(TopoDS::Face(F));
64     }
65   }
66   static TopTools_ListOfShape LIM;
67   return  LIM;
68 }
69