0029915: Porting to VC 2017 : Regressions in Modeling Algorithms on VC 2017
[occt.git] / src / GeomAPI / GeomAPI_IntSS.lxx
1 // Created on: 1995-03-14
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1995-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : GeomAPI_IntSS
19 //purpose  : 
20 //=======================================================================
21
22 inline GeomAPI_IntSS::GeomAPI_IntSS () {}
23
24
25 //=======================================================================
26 //function : GeomAPI_IntSS
27 //purpose  : 
28 //=======================================================================
29
30 inline GeomAPI_IntSS::GeomAPI_IntSS (const Handle(Geom_Surface)& S1,
31                                      const Handle(Geom_Surface)& S2,
32                                      const Standard_Real Tol) :
33         myIntersec(S1,S2,Tol,Standard_True)
34 {}
35
36
37 //=======================================================================
38 //function : Perform
39 //purpose  : 
40 //=======================================================================
41
42 inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1,
43                                    const Handle(Geom_Surface)& S2,
44                                    const Standard_Real Tol)
45 {
46   myIntersec.Perform(S1,S2,Tol,Standard_True);
47 }
48
49
50 //=======================================================================
51 //function : IsDone
52 //purpose  : 
53 //=======================================================================
54
55 inline Standard_Boolean GeomAPI_IntSS::IsDone () const
56 {
57   return myIntersec.IsDone();
58 }
59
60
61 //=======================================================================
62 //function : NbLines
63 //purpose  : 
64 //=======================================================================
65
66 inline Standard_Integer GeomAPI_IntSS::NbLines () const
67 {
68   return myIntersec.NbLines();
69 }
70
71
72 //=======================================================================
73 //function : Line
74 //purpose  : 
75 //=======================================================================
76
77 inline const Handle(Geom_Curve)& 
78         GeomAPI_IntSS::Line(const Standard_Integer I) const
79 {
80   return myIntersec.Line(I);
81 }