1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

186
src/BSplCLib/BSplCLib.lxx Executable file
View File

@@ -0,0 +1,186 @@
// File: BSplCLib.lxx
// Created: Tue May 4 16:02:54 1993
// Author: Philippe DAUTRY
// <fid@meteox>
// Copyright: Matra Datavision 1993
#include <PLib.hxx>
#include <TColgp_Array1OfPnt.hxx>
#include <TColgp_Array1OfPnt2d.hxx>
//=======================================================================
//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());
}