0025937: Failed Cut Edge or Face by HalfSpace.
[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 #include <IntTools_PntOn2Faces.ixx>
17
18 //=======================================================================
19 //function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
20 //purpose  : 
21 //=======================================================================
22 IntTools_PntOn2Faces::IntTools_PntOn2Faces()
23 :
24   myIsValid(Standard_False)
25 {}
26 //=======================================================================
27 //function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
28 //purpose  : 
29 //=======================================================================
30   IntTools_PntOn2Faces::IntTools_PntOn2Faces(const IntTools_PntOnFace& aP1,
31                                              const IntTools_PntOnFace& aP2)
32 :
33   myIsValid(Standard_False)
34 {
35   myPnt1=aP1;
36   myPnt2=aP2;
37 }
38 //=======================================================================
39 //function : SetP1
40 //purpose  : 
41 //=======================================================================
42   void IntTools_PntOn2Faces::SetP1(const IntTools_PntOnFace& aP)
43 {
44   myPnt1=aP;
45 }
46 //=======================================================================
47 //function : SetP2
48 //purpose  : 
49 //=======================================================================
50   void IntTools_PntOn2Faces::SetP2(const IntTools_PntOnFace& aP)
51 {
52   myPnt2=aP;
53 }
54 //=======================================================================
55 //function : P1
56 //purpose  : 
57 //=======================================================================
58   const IntTools_PntOnFace& IntTools_PntOn2Faces::P1()const
59 {
60   return myPnt1;
61 }
62 //=======================================================================
63 //function : P2
64 //purpose  : 
65 //=======================================================================
66   const IntTools_PntOnFace& IntTools_PntOn2Faces::P2()const 
67 {
68   return myPnt2;
69 }
70
71 //=======================================================================
72 //function : SetValid
73 //purpose  : 
74 //=======================================================================
75   void IntTools_PntOn2Faces::SetValid(const Standard_Boolean bF)
76 {
77   myIsValid=bF;
78 }
79 //=======================================================================
80 //function : IsValid
81 //purpose  : 
82 //=======================================================================
83   Standard_Boolean IntTools_PntOn2Faces::IsValid()const
84 {
85   return myIsValid;
86 }
87