1 // Created on: 1993-06-24
2 // Created by: Jean Yves LEBEY
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TopOpeBRepTool_GeomTool_HeaderFile
18 #define _TopOpeBRepTool_GeomTool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TopOpeBRepTool_OutCurveType.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Real.hxx>
27 #include <Standard_Integer.hxx>
31 class TopOpeBRepTool_GeomTool
38 //! Boolean flags <CompC3D>, <CompPC1>, <CompPC2>
39 //! indicate whether the corresponding result curves
40 //! <C3D>, <PC1>, <PC2> of MakeCurves method must or not
41 //! be computed from an intersection line <L>.
42 //! When the line <L> is a walking one, <TypeC3D> is the
43 //! kind of the 3D curve <C3D> to compute :
44 //! - BSPLINE1 to compute a BSpline of degree 1 on the
45 //! walking points of <L>,
46 //! - APPROX to build an approximation curve on the
47 //! walking points of <L>.
48 Standard_EXPORT TopOpeBRepTool_GeomTool(const TopOpeBRepTool_OutCurveType TypeC3D = TopOpeBRepTool_BSPLINE1, const Standard_Boolean CompC3D = Standard_True, const Standard_Boolean CompPC1 = Standard_True, const Standard_Boolean CompPC2 = Standard_True);
50 Standard_EXPORT void Define (const TopOpeBRepTool_OutCurveType TypeC3D, const Standard_Boolean CompC3D, const Standard_Boolean CompPC1, const Standard_Boolean CompPC2);
52 Standard_EXPORT void Define (const TopOpeBRepTool_OutCurveType TypeC3D);
54 Standard_EXPORT void DefineCurves (const Standard_Boolean CompC3D);
56 Standard_EXPORT void DefinePCurves1 (const Standard_Boolean CompPC1);
58 Standard_EXPORT void DefinePCurves2 (const Standard_Boolean CompPC2);
60 Standard_EXPORT void Define (const TopOpeBRepTool_GeomTool& GT);
62 Standard_EXPORT void GetTolerances (Standard_Real& tol3d, Standard_Real& tol2d) const;
64 Standard_EXPORT void SetTolerances (const Standard_Real tol3d, const Standard_Real tol2d);
66 Standard_EXPORT Standard_Integer NbPntMax() const;
68 Standard_EXPORT void SetNbPntMax (const Standard_Integer NbPntMax);
70 Standard_EXPORT TopOpeBRepTool_OutCurveType TypeC3D() const;
72 Standard_EXPORT Standard_Boolean CompC3D() const;
74 Standard_EXPORT Standard_Boolean CompPC1() const;
76 Standard_EXPORT Standard_Boolean CompPC2() const;
85 TopOpeBRepTool_OutCurveType myTypeC3D;
86 Standard_Boolean myCompC3D;
87 Standard_Boolean myCompPC1;
88 Standard_Boolean myCompPC2;
95 Standard_Real myTol3d;
96 Standard_Real myTol2d;
97 Standard_Integer myNbPntMax;
108 #endif // _TopOpeBRepTool_GeomTool_HeaderFile