Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:10

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 
0032   DEFINE_STANDARD_ALLOC
0033 
0034   //! returns the length of the edge;
0035   Standard_EXPORT static Standard_Real Length (const TopoDS_Edge& E);
0036 
0037   //! Remove from  the  sequence aSeq the Roots  that  have
0038   //! values ti and tj such as  |ti-tj]  <  anEpsT.
0039   Standard_EXPORT static void RemoveIdenticalRoots (IntTools_SequenceOfRoots& aSeq, 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, const Standard_Real anEpsNull);
0046 
0047   Standard_EXPORT static Standard_Integer Parameter (const gp_Pnt& P, const Handle(Geom_Curve)& Curve, Standard_Real& aParm);
0048 
0049   Standard_EXPORT static Standard_Integer GetRadius (const BRepAdaptor_Curve& C, const Standard_Real t1, const Standard_Real t3, Standard_Real& R);
0050 
0051   Standard_EXPORT static Standard_Integer PrepareArgs (BRepAdaptor_Curve& C,
0052                                                        const Standard_Real tMax, const Standard_Real tMin,
0053                                                        const Standard_Integer Discret, const Standard_Real Deflect,
0054                                                        TColStd_Array1OfReal& anArgs);
0055 
0056 };
0057 
0058 #endif // _IntTools_HeaderFile