Added missing "static" to internal methods of GeomFill package.
//purpose :
//=======================================================================
-Handle(Geom_BSplineSurface) BSplineSurfaceBuilder
- (const Convert_ElementarySurfaceToBSplineSurface& Convert)
+static Handle(Geom_BSplineSurface) BSplineSurfaceBuilder (const Convert_ElementarySurfaceToBSplineSurface& Convert)
{
Handle(Geom_BSplineSurface) TheSurface;
Standard_Integer UDegree = Convert.UDegree ();
// ----->-----
// CC1 = C1
//=======================================================================
-Standard_Boolean Arrange(const Handle(Geom_BSplineCurve)& C1,
+static Standard_Boolean Arrange(const Handle(Geom_BSplineCurve)& C1,
const Handle(Geom_BSplineCurve)& C2,
const Handle(Geom_BSplineCurve)& C3,
const Handle(Geom_BSplineCurve)& C4,
//purpose : Internal Use Only
//=======================================================================
-Standard_Integer SetSameDistribution(Handle(Geom_BSplineCurve)& C1,
+static Standard_Integer SetSameDistribution(Handle(Geom_BSplineCurve)& C1,
Handle(Geom_BSplineCurve)& C2 )
{
Standard_Integer nbp1 = C1->NbPoles();
// the geometry of the curve.
// Only the length of the derivatives are changed.
//=======================================================================
-void SetSameWeights(TColStd_Array1OfReal& W1,
+static void SetSameWeights(TColStd_Array1OfReal& W1,
TColStd_Array1OfReal& W2,
TColStd_Array1OfReal& W3,
TColStd_Array1OfReal& W4 )
// CC1 = C1
//=======================================================================
-Standard_Boolean Arrange(const Handle(Geom_BezierCurve)& C1,
+static Standard_Boolean Arrange(const Handle(Geom_BezierCurve)& C1,
const Handle(Geom_BezierCurve)& C2,
const Handle(Geom_BezierCurve)& C3,
const Handle(Geom_BezierCurve)& C4,
static Standard_Integer NbSections = 0;
#endif
-const Standard_Real TolAng = 1.e-6;
+static const Standard_Real TolAng = 1.e-6;
-GeomAbs_Shape GeomFillNextShape(const GeomAbs_Shape S)
+static GeomAbs_Shape GeomFillNextShape(const GeomAbs_Shape S)
{
switch (S) {
case GeomAbs_C0 :
}
}
-void GeomFillFusInt(const TColStd_Array1OfReal& I1,
+static void GeomFillFusInt(const TColStd_Array1OfReal& I1,
const TColStd_Array1OfReal& I2,
TColStd_SequenceOfReal& Seq)
{
//function : NormalD1
//purpose : computes Normal to Surface and its first derivative
//=======================================================================
-void NormalD1 (const Standard_Real U, const Standard_Real V,
+static void NormalD1 (const Standard_Real U, const Standard_Real V,
const Handle(Adaptor3d_HSurface)& Surf, gp_Dir& Normal,
gp_Vec& D1UNormal, gp_Vec& D1VNormal)
{
//function : NormalD2
//purpose : computes Normal to Surface and its first and second derivatives
//=======================================================================
-void NormalD2 (const Standard_Real U, const Standard_Real V,
+static void NormalD2 (const Standard_Real U, const Standard_Real V,
const Handle(Adaptor3d_HSurface)& Surf, gp_Dir& Normal,
gp_Vec& D1UNormal, gp_Vec& D1VNormal,
gp_Vec& D2UNormal, gp_Vec& D2VNormal, gp_Vec& D2UVNormal)
#ifdef OCCT_DEBUG
// verification des fonctions de derivation D1 et D2 par differences finies
-Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
+static Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
const TColStd_Array1OfReal& W1,
const TColgp_Array1OfPnt& P2,
const TColStd_Array1OfReal& W2,
return ok;
}
-Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
+static Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
const TColStd_Array1OfReal& DW1,
const TColgp_Array1OfVec& DP2,
const TColStd_Array1OfReal& DW2,
//function : UnifyByInsertingAllKnots
//purpose :
//=======================================================================
-void UnifyByInsertingAllKnots(TColGeom_SequenceOfCurve& theCurves,
+static void UnifyByInsertingAllKnots(TColGeom_SequenceOfCurve& theCurves,
const Standard_Real PTol)
{
// inserting in the first curve the knot-vector of all the others.
//function : UnifyBySettingMiddleKnots
//purpose :
//=======================================================================
-void UnifyBySettingMiddleKnots(TColGeom_SequenceOfCurve& theCurves)
+static void UnifyBySettingMiddleKnots(TColGeom_SequenceOfCurve& theCurves)
{
Standard_Integer i, j;
#include <NCollection_StdAllocator.hxx>
#include <TColStd_Array1OfListOfInteger.hxx>
+namespace
+{
class ProjectPointOnSurf
{
public:
StdFail_NotDone_Raise_if(!myIsDone, "GeomInt_IntSS::ProjectPointOnSurf::LowerDistance");
return sqrt(myExtPS.SquareDistance(myIndex));
}
+}
//=======================================================================
//function : AdjustPeriodic
#include <gp_Vec.hxx>
#include <Precision.hxx>
-Standard_Integer GeomAbsToInteger(const GeomAbs_Shape gcont)
+static Standard_Integer GeomAbsToInteger(const GeomAbs_Shape gcont)
{
Standard_Integer cont=0 ;
switch (gcont) {