1 // Created on: 1998-10-29
2 // Created by: Philippe MANGIN
3 // Copyright (c) 1998-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_PlanFunc.hxx>
23 GeomFill_PlanFunc::GeomFill_PlanFunc(const gp_Pnt& theP,
25 const Handle(Adaptor3d_HCurve)& theC) :
33 Standard_Boolean GeomFill_PlanFunc::Value(const Standard_Real X,
37 V.SetLinearForm(-1, myPnt, G.XYZ());
42 Standard_Boolean GeomFill_PlanFunc::Derivative(const Standard_Real X,
46 myCurve->D1(X, G, dg);
47 D = myVec.Dot(dg.XYZ());
52 Standard_Boolean GeomFill_PlanFunc::Values(const Standard_Real X,
57 myCurve->D1(X, G, dg);
58 V.SetLinearForm(-1, myPnt, G.XYZ());
60 D = myVec.Dot(dg.XYZ());
65 //void GeomFill_PlanFunc::D2(const Standard_Real X,
69 void GeomFill_PlanFunc::D2(const Standard_Real ,
77 void GeomFill_PlanFunc::DEDT(const Standard_Real X,
83 V.SetLinearForm(-1, myPnt, G.XYZ());
84 DFDT = DVec.Dot(V) - myVec.Dot(DPnt.XYZ());
89 void GeomFill_PlanFunc::D2E(const Standard_Real X,
98 Standard_Real& /*D2FDT2*/,
99 // Standard_Real& D2FDTDX)
103 myCurve->D1(X, G, dg);
105 V.SetLinearForm(-1, myPnt, G.XYZ());
106 DVDT.SetLinearForm(-1, DP.XYZ(), G.XYZ());
107 DFDT = DV.Dot(V) + myVec.Dot(DVDT);