Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/BSplSLib.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1993-11-25
0002 // Created by: Bruno DUMORTIER
0003 // Copyright (c) 1993-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #include <BSplCLib.hxx>
0018 #include <TColgp_Array2OfPnt.hxx>
0019 #include <TColStd_Array2OfReal.hxx>
0020 
0021 //=======================================================================
0022 //function : CoefsD0
0023 //purpose  : 
0024 //=======================================================================
0025 
0026 inline void BSplSLib::CoefsD0(const Standard_Real U, 
0027                               const Standard_Real V, 
0028                               const TColgp_Array2OfPnt& Poles, 
0029                               const TColStd_Array2OfReal* Weights, 
0030                               gp_Pnt& Point)
0031 {
0032   BSplSLib::CacheD0(U, V,
0033                     Poles.RowLength() - 1, Poles.ColLength() - 1, 
0034                     0., 0., 1., 1.,
0035                     Poles, Weights, Point);
0036 }
0037 
0038 //=======================================================================
0039 //function : CoefsD1
0040 //purpose  : 
0041 //=======================================================================
0042 
0043 inline void BSplSLib::CoefsD1(const Standard_Real U, 
0044                               const Standard_Real V, 
0045                               const TColgp_Array2OfPnt& Poles, 
0046                               const TColStd_Array2OfReal* Weights, 
0047                               gp_Pnt& Point, 
0048                               gp_Vec& VecU, 
0049                               gp_Vec& VecV)
0050 {
0051   BSplSLib::CacheD1(U, V,
0052                     Poles.RowLength() - 1, Poles.ColLength() - 1, 
0053                     0., 0., 1., 1.,
0054                     Poles, Weights, Point, VecU, VecV);
0055 }
0056 
0057 //=======================================================================
0058 //function : CoefsD2
0059 //purpose  : 
0060 //=======================================================================
0061 
0062 inline void BSplSLib::CoefsD2(const Standard_Real U, 
0063                               const Standard_Real V, 
0064                               const TColgp_Array2OfPnt& Poles, 
0065                               const TColStd_Array2OfReal* Weights, 
0066                               gp_Pnt& Point,
0067                               gp_Vec& VecU, 
0068                               gp_Vec& VecV, 
0069                               gp_Vec& VecUU, 
0070                               gp_Vec& VecUV, 
0071                               gp_Vec& VecVV)
0072 {
0073   BSplSLib::CacheD2(U, V,
0074                     Poles.RowLength() - 1, Poles.ColLength() - 1, 
0075                     0., 0., 1., 1.,
0076                     Poles, Weights, Point, VecU, VecV,
0077                     VecUU, VecUV, VecVV);
0078 }
0079 
0080 
0081 //=======================================================================
0082 //function : PolesCoefficients
0083 //purpose  : 
0084 //=======================================================================
0085 
0086 inline void BSplSLib::PolesCoefficients(const TColgp_Array2OfPnt& Poles, 
0087                                         TColgp_Array2OfPnt& CachePoles)
0088 {
0089   BSplSLib::PolesCoefficients(Poles, BSplSLib::NoWeights(),
0090                               CachePoles, BSplSLib::NoWeights());
0091 }
0092 
0093 //=======================================================================
0094 //function : NoWeights
0095 //purpose  : 
0096 //=======================================================================
0097 
0098 inline TColStd_Array2OfReal*  BSplSLib::NoWeights()
0099 {
0100   return NULL;
0101 }
0102