0026323: Tolerance computing unification
[occt.git] / src / IntTools / IntTools_PntOn2Faces.cxx
1 // Created on: 2001-12-13
2 // Created by: Peter KURNEV
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <IntTools_PntOn2Faces.hxx>
18 #include <IntTools_PntOnFace.hxx>
19
20 //=======================================================================
21 //function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
22 //purpose  : 
23 //=======================================================================
24 IntTools_PntOn2Faces::IntTools_PntOn2Faces()
25 :
26   myIsValid(Standard_False)
27 {}
28 //=======================================================================
29 //function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
30 //purpose  : 
31 //=======================================================================
32   IntTools_PntOn2Faces::IntTools_PntOn2Faces(const IntTools_PntOnFace& aP1,
33                                              const IntTools_PntOnFace& aP2)
34 :
35   myIsValid(Standard_False)
36 {
37   myPnt1=aP1;
38   myPnt2=aP2;
39 }
40 //=======================================================================
41 //function : SetP1
42 //purpose  : 
43 //=======================================================================
44   void IntTools_PntOn2Faces::SetP1(const IntTools_PntOnFace& aP)
45 {
46   myPnt1=aP;
47 }
48 //=======================================================================
49 //function : SetP2
50 //purpose  : 
51 //=======================================================================
52   void IntTools_PntOn2Faces::SetP2(const IntTools_PntOnFace& aP)
53 {
54   myPnt2=aP;
55 }
56 //=======================================================================
57 //function : P1
58 //purpose  : 
59 //=======================================================================
60   const IntTools_PntOnFace& IntTools_PntOn2Faces::P1()const
61 {
62   return myPnt1;
63 }
64 //=======================================================================
65 //function : P2
66 //purpose  : 
67 //=======================================================================
68   const IntTools_PntOnFace& IntTools_PntOn2Faces::P2()const 
69 {
70   return myPnt2;
71 }
72
73 //=======================================================================
74 //function : SetValid
75 //purpose  : 
76 //=======================================================================
77   void IntTools_PntOn2Faces::SetValid(const Standard_Boolean bF)
78 {
79   myIsValid=bF;
80 }
81 //=======================================================================
82 //function : IsValid
83 //purpose  : 
84 //=======================================================================
85   Standard_Boolean IntTools_PntOn2Faces::IsValid()const
86 {
87   return myIsValid;
88 }
89