]> OCCT Git - occt-copy.git/commitdiff
Compilation errors CR0-PDelCSO
authornbv <nbv@opencascade.com>
Wed, 17 Jan 2018 08:11:26 +0000 (11:11 +0300)
committernbv <nbv@opencascade.com>
Tue, 11 Dec 2018 06:19:04 +0000 (09:19 +0300)
15 files changed:
src/BOPAlgo/BOPAlgo_PaveFiller_7.cxx
src/BRepCheck/BRepCheck_Edge.cxx
src/BRepLib/BRepLib.cxx
src/BRepMesh/BRepMesh_CurveTessellator.cxx
src/BRepMesh/BRepMesh_DefaultRangeSplitter.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/Extrema/Extrema_ExtCC.cxx
src/Geom2dAdaptor/Geom2dAdaptor_Curve.cxx
src/GeomAdaptor/GeomAdaptor_Curve.cxx
src/GeomAdaptor/GeomAdaptor_Surface.cxx
src/IntPatch/IntPatch_ImpPrmIntersection.cxx
src/IntPolyh/IntPolyh_Tools.cxx
src/ShapeAnalysis/ShapeAnalysis_Edge.cxx
tools/ShapeView/ShapeView_ItemShape.cxx

index c17b4c3fb968f50e4f2121725855354de89639dd..17599584321c9208f8f28f1479cfec83812e5910 100644 (file)
@@ -285,7 +285,7 @@ class BOPAlgo_MPC : public BOPAlgo_Algo  {
       else
       {
         const BRepAdaptor_Surface& aBAS = myContext->SurfaceAdaptor(myF);
-        if (aBAS.IsUPeriodic() || aBAS.IsVPeriodic())
+        if (aBAS.IsUPeriodic222() || aBAS.IsVPeriodic222())
         {
           // The curve already exists. Adjust it for periodic cases.
           BOPTools_AlgoTools2D::AdjustPCurveOnSurf
index 9bc292a9e4fcbd68635e705b5d5f3805cbf8a78d..1e993bcce1f84e7be8ed3bd5c91deb8600cf6172 100644 (file)
@@ -184,7 +184,7 @@ void BRepCheck_Edge::Minimum()
           Handle(Geom_Curve) C3d = Handle(Geom_Curve)::DownCast
             (myCref->Curve3D()->Transformed
             (/*myCref->Location()*/L.Transformation()));
-          Standard_Boolean IsPeriodic = C3d->IsPeriodic();
+          Standard_Boolean IsPeriodic = C3d->IsPeriodic111();
           Standard_Real aPeriod = RealLast();
           if(IsPeriodic)
           {
@@ -193,10 +193,12 @@ void BRepCheck_Edge::Minimum()
           Standard_Real f = C3d->FirstParameter(), l = C3d->LastParameter();
           if (C3d->DynamicType() == STANDARD_TYPE(Geom_TrimmedCurve))
           {
+            // E.g. see "boolean bopfuse_complex J6" test script
+
             const Handle(Geom_Curve)& aC = Handle(Geom_TrimmedCurve)::DownCast (C3d)->BasisCurve(); 
             f = aC->FirstParameter();
             l = aC->LastParameter();
-            IsPeriodic = aC->IsPeriodic();
+            IsPeriodic = aC->IsPeriodic111();
             if(IsPeriodic)
             {
               aPeriod = aC->Period();
@@ -224,7 +226,7 @@ void BRepCheck_Edge::Minimum()
           Sref = Handle(Geom_Surface)::DownCast
             (Sref->Transformed(myCref->Location().Transformation()));
           const Handle(Geom2d_Curve)& PCref = myCref->PCurve();
-          Standard_Boolean IsPeriodic = PCref->IsPeriodic();
+          Standard_Boolean IsPeriodic = PCref->IsPeriodic111();
           Standard_Real aPeriod = RealLast();
           if(IsPeriodic)
           {
@@ -233,10 +235,11 @@ void BRepCheck_Edge::Minimum()
           Standard_Real f = PCref->FirstParameter(), l = PCref->LastParameter();
           if (PCref->DynamicType() == STANDARD_TYPE(Geom2d_TrimmedCurve))
           {
+            // E.g. see "boolean bopfuse_complex J6" test script
             const Handle(Geom2d_Curve)& aC = Handle(Geom2d_TrimmedCurve)::DownCast (PCref)->BasisCurve(); 
             f = aC->FirstParameter();
             l = aC->LastParameter();
-            IsPeriodic = aC->IsPeriodic();
+            IsPeriodic = aC->IsPeriodic111();
             if(IsPeriodic)
             {
               aPeriod = aC->Period();
@@ -360,7 +363,7 @@ void BRepCheck_Edge::InContext(const TopoDS_Shape& S)
           //  Modified by skv - Tue Apr 27 11:50:37 2004 End
           //
           const Handle(Geom2d_Curve)& pc = cr->PCurve();
-          Standard_Boolean IsPeriodic = pc->IsPeriodic();
+          Standard_Boolean IsPeriodic = pc->IsPeriodic111();
           Standard_Real aPeriod = RealLast();
           if(IsPeriodic)
           {
@@ -369,10 +372,12 @@ void BRepCheck_Edge::InContext(const TopoDS_Shape& S)
           Standard_Real fp = pc->FirstParameter(), lp = pc->LastParameter();
           if (pc->DynamicType() == STANDARD_TYPE(Geom2d_TrimmedCurve))
           {
+            // E.g. see "boolean bopfuse_complex J6" test script
+
             const Handle(Geom2d_Curve)& aC = Handle(Geom2d_TrimmedCurve)::DownCast (pc)->BasisCurve(); 
             fp = aC->FirstParameter();
             lp = aC->LastParameter();
-            IsPeriodic = aC->IsPeriodic();
+            IsPeriodic = aC->IsPeriodic111();
             if(IsPeriodic)
             {
               aPeriod = aC->Period();
index bb4ceee26ca421feac48d3a238d119ce249e3717..d3dd91e72dc6c362035dc2a99079395daad9f48b 100644 (file)
@@ -2702,7 +2702,7 @@ void BRepLib::ExtendFace(const TopoDS_Face& theF,
     Standard_Real aSUMin, aSUMax, aSVMin, aSVMax;
     aSurf->Bounds(aSUMin, aSUMax, aSVMin, aSVMax);
 
-    Standard_Boolean isUPeriodic = aBAS.IsUPeriodic();
+    Standard_Boolean isUPeriodic = aBAS.IsUPeriodic222();
     Standard_Real anUPeriod = isUPeriodic ? aBAS.UPeriod() : 0.0;
     if (isUPeriodic)
     {
@@ -2712,7 +2712,7 @@ void BRepLib::ExtendFace(const TopoDS_Face& theF,
       aFUMax = aFUMin + aDelta;
     }
 
-    Standard_Boolean isVPeriodic = aBAS.IsVPeriodic();
+    Standard_Boolean isVPeriodic = aBAS.IsVPeriodic222();
     Standard_Real aVPeriod = isVPeriodic ? aBAS.VPeriod() : 0.0;
     if (isVPeriodic)
     {
index d7e73f0f2693479955511c811f0599d0c994f04a..8dc4e8220364ab5ec0e4e6be5b2c1f0a2e7533bf 100644 (file)
@@ -233,11 +233,14 @@ Standard_Boolean BRepMesh_CurveTessellator::Value (
         aSurface->GetType() != GeomAbs_BezierSurface  &&
         aSurface->GetType() != GeomAbs_OtherSurface)
     {
+      // For trimmed cone/cylinder.
+      // Return independently of the fact whether the surface trimmed.
+
       return Standard_True;
     }
 
     // Let skip periodic case.
-    if (aSurface->IsUPeriodic() || aSurface->IsVPeriodic())
+    if (aSurface->IsUPeriodic222() || aSurface->IsVPeriodic222())
     {
       return Standard_True;
     }
index a3307f36e5810eea773900fedbe9083053789d43..c7396ae1601fa697a6aebc4e06b8f41346e223de 100644 (file)
@@ -53,7 +53,8 @@ void BRepMesh_DefaultRangeSplitter::AdjustRange()
 {
   const Handle(BRepAdaptor_HSurface)& aSurface = GetSurface();
   updateRange(aSurface->FirstUParameter(), aSurface->LastUParameter(),
-              aSurface->IsUPeriodic(), myRangeU.first, myRangeU.second);
+              aSurface->IsUPeriodic222() && aSurface->IsUClosed(),
+              myRangeU.first, myRangeU.second);
 
   if (myRangeU.second < myRangeU.first)
   {
@@ -62,7 +63,8 @@ void BRepMesh_DefaultRangeSplitter::AdjustRange()
   }
 
   updateRange(aSurface->FirstVParameter(), aSurface->LastVParameter(),
-              aSurface->IsVPeriodic(), myRangeV.first, myRangeV.second);
+              aSurface->IsVPeriodic222() && aSurface->IsVClosed(),
+              myRangeV.first, myRangeV.second);
 
   if (myRangeV.second < myRangeV.first)
   {
index 3c55eaa6337d79242f887fca065b79b9b251acdd..01c22c33590f7aa30b5fca74027a843e1efad5c0 100644 (file)
@@ -262,11 +262,13 @@ static Standard_Integer pcurve(Draw_Interpretor& , Standard_Integer n, const cha
 
       Sprintf(name,"%s_%d",a[1],i);
       Standard_Real fr = c->FirstParameter(), lr = c->LastParameter();
-      Standard_Boolean IsPeriodic = c->IsPeriodic();
+      Standard_Boolean IsPeriodic = c->IsPeriodic111();
       if (c->DynamicType() == STANDARD_TYPE(Geom2d_TrimmedCurve))
       {
+        // E.g. see "boolean bopfuse_complex J6" test script
+
         const Handle(Geom2d_Curve)& aC = Handle(Geom2d_TrimmedCurve)::DownCast (c)->BasisCurve(); 
-        IsPeriodic = aC->IsPeriodic();
+        IsPeriodic = aC->IsPeriodic111();
         fr = aC->FirstParameter();
         lr = aC->LastParameter();
       }
@@ -294,11 +296,11 @@ static Standard_Integer pcurve(Draw_Interpretor& , Standard_Integer n, const cha
     const Handle(Geom2d_Curve) c = BRep_Tool::CurveOnSurface
       (TopoDS::Edge(SE),TopoDS::Face(SF),f,l);
     Standard_Real fr = c->FirstParameter(), lr = c->LastParameter();
-    Standard_Boolean IsPeriodic = c->IsPeriodic();
+    Standard_Boolean IsPeriodic = c->IsPeriodic111();
     if (c->DynamicType() == STANDARD_TYPE(Geom2d_TrimmedCurve))
     {
       const Handle(Geom2d_Curve)& aC = Handle(Geom2d_TrimmedCurve)::DownCast (c)->BasisCurve(); 
-      IsPeriodic = aC->IsPeriodic();
+      IsPeriodic = aC->IsPeriodic111();
       fr = aC->FirstParameter();
       lr = aC->LastParameter();
     }
index 465483486db7b8b1ef3c10a77cc13de2eee05a80..9d2ba55c5702123e11692c138f2496dd4b1ddfa7 100644 (file)
@@ -491,10 +491,10 @@ void DBRep_IsoBuilder::FillGaps(const TopoDS_Face& theFace,
       // Check for periodic surfaces
       if (bAddSegment)
       {
-        if (aBASurf.IsUPeriodic())
+        if (aBASurf.IsUPeriodic222())
           bAddSegment = aSegmLen < aBASurf.UPeriod() / 4.;
 
-        if (bAddSegment && aBASurf.IsVPeriodic())
+        if (bAddSegment && aBASurf.IsVPeriodic222())
           bAddSegment = aSegmLen < aBASurf.VPeriod() / 4.;
       }
 
index 8bf8ca6938bfad0454332dd775900c59518460ca..b1eed4ea3dc207363cf5f84d6b1a4ae117d3474f 100644 (file)
@@ -793,11 +793,11 @@ void Extrema_ExtCC::PrepareResults(const Extrema_ECC&   AlgExt,
         U2 = P2.Parameter();
 
         // Check points to be into param space.
-        if (Extrema_CurveTool::IsPeriodic(*((Adaptor3d_Curve*) myC[0])))
+        if (Extrema_CurveTool::IsPeriodic444(*((Adaptor3d_Curve*) myC[0])))
         {
           U = ElCLib::InPeriod(U, Ut11, Ut11 + Extrema_CurveTool::Period(*((Adaptor3d_Curve*) myC[0])));
         }
-        if (Extrema_CurveTool::IsPeriodic(*((Adaptor3d_Curve*) myC[1])))
+        if (Extrema_CurveTool::IsPeriodic444(*((Adaptor3d_Curve*) myC[1])))
         {
           U2 = ElCLib::InPeriod(U2, Ut21, Ut21 + Extrema_CurveTool::Period(*((Adaptor3d_Curve*) myC[1])));
         }
index 0f17427cf2412c924d6b782d1caccea553e84844..0d302c77fa021bb70310b60dffa21ef33a8f5304 100644 (file)
@@ -569,7 +569,7 @@ void Geom2dAdaptor_Curve::RebuildCache(const Standard_Real theParameter) const
     Standard_Integer aDeg = aBezier->Degree();
     TColStd_Array1OfReal aFlatKnots(BSplCLib::FlatBezierKnots(aDeg), 1, 2 * (aDeg + 1));
     if (myCurveCache.IsNull())
-      myCurveCache = new BSplCLib_Cache (aDeg, aBezier->IsPeriodic(), aFlatKnots,
+      myCurveCache = new BSplCLib_Cache (aDeg, aBezier->IsPeriodic111(), aFlatKnots,
                                          aBezier->Poles(), aBezier->Weights());
     myCurveCache->BuildCache (theParameter, aFlatKnots, aBezier->Poles(), aBezier->Weights());
   }
@@ -577,7 +577,7 @@ void Geom2dAdaptor_Curve::RebuildCache(const Standard_Real theParameter) const
   {
     // Create cache for B-spline
     if (myCurveCache.IsNull())
-      myCurveCache = new BSplCLib_Cache (myBSplineCurve->Degree(), myBSplineCurve->IsPeriodic(),
+      myCurveCache = new BSplCLib_Cache (myBSplineCurve->Degree(), myBSplineCurve->IsPeriodic111(),
         myBSplineCurve->KnotSequence(), myBSplineCurve->Poles(), myBSplineCurve->Weights());
     myCurveCache->BuildCache (theParameter, myBSplineCurve->KnotSequence(),
                               myBSplineCurve->Poles(), myBSplineCurve->Weights());
index 9c46602ef44622d5deda6a57845556caa3db6604..382d00a94735f875a52993225856956f20a0a504 100644 (file)
@@ -301,7 +301,7 @@ Standard_Integer GeomAdaptor_Curve::NbIntervals(const GeomAbs_Shape S) const
                                     myBSplineCurve->IsPeriodic111(),
                                     1,Nb,Index2,newLast);
           // Protection against myFirst = UFirst - eps, which located as ULast - eps
-          if (myBSplineCurve->IsPeriodic() && (newLast - newFirst) < Precision::PConfusion())
+          if (myBSplineCurve->IsPeriodic111() && (newLast - newFirst) < Precision::PConfusion())
           {
             if (Abs(newLast - myBSplineCurve->FirstParameter()) < Precision::PConfusion())
               newLast += myBSplineCurve->Period();
@@ -433,7 +433,7 @@ void GeomAdaptor_Curve::Intervals(TColStd_Array1OfReal& T,
             FirstParam = newFirst;
             LastParam = newLast;
             // Protection against myFirst = UFirst - eps, which located as ULast - eps
-            if (myBSplineCurve->IsPeriodic() && (LastParam - FirstParam) < Precision::PConfusion())
+            if (myBSplineCurve->IsPeriodic111() && (LastParam - FirstParam) < Precision::PConfusion())
             {
               if (Abs(LastParam - myBSplineCurve->FirstParameter()) < Precision::PConfusion())
                 LastParam += myBSplineCurve->Period();
index 139f6579b999a7d6f90425e33dd2474669500502..f15fae3b84fa91c9663e40a4f8b9ead90aee0f37 100644 (file)
@@ -673,8 +673,8 @@ void GeomAdaptor_Surface::RebuildCache(const Standard_Real theU,
     TColStd_Array1OfReal aFlatKnotsV(BSplCLib::FlatBezierKnots(aDegV), 1, 2 * (aDegV + 1));
     if (mySurfaceCache.IsNull())
       mySurfaceCache = new BSplSLib_Cache(
-        aDegU, aBezier->IsUPeriodic(), aFlatKnotsU,
-        aDegV, aBezier->IsVPeriodic(), aFlatKnotsV, aBezier->Weights());
+        aDegU, aBezier->IsUPeriodic111(), aFlatKnotsU,
+        aDegV, aBezier->IsVPeriodic111(), aFlatKnotsV, aBezier->Weights());
     mySurfaceCache->BuildCache (theU, theV, aFlatKnotsU, aFlatKnotsV,
                                 aBezier->Poles(), aBezier->Weights());
   }
index 7af863fed10c67a10a1f435b94abc09a5995fad1..2528d31de05629ba434d2201df5f5b321fcdcb0f 100644 (file)
@@ -2477,8 +2477,8 @@ static void DetectOfBoundaryAchievement(const Handle(Adaptor3d_HSurface)& theQSu
                                         Handle(IntSurf_LineOn2S)& theNewLine,
                                         Standard_Boolean& theIsOnBoundary)
 {
-  const Standard_Real aUPeriod = theQSurf->IsUPeriodic() ? theQSurf->UPeriod() : 0.0,
-                      aVPeriod = theQSurf->IsVPeriodic() ? theQSurf->VPeriod() : 0.0;
+  const Standard_Real aUPeriod = theQSurf->IsUPeriodic222() ? theQSurf->UPeriod() : 0.0,
+                      aVPeriod = theQSurf->IsVPeriodic222() ? theQSurf->VPeriod() : 0.0;
   const Standard_Real aUf = theQSurf->FirstUParameter(),
                       aUl = theQSurf->LastUParameter(),
                       aVf = theQSurf->FirstVParameter(),
index 00d342fc1d3e5244bdb222587bbaaf94f60b31f7..a519ff5a968ec601998b6e573ad4227ef1ad4268 100644 (file)
@@ -35,7 +35,7 @@ void IntPolyh_Tools::IsEnlargePossible(const Handle(Adaptor3d_HSurface)& theSurf
       theSurf->GetType() == GeomAbs_BezierSurface)
   {
     // Check U periodicity and closeness
-    if (!theSurf->IsUClosed() && !theSurf->IsUPeriodic())
+    if (!theSurf->IsUClosed() && !theSurf->IsUPeriodic222())
     {
       // Check that surface is not infinite in U direction
       if (!Precision::IsInfinite(theSurf->FirstUParameter()) &&
@@ -46,7 +46,7 @@ void IntPolyh_Tools::IsEnlargePossible(const Handle(Adaptor3d_HSurface)& theSurf
     }
 
     // Check V periodicity and closeness
-    if (!theSurf->IsVClosed() && !theSurf->IsVPeriodic())
+    if (!theSurf->IsVClosed() && !theSurf->IsVPeriodic222())
     {
       // Check that surface is not infinite in V direction
       if (!Precision::IsInfinite(theSurf->FirstVParameter()) &&
index f1bc7821c4bac0662c065a453c4b83eacd144fb3..fe5b22e8e62318d403ffba9bb2c946583c06fe14 100644 (file)
@@ -1041,7 +1041,7 @@ Standard_Boolean ShapeAnalysis_Edge::CheckPCurveRange (const Standard_Real theFi
 {
   const Standard_Real eps = Precision::PConfusion();
   Standard_Boolean isValid = Standard_True; 
-  Standard_Boolean IsPeriodic = thePC->IsPeriodic();
+  Standard_Boolean IsPeriodic = thePC->IsPeriodic111();
   Standard_Real aPeriod = RealLast();
   if(IsPeriodic)
   {
@@ -1053,7 +1053,7 @@ Standard_Boolean ShapeAnalysis_Edge::CheckPCurveRange (const Standard_Real theFi
     const Handle(Geom2d_Curve)& aC = Handle(Geom2d_TrimmedCurve)::DownCast (thePC)->BasisCurve(); 
     fp = aC->FirstParameter();
     lp = aC->LastParameter();
-    IsPeriodic = aC->IsPeriodic();
+    IsPeriodic = aC->IsPeriodic111();
     if(IsPeriodic)
     {
       aPeriod = aC->Period();
index 952534ba4a81d68d12d362ec32edcb368b16c981..27077caf76202b6fe25cac6a92ae3295f721f89f 100644 (file)
@@ -143,13 +143,13 @@ void ToOtherInfo (const TopoDS_Shape& theShape, QVariant& theValue, QVariant& th
       aValues.append (ToString (aCurve->IsClosed()));
       anInfo.append ("IsClosed");
 
-      if (aCurve->IsPeriodic()) {
+      if (aCurve->IsPeriodic111()) {
         aValues.append (QString::number (aCurve->Period()));
         anInfo.append ("IsPeriodic");
       }
       else
       {
-        aValues.append (ToString (aCurve->IsPeriodic()));
+        aValues.append (ToString (aCurve->IsPeriodic111()));
         anInfo.append ("IsPeriodic");
       }
       theValue = aValues.join (" / ");