Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/GeomAPI_IntSS.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1995-03-14
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 //=======================================================================
0018 // function : GeomAPI_IntSS
0019 // purpose  :
0020 //=======================================================================
0021 
0022 inline GeomAPI_IntSS::GeomAPI_IntSS() {}
0023 
0024 //=======================================================================
0025 // function : GeomAPI_IntSS
0026 // purpose  :
0027 //=======================================================================
0028 
0029 inline GeomAPI_IntSS::GeomAPI_IntSS(const Handle(Geom_Surface)& S1,
0030                                     const Handle(Geom_Surface)& S2,
0031                                     const Standard_Real         Tol)
0032     : myIntersec(S1, S2, Tol, Standard_True)
0033 {
0034 }
0035 
0036 //=======================================================================
0037 // function : Perform
0038 // purpose  :
0039 //=======================================================================
0040 
0041 inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1,
0042                                    const Handle(Geom_Surface)& S2,
0043                                    const Standard_Real         Tol)
0044 {
0045   myIntersec.Perform(S1, S2, Tol, Standard_True);
0046 }
0047 
0048 //=======================================================================
0049 // function : IsDone
0050 // purpose  :
0051 //=======================================================================
0052 
0053 inline Standard_Boolean GeomAPI_IntSS::IsDone() const
0054 {
0055   return myIntersec.IsDone();
0056 }
0057 
0058 //=======================================================================
0059 // function : NbLines
0060 // purpose  :
0061 //=======================================================================
0062 
0063 inline Standard_Integer GeomAPI_IntSS::NbLines() const
0064 {
0065   return myIntersec.NbLines();
0066 }
0067 
0068 //=======================================================================
0069 // function : Line
0070 // purpose  :
0071 //=======================================================================
0072 
0073 inline const Handle(Geom_Curve)& GeomAPI_IntSS::Line(const Standard_Integer I) const
0074 {
0075   return myIntersec.Line(I);
0076 }