1 // Created on: 1997-11-21
2 // Created by: Philippe MANGIN
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.
18 #include <Adaptor3d_HCurve.hxx>
19 #include <GeomFill_LocationLaw.hxx>
23 #include <Standard_NotImplemented.hxx>
24 #include <Standard_OutOfRange.hxx>
25 #include <Standard_Type.hxx>
27 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_LocationLaw,Standard_Transient)
29 Standard_Boolean GeomFill_LocationLaw::D1(const Standard_Real, gp_Mat&, gp_Vec&,gp_Mat&, gp_Vec&,TColgp_Array1OfPnt2d&,TColgp_Array1OfVec2d&)
31 throw Standard_NotImplemented("GeomFill_LocationLaw::D1");
34 Standard_Boolean GeomFill_LocationLaw::D2(const Standard_Real,
38 TColgp_Array1OfPnt2d&,TColgp_Array1OfVec2d&,TColgp_Array1OfVec2d&)
40 throw Standard_NotImplemented("GeomFill_LocationLaw::D2");
43 Standard_Integer GeomFill_LocationLaw::Nb2dCurves() const
45 Standard_Integer N = TraceNumber();
46 if (HasFirstRestriction()) N++;
47 if (HasLastRestriction()) N++;
52 Standard_Boolean GeomFill_LocationLaw::HasFirstRestriction() const
54 return Standard_False;
57 Standard_Boolean GeomFill_LocationLaw::HasLastRestriction() const
59 return Standard_False;
62 Standard_Integer GeomFill_LocationLaw::TraceNumber() const
67 //==================================================================
68 //Function : ErrorStatus
70 //==================================================================
71 GeomFill_PipeError GeomFill_LocationLaw::ErrorStatus() const
73 return GeomFill_PipeOk;
76 // void GeomFill_LocationLaw::Resolution(const Standard_Integer Index,const Standard_Real Tol,Standard_Real& TolU,Standard_Real& TolV) const
77 void GeomFill_LocationLaw::Resolution(const Standard_Integer ,const Standard_Real ,Standard_Real& ,Standard_Real& ) const
79 throw Standard_NotImplemented("GeomFill_LocationLaw::Resolution");
82 void GeomFill_LocationLaw::SetTolerance(const Standard_Real,
87 Standard_Boolean GeomFill_LocationLaw::IsTranslation(Standard_Real&) const
89 return Standard_False;
92 Standard_Boolean GeomFill_LocationLaw::IsRotation(Standard_Real&) const
94 return Standard_False;
96 void GeomFill_LocationLaw::Rotation(gp_Pnt&) const
98 throw Standard_NotImplemented("GeomFill_SectionLaw::Rotation");