1 // Created on: 1997-10-31
2 // Created by: Joelle CHAUVET
3 // Copyright (c) 1997-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 _BRepFill_CurveConstraint_HeaderFile
18 #define _BRepFill_CurveConstraint_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <GeomPlate_CurveConstraint.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Standard_Real.hxx>
26 class Standard_ConstructionError;
27 class Adaptor3d_HCurveOnSurface;
28 class Adaptor3d_HCurve;
31 class BRepFill_CurveConstraint;
32 DEFINE_STANDARD_HANDLE(BRepFill_CurveConstraint, GeomPlate_CurveConstraint)
34 //! same as CurveConstraint from GeomPlate
35 //! with BRepAdaptor_Surface instead of
36 //! GeomAdaptor_Surface
37 class BRepFill_CurveConstraint : public GeomPlate_CurveConstraint
43 //! Create a constraint
44 //! Order is the order of the constraint. The possible values for order are -1,0,1,2.
45 //! Order i means constraints Gi
46 //! Npt is the number of points associated with the constraint.
47 //! TolDist is the maximum error to satisfy for G0 constraints
48 //! TolAng is the maximum error to satisfy for G1 constraints
49 //! TolCurv is the maximum error to satisfy for G2 constraints
50 //! These errors can be replaced by laws of criterion.
51 Standard_EXPORT BRepFill_CurveConstraint(const Handle(Adaptor3d_HCurveOnSurface)& Boundary, const Standard_Integer Order, const Standard_Integer NPt = 10, const Standard_Real TolDist = 0.0001, const Standard_Real TolAng = 0.01, const Standard_Real TolCurv = 0.1);
53 Standard_EXPORT BRepFill_CurveConstraint(const Handle(Adaptor3d_HCurve)& Boundary, const Standard_Integer Tang, const Standard_Integer NPt = 10, const Standard_Real TolDist = 0.0001);
58 DEFINE_STANDARD_RTTIEXT(BRepFill_CurveConstraint,GeomPlate_CurveConstraint)
78 #endif // _BRepFill_CurveConstraint_HeaderFile