Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1995-02-07
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 _GeomInt_LineConstructor_HeaderFile
0018 #define _GeomInt_LineConstructor_HeaderFile
0019 
0020 #include <GeomAdaptor_Surface.hxx>
0021 #include <TColStd_SequenceOfReal.hxx>
0022 
0023 class Adaptor3d_TopolTool;
0024 class IntPatch_Line;
0025 
0026 //! Splits given Line.
0027 class GeomInt_LineConstructor 
0028 {
0029 public:
0030 
0031   DEFINE_STANDARD_ALLOC
0032 
0033   
0034 
0035   //! Empty constructor
0036     GeomInt_LineConstructor();
0037   
0038 
0039   //! Initializes me by two surfaces and corresponding
0040   //! tools which represent boundaries of surfaces
0041     void Load (const Handle(Adaptor3d_TopolTool)& D1, const Handle(Adaptor3d_TopolTool)& D2, const Handle(GeomAdaptor_Surface)& S1, const Handle(GeomAdaptor_Surface)& S2);
0042   
0043 
0044   //! Splits line
0045   Standard_EXPORT void Perform (const Handle(IntPatch_Line)& L);
0046   
0047 
0048   //! Returns True if splitting was successful
0049     Standard_Boolean IsDone() const;
0050   
0051 
0052   //! Returns number of splits
0053     Standard_Integer NbParts() const;
0054   
0055 
0056   //! Return first and last parameters
0057   //! for given index of split
0058     void Part (const Standard_Integer I, Standard_Real& WFirst, Standard_Real& WLast) const;
0059 
0060 
0061 
0062 
0063 protected:
0064 
0065   
0066   Standard_EXPORT void TreatCircle (const Handle(IntPatch_Line)& aLine, const Standard_Real aTol);
0067 
0068 
0069 
0070 
0071 private:
0072 
0073 
0074 
0075   Standard_Boolean done;
0076   TColStd_SequenceOfReal seqp;
0077   Handle(Adaptor3d_TopolTool) myDom1;
0078   Handle(Adaptor3d_TopolTool) myDom2;
0079   Handle(GeomAdaptor_Surface) myHS1;
0080   Handle(GeomAdaptor_Surface) myHS2;
0081 
0082 
0083 };
0084 
0085 
0086 #include <GeomInt_LineConstructor.lxx>
0087 
0088 
0089 
0090 
0091 
0092 #endif // _GeomInt_LineConstructor_HeaderFile