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 <GeomFill_TrihedronLaw.hxx>
20 #include <Standard_NotImplemented.hxx>
21 #include <Standard_Type.hxx>
23 IMPLEMENT_STANDARD_RTTIEXT(GeomFill_TrihedronLaw,Standard_Transient)
25 Standard_Boolean GeomFill_TrihedronLaw::SetCurve(const Handle(Adaptor3d_Curve)& C)
32 //==================================================================
33 //Function : ErrorStatus
35 //==================================================================
36 GeomFill_PipeError GeomFill_TrihedronLaw::ErrorStatus() const
38 return GeomFill_PipeOk;
41 Standard_Boolean GeomFill_TrihedronLaw::D1(const Standard_Real,
42 gp_Vec& ,gp_Vec&,gp_Vec&,
43 gp_Vec&,gp_Vec&,gp_Vec& )
45 throw Standard_NotImplemented(" GeomFill_TrihedronLaw::D2");
48 Standard_Boolean GeomFill_TrihedronLaw::D2(const Standard_Real,
49 gp_Vec& ,gp_Vec&,gp_Vec&,
50 gp_Vec& ,gp_Vec&,gp_Vec&,
51 gp_Vec&,gp_Vec& ,gp_Vec&)
53 throw Standard_NotImplemented(" GeomFill_TrihedronLaw::D2");
56 void GeomFill_TrihedronLaw::SetInterval(const Standard_Real First,
57 const Standard_Real Last)
59 myTrimmed = myCurve->Trim(First, Last, 0);
62 void GeomFill_TrihedronLaw::GetInterval(Standard_Real& First,
65 First = myTrimmed->FirstParameter();
66 Last = myTrimmed->LastParameter();
69 Standard_Boolean GeomFill_TrihedronLaw::IsConstant() const
71 return Standard_False;
74 Standard_Boolean GeomFill_TrihedronLaw::IsOnlyBy3dCurve() const
76 return Standard_False;