1 // Created on: 1997-12-05
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_TrihedronLaw.hxx>
21 #include <Standard_NotImplemented.hxx>
22 #include <Standard_OutOfRange.hxx>
23 #include <Standard_Type.hxx>
25 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_TrihedronLaw,MMgt_TShared)
27 void GeomFill_TrihedronLaw::SetCurve(const Handle(Adaptor3d_HCurve)& C)
33 //==================================================================
34 //Function : ErrorStatus
36 //==================================================================
37 GeomFill_PipeError GeomFill_TrihedronLaw::ErrorStatus() const
39 return GeomFill_PipeOk;
42 Standard_Boolean GeomFill_TrihedronLaw::D1(const Standard_Real,
43 gp_Vec& ,gp_Vec&,gp_Vec&,
44 gp_Vec&,gp_Vec&,gp_Vec& )
46 Standard_NotImplemented::Raise(" GeomFill_TrihedronLaw::D2");
47 return Standard_False;
50 Standard_Boolean GeomFill_TrihedronLaw::D2(const Standard_Real,
51 gp_Vec& ,gp_Vec&,gp_Vec&,
52 gp_Vec& ,gp_Vec&,gp_Vec&,
53 gp_Vec&,gp_Vec& ,gp_Vec&)
55 Standard_NotImplemented::Raise(" GeomFill_TrihedronLaw::D2");
56 return Standard_False;
59 void GeomFill_TrihedronLaw::SetInterval(const Standard_Real First,
60 const Standard_Real Last)
62 myTrimmed = myCurve->Trim(First, Last, 0);
65 void GeomFill_TrihedronLaw::GetInterval(Standard_Real& First,
68 First = myTrimmed->FirstParameter();
69 Last = myTrimmed->LastParameter();
72 Standard_Boolean GeomFill_TrihedronLaw::IsConstant() const
74 return Standard_False;
77 Standard_Boolean GeomFill_TrihedronLaw::IsOnlyBy3dCurve() const
79 return Standard_False;