0024313: BRepAlgoAPI_Section and IntTools_FaceFace aren't written to handle Geom_Surf...
[occt.git] / src / IntTools / IntTools_PntOn2Faces.cxx
CommitLineData
b311480e 1// Created on: 2001-12-13
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#include <IntTools_PntOn2Faces.ixx>
22
23//=======================================================================
24//function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
25//purpose :
26//=======================================================================
b311480e 27IntTools_PntOn2Faces::IntTools_PntOn2Faces()
7fd59977 28:
29 myIsValid(Standard_False)
30{}
31//=======================================================================
32//function : IntTools_PntOn2Faces::IntTools_PntOn2Faces
33//purpose :
34//=======================================================================
35 IntTools_PntOn2Faces::IntTools_PntOn2Faces(const IntTools_PntOnFace& aP1,
36 const IntTools_PntOnFace& aP2)
37:
38 myIsValid(Standard_False)
39{
40 myPnt1=aP1;
41 myPnt2=aP2;
42}
43//=======================================================================
44//function : SetP1
45//purpose :
46//=======================================================================
47 void IntTools_PntOn2Faces::SetP1(const IntTools_PntOnFace& aP)
48{
49 myPnt1=aP;
50}
51//=======================================================================
52//function : SetP2
53//purpose :
54//=======================================================================
55 void IntTools_PntOn2Faces::SetP2(const IntTools_PntOnFace& aP)
56{
57 myPnt2=aP;
58}
59//=======================================================================
60//function : P1
61//purpose :
62//=======================================================================
63 const IntTools_PntOnFace& IntTools_PntOn2Faces::P1()const
64{
65 return myPnt1;
66}
67//=======================================================================
68//function : P2
69//purpose :
70//=======================================================================
71 const IntTools_PntOnFace& IntTools_PntOn2Faces::P2()const
72{
73 return myPnt2;
74}
75
76//=======================================================================
77//function : SetValid
78//purpose :
79//=======================================================================
80 void IntTools_PntOn2Faces::SetValid(const Standard_Boolean bF)
81{
82 myIsValid=bF;
83}
84//=======================================================================
85//function : IsValid
86//purpose :
87//=======================================================================
88 Standard_Boolean IntTools_PntOn2Faces::IsValid()const
89{
90 return myIsValid;
91}
92