0023024: Update headers of OCCT files
[occt.git] / src / BOP / BOP_FaceInfo.cxx
CommitLineData
b311480e 1// Created on: 2001-04-09
2// Created by: Peter KURNEV
3// Copyright (c) 2001-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21
22#include <BOP_FaceInfo.ixx>
23
24//=======================================================================
25// function: BOP_FaceInfo::BOP_FaceInfo
26// purpose:
27//=======================================================================
b311480e 28BOP_FaceInfo::BOP_FaceInfo()
7fd59977 29:
30 myPassed(Standard_False),
31 myAngle(0.)
32{}
33
34//=======================================================================
35// function: SetFace
36// purpose:
37//=======================================================================
38 void BOP_FaceInfo::SetFace(const TopoDS_Face& aF)
39{
40 myFace=aF;
41}
42//=======================================================================
43// function: Face
44// purpose:
45//=======================================================================
46 const TopoDS_Face& BOP_FaceInfo::Face()const
47{
48 return myFace;
49}
50
51//=======================================================================
52// function: SetPassed
53// purpose:
54//=======================================================================
55 void BOP_FaceInfo::SetPassed(const Standard_Boolean aFlag)
56{
57 myPassed=aFlag;
58}
59
60//=======================================================================
61// function: SetPOnEdge
62// purpose:
63//=======================================================================
64 void BOP_FaceInfo::SetPOnEdge(const gp_Pnt& aP)
65{
66 myPOnEdge=aP;
67}
68
69//=======================================================================
70// function: SetAngle
71// purpose:
72//=======================================================================
73 void BOP_FaceInfo::SetAngle(const Standard_Real A)
74{
75 myAngle=A;
76}
77//=======================================================================
78// function: Angle
79// purpose:
80//=======================================================================
81 Standard_Real BOP_FaceInfo::Angle()const
82{
83 return myAngle;
84}
85
86//=======================================================================
87// function: POnEdge
88// purpose:
89//=======================================================================
90 const gp_Pnt& BOP_FaceInfo::POnEdge()const
91{
92 return myPOnEdge;
93}
94//=======================================================================
95// function: SetPInFace
96// purpose:
97//=======================================================================
98 void BOP_FaceInfo::SetPInFace(const gp_Pnt& aP)
99{
100 myPInFace=aP;
101}
102//=======================================================================
103// function: PInFace
104// purpose:
105//=======================================================================
106 const gp_Pnt& BOP_FaceInfo::PInFace()const
107{
108 return myPInFace;
109}
110//=======================================================================
111// function: SetPInFace2D
112// purpose:
113//=======================================================================
114 void BOP_FaceInfo::SetPInFace2D(const gp_Pnt2d& aP)
115{
116 myPInFace2D=aP;
117}
118//=======================================================================
119// function: PInFace2D
120// purpose:
121//=======================================================================
122 const gp_Pnt2d& BOP_FaceInfo::PInFace2D()const
123{
124 return myPInFace2D;
125}
126
127//=======================================================================
128// function: SetNormal
129// purpose:
130//=======================================================================
131 void BOP_FaceInfo::SetNormal(const gp_Dir& aD)
132{
133 myNormal=aD;
134}
135//=======================================================================
136// function: Normal
137// purpose:
138//=======================================================================
139 const gp_Dir& BOP_FaceInfo::Normal()const
140{
141 return myNormal;
142}
143
144//=======================================================================
145// function: IsPassed
146// purpose:
147//=======================================================================
148 Standard_Boolean BOP_FaceInfo::IsPassed()const
149{
150 return myPassed;
151}