0022492: Scaled sphere (Solid with BSplineSurface) is wrongly exported in STEP.
[occt.git] / src / BRepFeat / BRepFeat_Gluer.cxx
CommitLineData
7fd59977 1// File: BRepFeat_Gluer.cxx
2// Created: Fri Mar 8 09:50:16 1996
3// Author: Jacques GOUSSARD
4// <jag@bravox>
5
6
7#include <BRepFeat_Gluer.ixx>
8#include <TopoDS.hxx>
9#include <TopTools_ListOfShape.hxx>
10
11//=======================================================================
12//function : Build
13//purpose :
14//=======================================================================
15
16void BRepFeat_Gluer::Build()
17{
18 myGluer.Perform();
19 if (myGluer.IsDone()) {
20 Done();
21 myShape = myGluer.ResultingShape();
22 }
23 else {
24 NotDone();
25 }
26}
27
28
29
30//=======================================================================
31//function : isdeleted
32//purpose :
33//=======================================================================
34
35Standard_Boolean BRepFeat_Gluer::IsDeleted
36 (const TopoDS_Shape& F)
37{
38 return (myGluer.DescendantFaces(TopoDS::Face(F)).IsEmpty());
39}
40
41//=======================================================================
42//function : Modified
43//purpose :
44//=======================================================================
45
46const TopTools_ListOfShape& BRepFeat_Gluer::Modified
47 (const TopoDS_Shape& F)
48{
49 if (F.ShapeType() == TopAbs_FACE) {
50 const TopTools_ListOfShape& LS = myGluer.DescendantFaces(TopoDS::Face(F));
51 if (!LS.IsEmpty()) {
52 if (!LS.First().IsSame(F))
53 return myGluer.DescendantFaces(TopoDS::Face(F));
54 }
55 }
56 static TopTools_ListOfShape LIM;
57 return LIM;
58}
59