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
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 _GeomFill_SimpleBound_HeaderFile
18 #define _GeomFill_SimpleBound_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <GeomFill_Boundary.hxx>
24 #include <Standard_Real.hxx>
25 #include <Standard_Boolean.hxx>
26 class Adaptor3d_HCurve;
32 class GeomFill_SimpleBound;
33 DEFINE_STANDARD_HANDLE(GeomFill_SimpleBound, GeomFill_Boundary)
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
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.
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:
59 //! Handle(Geom_Curve) myCurve = ... ;
60 //! Handle(GeomAdaptor_HCurve)
62 //! GeomAdaptor_HCurve(myCurve);
63 //! - Second sequence:
65 //! Handle(Geom_Curve) myCurve = ... ;
66 //! GeomAdaptor_Curve Crv (myCurve);
68 //! Handle(GeomAdaptor_HCurve)
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);
80 Standard_EXPORT gp_Pnt Value (const Standard_Real U) const Standard_OVERRIDE;
82 Standard_EXPORT void D1 (const Standard_Real U, gp_Pnt& P, gp_Vec& V) const Standard_OVERRIDE;
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;
86 Standard_EXPORT void Bounds (Standard_Real& First, Standard_Real& Last) const Standard_OVERRIDE;
88 Standard_EXPORT Standard_Boolean IsDegenerated() const Standard_OVERRIDE;
93 DEFINE_STANDARD_RTTIEXT(GeomFill_SimpleBound,GeomFill_Boundary)
103 Handle(Adaptor3d_HCurve) myC3d;
104 Handle(Law_Function) myPar;
115 #endif // _GeomFill_SimpleBound_HeaderFile