// File: BSplCLib.lxx // Created: Tue May 4 16:02:54 1993 // Author: Philippe DAUTRY // // Copyright: Matra Datavision 1993 #include #include #include //======================================================================= //function : MaxDegree //purpose : //======================================================================= inline Standard_Integer BSplCLib::MaxDegree () { return 25; } //======================================================================= //function : NoWeights //purpose : //======================================================================= inline TColStd_Array1OfReal& BSplCLib::NoWeights() { return (*((TColStd_Array1OfReal*) NULL)); } //======================================================================= //function : NoMults //purpose : //======================================================================= inline TColStd_Array1OfInteger& BSplCLib::NoMults() { return (*((TColStd_Array1OfInteger*) NULL)); } //======================================================================= //function : CoefsD0 //purpose : //======================================================================= inline void BSplCLib::CoefsD0(const Standard_Real U, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt& P) { BSplCLib::CacheD0(U, Poles.Length() -1, 0., 1., Poles, Weights, P); } //======================================================================= //function : CoefsD0 //purpose : //======================================================================= inline void BSplCLib::CoefsD0(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt2d& P) { BSplCLib::CacheD0(U, Poles.Length() -1, 0., 1., Poles, Weights, P); } //======================================================================= //function : CoefsD1 //purpose : //======================================================================= inline void BSplCLib::CoefsD1(const Standard_Real U, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt& P, gp_Vec& Vec) { BSplCLib::CacheD1(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec); } //======================================================================= //function : CoefsD1 //purpose : //======================================================================= inline void BSplCLib::CoefsD1(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt2d& P, gp_Vec2d& Vec) { BSplCLib::CacheD1(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec); } //======================================================================= //function : CoefsD2 //purpose : //======================================================================= inline void BSplCLib::CoefsD2(const Standard_Real U, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt& P, gp_Vec& Vec1, gp_Vec& Vec2) { BSplCLib::CacheD2(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec1, Vec2); } //======================================================================= //function : CoefsD2 //purpose : //======================================================================= inline void BSplCLib::CoefsD2(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt2d& P, gp_Vec2d& Vec1, gp_Vec2d& Vec2) { BSplCLib::CacheD2(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec1, Vec2); } //======================================================================= //function : CoefsD3 //purpose : //======================================================================= inline void BSplCLib::CoefsD3(const Standard_Real U, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt& P, gp_Vec& Vec1, gp_Vec& Vec2, gp_Vec& Vec3) { BSplCLib::CacheD3(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec1, Vec2, Vec3); } //======================================================================= //function : CoefsD3 //purpose : //======================================================================= inline void BSplCLib::CoefsD3(const Standard_Real U, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& Weights, gp_Pnt2d& P, gp_Vec2d& Vec1, gp_Vec2d& Vec2, gp_Vec2d& Vec3) { BSplCLib::CacheD3(U, Poles.Length() -1, 0., 1., Poles, Weights, P, Vec1, Vec2, Vec3); } //======================================================================= //function : PolesCoefficients //purpose : //======================================================================= inline void BSplCLib::PolesCoefficients (const TColgp_Array1OfPnt& Poles, TColgp_Array1OfPnt& CachePoles) { BSplCLib::PolesCoefficients(Poles, PLib::NoWeights(), CachePoles, PLib::NoWeights()); } //======================================================================= //function : PolesCoefficients //purpose : //======================================================================= inline void BSplCLib::PolesCoefficients (const TColgp_Array1OfPnt2d& Poles, TColgp_Array1OfPnt2d& CachePoles) { BSplCLib::PolesCoefficients(Poles, PLib::NoWeights(), CachePoles, PLib::NoWeights()); }