Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:37

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 #ifndef _GeomAPI_IntSS_HeaderFile
0018 #define _GeomAPI_IntSS_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <GeomInt_IntSS.hxx>
0025 #include <Standard_Integer.hxx>
0026 class StdFail_NotDone;
0027 class Standard_OutOfRange;
0028 class Geom_Surface;
0029 class Geom_Curve;
0030 
0031 
0032 //! This class implements methods for
0033 //! computing the intersection curves   between two surfaces.
0034 //! The result is curves from Geom.  The "domain" used for
0035 //! a surface   is the natural  parametric domain
0036 //! unless the surface is a  RectangularTrimmedSurface
0037 //! from Geom.
0038 class GeomAPI_IntSS 
0039 {
0040 public:
0041 
0042   DEFINE_STANDARD_ALLOC
0043 
0044   
0045   //! Constructs an empty object. Use the
0046   //! function Perform for further initialization algorithm by two surfaces.
0047     GeomAPI_IntSS();
0048   
0049   //! Computes the intersection curves
0050   //! between the two surfaces S1 and S2. Parameter Tol defines the precision
0051   //! of curves computation. For most cases the value 1.0e-7 is recommended to use.
0052   //! Warning
0053   //! Use the function IsDone to verify that the intersections are successfully computed.I
0054     GeomAPI_IntSS(const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real Tol);
0055   
0056   //! Initializes an algorithm with the
0057   //! given arguments and computes the intersection curves between the two surfaces S1 and S2.
0058   //! Parameter Tol defines the precision of curves computation. For most
0059   //! cases the value 1.0e-7 is recommended to use.
0060   //! Warning
0061   //! Use function IsDone to verify that the intersections are successfully computed.
0062     void Perform (const Handle(Geom_Surface)& S1, const Handle(Geom_Surface)& S2, const Standard_Real Tol);
0063   
0064   //! Returns True if the intersection was successful.
0065     Standard_Boolean IsDone() const;
0066   
0067   //! Returns the number of computed intersection curves.
0068   //! Exceptions
0069   //! StdFail_NotDone if the computation fails.
0070     Standard_Integer NbLines() const;
0071   
0072   //! Returns the computed intersection curve of index Index.
0073   //! Exceptions
0074   //! StdFail_NotDone if the computation fails.
0075   //! Standard_OutOfRange if Index is out of range [1, NbLines] where NbLines
0076   //! is the number of computed intersection curves.
0077     const Handle(Geom_Curve)& Line (const Standard_Integer Index) const;
0078 
0079 
0080 
0081 
0082 protected:
0083 
0084 
0085 
0086 
0087 
0088 private:
0089 
0090 
0091 
0092   GeomInt_IntSS myIntersec;
0093 
0094 
0095 };
0096 
0097 
0098 #include <GeomAPI_IntSS.lxx>
0099 
0100 
0101 
0102 
0103 
0104 #endif // _GeomAPI_IntSS_HeaderFile