42cf5bc1 |
1 | // Created on: 1999-04-14 |
2 | // Created by: Roman LYGIN |
3 | // Copyright (c) 1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _ShapeUpgrade_SplitSurfaceContinuity_HeaderFile |
18 | #define _ShapeUpgrade_SplitSurfaceContinuity_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <GeomAbs_Shape.hxx> |
24 | #include <Standard_Real.hxx> |
25 | #include <Standard_Integer.hxx> |
26 | #include <ShapeUpgrade_SplitSurface.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | |
29 | |
30 | class ShapeUpgrade_SplitSurfaceContinuity; |
31 | DEFINE_STANDARD_HANDLE(ShapeUpgrade_SplitSurfaceContinuity, ShapeUpgrade_SplitSurface) |
32 | |
33 | //! Splits a Surface with a continuity criterion. |
34 | //! At the present moment C1 criterion is used only. |
35 | //! This tool works with tolerance. If C0 surface can be corrected |
36 | //! at a knot with given tolerance then the surface is corrected, |
37 | //! otherwise it is spltted at that knot. |
38 | class ShapeUpgrade_SplitSurfaceContinuity : public ShapeUpgrade_SplitSurface |
39 | { |
40 | |
41 | public: |
42 | |
43 | |
44 | //! Empty constructor. |
45 | Standard_EXPORT ShapeUpgrade_SplitSurfaceContinuity(); |
46 | |
47 | //! Sets criterion for splitting. |
48 | Standard_EXPORT void SetCriterion (const GeomAbs_Shape Criterion); |
49 | |
50 | //! Sets tolerance. |
51 | Standard_EXPORT void SetTolerance (const Standard_Real Tol); |
52 | |
53 | Standard_EXPORT virtual void Compute (const Standard_Boolean Segment) Standard_OVERRIDE; |
54 | |
55 | |
56 | |
57 | |
92efcf78 |
58 | DEFINE_STANDARD_RTTIEXT(ShapeUpgrade_SplitSurfaceContinuity,ShapeUpgrade_SplitSurface) |
42cf5bc1 |
59 | |
60 | protected: |
61 | |
62 | |
63 | |
64 | |
65 | private: |
66 | |
67 | |
68 | GeomAbs_Shape myCriterion; |
69 | Standard_Real myTolerance; |
70 | Standard_Integer myCont; |
71 | |
72 | |
73 | }; |
74 | |
75 | |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | #endif // _ShapeUpgrade_SplitSurfaceContinuity_HeaderFile |