Replacing french comments by english one
[occt.git] / src / ChFi2d / ChFi2d_Builder.lxx
CommitLineData
7fd59977 1// File: ChFi2d_Builder.lxx
2// Created: Mon Jun 12 18:14:50 1995
3// Author: Philippe DERVIEUX
4// <phd@tlefon>
5
6#include <TopoDS.hxx>
7#include <TopoDS_Shape.hxx>
8#include <TopoDS_Vertex.hxx>
9#include <TopoDS_Edge.hxx>
10#include <TopoDS_Wire.hxx>
11#include <TopoDS_Face.hxx>
12
13
14//=======================================================================
15//function : Result
16//purpose :
17//=======================================================================
18
19 inline TopoDS_Face ChFi2d_Builder::Result() const
20{
21 TopoDS_Face aFace = newFace;
22 aFace.Orientation(refFace.Orientation());
23 return aFace;
24}
25
26//=======================================================================
27//function : IsModified
28//purpose :
29//=======================================================================
30
31 inline Standard_Boolean ChFi2d_Builder::IsModified
32 (const TopoDS_Edge& E) const
33{
34 return history.IsBound(E);
35}
36
37//=======================================================================
38//function : FilletEdges
39//purpose :
40//=======================================================================
41
42 inline const TopTools_SequenceOfShape& ChFi2d_Builder::FilletEdges() const
43{
44 return fillets;
45}
46
47//=======================================================================
48//function : ChamferEdges
49//purpose :
50//=======================================================================
51
52 inline const TopTools_SequenceOfShape& ChFi2d_Builder::ChamferEdges() const
53{
54 return chamfers;
55}
56
57//=======================================================================
58//function : NbFillet
59//purpose :
60//=======================================================================
61
62 inline Standard_Integer ChFi2d_Builder::NbFillet() const
63{
64 return fillets.Length();
65}
66
67//=======================================================================
68//function : NbChamfer
69//purpose :
70//=======================================================================
71
72 inline Standard_Integer ChFi2d_Builder::NbChamfer() const
73{
74 return chamfers.Length();
75}
76
77//=======================================================================
78//function : HasDescendant
79//purpose :
80//=======================================================================
81
82 inline Standard_Boolean ChFi2d_Builder::HasDescendant
83 (const TopoDS_Edge& E) const
84{
85 return history.IsBound(E);
86}
87
88//=======================================================================
89//function : DescendantEdge
90//purpose :
91//=======================================================================
92
93inline const TopoDS_Edge& ChFi2d_Builder::DescendantEdge(const TopoDS_Edge& E) const
94{
95 return TopoDS::Edge(history.Find(E));
96} // DescendantEdge
97
98
99//=======================================================================
100//function : Status
101//purpose :
102//=======================================================================
103
104 inline ChFi2d_ConstructionError ChFi2d_Builder::Status() const
105{
106 return status;
107}