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