42cf5bc1 |
1 | // Created on: 1995-11-03 |
2 | // Created by: Laurent BOURESCHE |
3 | // Copyright (c) 1995-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 _GeomFill_SimpleBound_HeaderFile |
18 | #define _GeomFill_SimpleBound_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <GeomFill_Boundary.hxx> |
24 | #include <Standard_Real.hxx> |
25 | #include <Standard_Boolean.hxx> |
26 | class Adaptor3d_HCurve; |
27 | class Law_Function; |
28 | class gp_Pnt; |
29 | class gp_Vec; |
30 | |
31 | |
32 | class GeomFill_SimpleBound; |
33 | DEFINE_STANDARD_HANDLE(GeomFill_SimpleBound, GeomFill_Boundary) |
34 | |
35 | //! Defines a 3d curve as a boundary for a |
36 | //! GeomFill_ConstrainedFilling algorithm. |
37 | //! This curve is unattached to an existing surface.D |
38 | //! Contains fields to allow a reparametrization of curve. |
39 | class GeomFill_SimpleBound : public GeomFill_Boundary |
40 | { |
41 | |
42 | public: |
43 | |
44 | |
45 | |
46 | //! Constructs the boundary object defined by the 3d curve. |
47 | //! The surface to be built along this boundary will be in the |
48 | //! tolerance range defined by Tol3d. |
49 | //! This object is to be used as a boundary for a |
50 | //! GeomFill_ConstrainedFilling framework. |
51 | //! Dummy is initialized but has no function in this class. |
52 | //! Warning |
53 | //! Curve is an adapted curve, that is, an object which is an interface between: |
54 | //! - the services provided by a 3D curve from the package Geom |
55 | //! - and those required of the curve by the computation |
56 | //! algorithm which uses it. |
57 | //! The adapted curve is created in one of the following ways: |
58 | //! - First sequence: |
59 | //! Handle(Geom_Curve) myCurve = ... ; |
60 | //! Handle(GeomAdaptor_HCurve) |
61 | //! Curve = new |
62 | //! GeomAdaptor_HCurve(myCurve); |
63 | //! - Second sequence: |
64 | //! // Step 1 |
65 | //! Handle(Geom_Curve) myCurve = ... ; |
66 | //! GeomAdaptor_Curve Crv (myCurve); |
67 | //! // Step 2 |
68 | //! Handle(GeomAdaptor_HCurve) |
69 | //! Curve = new |
70 | //! GeomAdaptor_HCurve(Crv); |
71 | //! You use the second part of this sequence if you already |
72 | //! have the adapted curve Crv. |
73 | //! The boundary is then constructed with the Curve object: |
74 | //! Standard_Real Tol = ... ; |
75 | //! Standard_Real dummy = 0. ; |
76 | //! myBoundary = GeomFill_SimpleBound |
77 | //! (Curve,Tol,dummy); |
78 | Standard_EXPORT GeomFill_SimpleBound(const Handle(Adaptor3d_HCurve)& Curve, const Standard_Real Tol3d, const Standard_Real Tolang); |
79 | |
79104795 |
80 | Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE; |
42cf5bc1 |
81 | |
79104795 |
82 | Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE; |
42cf5bc1 |
83 | |
79104795 |
84 | Standard_EXPORT void Reparametrize (const Standard_Real First, const Standard_Real Last, const Standard_Boolean HasDF, const Standard_Boolean HasDL, const Standard_Real DF, const Standard_Real DL, const Standard_Boolean Rev) Standard_OVERRIDE; |
42cf5bc1 |
85 | |
79104795 |
86 | Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE; |
42cf5bc1 |
87 | |
79104795 |
88 | Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE; |
42cf5bc1 |
89 | |
90 | |
91 | |
92 | |
92efcf78 |
93 | DEFINE_STANDARD_RTTIEXT(GeomFill_SimpleBound,GeomFill_Boundary) |
42cf5bc1 |
94 | |
95 | protected: |
96 | |
97 | |
98 | |
99 | |
100 | private: |
101 | |
102 | |
103 | Handle(Adaptor3d_HCurve) myC3d; |
104 | Handle(Law_Function) myPar; |
105 | |
106 | |
107 | }; |
108 | |
109 | |
110 | |
111 | |
112 | |
113 | |
114 | |
115 | #endif // _GeomFill_SimpleBound_HeaderFile |