1 // Created on: 1993-11-25
2 // Created by: Bruno DUMORTIER
3 // Copyright (c) 1993-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 #include <BSplCLib.hxx>
18 #include <TColgp_Array2OfPnt.hxx>
19 #include <TColStd_Array2OfReal.hxx>
21 //=======================================================================
24 //=======================================================================
26 inline void BSplSLib::CoefsD0(const Standard_Real U,
27 const Standard_Real V,
28 const TColgp_Array2OfPnt& Poles,
29 const TColStd_Array2OfReal* Weights,
32 BSplSLib::CacheD0(U, V,
33 Poles.RowLength() - 1, Poles.ColLength() - 1,
35 Poles, Weights, Point);
38 //=======================================================================
41 //=======================================================================
43 inline void BSplSLib::CoefsD1(const Standard_Real U,
44 const Standard_Real V,
45 const TColgp_Array2OfPnt& Poles,
46 const TColStd_Array2OfReal* Weights,
51 BSplSLib::CacheD1(U, V,
52 Poles.RowLength() - 1, Poles.ColLength() - 1,
54 Poles, Weights, Point, VecU, VecV);
57 //=======================================================================
60 //=======================================================================
62 inline void BSplSLib::CoefsD2(const Standard_Real U,
63 const Standard_Real V,
64 const TColgp_Array2OfPnt& Poles,
65 const TColStd_Array2OfReal* Weights,
73 BSplSLib::CacheD2(U, V,
74 Poles.RowLength() - 1, Poles.ColLength() - 1,
76 Poles, Weights, Point, VecU, VecV,
81 //=======================================================================
82 //function : PolesCoefficients
84 //=======================================================================
86 inline void BSplSLib::PolesCoefficients(const TColgp_Array2OfPnt& Poles,
87 TColgp_Array2OfPnt& CachePoles)
89 BSplSLib::PolesCoefficients(Poles, BSplSLib::NoWeights(),
90 CachePoles, BSplSLib::NoWeights());
93 //=======================================================================
94 //function : NoWeights
96 //=======================================================================
98 inline TColStd_Array2OfReal* BSplSLib::NoWeights()