Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-04 08:32:36

0001 // Created on: 2000-05-18
0002 // Created by: Peter KURNEV
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _IntTools_HeaderFile
0017 #define _IntTools_HeaderFile
0018 
0019 #include <IntTools_CArray1OfReal.hxx>
0020 #include <IntTools_SequenceOfRoots.hxx>
0021 
0022 class TopoDS_Edge;
0023 class gp_Pnt;
0024 class Geom_Curve;
0025 class BRepAdaptor_Curve;
0026 
0027 //! Contains classes for intersection and classification purposes and accompanying classes.
0028 class IntTools
0029 {
0030 public:
0031   DEFINE_STANDARD_ALLOC
0032 
0033   //! returns the length of the edge;
0034   Standard_EXPORT static Standard_Real Length(const TopoDS_Edge& E);
0035 
0036   //! Remove from  the  sequence aSeq the Roots  that  have
0037   //! values ti and tj such as  |ti-tj]  <  anEpsT.
0038   Standard_EXPORT static void RemoveIdenticalRoots(IntTools_SequenceOfRoots& aSeq,
0039                                                    const Standard_Real       anEpsT);
0040 
0041   //! Sort the sequence aSeq of the Roots to arrange the Roots in increasing order.
0042   Standard_EXPORT static void SortRoots(IntTools_SequenceOfRoots& aSeq, const Standard_Real anEpsT);
0043 
0044   //! Find the states (before and after) for each Root from  the sequence aSeq
0045   Standard_EXPORT static void FindRootStates(IntTools_SequenceOfRoots& aSeq,
0046                                              const Standard_Real       anEpsNull);
0047 
0048   Standard_EXPORT static Standard_Integer Parameter(const gp_Pnt&             P,
0049                                                     const Handle(Geom_Curve)& Curve,
0050                                                     Standard_Real&            aParm);
0051 
0052   Standard_EXPORT static Standard_Integer GetRadius(const BRepAdaptor_Curve& C,
0053                                                     const Standard_Real      t1,
0054                                                     const Standard_Real      t3,
0055                                                     Standard_Real&           R);
0056 
0057   Standard_EXPORT static Standard_Integer PrepareArgs(BRepAdaptor_Curve&     C,
0058                                                       const Standard_Real    tMax,
0059                                                       const Standard_Real    tMin,
0060                                                       const Standard_Integer Discret,
0061                                                       const Standard_Real    Deflect,
0062                                                       TColStd_Array1OfReal&  anArgs);
0063 };
0064 
0065 #endif // _IntTools_HeaderFile