]> OCCT Git - occt-copy.git/commitdiff
0028838: Configuration - undefine macros coming from X11 headers in place of collision
authorkgv <kgv@opencascade.com>
Fri, 3 Feb 2017 19:27:02 +0000 (23:27 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Jun 2017 12:27:36 +0000 (15:27 +0300)
The macros Status, Convex, Opposite, FillSolid (coming from X11 headers)
are now undefined in place of definition of methods with same name in OCCT headers.
The usage of variables with name Status is now avoided.

GL_GLEXT_LEGACY is now defined only if not already defined.

The macros AddPrinter (coming from WinAPI headers) is now undefined
within Message_Messenger class definition having method with the same name.
CurrentDirectory macro is now undefined in OSD_Process.hxx.

105 files changed:
src/BRepFeat/BRepFeat_MakeCylindricalHole.hxx
src/BRepFilletAPI/BRepFilletAPI_MakeFillet2d.hxx
src/BRepOffset/BRepOffset.cxx
src/BRepOffset/BRepOffset.hxx
src/BRepOffset/BRepOffset_Offset.hxx
src/BRepOffsetAPI/BRepOffsetAPI_DraftAngle.hxx
src/BRepOffsetAPI/BRepOffsetAPI_MakePipeShell.cxx
src/BRepTools/BRepTools_ReShape.hxx
src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
src/BSplCLib/BSplCLib.hxx
src/BSplCLib/BSplCLib_2.cxx
src/BSplCLib/BSplCLib_CurveComputation.gxx
src/BSplSLib/BSplSLib.cxx
src/BSplSLib/BSplSLib.hxx
src/CDM/CDM_Application.cxx
src/CDM/CDM_Application.hxx
src/CSLib/CSLib.cxx
src/CSLib/CSLib.hxx
src/ChFi2d/ChFi2d_Builder.hxx
src/ChFiDS/ChFiDS_Spine.hxx
src/DNaming/DNaming.cxx
src/DNaming/DNaming.hxx
src/DNaming/DNaming_BasicCommands.cxx
src/FairCurve/FairCurve_EnergyOfBatten.hxx
src/FairCurve/FairCurve_EnergyOfMVC.hxx
src/GC/GC_Root.hxx
src/GCE2d/GCE2d_Root.hxx
src/Geom2dConvert/Geom2dConvert.cxx
src/Geom2dHatch/Geom2dHatch_Hatcher.hxx
src/Geom2dHatch/Geom2dHatch_Hatching.cxx
src/Geom2dHatch/Geom2dHatch_Hatching.hxx
src/GeomConvert/GeomConvert.cxx
src/HLRBRep/HLRBRep_EdgeData.hxx
src/HLRBRep/HLRBRep_PolyAlgo.cxx
src/IGESSelect/IGESSelect_SelectSubordinate.hxx
src/IntAna/IntAna_IntQuadQuad.cxx
src/IntAna/IntAna_IntQuadQuad.hxx
src/IntCurve/IntCurve_IntConicConic_1.cxx
src/IntTools/IntTools_FClass2d.cxx
src/IntWalk/IntWalk_IWalking_3.gxx
src/IntWalk/IntWalk_IWalking_4.gxx
src/IntWalk/IntWalk_IWalking_5.gxx
src/IntWalk/IntWalk_PWalking.cxx
src/Interface/Interface_Check.hxx
src/Interface/Interface_CheckIterator.hxx
src/Interface/Interface_Graph.hxx
src/InterfaceGraphic/InterfaceGraphic.hxx
src/LProp/LProp_SLProps.gxx
src/MeshTest/MeshTest.cxx
src/Message/Message_Messenger.hxx
src/OSD/OSD_Process.cxx
src/OSD/OSD_Process.hxx
src/OpenGl/OpenGl_GlFunctions.hxx
src/QABugs/QABugs_18.cxx
src/QABugs/QABugs_20.cxx
src/QADNaming/QADNaming.cxx
src/QADNaming/QADNaming.hxx
src/QADNaming/QADNaming_BasicCommands.cxx
src/Resource/Resource_Manager.cxx
src/SelectMgr/SelectMgr_ViewerSelector.hxx
src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.hxx
src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.hxx
src/ShapeAnalysis/ShapeAnalysis_Edge.hxx
src/ShapeAnalysis/ShapeAnalysis_Wire.hxx
src/ShapeAnalysis/ShapeAnalysis_WireOrder.hxx
src/ShapeAnalysis/ShapeAnalysis_WireVertex.hxx
src/ShapeBuild/ShapeBuild_ReShape.hxx
src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx
src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.hxx
src/ShapeFix/ShapeFix_ComposeShell.hxx
src/ShapeFix/ShapeFix_Edge.hxx
src/ShapeFix/ShapeFix_Face.hxx
src/ShapeFix/ShapeFix_Shape.hxx
src/ShapeFix/ShapeFix_Shell.hxx
src/ShapeFix/ShapeFix_Solid.hxx
src/ShapeUpgrade/ShapeUpgrade_FaceDivide.hxx
src/ShapeUpgrade/ShapeUpgrade_FixSmallCurves.hxx
src/ShapeUpgrade/ShapeUpgrade_RemoveInternalWires.hxx
src/ShapeUpgrade/ShapeUpgrade_ShapeDivide.hxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve.hxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurface.hxx
src/ShapeUpgrade/ShapeUpgrade_WireDivide.hxx
src/StepBasic/StepBasic_ApplicationProtocolDefinition.hxx
src/StepBasic/StepBasic_Approval.hxx
src/StlTransfer/StlTransfer.cxx
src/TNaming/TNaming_NamedShape.cxx
src/TopOpeBRep/TopOpeBRep_Point2d.hxx
src/TopOpeBRepBuild/FILES
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.hxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.hxx [deleted file]
src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.pxx [new file with mode: 0644]
src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.hxx [deleted file]
src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.pxx [new file with mode: 0644]
src/TopoDS/TopoDS_Shape.hxx
src/TopoDS/TopoDS_TShape.hxx
src/TopoDS/TopoDS_TVertex.hxx
src/Transfer/Transfer_Binder.hxx
src/Transfer/Transfer_TransferIterator.hxx
src/VrmlConverter/VrmlConverter_ShadedShape.cxx
src/VrmlData/VrmlData_Scene.hxx
src/gce/gce_Root.hxx
src/math/math_IntegerVector.hxx
src/math/math_Matrix.hxx
src/math/math_Vector.hxx

index 0f1a190fd6dd0fceadf08c5ce134c9b7bafd476a..26b0ea93e355d00e49b89f257eb8f7dd8e982eb5 100644 (file)
 #include <Standard_Handle.hxx>
 
 #include <gp_Ax1.hxx>
-#include <Standard_Boolean.hxx>
 #include <BRepFeat_Status.hxx>
 #include <TopoDS_Face.hxx>
 #include <BRepFeat_Builder.hxx>
-#include <Standard_Real.hxx>
-class StdFail_NotDone;
-class Standard_ConstructionError;
-class gp_Ax1;
-class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Provides a tool to make cylindrical holes on a shape.
 class BRepFeat_MakeCylindricalHole  : public BRepFeat_Builder
index 9680f1d56468d0fa9a9f7757f407a26cf97f4131..113918e423886097c9b22c00295164147904e0d3 100644 (file)
@@ -34,6 +34,10 @@ class TopoDS_Edge;
 class TopoDS_Vertex;
 class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Describes functions to build fillets and chamfers on the
 //! vertices of a planar face.
index b56527cd698c996016ece47237891606351de5f8..6270a8bfae30da72e07e975fe3f717005c30e65b 100644 (file)
 //=======================================================================
 Handle(Geom_Surface) BRepOffset::Surface(const Handle(Geom_Surface)& Surface,
                                         const Standard_Real Offset,
-                                              BRepOffset_Status& Status)
+                                              BRepOffset_Status& theStatus)
 {
   Standard_Real Tol = Precision::Confusion();
 
-  Status = BRepOffset_Good;
+  theStatus = BRepOffset_Good;
   Handle(Geom_Surface) Result;
   
   Handle(Standard_Type) TheType = Surface->DynamicType();
@@ -70,10 +70,10 @@ Handle(Geom_Surface) BRepOffset::Surface(const Handle(Geom_Surface)& Surface,
     else if ( Radius <= -Tol ){
       Axis.Rotate(gp_Ax1(Axis.Location(),Axis.Direction()),M_PI);
       Result = new Geom_CylindricalSurface( Axis, Abs(Radius));
-      Status = BRepOffset_Reversed;
+      theStatus = BRepOffset_Reversed;
     }
     else {
-      Status = BRepOffset_Degenerated;
+      theStatus = BRepOffset_Degenerated;
     }
   }
   else if (TheType == STANDARD_TYPE(Geom_ConicalSurface)) {
@@ -113,10 +113,10 @@ Handle(Geom_Surface) BRepOffset::Surface(const Handle(Geom_Surface)& Surface,
       Axis.Rotate(gp_Ax1(Axis.Location(),Axis.Direction()),M_PI);
       Axis.ZReverse();
       Result = new Geom_SphericalSurface(Axis, -Radius);
-      Status = BRepOffset_Reversed;
+      theStatus = BRepOffset_Reversed;
     }
     else {
-      Status = BRepOffset_Degenerated;
+      theStatus = BRepOffset_Degenerated;
     }
   }
   else if (TheType == STANDARD_TYPE(Geom_ToroidalSurface)) {
@@ -134,10 +134,10 @@ Handle(Geom_Surface) BRepOffset::Surface(const Handle(Geom_Surface)& Surface,
        Result = new Geom_ToroidalSurface(Axis,MajorRadius,MinorRadius);
       }
       else if (MinorRadius <= -Tol) {
-       Status = BRepOffset_Reversed;
+       theStatus = BRepOffset_Reversed;
       }
       else {
-       Status = BRepOffset_Degenerated;
+       theStatus = BRepOffset_Degenerated;
       }
     }
   }
@@ -152,8 +152,7 @@ Handle(Geom_Surface) BRepOffset::Surface(const Handle(Geom_Surface)& Surface,
       Handle(Geom_RectangularTrimmedSurface)::DownCast(Surface);
     Standard_Real U1,U2,V1,V2;
     S->Bounds(U1,U2,V1,V2);
-    Handle(Geom_Surface) Off = 
-      BRepOffset::Surface(S->BasisSurface(),Offset,Status);
+    Handle(Geom_Surface) Off = BRepOffset::Surface (S->BasisSurface(), Offset, theStatus);
     Result = new Geom_RectangularTrimmedSurface (Off,U1,U2,V1,V2);
   }
   else if (TheType == STANDARD_TYPE(Geom_OffsetSurface)) {
index 6586e4333acfa370d173e67b7da5e9eb263110f5..e037d03fa336d5d011da2fa5a88dc201c60c3102 100644 (file)
@@ -50,7 +50,7 @@ public:
   //!
   //! If  no particular  case  is detected, the returned
   //! surface will have the Type Geom_OffsetSurface.
-  Standard_EXPORT static Handle(Geom_Surface) Surface (const Handle(Geom_Surface)& Surface, const Standard_Real Offset, BRepOffset_Status& Status);
+  Standard_EXPORT static Handle(Geom_Surface) Surface (const Handle(Geom_Surface)& Surface, const Standard_Real Offset, BRepOffset_Status& theStatus);
 
 
 
index a207521653712112fcb079cf19992d733f8620de..8e25c559a873ce53d2ea07b7703a8bc6314249ef 100644 (file)
 #include <Standard_DefineAlloc.hxx>
 #include <Standard_Handle.hxx>
 
-#include <TopoDS_Shape.hxx>
 #include <BRepOffset_Status.hxx>
 #include <TopoDS_Face.hxx>
 #include <TopTools_DataMapOfShapeShape.hxx>
-#include <Standard_Real.hxx>
-#include <Standard_Boolean.hxx>
 #include <GeomAbs_JoinType.hxx>
 #include <GeomAbs_Shape.hxx>
 #include <TopTools_ListOfShape.hxx>
-class TopoDS_Face;
 class TopoDS_Edge;
 class TopoDS_Vertex;
-class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This class compute elemenary offset surface.
 //! Evaluate the offset generated :
index 6955c6f57f8dd5c988d4b5fdae5667ad65a9ace7..419d29eadefa58b7e0a75aac677f16fe215789b0 100644 (file)
 #include <Draft_ErrorStatus.hxx>
 #include <BRepTools_ReShape.hxx>
 
-class StdFail_NotDone;
-class Standard_NullObject;
-class Standard_NoSuchObject;
-class Standard_ConstructionError;
 class TopoDS_Shape;
 class TopoDS_Face;
 class gp_Dir;
 class gp_Pln;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Taper-adding transformations on a shape.
 //! The resulting shape is constructed by defining one face
index 9fe1e61e423568d307aa7f11da016932fe60ff0a..c24c81743cd3dadbe157bdacf0f7f0fa4247e483 100644 (file)
@@ -172,29 +172,24 @@ void BRepOffsetAPI_MakePipeShell::Delete( const TopoDS_Shape& Profile)
 //=======================================================================
  BRepBuilderAPI_PipeError BRepOffsetAPI_MakePipeShell::GetStatus() const
 {
-  BRepBuilderAPI_PipeError Status;
   GeomFill_PipeError stat;
   stat = myPipe->GetStatus();
   switch (stat) {
   case GeomFill_PipeOk :
     {
-      Status = BRepBuilderAPI_PipeDone;
-      break;
+      return BRepBuilderAPI_PipeDone;
     }
   case  GeomFill_PlaneNotIntersectGuide :
     {
-      Status = BRepBuilderAPI_PlaneNotIntersectGuide;
-      break;
+      return BRepBuilderAPI_PlaneNotIntersectGuide;
     }
   case  GeomFill_ImpossibleContact :
     {
-      Status = BRepBuilderAPI_ImpossibleContact;
-      break;
+      return BRepBuilderAPI_ImpossibleContact;
     }
     default :
-      Status = BRepBuilderAPI_PipeNotDone; 
+      return BRepBuilderAPI_PipeNotDone;
   }
-  return Status;
 }
 
 //=======================================================================
index 8fdefb93a2d55a51abfdb76a3d14055294356489..62018318433db9127d9c4fbb193bb7ba1a2ac1b4 100644 (file)
 class TopoDS_Shape;
 class TopoDS_Vertex;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class BRepTools_ReShape;
 DEFINE_STANDARD_HANDLE(BRepTools_ReShape, MMgt_TShared)
index f81c2a74a8bf191c79ba4c33e6be506a5bf39db4..527693d6852f7e82acc0cab0677138457820a788 100644 (file)
@@ -423,7 +423,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
   const Standard_Boolean IsVPer  = surf->IsVPeriodic();
   const Standard_Real    uperiod = IsUPer ? surf->UPeriod() : 0.0;
   const Standard_Real    vperiod = IsVPer ? surf->VPeriod() : 0.0;
-  TopAbs_State Status = TopAbs_UNKNOWN;
+  TopAbs_State aStatus = TopAbs_UNKNOWN;
   Standard_Boolean urecadre = Standard_False, vrecadre = Standard_False;
 
   if (RecadreOnPeriodic)
@@ -484,25 +484,25 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
          Standard_Real m_Toluv = (Toluv > 4.0) ? 4.0 : Toluv;
          //aClassifier.Perform(Face,Puv,Toluv);
          aClassifier.Perform(Face,Puv,m_Toluv);
-         Status = aClassifier.State();
+         aStatus = aClassifier.State();
        }
        if(dedans == 1) { 
-         Status = TopAbs_IN;
+         aStatus = TopAbs_IN;
        }
        if(dedans == -1) {
-         Status = TopAbs_OUT;
+         aStatus = TopAbs_OUT;
        }
       }
       else {  //-- TabOrien(1)=-1    False Wire
        BRepClass_FaceClassifier aClassifier;
        aClassifier.Perform(Face,Puv,Toluv);
-       Status = aClassifier.State();
+       aStatus = aClassifier.State();
       }
 
       if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
-       return Status;
-      if (Status == TopAbs_IN || Status == TopAbs_ON)
-       return Status;
+       return aStatus;
+      if (aStatus == TopAbs_IN || aStatus == TopAbs_ON)
+       return aStatus;
 
       if (!urecadre)
        {
@@ -526,7 +526,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::Perform(const gp_Pnt2d& _Puv,
          u = uu;
 
          if (v > Vmax || !IsVPer)
-           return Status;
+           return aStatus;
        }
     } //for (;;)
 }
@@ -557,7 +557,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
   const Standard_Boolean IsVPer  = surf->IsVPeriodic();
   const Standard_Real    uperiod = IsUPer ? surf->UPeriod() : 0.0;
   const Standard_Real    vperiod = IsVPer ? surf->VPeriod() : 0.0;
-  TopAbs_State Status = TopAbs_UNKNOWN;
+  TopAbs_State aStatus = TopAbs_UNKNOWN;
   Standard_Boolean urecadre = Standard_False, vrecadre = Standard_False;
   
   if (RecadreOnPeriodic)
@@ -614,25 +614,25 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
          }
        }
        if(dedans==0) {
-         Status = TopAbs_ON;
+         aStatus = TopAbs_ON;
        }
        if(dedans == 1) {
-         Status = TopAbs_IN;
+         aStatus = TopAbs_IN;
        }
        if(dedans == -1) {
-         Status = TopAbs_OUT;
+         aStatus = TopAbs_OUT;
        }
       }
       else {  //-- TabOrien(1)=-1    False Wire
        BRepClass_FaceClassifier aClassifier;
        aClassifier.Perform(Face,Puv,Tol);
-       Status = aClassifier.State();
+       aStatus = aClassifier.State();
       }
       
       if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
-       return Status;
-      if (Status == TopAbs_IN || Status == TopAbs_ON)
-       return Status;
+       return aStatus;
+      if (aStatus == TopAbs_IN || aStatus == TopAbs_ON)
+       return aStatus;
       
       if (!urecadre)
        {
@@ -656,7 +656,7 @@ TopAbs_State BRepTopAdaptor_FClass2d::TestOnRestriction(const gp_Pnt2d& _Puv,
          u = uu;
          
          if (v > Vmax || !IsVPer)
-           return Status;
+           return aStatus;
        }
     } //for (;;)
 }
index 0189aa72499e2d1fbb3b20367421ec0c2f25fc9f..78701cc706d042e32a2395bf195a5150916f4042 100644 (file)
@@ -831,11 +831,11 @@ public:
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
   //!
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of F(a(t))
-  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const Standard_Integer PolesDimension, Standard_Real& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, Standard_Real& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const Standard_Integer PolesDimension, Standard_Real& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, Standard_Real& NewPoles, Standard_Integer& theStatus);
   
   //! This function will compose  a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -858,11 +858,11 @@ public:
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
   //!
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of F(a(t))
-  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColStd_Array1OfReal& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColStd_Array1OfReal& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColStd_Array1OfReal& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColStd_Array1OfReal& NewPoles, Standard_Integer& theStatus);
   
   //! this will compose  a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -880,11 +880,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of F(a(t))
-  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt& NewPoles, Standard_Integer& theStatus);
   
   //! this will compose  a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -902,11 +902,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of F(a(t))
-  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt2d& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionReparameterise (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt2d& NewPoles, Standard_Integer& theStatus);
   
   //! this will  multiply a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -921,11 +921,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of a(t)*F(t)
-  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const Standard_Integer PolesDimension, Standard_Real& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, Standard_Real& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const Standard_Integer PolesDimension, Standard_Real& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, Standard_Real& NewPoles, Standard_Integer& theStatus);
   
   //! this will  multiply a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -940,11 +940,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of a(t)*F(t)
-  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColStd_Array1OfReal& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColStd_Array1OfReal& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColStd_Array1OfReal& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColStd_Array1OfReal& NewPoles, Standard_Integer& theStatus);
   
   //! this will  multiply a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -959,11 +959,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of a(t)*F(t)
-  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt2d& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt2d& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt2d& NewPoles, Standard_Integer& theStatus);
   
   //! this will  multiply a given Vectorial BSpline F(t)
   //! defined  by its  BSplineDegree and BSplineFlatKnotsl,
@@ -978,11 +978,11 @@ public:
   //! the caller's responsability to insure that conditions
   //! 1. and  2. above are  satisfied : no check whatsoever
   //! is made in this method
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of a(t)*F(t)
-  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt& NewPoles, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionMultiply (const BSplCLib_EvaluatorFunction& Function, const Standard_Integer BSplineDegree, const TColStd_Array1OfReal& BSplineFlatKnots, const TColgp_Array1OfPnt& Poles, const TColStd_Array1OfReal& FlatKnots, const Standard_Integer NewDegree, TColgp_Array1OfPnt& NewPoles, Standard_Integer& theStatus);
   
   //! Perform the De Boor   algorithm  to  evaluate a point at
   //! parameter <U>, with <Degree> and <Dimension>.
index c368ba7d233c908d349c63157d77b728dfdc4e3a..bbdfebef51f2df6d8a5d4c4216c753c6cc6ac092 100644 (file)
@@ -882,7 +882,7 @@ void BSplCLib::FunctionMultiply
  const TColStd_Array1OfReal &       FlatKnots,
  const Standard_Integer             NewDegree,
  Standard_Real &                    NewPoles,
- Standard_Integer &                 Status) 
+ Standard_Integer &                 theStatus)
 {
   Standard_Integer ii,
   jj,
@@ -932,7 +932,7 @@ void BSplCLib::FunctionMultiply
                   result,
                   error_code);
     if (error_code) {
-      Status = 1 ;
+      theStatus = 1;
       goto FINISH ;
     }     
     
@@ -957,7 +957,7 @@ void BSplCLib::FunctionMultiply
              contact_order_array,
              PolesDimension,
              array_of_new_poles[0],
-             Status) ;
+             theStatus);
   
   for (ii = 0 ; ii < num_new_poles * PolesDimension ; ii++) {
     array_of_poles[ii] = array_of_new_poles[ii] ;
@@ -981,7 +981,7 @@ void BSplCLib::FunctionReparameterise
  const TColStd_Array1OfReal &       FlatKnots,
  const Standard_Integer             NewDegree,
  Standard_Real &                    NewPoles,
- Standard_Integer &                 Status) 
+ Standard_Integer &                 theStatus)
 {
   Standard_Integer ii,
 //  jj,
@@ -1022,7 +1022,7 @@ void BSplCLib::FunctionReparameterise
                   result,
                   error_code);
     if (error_code) {
-      Status = 1 ;
+      theStatus = 1;
       goto FINISH ;
     }     
     
@@ -1043,7 +1043,7 @@ void BSplCLib::FunctionReparameterise
              contact_order_array,
              PolesDimension,
              array_of_new_poles[0],
-             Status) ;
+             theStatus);
   
   for (ii = 0 ; ii < num_new_poles * PolesDimension ; ii++) {
     array_of_poles[ii] = array_of_new_poles[ii] ;
@@ -1066,7 +1066,7 @@ void BSplCLib::FunctionMultiply
  const TColStd_Array1OfReal &        FlatKnots,
  const Standard_Integer              NewDegree,
  TColStd_Array1OfReal &              NewPoles,
- Standard_Integer &                  Status) 
+ Standard_Integer &                  theStatus)
 { 
   Standard_Integer num_bspline_poles =
     BSplineFlatKnots.Length() - BSplineDegree - 1 ;
@@ -1089,7 +1089,7 @@ void BSplCLib::FunctionMultiply
                             FlatKnots,
                             NewDegree,
                             array_of_new_poles[0],
-                            Status) ;
+                            theStatus);
 }
 
 //=======================================================================
@@ -1105,7 +1105,7 @@ void BSplCLib::FunctionReparameterise
  const TColStd_Array1OfReal &        FlatKnots,
  const Standard_Integer              NewDegree,
  TColStd_Array1OfReal &              NewPoles,
- Standard_Integer &                  Status) 
+ Standard_Integer &                  theStatus)
 { 
   Standard_Integer num_bspline_poles =
     BSplineFlatKnots.Length() - BSplineDegree - 1 ;
@@ -1129,7 +1129,7 @@ void BSplCLib::FunctionReparameterise
                                   FlatKnots,
                                   NewDegree,
                                   array_of_new_poles[0],
-                                  Status) ;
+                                  theStatus);
 }
 
 //=======================================================================
index fe68f85cfedeb7c46712760b1bc9a84c9a808ee0..584b8d63d927d07a56ec5976526026f277305471 100644 (file)
@@ -1424,7 +1424,7 @@ void BSplCLib::FunctionMultiply
  const TColStd_Array1OfReal &        FlatKnots,
  const Standard_Integer              NewDegree,
  Array1OfPoints &                   NewPoles,
- Standard_Integer &                  Status) 
+ Standard_Integer &                  theStatus)
 { 
   Standard_Integer num_bspline_poles =
     BSplineFlatKnots.Length() - BSplineDegree - 1 ;
@@ -1447,7 +1447,7 @@ void BSplCLib::FunctionMultiply
                             FlatKnots,
                             NewDegree,
                             array_of_new_poles[0],
-                            Status) ;
+                            theStatus);
 }
 
 //=======================================================================
@@ -1463,7 +1463,7 @@ void BSplCLib::FunctionReparameterise
  const TColStd_Array1OfReal &        FlatKnots,
  const Standard_Integer              NewDegree,
  Array1OfPoints &                   NewPoles,
- Standard_Integer &                  Status) 
+ Standard_Integer &                  theStatus)
 { 
   Standard_Integer num_bspline_poles =
     BSplineFlatKnots.Length() - BSplineDegree - 1 ;
@@ -1486,5 +1486,5 @@ void BSplCLib::FunctionReparameterise
                                   FlatKnots,
                                   NewDegree,
                                   array_of_new_poles[0],
-                                  Status) ;
+                                  theStatus);
 }
index a741ee6253d6280a9cbbb50b87f285d6e8821e7a..cfb73efc2c8fca9fdeef6e6b68ab44f18a4d4509 100644 (file)
@@ -3461,7 +3461,7 @@ void BSplSLib::FunctionMultiply
  const Standard_Integer                      VNewDegree,
  TColgp_Array2OfPnt&                         NewNumerator,
  TColStd_Array2OfReal&                       NewDenominator,
- Standard_Integer&                           Status) 
+ Standard_Integer&                           theStatus)
 {
   Standard_Integer num_uparameters,
 //  ii,jj,kk,
@@ -3534,7 +3534,7 @@ void BSplSLib::FunctionMultiply
                VParameters,
                NewNumerator,
                NewDenominator, 
-               Status) ;
+               theStatus);
   }
   else {
     throw Standard_ConstructionError();
index 85eb522696876a55f6669ef402e0ca3598792d0d..277ae65511a1da766a1d3bad65e5eb11b2d4d108 100644 (file)
@@ -402,17 +402,17 @@ public:
   //! ---Warning:  it is   the caller's  responsability  to
   //! insure that conditions 1. and  2. above are satisfied
   //! : no  check  whatsoever is made   in  this method  --
-  //! Status will  return 0 if  OK else it will return  the
+  //! theStatus will  return 0 if  OK else it will return  the
   //! pivot index -- of the   matrix that was inverted to
   //! compute the multiplied -- BSpline  : the method used
   //! is  interpolation   at Schoenenberg   --  points  of
   //! a(u,v)* N(u,v) and a(u,v) * D(u,v)
-  //! Status will return 0 if OK else it will return the pivot index
+  //! theStatus will return 0 if OK else it will return the pivot index
   //! of the matrix that was inverted to compute the multiplied
   //! BSpline : the method used is interpolation at Schoenenberg
   //! points of a(u,v)*F(u,v)
   //! --
-  Standard_EXPORT static void FunctionMultiply (const BSplSLib_EvaluatorFunction& Function, const Standard_Integer UBSplineDegree, const Standard_Integer VBSplineDegree, const TColStd_Array1OfReal& UBSplineKnots, const TColStd_Array1OfReal& VBSplineKnots, const TColStd_Array1OfInteger* UMults, const TColStd_Array1OfInteger* VMults, const TColgp_Array2OfPnt& Poles, const TColStd_Array2OfReal* Weights, const TColStd_Array1OfReal& UFlatKnots, const TColStd_Array1OfReal& VFlatKnots, const Standard_Integer UNewDegree, const Standard_Integer VNewDegree, TColgp_Array2OfPnt& NewNumerator, TColStd_Array2OfReal& NewDenominator, Standard_Integer& Status);
+  Standard_EXPORT static void FunctionMultiply (const BSplSLib_EvaluatorFunction& Function, const Standard_Integer UBSplineDegree, const Standard_Integer VBSplineDegree, const TColStd_Array1OfReal& UBSplineKnots, const TColStd_Array1OfReal& VBSplineKnots, const TColStd_Array1OfInteger* UMults, const TColStd_Array1OfInteger* VMults, const TColgp_Array2OfPnt& Poles, const TColStd_Array2OfReal* Weights, const TColStd_Array1OfReal& UFlatKnots, const TColStd_Array1OfReal& VFlatKnots, const Standard_Integer UNewDegree, const Standard_Integer VNewDegree, TColgp_Array2OfPnt& NewNumerator, TColStd_Array2OfReal& NewDenominator, Standard_Integer& theStatus);
 
 
 
index 60ed12ad38d13dc58773553e14b00abcfe8c7d6a..5b3d536fd27e7f90fdd6ffb65988e138463faff7 100644 (file)
@@ -91,11 +91,11 @@ void CDM_Application::BeginOfUpdate (const Handle(CDM_Document)& aDocument)
 
 void CDM_Application::EndOfUpdate
                         (const Handle(CDM_Document)&       aDocument,
-                         const Standard_Boolean            Status,
+                         const Standard_Boolean            theStatus,
                          const TCollection_ExtendedString& /*ErrorString*/)
 {
   TCollection_ExtendedString message;
-  if (Status) 
+  if (theStatus)
     message="Updated:";
   else
     message="Error during updating:";
index e1bd62439419ca665379158a7f88acc459168aff..028a9feca9f3be0b0e9d33e4c22d09b5170d3781 100644 (file)
@@ -55,7 +55,7 @@ public:
   
   //! this method is called affter the update of a document.
   //! By default, writes in MessageDriver().
-  Standard_EXPORT virtual void EndOfUpdate (const Handle(CDM_Document)& aDocument, const Standard_Boolean Status, const TCollection_ExtendedString& ErrorString);
+  Standard_EXPORT virtual void EndOfUpdate (const Handle(CDM_Document)& aDocument, const Standard_Boolean theStatus, const TCollection_ExtendedString& ErrorString);
   
   //! writes the string in the application MessagerDriver.
   Standard_EXPORT void Write (const Standard_ExtString aString);
index 8775fed36f66a05fb519d3178b4d247d13490358..4217b941432548b6e9e376f533371a1d5fb43044 100644 (file)
@@ -50,7 +50,7 @@ void CSLib::Normal (
 const gp_Vec&        D1U, 
 const gp_Vec&        D1V,
 const Standard_Real        SinTol, 
-CSLib_DerivativeStatus& Status, 
+CSLib_DerivativeStatus& theStatus,
 gp_Dir&              Normal
 ) {
 
@@ -61,18 +61,18 @@ gp_Dir&              Normal
   gp_Vec D1UvD1V = D1U.Crossed(D1V);
 
   if (D1UMag <= gp::Resolution() && D1VMag <= gp::Resolution()) {
-     Status = D1IsNull;
+     theStatus = D1IsNull;
   }
-  else if (D1UMag <= gp::Resolution())           Status = D1uIsNull;
-  else if (D1VMag <= gp::Resolution())           Status = D1vIsNull;
-//  else if ((D1VMag / D1UMag) <= RealEpsilon())   Status = D1vD1uRatioIsNull;
-//  else if ((D1UMag / D1VMag) <= RealEpsilon())   Status = D1uD1vRatioIsNull;
+  else if (D1UMag <= gp::Resolution())           theStatus = D1uIsNull;
+  else if (D1VMag <= gp::Resolution())           theStatus = D1vIsNull;
+//  else if ((D1VMag / D1UMag) <= RealEpsilon())   theStatus = D1vD1uRatioIsNull;
+//  else if ((D1UMag / D1VMag) <= RealEpsilon())   theStatus = D1uD1vRatioIsNull;
   else  {
     Standard_Real Sin2 = 
     D1UvD1V.SquareMagnitude() / (D1UMag * D1VMag);
     
-    if (Sin2 < (SinTol * SinTol))  { Status = D1uIsParallelD1v; }
-    else { Normal = gp_Dir (D1UvD1V);   Status = Done; }
+    if (Sin2 < (SinTol * SinTol))  { theStatus = D1uIsParallelD1v; }
+    else { Normal = gp_Dir (D1UvD1V);   theStatus = Done; }
   }
 }
 
@@ -85,7 +85,7 @@ const gp_Vec&    D2V,
 const gp_Vec&    DUV,
 const Standard_Real    SinTol,
 Standard_Boolean&      Done,
-CSLib_NormalStatus& Status,
+CSLib_NormalStatus& theStatus,
 gp_Dir&          Normal
 ) {
 
@@ -107,25 +107,25 @@ gp_Dir&          Normal
 
 
   if (LD1Nu <= RealEpsilon() && LD1Nv <= RealEpsilon())  { 
-      Status = D1NIsNull;
+      theStatus = D1NIsNull;
       Done = Standard_False;
   }
   else if (LD1Nu < RealEpsilon()) {
-      Status = D1NuIsNull;
+      theStatus = D1NuIsNull;
       Done = Standard_True;
       Normal = gp_Dir (D1Nv);
   }
   else if (LD1Nv < RealEpsilon()) {
-      Status = D1NvIsNull;
+      theStatus = D1NvIsNull;
       Done = Standard_True;
       Normal = gp_Dir (D1Nu);
   }
   else if ((LD1Nv / LD1Nu) <= RealEpsilon()) { 
-      Status = D1NvNuRatioIsNull;
+      theStatus = D1NvNuRatioIsNull;
       Done = Standard_False;
   }
   else if ((LD1Nu / LD1Nv) <= RealEpsilon()) { 
-      Status = D1NuNvRatioIsNull; 
+      theStatus = D1NuNvRatioIsNull;
       Done = Standard_False;
   }
   else {
@@ -133,12 +133,12 @@ gp_Dir&          Normal
     Standard_Real Sin2 = D1NCross.SquareMagnitude() / (LD1Nu * LD1Nv);
 
     if (Sin2 < (SinTol * SinTol))  { 
-      Status = D1NuIsParallelD1Nv;
+      theStatus = D1NuIsParallelD1Nv;
       Done = Standard_True;
       Normal = gp_Dir (D1Nu);
     }    
     else { 
-      Status = InfinityOfSolutions;
+      theStatus = InfinityOfSolutions;
       Done = Standard_False;
     }
   }
@@ -149,7 +149,7 @@ void CSLib::Normal (
 const gp_Vec&        D1U, 
 const gp_Vec&        D1V,
 const Standard_Real        MagTol, 
-CSLib_NormalStatus& Status, 
+CSLib_NormalStatus& theStatus,
 gp_Dir&              Normal
 ) {
 // Function: Calculate the normal from tangents by u and by v.
@@ -161,7 +161,7 @@ gp_Dir&              Normal
 
   if (NMag <= MagTol || D1UMag <= MagTol || D1VMag <= MagTol ) {
 
-     Status = Singular;
+     theStatus = Singular;
 //     if (D1UMag <= MagTol || D1VMag <= MagTol && NMag > MagTol) MagTol = 2* NMag;
 }
   else
@@ -170,7 +170,7 @@ gp_Dir&              Normal
     gp_Dir aD1U(D1U);
     gp_Dir aD1V(D1V);
     Normal = gp_Dir(aD1U.Crossed(aD1V));
-    Status = Defined;
+    theStatus = Defined;
   }
   
 
@@ -186,7 +186,7 @@ void CSLib::Normal(const Standard_Integer MaxOrder,
                    const Standard_Real Umax,
                    const Standard_Real Vmin,
                    const Standard_Real Vmax,
-                   CSLib_NormalStatus& Status,
+                   CSLib_NormalStatus& theStatus,
                    gp_Dir& Normal, 
                    Standard_Integer& OrderU, 
                    Standard_Integer& OrderV)
@@ -194,7 +194,7 @@ void CSLib::Normal(const Standard_Integer MaxOrder,
 //  Standard_Integer i,l,Order=-1;
   Standard_Integer i=0,Order=-1;
   Standard_Boolean Trouve=Standard_False;
-//  Status = Singular;
+//  theStatus = Singular;
   Standard_Real Norme;
   gp_Vec D;
   //Find k0 such that all derivatives N=dS/du ^ dS/dv are null
@@ -219,7 +219,7 @@ void CSLib::Normal(const Standard_Integer MaxOrder,
   {
      if(Order == 0) 
      {
-         Status = Defined;
+         theStatus = Defined;
          Normal=D.Normalized();
      }
      else
@@ -373,16 +373,16 @@ void CSLib::Normal(const Standard_Integer MaxOrder,
                  //Polynom is always negative
                  SP=-1;
          if(SP==0)
-             Status = InfinityOfSolutions;
+             theStatus = InfinityOfSolutions;
          else
          {
-            Status = Defined;
+            theStatus = Defined;
             Normal=SP*Vk0.Normalized();
          }
        }
        else 
        {
-         Status = Defined;
+         theStatus = Defined;
          Normal=D.Normalized();
        }
     }
index b3b6fadfc9f52e3334a13da1e486c17b35f76fe7..8f0cb944801133db7ba0aa35b2cd4578a6ed6c9d 100644 (file)
@@ -55,9 +55,9 @@ public:
   //! parallel the normal is undefined.
   //! To check that D1U and D1V are colinear the sinus of the angle
   //! between D1U and D1V is computed and compared with SinTol.
-  //! The normal is computed if Status == Done else the Status gives the
+  //! The normal is computed if theStatus == Done else the theStatus gives the
   //! reason why the computation has failed.
-  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const Standard_Real SinTol, CSLib_DerivativeStatus& Status, gp_Dir& Normal);
+  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const Standard_Real SinTol, CSLib_DerivativeStatus& theStatus, gp_Dir& Normal);
   
 
   //! If there is a singularity on the surface  the previous method
@@ -87,19 +87,19 @@ public:
   //! order 2 (it means that we cannot omit Eps).
   //! . if DNu Is not Null and DNv Is not Null Done = False, there are
   //! an infinity of normals at the considered point on the surface.
-  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const gp_Vec& D2U, const gp_Vec& D2V, const gp_Vec& D2UV, const Standard_Real SinTol, Standard_Boolean& Done, CSLib_NormalStatus& Status, gp_Dir& Normal);
+  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const gp_Vec& D2U, const gp_Vec& D2V, const gp_Vec& D2UV, const Standard_Real SinTol, Standard_Boolean& Done, CSLib_NormalStatus& theStatus, gp_Dir& Normal);
   
 
   //! Computes the normal direction of a surface as the cross product
   //! between D1U and D1V.
-  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const Standard_Real MagTol, CSLib_NormalStatus& Status, gp_Dir& Normal);
+  Standard_EXPORT static void Normal (const gp_Vec& D1U, const gp_Vec& D1V, const Standard_Real MagTol, CSLib_NormalStatus& theStatus, gp_Dir& Normal);
   
   //! find the first  order k0  of deriviative of NUV
   //! where: foreach order < k0  all the derivatives of NUV  are
   //! null all the derivatives of NUV corresponding to the order
   //! k0 are collinear and have the same sens.
   //! In this case, normal at U,V is unique.
-  Standard_EXPORT static void Normal (const Standard_Integer MaxOrder, const TColgp_Array2OfVec& DerNUV, const Standard_Real MagTol, const Standard_Real U, const Standard_Real V, const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax, CSLib_NormalStatus& Status, gp_Dir& Normal, Standard_Integer& OrderU, Standard_Integer& OrderV);
+  Standard_EXPORT static void Normal (const Standard_Integer MaxOrder, const TColgp_Array2OfVec& DerNUV, const Standard_Real MagTol, const Standard_Real U, const Standard_Real V, const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax, CSLib_NormalStatus& theStatus, gp_Dir& Normal, Standard_Integer& OrderU, Standard_Integer& OrderV);
   
   //! -- Computes the derivative  of order Nu in the --
   //! direction U and Nv in the direction V of the not --
index d3127a34ad69469b389ca47670fd427eb3234a77..d130483b350d36c2123c7a5bd4d5bed42bd39071 100644 (file)
 #include <Standard_Real.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_Integer.hxx>
-class TopoDS_Face;
+
 class TopoDS_Edge;
 class TopoDS_Vertex;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This  class contains  the algorithm  used to build
 //! fillet on planar wire.
index dfcaecaa8fc404d3ee98fb001c62b436cdf762ff..b5171214130c55ac547b7fcdf177af0adf0dd3d0 100644 (file)
 #include <GeomAbs_CurveType.hxx>
 class TopoDS_Edge;
 class ChFiDS_HElSpine;
-class gp_Pnt;
-class gp_Vec;
-class BRepAdaptor_Curve;
 class gp_Lin;
 class gp_Circ;
 class TopoDS_Vertex;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ChFiDS_Spine;
 DEFINE_STANDARD_HANDLE(ChFiDS_Spine, MMgt_TShared)
index 615763de13a90608dd6ed26f488e2ccd8bc618e9..b9af01bdb93dc30523f288548ad5ce8b1bd927cc 100644 (file)
@@ -158,9 +158,9 @@ TopoDS_Shape DNaming::CurrentShape (const Standard_CString  LabelName,
 
 TCollection_AsciiString DNaming::GetEntry (const TopoDS_Shape&         Shape,
                                           const Handle(TDF_Data)&     DF,
-                                          Standard_Integer&           Status)
+                                          Standard_Integer&           theStatus)
 {
-  Status = 0;
+  theStatus = 0;
   //Handle(TNaming_UsedShapes) US;
   //DF->Root().FindAttribute(TNaming_UsedShapes::GetID(),US);
 
@@ -170,11 +170,11 @@ TCollection_AsciiString DNaming::GetEntry (const TopoDS_Shape&         Shape,
   Standard_Integer Transdef;
   TDF_Label Lab = TNaming_Tool::Label (DF->Root(), Shape,Transdef);
   TCollection_AsciiString entry; TDF_Tool::Entry(Lab,entry);
-  //Update Status;
+  //Update theStatus;
   TNaming_Iterator it(Lab,DF->Transaction());
   for (; it.More(); it.Next()) {
-    Status++;
-    if (Status == 2) break;
+    theStatus++;
+    if (theStatus == 2) break;
   }
   return entry;
 }
index adb7f7c9b51d384e58f134a25f2c27dd67d7f091..001b13af86c59f89758a09e58a593c978fe17e68 100644 (file)
@@ -105,10 +105,10 @@ public:
   
   Standard_EXPORT static void GetShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data, TopTools_ListOfShape& Shapes);
   
-  //! Status = 0  Not  found,
-  //! Status = 1  One  shape,
-  //! Status = 2  More than one shape.
-  Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& Status);
+  //! theStatus = 0  Not  found,
+  //! theStatus = 1  One  shape,
+  //! theStatus = 2  More than one shape.
+  Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& theStatus);
   
   //! Loads the Shape to DF
   Standard_EXPORT static void LoadImportedShape (const TDF_Label& theResultLabel, const TopoDS_Shape& theShape);
index a1c90b2eedd23240eb8ead95d68398f6d47d3488..788ecf3d88d3f806142749f2d74556618bbe828e 100644 (file)
@@ -160,14 +160,14 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
     //di << 0;
     return 0;
   }
-  Standard_Integer Status ;
-  TCollection_AsciiString Name   = DNaming::GetEntry(S,ND,Status);
-  if (Status == 0) {
+  Standard_Integer aStatus = 0;
+  TCollection_AsciiString Name = DNaming::GetEntry (S, ND, aStatus);
+  if (aStatus == 0) {
     di <<"E_NoName";
   }
   else  {
     di <<Name.ToCString();
-    if (Status == 2) {
+    if (aStatus == 2) {
       di <<"Several shapes have the same name\n";
     }
   }
@@ -422,15 +422,14 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
     di <<"E_NoName";
     return 0;
   }
-  Standard_Integer Status ;
-  
-  TCollection_AsciiString Name   = DNaming::GetEntry(S,ND,Status);
-  if (Status == 0) {
+  Standard_Integer aStatus = 0;
+  TCollection_AsciiString Name = DNaming::GetEntry (S, ND, aStatus);
+  if (aStatus == 0) {
     di <<"E_NoName";
   }
   else  {
     di <<Name.ToCString();
-    if (Status == 2) {
+    if (aStatus == 2) {
       di <<"Several shapes have the same name\n";
     }
   }
index 343d39a654c9b525fc630d997c89b0ccdcc03f38..47c8f5a340722c603042917c8cb78a5f511ba32b 100644 (file)
 #include <TColgp_HArray1OfPnt2d.hxx>
 #include <Standard_Boolean.hxx>
 #include <math_Vector.hxx>
-class FairCurve_BattenLaw;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Energy Criterium to minimize in Batten.
 class FairCurve_EnergyOfBatten  : public FairCurve_Energy
index 27116d24a80d95b7bb9f53b8faacc685fbef66c8..638fc4ba1aaa828bab3490e7bb2c6a629069b090 100644 (file)
 #include <TColgp_HArray1OfPnt2d.hxx>
 #include <Standard_Boolean.hxx>
 #include <math_Vector.hxx>
-class Standard_DomainError;
-class FairCurve_BattenLaw;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Energy Criterium to minimize in MinimalVariationCurve.
 class FairCurve_EnergyOfMVC  : public FairCurve_Energy
index 9fbad1fb8d1aa39fd227b2a467579e140087d1b7..64e7c84f2de8f98e52003991c3a437d356fe7772 100644 (file)
 #include <gce_ErrorType.hxx>
 #include <Standard_Boolean.hxx>
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This class implements the common services for
 //! all classes of gce which report error.
index 05e72d9d854209e084f6785678d4f917fbdf73e9..f7981efa272009ab423ddcab373d8bc337b5e9d6 100644 (file)
 #include <gce_ErrorType.hxx>
 #include <Standard_Boolean.hxx>
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This class implements the common services for
 //! all classes of gce which report error.
index d51b0dad5460d936974300b59e515d9fa8bfa9e9..05c29d838832c46edc35ae3de76867b5af7b8284 100644 (file)
@@ -522,7 +522,7 @@ static Handle(Geom2d_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCu
   Standard_Real                      tolerance=Precision::Confusion();
   Standard_Integer                   resNbPoles,degree,
                                      ii,jj,
-                                    Status;
+                                    aStatus;
   
   BS->Knots(BSKnots);                            
   BS->Multiplicities(BSMults);
@@ -560,7 +560,7 @@ static Handle(Geom2d_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCu
                             resFlatKnots,
                             degree,
                             resNumPoles,
-                            Status);
+                            aStatus);
   BSplCLib::FunctionMultiply(ev,
                             BS->Degree(),
                             BSFlatKnots,
@@ -568,7 +568,7 @@ static Handle(Geom2d_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCu
                             resFlatKnots,
                             degree,
                             resDenPoles,
-                            Status);
+                            aStatus);
 //  BSplCLib::FunctionMultiply(law_evaluator,
 //                          BS->Degree(),
 //                          BSFlatKnots,
@@ -576,7 +576,7 @@ static Handle(Geom2d_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCu
 //                          resFlatKnots,
 //                          degree,
 //                          resNumPoles,
-//                          Status);
+//                          aStatus);
 //  BSplCLib::FunctionMultiply(law_evaluator,
 //                          BS->Degree(),
 //                          BSFlatKnots,
@@ -584,7 +584,7 @@ static Handle(Geom2d_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCu
 //                          resFlatKnots,
 //                          degree,
 //                          resDenPoles,
-//                          Status);
+//                          aStatus);
   for (ii=1;ii<=resNbPoles;ii++)
     for(jj=1;jj<=2;jj++) 
       resPoles(ii).SetCoord(jj,resNumPoles(ii).Coord(jj)/resDenPoles(ii));
@@ -1062,7 +1062,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
        
        BSplCLib::KnotSequence(KnotC1,KnotC1Mults,FlatKnots);
        TColgp_Array1OfPnt2d NewPoles(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
-       Standard_Integer      Status;
+       Standard_Integer      aStatus;
        TColStd_Array1OfReal Curve1Weights(1,Curve1->NbPoles());
        Curve1->Weights(Curve1Weights);
        for (ii=1;ii<=Curve1->NbPoles();ii++)
@@ -1077,7 +1077,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                                        FlatKnots,
                                         aNewCurveDegree,
                                        NewPoles,
-                                       Status
+                                       aStatus
                                        );
        TColStd_Array1OfReal NewWeights(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
        BSplCLib::FunctionReparameterise(ev,
@@ -1087,7 +1087,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                                        FlatKnots,
                                         aNewCurveDegree,
                                        NewWeights,
-                                       Status
+                                       aStatus
                                        );
 //      BSplCLib::FunctionReparameterise(reparameterise_evaluator,
 //                                     Curve1->Degree(),
@@ -1096,7 +1096,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
 //                                     FlatKnots,
 //                                     2*Curve1->Degree(),
 //                                     NewPoles,
-//                                     Status
+//                                     aStatus
 //                                     );
 //       TColStd_Array1OfReal NewWeights(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
 //       BSplCLib::FunctionReparameterise(reparameterise_evaluator,
@@ -1106,7 +1106,7 @@ void  Geom2dConvert::ConcatG1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
 //                                     FlatKnots,
 //                                     2*Curve1->Degree(),
 //                                     NewWeights,
-//                                     Status
+//                                     aStatus
 //                                     );
        for (ii=1;ii<=NewPoles.Length();ii++)
         for (jj=1;jj<=2;jj++)
@@ -1319,7 +1319,7 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
         
         BSplCLib::KnotSequence(KnotC1,KnotC1Mults,FlatKnots);
          TColgp_Array1OfPnt2d  NewPoles(1, FlatKnots.Length() - (aNewCurveDegree + 1));
-        Standard_Integer      Status;
+        Standard_Integer      aStatus;
         TColStd_Array1OfReal Curve1Weights(1,Curve1->NbPoles());
         Curve1->Weights(Curve1Weights);
         for (ii=1;ii<=Curve1->NbPoles();ii++)
@@ -1335,7 +1335,7 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                                          FlatKnots,
                                           aNewCurveDegree,
                                          NewPoles,
-                                         Status
+                                         aStatus
                                          );
          TColStd_Array1OfReal NewWeights(1, FlatKnots.Length() - (aNewCurveDegree + 1));
 //      BSplCLib::FunctionReparameterise(reparameterise_evaluator,
@@ -1346,7 +1346,7 @@ void  Geom2dConvert::ConcatC1(TColGeom2d_Array1OfBSplineCurve&           ArrayOf
                                          FlatKnots,
                                           aNewCurveDegree,
                                          NewWeights,
-                                         Status
+                                         aStatus
                                          );
         for (ii=1;ii<=NewPoles.Length();ii++) {
           for (jj=1;jj<=2;jj++)
index cb32805cd5e55777b677896be037d7373c8a6e11..8ce936c11118802f7423ccb2e99b24c05c1f6779 100644 (file)
 #include <TopAbs_Orientation.hxx>
 #include <HatchGen_ErrorStatus.hxx>
 
-class Standard_NoSuchObject;
-class Standard_OutOfRange;
-class StdFail_NotDone;
-class Geom2dHatch_Intersector;
-class Geom2dHatch_Element;
-class Geom2dHatch_Hatching;
 class HatchGen_PointOnHatching;
 class HatchGen_Domain;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
+
 class Geom2dHatch_Hatcher 
 {
 public:
index 96cee931e1ffdf91903ee5f350af4f96ac5bcd25..8484c8592b2b70e50900290bf6461f0d768eb8f5 100644 (file)
@@ -137,9 +137,9 @@ Standard_Boolean Geom2dHatch_Hatching::IsDone () const
 // Purpose  : Sets the error status.
 //=======================================================================
 
-void Geom2dHatch_Hatching::Status (const HatchGen_ErrorStatus Status)
+void Geom2dHatch_Hatching::Status (const HatchGen_ErrorStatus theStatus)
 {
-  myStatus = Status ;
+  myStatus = theStatus;
 }
 
 //=======================================================================
index f61346ac9519cbea1ba0619c0b11626af9f32c49..307657c513124001e1b8aad9c688bde26a9dffa5 100644 (file)
 #include <HatchGen_Domains.hxx>
 #include <Standard_Real.hxx>
 #include <Standard_Integer.hxx>
-class Standard_OutOfRange;
-class Geom2dAdaptor_Curve;
-class HatchGen_PointOnHatching;
-class HatchGen_Domain;
-class gp_Pnt2d;
 
+class gp_Pnt2d;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class Geom2dHatch_Hatching 
 {
@@ -76,7 +76,7 @@ public:
   Standard_EXPORT Standard_Boolean IsDone() const;
   
   //! Sets the error status.
-  Standard_EXPORT void Status (const HatchGen_ErrorStatus Status);
+  Standard_EXPORT void Status (const HatchGen_ErrorStatus theStatus);
   
   //! Returns the error status.
   Standard_EXPORT HatchGen_ErrorStatus Status() const;
index 0bb25fcefc4d0959332c252e9759be6b423796dd..f23298afa1f93de99df7f5ab744a6bfd1bd45176 100644 (file)
@@ -539,7 +539,7 @@ static Handle(Geom_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCurv
   Standard_Real                      tolerance=Precision::PConfusion();
   Standard_Integer                   resNbPoles,degree,
                                      ii,jj,
-                                    Status;
+                                    aStatus;
   
   BS->Knots(BSKnots);            //storage of the two BSpline 
   BS->Multiplicities(BSMults);   //features
@@ -580,7 +580,7 @@ static Handle(Geom_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCurv
                             resFlatKnots,
                             degree,
                             resNumPoles,
-                            Status);
+                            aStatus);
 
   BSplCLib::FunctionMultiply(ev,
                             BS->Degree(),
@@ -589,7 +589,7 @@ static Handle(Geom_BSplineCurve) MultNumandDenom(const Handle(Geom2d_BSplineCurv
                             resFlatKnots,
                             degree,
                             resDenPoles,
-                            Status);
+                            aStatus);
   for (ii=1;ii<=resNbPoles;ii++)
     for(jj=1;jj<=3;jj++) 
       resPoles(ii).SetCoord(jj,resNumPoles(ii).Coord(jj)/resDenPoles(ii));
@@ -903,7 +903,7 @@ private:
        
        BSplCLib::KnotSequence(KnotC1,KnotC1Mults,FlatKnots);
        TColgp_Array1OfPnt  NewPoles(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
-       Standard_Integer      Status;
+       Standard_Integer      aStatus;
        TColStd_Array1OfReal Curve1Weights(1,Curve1->NbPoles());
        Curve1->Weights(Curve1Weights);
        for (ii=1;ii<=Curve1->NbPoles();ii++)
@@ -919,7 +919,7 @@ private:
                                        FlatKnots,
                                        2*Curve1->Degree(),
                                        NewPoles,
-                                       Status
+                                       aStatus
                                        );
        TColStd_Array1OfReal NewWeights(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
 //       BSplCLib::FunctionReparameterise(reparameterise_evaluator,
@@ -930,7 +930,7 @@ private:
                                        FlatKnots,
                                        2*Curve1->Degree(),
                                        NewWeights,
-                                       Status
+                                       aStatus
                                        );
        for (ii=1;ii<=NewPoles.Length();ii++)
         for (jj=1;jj<=3;jj++)
@@ -1138,7 +1138,7 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
         
         BSplCLib::KnotSequence(KnotC1,KnotC1Mults,FlatKnots);
         TColgp_Array1OfPnt  NewPoles(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
-        Standard_Integer      Status;
+        Standard_Integer      aStatus;
         TColStd_Array1OfReal Curve1Weights(1,Curve1->NbPoles());
         Curve1->Weights(Curve1Weights);
         for (ii=1;ii<=Curve1->NbPoles();ii++)
@@ -1154,7 +1154,7 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
                                          FlatKnots,
                                          2*Curve1->Degree(),
                                          NewPoles,
-                                         Status
+                                         aStatus
                                          );
         TColStd_Array1OfReal NewWeights(1,FlatKnots.Length()-(2*Curve1->Degree()+1));
 
@@ -1165,7 +1165,7 @@ void  GeomConvert::ConcatC1(TColGeom_Array1OfBSplineCurve&           ArrayOfCurv
                                          FlatKnots,
                                          2*Curve1->Degree(),
                                          NewWeights,
-                                         Status
+                                         aStatus
                                          );
         for (ii=1;ii<=NewPoles.Length();ii++)
           for (jj=1;jj<=3;jj++)
index f0789ca395d61b0595d72bbdbefb23a2ff4a9b12..7e02f72ff574211551d229e1e0fc74712916682b 100644 (file)
 #include <Standard_ShortReal.hxx>
 #include <Standard_Real.hxx>
 class TopoDS_Edge;
-class HLRAlgo_EdgeStatus;
-class HLRBRep_Curve;
-
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class HLRBRep_EdgeData 
 {
index 0e1883343b76804eaadabdc69200f540e50756f8..22b5e305161aea66c37e2f3f6e8de4a177b6852a 100644 (file)
@@ -612,12 +612,12 @@ Normal (const Standard_Integer iNode,
   gp_Pnt P;
   gp_Dir Norma;
   Standard_Boolean OK;
-  CSLib_DerivativeStatus Status;
+  CSLib_DerivativeStatus aStatus;
   CSLib_NormalStatus NStat;
   myBSurf.D1(Nod1RValues.UV.X(), Nod1RValues.UV.Y(), P, D1U, D1V);
   CSLib::Normal(D1U,D1V,Standard_Real(Precision::Angular()),
-               Status,Norma);
-  if (Status != CSLib_Done) {
+               aStatus,Norma);
+  if (aStatus != CSLib_Done) {
     myBSurf.D2(Nod1RValues.UV.X(), Nod1RValues.UV.Y(), P, D1U, D1V, D2U, D2V, D2UV);
     CSLib::Normal(D1U,D1V,D2U,D2V,D2UV,
                  Precision::Angular(),OK,NStat,Norma);
index ad3451849d21fa715b331c6529c1a33f3010efc2..f8502d1806623a10ac5385d4412311458cb22a6d 100644 (file)
@@ -27,6 +27,10 @@ class Standard_Transient;
 class Interface_InterfaceModel;
 class TCollection_AsciiString;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class IGESSelect_SelectSubordinate;
 DEFINE_STANDARD_HANDLE(IGESSelect_SelectSubordinate, IFSelect_SelectExtract)
index b9c0ec9b7a4a7a5e4defc17f3b3e57d1ebd8a2c1..3e49e25b9110c072de871bbc9d98cd533d5be1dd 100644 (file)
@@ -1089,15 +1089,15 @@ Standard_Boolean IntAna_IntQuadQuad::HasNextCurve(const Standard_Integer I) cons
 //purpose  : 
 //=======================================================================     
 Standard_Integer IntAna_IntQuadQuad::PreviousCurve  (const Standard_Integer I,
-                                                    Standard_Boolean& Opposite) const
+                                                    Standard_Boolean& theOpposite) const
 {
   if(HasPreviousCurve(I)) {
     if(previouscurve[I-1]>0) {
-      Opposite = Standard_False;
+      theOpposite = Standard_False;
       return(previouscurve[I-1]);
     }
     else {
-      Opposite = Standard_True;
+      theOpposite = Standard_True;
       return( - previouscurve[I-1]);
     }
   }
@@ -1110,15 +1110,15 @@ Standard_Integer IntAna_IntQuadQuad::PreviousCurve  (const Standard_Integer I,
 //purpose  : 
 //=======================================================================    
 Standard_Integer IntAna_IntQuadQuad::NextCurve (const Standard_Integer I,
-                                               Standard_Boolean& Opposite) const
+                                               Standard_Boolean& theOpposite) const
 {
   if(HasNextCurve(I)) {
     if(nextcurve[I]>0) {
-      Opposite = Standard_False;
+      theOpposite = Standard_False;
       return(nextcurve[I-1]);
     }
     else {
-      Opposite = Standard_True;
+      theOpposite = Standard_True;
       return( - nextcurve[I-1]);
     }
   }
index 59ef15883b01278f92ee94493133564b6f1c77f4..11b9e965ce6755695472d303b56f29faaa2dd297 100644 (file)
@@ -102,13 +102,13 @@ public:
   
   //! If  HasNextCurve(I)  returns True,  this  function
   //! returns  the  Index J  of the curve  which   has a
-  //! common bound  with the curve   I.  If  Opposite ==
+  //! common bound  with the curve   I.  If  theOpposite ==
   //! True , then the last parameter of the curve I, and
   //! the last parameter of  the curve J  give  the same
   //! point. Else the last  parameter of the curve I and
   //! the first parameter  of  the curve J are  the same
   //! point.
-  Standard_EXPORT Standard_Integer NextCurve (const Standard_Integer I, Standard_Boolean& Opposite) const;
+  Standard_EXPORT Standard_Integer NextCurve (const Standard_Integer I, Standard_Boolean& theOpposite) const;
   
   //! Returns True if the Curve I shares its first bound
   //! with another curve.
@@ -116,13 +116,13 @@ public:
   
   //! if HasPreviousCurve(I) returns True, this function
   //! returns the   Index  J of the   curve  which has a
-  //! common  bound with the  curve  I.  If Opposite  ==
+  //! common  bound with the  curve  I.  If theOpposite  ==
   //! True  , then the  first parameter of  the curve I,
   //! and the first parameter of the curve  J  give  the
   //! same point. Else the first  parameter of the curve
   //! I and the last  parameter  of the curve J  are the
   //! same point.
-  Standard_EXPORT Standard_Integer PreviousCurve (const Standard_Integer I, Standard_Boolean& Opposite) const;
+  Standard_EXPORT Standard_Integer PreviousCurve (const Standard_Integer I, Standard_Boolean& theOpposite) const;
 
 
 
index 068fa2a03e20f4cf13cbe8f5aa37422dacab9b7e..1ea06b4adddc05a3d6ad749a1a7c0bd289c775a8 100644 (file)
@@ -864,7 +864,7 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
   IntRes2d_Transition T1a,T1b,T2a,T2b;
   IntRes2d_Position Pos1a,Pos1b,Pos2a,Pos2b;
 
-  Standard_Boolean Opposite = 
+  Standard_Boolean isOpposite =
     ((Circle1.Location().SquareDistance(Circle2.Location())) > (R1*R1+R2*R2)) ? 
           Standard_True : Standard_False;
 
@@ -873,8 +873,8 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
 
   for(i=0; i<NbSolTotal; i++)
   {
-    Standard_Real C2inf=(Opposite)? SolutionC2[i].Bsup : SolutionC2[i].Binf;
-    Standard_Real C2sup=(Opposite)? SolutionC2[i].Binf : SolutionC2[i].Bsup;
+    Standard_Real C2inf  = isOpposite ? SolutionC2[i].Bsup : SolutionC2[i].Binf;
+    Standard_Real C2sup  = isOpposite ? SolutionC2[i].Binf : SolutionC2[i].Bsup;
     Standard_Real C1tinf = SolutionC1[i].Binf, C2tinf = C2inf;
     Standard_Real C1inf=NormalizeOnCircleDomain(C1tinf,DomainCirc1);
                   C2inf=NormalizeOnCircleDomain(C2tinf,DomainCirc2);
@@ -977,7 +977,7 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
 
         //--------------------------------------------------
 
-        if(Opposite)
+        if (isOpposite)
         {
           if(nbsol!=3)
           {
@@ -994,9 +994,7 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
         }
 
         IntRes2d_IntersectionPoint NewPoint2(P1b,C1sup,PIpPI-C2sup,T1b,T2b,Standard_False);
-        IntRes2d_IntersectionSegment NewSeg(NewPoint1,NewPoint2,
-          (Opposite==Standard_True)? Standard_False : Standard_True,
-          Standard_False);
+        IntRes2d_IntersectionSegment NewSeg (NewPoint1,NewPoint2, !isOpposite, Standard_False);
         Append(NewSeg);
       }
       else
@@ -1032,7 +1030,7 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
 
         //--------------------------------------------------
 
-        if(Opposite)
+        if (isOpposite)
         {
             if(C2inf<C2sup)
               C2inf+=PIpPI;
@@ -1044,7 +1042,7 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
         }
 
         IntRes2d_IntersectionPoint NewPoint2(P1b,C1sup,C2sup,T1b,T2b,Standard_False);
-        IntRes2d_IntersectionSegment NewSeg(NewPoint1,NewPoint2,Opposite,Standard_False);
+        IntRes2d_IntersectionSegment NewSeg(NewPoint1,NewPoint2,isOpposite,Standard_False);
         Append(NewSeg);
       }
       else
@@ -1243,7 +1241,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
   gp_Vec2d Tan2=L2.Direction();
  
   Standard_Real aCosT1T2 = Tan1.Dot(Tan2);
-  Standard_Boolean Opposite=(aCosT1T2 < 0.0)? Standard_True : Standard_False;
+  Standard_Boolean isOpposite = (aCosT1T2 < 0.0) ? Standard_True : Standard_False;
 
   done=Standard_True;
 
@@ -1355,8 +1353,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
        Standard_Real U2inf,U2sup;
        Standard_Real Res2inf,Res2sup;
        
-       if(Opposite) { U2inf = U1pU2 -Res1sup;  U2sup= U1pU2-Res1inf;  }
-       else         { U2inf = Res1inf-U1mU2;   U2sup= Res1sup-U1mU2;  }
+       if (isOpposite) { U2inf = U1pU2 -Res1sup; U2sup= U1pU2-Res1inf; }
+       else            { U2inf = Res1inf-U1mU2;  U2sup= Res1sup-U1mU2; }
        
        DomainIntersection(Domain2,U2inf,U2sup,Res2inf,Res2sup,Pos2a,Pos2b);
 
@@ -1373,7 +1371,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
          //-- Attention, les bornes Res1inf(sup) bougent donc il faut
          //--  eventuellement recalculer les attributs
          
-         if(Opposite) { Res1inf=U1pU2-Res2sup; Res1sup=U1pU2-Res2inf; 
+         if(isOpposite) { Res1inf=U1pU2-Res2sup; Res1sup=U1pU2-Res2inf;
                         Standard_Real Tampon=Res2inf; Res2inf=Res2sup; Res2sup=Tampon;
                         IntRes2d_Position Pos=Pos2a; Pos2a=Pos2b; Pos2b=Pos;
                       }
@@ -1393,8 +1391,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
            T2a.SetValue(Standard_False,Pos2a,IntRes2d_Out);
          }
          else {
-           T1a.SetValue(Standard_False,Pos1a,IntRes2d_Unknown,Opposite);
-           T2a.SetValue(Standard_False,Pos2a,IntRes2d_Unknown,Opposite);
+           T1a.SetValue (Standard_False, Pos1a, IntRes2d_Unknown, isOpposite);
+           T2a.SetValue (Standard_False, Pos2a, IntRes2d_Unknown, isOpposite);
          }
          
 
@@ -1461,13 +1459,13 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
              T2b.SetValue(Standard_False,Pos2b,IntRes2d_Out);
            }
            else {
-             T1b.SetValue(Standard_False,Pos1b,IntRes2d_Unknown,Opposite);
-             T2b.SetValue(Standard_False,Pos2b,IntRes2d_Unknown,Opposite);
+             T1b.SetValue (Standard_False, Pos1b, IntRes2d_Unknown, isOpposite);
+             T2b.SetValue (Standard_False, Pos2b, IntRes2d_Unknown, isOpposite);
            }
            gp_Pnt2d Ptdebut;
            if(Pos1a==IntRes2d_Middle) { 
              Standard_Real t3;
-             if(Opposite) {
+             if (isOpposite) {
                t3 = (Pos2a == IntRes2d_Head)? Res2sup : Res2inf;
              }
              else {
@@ -1495,8 +1493,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                Res2sup=ElCLib::Parameter(L2,Ptfin);
              }
              PtSeg2.SetValues(Ptfin,Res1sup,Res2sup,T1b,T2b,Standard_False);
-             IntRes2d_IntersectionSegment Segment(PtSeg1,PtSeg2
-                                                  ,Opposite,Standard_False);
+             IntRes2d_IntersectionSegment Segment (PtSeg1, PtSeg2, isOpposite, Standard_False);
              Append(Segment);  
            } 
            else { //-- Extremite(L1 ou L2)  ------>   Point Middle(L1 et L2)
@@ -1512,14 +1509,14 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                T2b.SetValue(Standard_False,Pos2b,IntRes2d_Out);
              }
              else {
-               T1b.SetValue(Standard_False,Pos1b,IntRes2d_Unknown,Opposite);
-               T2b.SetValue(Standard_False,Pos2b,IntRes2d_Unknown,Opposite);
+               T1b.SetValue (Standard_False, Pos1b, IntRes2d_Unknown, isOpposite);
+               T2b.SetValue (Standard_False, Pos2b, IntRes2d_Unknown, isOpposite);
              }
              
              PtSeg2.SetValues(ElCLib::Value(U2,L2),U1,U2,T1b,T2b,Standard_False);
 
              if((Abs(Res1inf-U1) >LongMiniSeg) && (Abs(Res2inf-U2) >LongMiniSeg)) {
-               IntRes2d_IntersectionSegment Segment(PtSeg1,PtSeg2,Opposite,Standard_False);
+               IntRes2d_IntersectionSegment Segment (PtSeg1, PtSeg2, isOpposite, Standard_False);
                Append(Segment);  
              }
              else {
@@ -1538,7 +1535,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                gp_Pnt2d Ptfin;
                if(Pos1b==IntRes2d_Middle) {
                  Standard_Real t2;
-                 if(Opposite) { 
+                 if (isOpposite) {
                    t2 = (Pos2b == IntRes2d_Head)? Res2sup : Res2inf;
                  }
                  else {
@@ -1568,8 +1565,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                  T2b.SetValue(Standard_False,Pos2b,IntRes2d_Out);
                }
                else {
-                 T1b.SetValue(Standard_False,Pos1b,IntRes2d_Unknown,Opposite);
-                 T2b.SetValue(Standard_False,Pos2b,IntRes2d_Unknown,Opposite);
+                 T1b.SetValue (Standard_False, Pos1b, IntRes2d_Unknown, isOpposite);
+                 T2b.SetValue (Standard_False, Pos2b, IntRes2d_Unknown, isOpposite);
                }
                PtSeg2.SetValues(Ptfin,Res1sup,Res2sup,T1b,T2b,Standard_False);
                Append(PtSeg2);
@@ -1587,8 +1584,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                  T2b.SetValue(Standard_False,Pos2b,IntRes2d_Out);
                }
                else {
-                 T1b.SetValue(Standard_False,Pos1b,IntRes2d_Unknown,Opposite);
-                 T2b.SetValue(Standard_False,Pos2b,IntRes2d_Unknown,Opposite);
+                 T1b.SetValue (Standard_False, Pos1b, IntRes2d_Unknown, isOpposite);
+                 T2b.SetValue (Standard_False, Pos2b, IntRes2d_Unknown, isOpposite);
                }
                PtSeg1.SetValues(ElCLib::Value(U2,L2),U1,U2,T1b,T2b,Standard_False);
                Append(PtSeg1); 
@@ -1607,8 +1604,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                  T2b.SetValue(Standard_False,Pos2b,IntRes2d_Out);
                }
                else {
-                 T1b.SetValue(Standard_False,Pos1b,IntRes2d_Unknown,Opposite);
-                 T2b.SetValue(Standard_False,Pos2b,IntRes2d_Unknown,Opposite);
+                 T1b.SetValue (Standard_False, Pos1b, IntRes2d_Unknown, isOpposite);
+                 T2b.SetValue (Standard_False, Pos2b, IntRes2d_Unknown, isOpposite);
                }
                //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                //~~ Ajustement des parametres et du point renvoye
@@ -1628,8 +1625,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                   ||(Abs(U2-Res2sup)>LongMiniSeg)) { 
                  //-- Modif du 1er Octobre 92 (Pour Composites)
                  
-                 IntRes2d_IntersectionSegment Segment(PtSeg1,PtSeg2
-                                                      ,Opposite,Standard_False);
+                 IntRes2d_IntersectionSegment Segment (PtSeg1, PtSeg2, isOpposite, Standard_False);
                  Append(Segment);  
                }
                else {
@@ -1698,7 +1694,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
       //== 1 : L1 borne
       if(Domain1.HasFirstPoint()) ResHasFirstPoint=1;
       if(Domain1.HasLastPoint())   ResHasLastPoint=1;
-      if(Opposite) {
+      if (isOpposite) {
        if(Domain2.HasLastPoint())     ResHasFirstPoint+=2;
        if(Domain2.HasFirstPoint())   ResHasLastPoint+=2;
       }
@@ -1708,17 +1704,16 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
       }
       if(ResHasFirstPoint==0 && ResHasLastPoint==0) {
        //~~~~ Creation d un segment infini avec Opposite
-       Append(IntRes2d_IntersectionSegment(Opposite));
+       Append (IntRes2d_IntersectionSegment (isOpposite));
       }
       else {  //-- On obtient au pire une demi-droite
        switch(ResHasFirstPoint) {
        case 1: 
          ParamStart=Domain1.FirstParameter(); 
-         ParamStart2=(Opposite)? (Org2SurL1-ParamStart) 
-                                :(ParamStart-Org2SurL1); 
+         ParamStart2 = isOpposite ? (Org2SurL1 - ParamStart) : (ParamStart - Org2SurL1);
          break;
        case 2:
-         if(Opposite) {
+         if (isOpposite) {
            ParamStart2=Domain2.LastParameter();
            ParamStart=Org2SurL1 - ParamStart2; 
          }
@@ -1728,7 +1723,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
          }
          break;
        case 3:
-         if(Opposite) {
+         if (isOpposite) {
            ParamStart2=Domain2.LastParameter();
            ParamStart=Org2SurL1 - ParamStart2; 
            if(ParamStart < Domain1.FirstParameter()) {
@@ -1752,11 +1747,10 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
        switch(ResHasLastPoint) {
        case 1: 
          ParamEnd=Domain1.LastParameter(); 
-         ParamEnd2=(Opposite)? (Org2SurL1-ParamEnd) 
-                                :(ParamEnd-Org2SurL1); 
+         ParamEnd2 = isOpposite ? (Org2SurL1 - ParamEnd) : (ParamEnd - Org2SurL1);
          break;
        case 2:
-         if(Opposite) {
+         if (isOpposite) {
            ParamEnd2=Domain2.FirstParameter();
            ParamEnd=Org2SurL1 - ParamEnd2; 
          }
@@ -1766,7 +1760,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
          }
          break;
        case 3:
-         if(Opposite) {
+         if (isOpposite) {
            ParamEnd2=Domain2.FirstParameter();
            ParamEnd=Org2SurL1 - ParamEnd2; 
            if(ParamEnd > Domain1.LastParameter()) {
@@ -1798,8 +1792,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
              IntRes2d_Position Pos1,Pos2;
              Pos1=FindPositionLL(ParamStart,Domain1);
              Pos2=FindPositionLL(ParamStart2,Domain2);
-             Tinf.SetValue(Standard_True,Pos1,IntRes2d_Unknown,Opposite);
-             Tsup.SetValue(Standard_True,Pos2,IntRes2d_Unknown,Opposite);
+             Tinf.SetValue (Standard_True, Pos1, IntRes2d_Unknown, isOpposite);
+             Tsup.SetValue (Standard_True, Pos2, IntRes2d_Unknown, isOpposite);
              IntRes2d_IntersectionPoint P1(ElCLib::Value(ParamStart,L1)
                                            ,ParamStart,ParamStart2
                                            ,Tinf,Tsup,Standard_False);
@@ -1807,13 +1801,13 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
                //~~~ Le segment est assez long
                Pos1=FindPositionLL(ParamEnd,Domain1);
                Pos2=FindPositionLL(ParamEnd2,Domain2);
-               Tinf.SetValue(Standard_True,Pos1,IntRes2d_Unknown,Opposite);
-               Tsup.SetValue(Standard_True,Pos2,IntRes2d_Unknown,Opposite);
+               Tinf.SetValue (Standard_True, Pos1, IntRes2d_Unknown, isOpposite);
+               Tsup.SetValue (Standard_True, Pos2, IntRes2d_Unknown, isOpposite);
 
                IntRes2d_IntersectionPoint P2(ElCLib::Value(ParamEnd,L1)
                                              ,ParamEnd,ParamEnd2
                                              ,Tinf,Tsup,Standard_False);
-               IntRes2d_IntersectionSegment Seg(P1,P2,Opposite,Standard_False);
+               IntRes2d_IntersectionSegment Seg (P1, P2, isOpposite, Standard_False);
                Append(Seg);
              }
              else {   //~~~~ le segment est de longueur inferieure a Tol
@@ -1825,26 +1819,26 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& L1
            //~~~ Creation de la demi droite   |----------->
            IntRes2d_Position Pos1=FindPositionLL(ParamStart,Domain1);
            IntRes2d_Position Pos2=FindPositionLL(ParamStart2,Domain2);
-           Tinf.SetValue(Standard_True,Pos1,IntRes2d_Unknown,Opposite);
-           Tsup.SetValue(Standard_True,Pos2,IntRes2d_Unknown,Opposite);
+           Tinf.SetValue (Standard_True, Pos1, IntRes2d_Unknown, isOpposite);
+           Tsup.SetValue (Standard_True, Pos2, IntRes2d_Unknown, isOpposite);
 
            IntRes2d_IntersectionPoint P(ElCLib::Value(ParamStart,L1)
                                          ,ParamStart,ParamStart2
                                          ,Tinf,Tsup,Standard_False);
-           IntRes2d_IntersectionSegment Seg(P,Standard_True,Opposite,Standard_False);
+           IntRes2d_IntersectionSegment Seg (P, Standard_True, isOpposite, Standard_False);
            Append(Seg);
          }
        }
        else {
          IntRes2d_Position Pos1=FindPositionLL(ParamEnd,Domain1);
          IntRes2d_Position Pos2=FindPositionLL(ParamEnd2,Domain2);
-         Tinf.SetValue(Standard_True,Pos1,IntRes2d_Unknown,Opposite);
-         Tsup.SetValue(Standard_True,Pos2,IntRes2d_Unknown,Opposite);
+         Tinf.SetValue (Standard_True, Pos1, IntRes2d_Unknown, isOpposite);
+         Tsup.SetValue (Standard_True, Pos2, IntRes2d_Unknown, isOpposite);
 
          IntRes2d_IntersectionPoint P2(ElCLib::Value(ParamEnd,L1)
                                        ,ParamEnd,ParamEnd2
                                        ,Tinf,Tsup,Standard_False);
-         IntRes2d_IntersectionSegment Seg(P2,Standard_False,Opposite,Standard_False);
+         IntRes2d_IntersectionSegment Seg (P2, Standard_False, isOpposite, Standard_False);
          Append(Seg);
          //~~~ Creation de la demi droite   <-----------|
        }
@@ -2053,7 +2047,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& Line
     ElCLib::CircleD1(SolutionCircle[0].Binf,CircleAxis,R,P1a,Tan1);
     ElCLib::LineD1(SolutionLine[0].Binf,LineAxis,P2a,Tan2);
     
-    Standard_Boolean Opposite=((Tan1.Dot(Tan2))<0.0)? Standard_True : Standard_False;
+    Standard_Boolean isOpposite = (Tan1.Dot (Tan2) < 0.0);
     
     
     for(i=0; i<NbSolTotal; i++ ) {
@@ -2099,8 +2093,8 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& Line
 //-- Fin 7 aout 97
 
       
-      Standard_Real Linf=(Opposite)? SolutionLine[i].Bsup : SolutionLine[i].Binf;
-      Standard_Real Lsup=(Opposite)? SolutionLine[i].Binf : SolutionLine[i].Bsup;
+      Standard_Real Linf = isOpposite ? SolutionLine[i].Bsup : SolutionLine[i].Binf;
+      Standard_Real Lsup = isOpposite ? SolutionLine[i].Binf : SolutionLine[i].Bsup;
       
       //---------------------------------------------------------------
       //-- Si les parametres sur le cercle sont en premier 
@@ -2191,8 +2185,7 @@ void IntCurve_IntConicConic::Perform(const gp_Lin2d& Line
           || (T1a.TransitionType() != T2a.TransitionType())) {  
          //-- Verifier egalement les transitions 
          
-         IntRes2d_IntersectionSegment NewSeg(NewPoint1,NewPoint2
-                                             ,Opposite,ReversedParameters());
+         IntRes2d_IntersectionSegment NewSeg (NewPoint1, NewPoint2, isOpposite, ReversedParameters());
          Append(NewSeg);
        }
        else { 
index 0ba5e5acf2b454ab3c2f840f2729b5165f295492..6e1edf591f58345b898966547a3c94db927e664a 100644 (file)
@@ -557,7 +557,7 @@ TopAbs_State IntTools_FClass2d::Perform
   Standard_Real v = _Puv.Y();
   Standard_Real uu = u;
   Standard_Real vv = v;
-  TopAbs_State Status = TopAbs_UNKNOWN;
+  TopAbs_State aStatus = TopAbs_UNKNOWN;
 
   Handle(BRepAdaptor_HSurface) surf = new BRepAdaptor_HSurface();
   surf->ChangeSurface().Initialize( Face, Standard_False );
@@ -616,7 +616,7 @@ TopAbs_State IntTools_FClass2d::Perform
         bUseClassifier = Standard_True;
       } 
       else {
-        Status = (dedans == 1) ? TopAbs_IN : TopAbs_OUT;
+        aStatus = (dedans == 1) ? TopAbs_IN : TopAbs_OUT;
       }
     } // if(TabOrien(1)!=-1) {
     //compute state of the point using face classifier
@@ -640,14 +640,14 @@ TopAbs_State IntTools_FClass2d::Perform
       //
       BRepClass_FaceClassifier aClassifier;
       aClassifier.Perform(Face,Puv,aFCTol);
-      Status = aClassifier.State();
+      aStatus = aClassifier.State();
     }
     
     if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
-      return Status;
+      return aStatus;
     
-    if (Status == TopAbs_IN || Status == TopAbs_ON)
-      return Status;
+    if (aStatus == TopAbs_IN || aStatus == TopAbs_ON)
+      return aStatus;
     
     if (!urecadre){
       u = uu;
@@ -673,7 +673,7 @@ TopAbs_State IntTools_FClass2d::Perform
       u = uu;
       
       if (v > Vmax || !IsVPer) {
-        return Status;
+        return aStatus;
       }
     }
   } //while (1)
@@ -705,7 +705,7 @@ TopAbs_State IntTools_FClass2d::TestOnRestriction
   const Standard_Boolean IsVPer  = surf->IsVPeriodic();
   const Standard_Real    uperiod = IsUPer ? surf->UPeriod() : 0.0;
   const Standard_Real    vperiod = IsVPer ? surf->VPeriod() : 0.0;
-  TopAbs_State Status = TopAbs_UNKNOWN;
+  TopAbs_State aStatus = TopAbs_UNKNOWN;
   Standard_Boolean urecadre = Standard_False, vrecadre = Standard_False;
   Standard_Integer dedans = 1;
 
@@ -745,25 +745,25 @@ TopAbs_State IntTools_FClass2d::TestOnRestriction
         }
       }
       if(dedans==0) {
-        Status = TopAbs_ON;
+        aStatus = TopAbs_ON;
       }
       if(dedans == 1) {
-        Status = TopAbs_IN;
+        aStatus = TopAbs_IN;
       }
       if(dedans == -1) {
-        Status = TopAbs_OUT;
+        aStatus = TopAbs_OUT;
       }
     }
     else {  //-- TabOrien(1)=-1  Wrong  Wire 
       BRepClass_FaceClassifier aClassifier;
       aClassifier.Perform(Face,Puv,Tol);
-      Status = aClassifier.State();
+      aStatus = aClassifier.State();
     }
     
     if (!RecadreOnPeriodic || (!IsUPer && !IsVPer))
-      return Status;
-    if (Status == TopAbs_IN || Status == TopAbs_ON)
-      return Status;
+      return aStatus;
+    if (aStatus == TopAbs_IN || aStatus == TopAbs_ON)
+      return aStatus;
     
     if (!urecadre)
       {
@@ -787,7 +787,7 @@ TopAbs_State IntTools_FClass2d::TestOnRestriction
         u = uu;
         
         if (v > Vmax || !IsVPer)
-          return Status;
+          return aStatus;
       }
   } //for (;;)
 }
index 203ee5f1f343b0a98c614cbd69d14145950adbaa..0ae3d9398cdf7dd0bbca0396138f2cf2672cdcb8 100644 (file)
@@ -74,7 +74,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
   Handle(IntWalk_TheIWLine)  CurrentLine;    // line under construction
   Standard_Boolean Tgtend;
 
-  IntWalk_StatusDeflection Status, StatusPrecedent;
+  IntWalk_StatusDeflection aStatus, StatusPrecedent;
   
   Standard_Integer NbDivision; 
   // number of divisions of step for each section
@@ -238,10 +238,10 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
                 }
               }
             }
-            Status = TestDeflection(Func, Arrive, UVap, StatusPrecedent,
+            aStatus = TestDeflection(Func, Arrive, UVap, StatusPrecedent,
               NbDivision,PasC,StepSign);
-            StatusPrecedent = Status;
-            if (Status == IntWalk_PasTropGrand) {
+            StatusPrecedent = aStatus;
+            if (aStatus == IntWalk_PasTropGrand) {
               Arrive = Standard_False;
               ArretAjout = Standard_False;
               Tgtend = Standard_False; // jag 940615
@@ -255,7 +255,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
             else if (ArretAjout || Cadre) {
               Arrive = Standard_True;
               CurrentLine->AddStatusLast(Standard_False);
-              //if (Status != IntWalk_ArretSurPointPrecedent)
+              //if (aStatus != IntWalk_ArretSurPointPrecedent)
               CurrentLine->AddPoint(Psol);                      
               //Remove <SaveN> from <seqAlone>
               for (Standard_Integer iseq = 1; iseq <= seqAlone.Length(); iseq++)
@@ -270,7 +270,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
                 seqAjout.Append(lines.Length()+1);
               }
             }
-            else if (Status == IntWalk_ArretSurPointPrecedent) {
+            else if (aStatus == IntWalk_ArretSurPointPrecedent) {
               if (CurrentLine->NbPoints() == 1) { //cancel the line
                 Arrive = Standard_False;
                 break;
@@ -285,7 +285,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
             }
             else if (Arrive)  {
               if (CurrentLine->NbPoints() == 1 &&    // cancel the line
-                (N == I || Status == IntWalk_PointConfondu) ) {
+                (N == I || aStatus == IntWalk_PointConfondu) ) {
                   // if N == I the main uv is probably lost
                   // or the point is a point of accumulation
                   // if point is confused the start data is bad
@@ -301,7 +301,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
               //             if (etat1N < 11) { // passing point that is a stop  
               if (Abs(etat1N) < 11) { // passing point that is a stop    
                 // modified by NIZHNY-MKK  Thu Nov  2 15:12:11 2000.END
-                if (Status == IntWalk_ArretSurPoint) { 
+                if (aStatus == IntWalk_ArretSurPoint) {
                   CurrentLine->AddStatusLast(Standard_False);
                   Tgtend = Standard_True; // need check
                 }
@@ -333,7 +333,7 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
                 // modified by NIZHNY-MKK  Fri Oct 27 12:45:33 2000.END
               }
             }
-            else if (Status == IntWalk_ArretSurPoint) {
+            else if (aStatus == IntWalk_ArretSurPoint) {
               Arrive = Standard_True;                   
               CurrentLine->AddStatusLast(Standard_False);
               Tgtend = Standard_True;
@@ -343,13 +343,13 @@ void IntWalk_IWalking::ComputeOpenLine(const TColStd_SequenceOfReal& Umult,
               seqAlone.Append(lines.Length() + 1);
               seqAjout.Append(lines.Length() + 1);
             }
-            else if (Status == IntWalk_OK) { 
+            else if (aStatus == IntWalk_OK) {
               MakeWalkingPoint(2, UVap(1), UVap(2), Func, previousPoint);
               previousd3d = Func.Direction3d();
               previousd2d = Func.Direction2d();
               CurrentLine->AddPoint(previousPoint);
             }     
-            else if (Status == IntWalk_PointConfondu)
+            else if (aStatus == IntWalk_PointConfondu)
             {
               aNbIter --;
             }
index 4d704e4003aa8fa69d7f9f7496d92f553ac29fc6..460346a647b4d319447888cf3afde6c24be19fb3 100644 (file)
@@ -61,7 +61,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
 
   Standard_Integer StepSign;
   
-  IntWalk_StatusDeflection Status = IntWalk_OK, StatusPrecedent;
+  IntWalk_StatusDeflection aStatus = IntWalk_OK, StatusPrecedent;
   Standard_Integer NbDivision ;   // number of divisions of step 
   // during calculation of  1 section
 
@@ -245,7 +245,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                   Standard_Real aScaleCoeff = 0.0;
 
                   // Avoid finite cycle which lead to stop computing iline.
-                  if (Status != IntWalk_PasTropGrand)
+                  if (aStatus != IntWalk_PasTropGrand)
                   {
                     // Make linear extrapolation.
                     if ( Abs(uv[aCoordIdx - 1] - uvprev[aCoordIdx - 1]) > gp::Resolution())
@@ -303,11 +303,11 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                 Arrive = (wd2[I].etat == 12); // the line is open
               }
             }
-            Status = TestDeflection(Func, Arrive,Uvap,StatusPrecedent,
+            aStatus = TestDeflection(Func, Arrive,Uvap,StatusPrecedent,
                                                 NbDivision,PasC,StepSign);
 
-            StatusPrecedent = Status; 
-            if (Status == IntWalk_PasTropGrand) {// division of the step
+            StatusPrecedent = aStatus;
+            if (aStatus == IntWalk_PasTropGrand) {// division of the step
               Arrive = Standard_False;
               ArretAjout = Standard_False;
               Tgtend = Standard_False; // jag 940616
@@ -322,7 +322,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
 
               if (Arrive) { // line s is open
                 CurrentLine->AddStatusLast(Standard_False);
-                //if (Status != IntWalk_ArretSurPointPrecedent)
+                //if (aStatus != IntWalk_ArretSurPointPrecedent)
                 CurrentLine->AddPoint(Psol);
 
                 //Remove <SaveN> from <seqAlone> and, if it is first found point,
@@ -370,7 +370,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                 StepSign = -1;
                 StatusPrecedent = IntWalk_OK;
                 PasC = PasSav;
-                if (Status == IntWalk_ArretSurPointPrecedent) {
+                if (aStatus == IntWalk_ArretSurPointPrecedent) {
                   CurrentLine->AddPoint(Psol);
                   OpenLine(0,Psol,Pnts1,Func,CurrentLine);
                 }
@@ -407,7 +407,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                 }
               }
             }
-            else if ( Status == IntWalk_ArretSurPointPrecedent) {
+            else if (aStatus == IntWalk_ArretSurPointPrecedent) {
               if (CurrentLine->NbPoints() == 1) { //cancel the line
                 Arrive = Standard_False;
                 RemoveTwoEndPoints(I);
@@ -445,7 +445,7 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                 AddPointInCurrentLine(N,PathPnt,CurrentLine);
               }
             }
-            else if (Status == IntWalk_ArretSurPoint) {
+            else if (aStatus == IntWalk_ArretSurPoint) {
               if (wd2[I].etat >12) { //line should become open
                 wd2[I].etat = 12; //declare it open
                 Tgtbeg = Standard_True;
@@ -479,14 +479,14 @@ void IntWalk_IWalking::ComputeCloseLine(const TColStd_SequenceOfReal& Umult,
                 }
               }
             }
-            else if (Status == IntWalk_OK) { 
+            else if (aStatus == IntWalk_OK) {
               if (Ipass!=0) CurrentLine->AddIndexPassing(Ipass);
               previousPoint.SetValue(Func.Point(),reversed,Uvap(1),Uvap(2));
               previousd3d = Func.Direction3d();
               previousd2d = Func.Direction2d();
               CurrentLine->AddPoint(previousPoint);
             }
-            else if (Status == IntWalk_PointConfondu)
+            else if (aStatus == IntWalk_PointConfondu)
             {
               aNbIter --;
             }
index b3454916a138816b2ebcb15a63e0f13a5634f2cb..3d5d1fe30f79e3645a590aceb7e6ccadf24783ad 100644 (file)
@@ -51,7 +51,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
   //11) calculate the step of advancement depending on the vector
   //12) adjust the step depending on the previous steps 
   
-  IntWalk_StatusDeflection Status = IntWalk_OK;
+  IntWalk_StatusDeflection aStatus = IntWalk_OK;
 
   //---------------------------------------------------------------------------------
   //-- lbr le 4 Avril 95 : it is possible that the status returns points confused
@@ -80,7 +80,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
   //if ((++NbPointsConfondusConsecutifs < 10) && (Norme <= epsilon)) { // the square is already taken in the constructor
   if ((Norme <= epsilon) && ((Duv <= aTol) || (StatusPrecedent != IntWalk_OK)))
   { // the square is already taken in the constructor
-    Status = IntWalk_PointConfondu;
+    aStatus = IntWalk_PointConfondu;
     if (StatusPrecedent == IntWalk_PasTropGrand) {
       return IntWalk_ArretSurPointPrecedent;
     }
@@ -92,7 +92,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
     if (Cosi*StepSign >= 0.) {// angle 3d <= pi/2 !!!!
       const Standard_Real aDiv = previousd3d.SquareMagnitude()*Norme;
       if(aDiv == 0)
-        return Status;
+        return aStatus;
       Cosi2 = Cosi * Cosi / aDiv;
     }
     if (Cosi2 < CosRef3D) { //angle 3d too great
@@ -100,10 +100,10 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
       Standard_Real StepU = Abs(Step*previousd2d.X()),
                     StepV = Abs(Step*previousd2d.Y());
       if (StepU < tolerance(1) && StepV < tolerance(2)) 
-        Status = IntWalk_ArretSurPointPrecedent;
+        aStatus = IntWalk_ArretSurPointPrecedent;
       else 
-        Status = IntWalk_PasTropGrand;
-      return Status;
+        aStatus = IntWalk_PasTropGrand;
+      return aStatus;
     }
   }
 
@@ -128,7 +128,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
 
   Standard_Real Cosi = StepSign * (Du * previousd2d.X() + Dv * previousd2d.Y());
 
-  if (Cosi < 0 && Status == IntWalk_PointConfondu) 
+  if (Cosi < 0 && aStatus == IntWalk_PointConfondu)
     return IntWalk_ArretSurPointPrecedent; // leave as step back  
                                            // with confused point
 
@@ -138,7 +138,7 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
 //if during routing one has subdivided more than  MaxDivision for each
 //previous step, bug on the square; do nothing (experience U4)
 
-  if ((NbDivision < MaxDivision) && (Status != IntWalk_PointConfondu) && 
+  if ((NbDivision < MaxDivision) && (aStatus != IntWalk_PointConfondu) &&
     (StatusPrecedent!= IntWalk_PointConfondu))
   {
     Standard_Real Cosi2 = Cosi * Cosi / Duv;
@@ -148,11 +148,11 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
                     StepV = Abs(Step*previousd2d.Y());
 
       if (StepU < tolerance(1) && StepV < tolerance(2))
-        Status = IntWalk_ArretSurPointPrecedent;
+        aStatus = IntWalk_ArretSurPointPrecedent;
       else 
-        Status = IntWalk_PasTropGrand;
+        aStatus = IntWalk_PasTropGrand;
       NbDivision = NbDivision + 1;
-      return Status;
+      return aStatus;
     }
 
     Cosi = Corde * sp.Direction3d(); 
@@ -162,10 +162,10 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
       Standard_Real StepU = Abs(Step*previousd2d.X()),
                     StepV = Abs(Step*previousd2d.Y());
       if (StepU < tolerance(1) && StepV < tolerance(2))
-        Status = IntWalk_ArretSurPoint;
+        aStatus = IntWalk_ArretSurPoint;
       else 
-        Status = IntWalk_PasTropGrand;
-      return Status;
+        aStatus = IntWalk_PasTropGrand;
+      return aStatus;
     }
     Cosi = Du * sp.Direction2d().X() + 
       Dv * sp.Direction2d().Y();
@@ -177,15 +177,15 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
         Standard_Real StepU = Abs(Step*previousd2d.X()),
                       StepV = Abs(Step*previousd2d.Y());
         if (StepU < tolerance(1) && StepV < tolerance(2))
-          Status = IntWalk_ArretSurPointPrecedent;
+          aStatus = IntWalk_ArretSurPointPrecedent;
         else 
-          Status = IntWalk_PasTropGrand;
-        return Status;
+          aStatus = IntWalk_PasTropGrand;
+        return aStatus;
     }
   }
 
   if (!Finished) {
-    if (Status == IntWalk_PointConfondu)
+    if (aStatus == IntWalk_PointConfondu)
     {
       Standard_Real StepU = Min(Abs(1.5 * Du),pas*(UM-Um)),
                     StepV = Min(Abs(1.5 * Dv),pas*(VM-Vm));
@@ -277,9 +277,9 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
                         StepV = Abs(Step*previousd2d.Y());
           
           if (StepU < tolerance(1) && StepV < tolerance(2)) 
-            Status = IntWalk_ArretSurPointPrecedent;
+            aStatus = IntWalk_ArretSurPointPrecedent;
           else 
-            Status = IntWalk_PasTropGrand;
+            aStatus = IntWalk_PasTropGrand;
         }
         else
         {
@@ -305,9 +305,5 @@ IntWalk_StatusDeflection IntWalk_IWalking::TestDeflection
       }
     }
   }
-  return Status;     
+  return aStatus;
 }
-
-
-
-
index f6234e1e5b9b8e4a83dd79980e505e484d2f7b8f..54c42a130432c7bf3e58e08a6a0d239e626e1a26 100644 (file)
@@ -721,7 +721,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
 
   AddAPoint(line,previousPoint);
   //
-  IntWalk_StatusDeflection Status = IntWalk_OK, aPrevStatus = IntWalk_OK;
+  IntWalk_StatusDeflection aStatus = IntWalk_OK, aPrevStatus = IntWalk_OK;
   Standard_Boolean NoTestDeflection = Standard_False;
   Standard_Real SvParam[4], f;
   Standard_Integer LevelOfEmptyInmyIntersectionOn2S=0;
@@ -736,7 +736,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
   Arrive = Standard_False;
   while(!Arrive) //010
   {
-    aPrevStatus = Status;
+    aPrevStatus = aStatus;
 
     LevelOfIterWithoutAppend++;
     if(LevelOfIterWithoutAppend>20)
@@ -856,7 +856,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
             anAbsParamDist[1] < ResoV1 &&
             anAbsParamDist[2] < ResoU2 &&
             anAbsParamDist[3] < ResoV2 &&
-            Status != IntWalk_PasTropGrand)
+            aStatus != IntWalk_PasTropGrand)
         {
           isBadPoint = Standard_True;
           aBestIso = IntImp_ConstIsoparametric((aBestIso + 1) % 4);
@@ -930,7 +930,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
             LevelOfEmptyInmyIntersectionOn2S=0;
             if(LevelOfIterWithoutAppend < 10)
             {
-              Status = TestDeflection(ChoixIso);
+              aStatus = TestDeflection(ChoixIso);
             }                  
             else
             {
@@ -947,11 +947,11 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
         //============================================================
         if(LevelOfPointConfondu > 5)
         { 
-          Status = IntWalk_ArretSurPoint; 
+          aStatus = IntWalk_ArretSurPoint;
           LevelOfPointConfondu = 0;  
         }
         //
-        if(Status==IntWalk_OK)
+        if(aStatus==IntWalk_OK)
         { 
           NbPasOKConseq++;
           if(NbPasOKConseq >= 5)
@@ -1026,12 +1026,12 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
             }
             while(pastroppetit);
           }
-        }//Status==IntWalk_OK
+        }//aStatus==IntWalk_OK
         else
           NbPasOKConseq=0;
 
         //
-        switch(Status)//007 
+        switch(aStatus)//007
         {
         case IntWalk_ArretSurPointPrecedent:
           {
@@ -1150,7 +1150,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
             // JMB 30th December 1999. 
             // Some statement below should not be put in comment because they are useful.
             // See grid CTO 909 A1 which infinitely loops 
-            if(Arrive==Standard_False && Status==IntWalk_ArretSurPoint)
+            if(Arrive==Standard_False && aStatus==IntWalk_ArretSurPoint)
             {
               Arrive=Standard_True;
 #ifdef OCCT_DEBUG
@@ -1238,7 +1238,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
               }//pointisvalid
               //====================================================
 
-              if(Status == IntWalk_ArretSurPoint)
+              if (aStatus == IntWalk_ArretSurPoint)
               {
                 RepartirOuDiviser(DejaReparti,ChoixIso,Arrive);
               }
@@ -1608,7 +1608,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
               }//$$$ end framing on border (!close)
             }//004 fin TestArret return Arrive = True
           } // 006case IntWalk_ArretSurPoint:  end Processing Status = OK  or ArretSurPoint 
-        } //007  switch(Status) 
+        } //007  switch(aStatus)
       } //008 end processing point  (TEST DEFLECTION)
     } //009 end processing line (else if myIntersectionOn2S.IsDone())
   }  //010 end if first departure point allows marching  while (!Arrive)
@@ -1628,7 +1628,7 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
   Standard_Boolean bStop = !myIntersectionOn2S.IsTangent();
   Standard_Integer dIncKey = 1;
   TColStd_Array1OfReal Param(1,4);
-  IntWalk_StatusDeflection Status = IntWalk_OK;
+  IntWalk_StatusDeflection aStatus = IntWalk_OK;
   Standard_Integer nbIterWithoutAppend = 0;
   Standard_Integer nbEqualPoints = 0;
   Standard_Integer parit = 0;
@@ -1690,9 +1690,9 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
         return bOutOfTangentZone;
       }
 
-      Status = TestDeflection(ChoixIso);
+      aStatus = TestDeflection(ChoixIso);
 
-      if(Status == IntWalk_OK) {
+      if(aStatus == IntWalk_OK) {
 
         for(uvit = 0; uvit < 4; uvit++) {
           if(pasuv[uvit] < pasInit[uvit]) {
@@ -1701,7 +1701,7 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
         }
       }
 
-      switch(Status) {
+      switch(aStatus) {
       case  IntWalk_ArretSurPointPrecedent:
         {
           bStop = Standard_True;
@@ -1907,8 +1907,8 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
   }
 
   if(!bExtendLine) {
-    //    if(Status == IntWalk_OK || Status == IntWalk_ArretSurPoint) {
-    if(Status == IntWalk_OK) {
+    //    if(aStatus == IntWalk_OK || aStatus == IntWalk_ArretSurPoint) {
+    if(aStatus == IntWalk_OK) {
       bExtendLine = Standard_True;
 
       if(aSeqOfNewPoint.Length() > 1) {
@@ -2905,7 +2905,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
     STATIC_BLOCAGE_SUR_PAS_TROP_GRAND=STATIC_PRECEDENT_INFLEXION=0;
   }
 
-  IntWalk_StatusDeflection Status = IntWalk_OK;
+  IntWalk_StatusDeflection aStatus = IntWalk_OK;
   Standard_Real FlecheCourante , Ratio = 1.0;
 
   // Caro1 and Caro2
@@ -3020,7 +3020,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
         pasuv[choixIso] = pasInit[choixIso] = 2*LocalResol;
     }
     ////////////////////////////////////////
-    Status = IntWalk_PointConfondu;
+    aStatus = IntWalk_PointConfondu;
   }
 
   //==================================================================================
@@ -3097,7 +3097,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
   //==                           N o t    T o o    G r e a t (angle in space UV)    ==
   //==                           C h a n g e    o f    s i d e                ==
   //==================================================================================
-  if (Status != IntWalk_PointConfondu) { 
+  if (aStatus != IntWalk_PointConfondu) {
     if(Cosi1*Cosi1 < CosRef1*Duv1 || Cosi2*Cosi2 < CosRef2*Duv2) {
       pasuv[0]*=0.5;  pasuv[1]*=0.5;  pasuv[2]*=0.5;  pasuv[3]*=0.5;
       if (pasuv[0]<ResoU1 && pasuv[1]<ResoV1 && pasuv[2]<ResoU2 && pasuv[3]<ResoV2) { 
@@ -3183,11 +3183,11 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
           return IntWalk_PasTropGrand; 
         }
     }
-    if(Status == IntWalk_OK) { 
+    if(aStatus == IntWalk_OK) {
       STATIC_BLOCAGE_SUR_PAS_TROP_GRAND=0;
       //-- Try to increase the step
     }
-    return Status;
+    return aStatus;
   }
   else {                                //-- CurrentVector > vector*0.5 
     if (FlecheCourante > fleche) {      //-- Current step too Great
@@ -3206,7 +3206,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
     }
   }
 
-  if(Status != IntWalk_PointConfondu)
+  if(aStatus != IntWalk_PointConfondu)
   {
     //Here, aCosBetweenTangent >= 0.0 definitely.
 
@@ -3273,7 +3273,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
 
     if(aSinB2Max >= 0.0 && (aCosBetweenTangent <= 2.0 * aSinB2Max * aSinB2Max - 1.0))
     {//Real deflection is greater or equal than tolconf
-      Status = IntWalk_PasTropGrand;
+      aStatus = IntWalk_PasTropGrand;
     }
     else
     {//Real deflection is less than tolconf
@@ -3282,17 +3282,17 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
 
       if((aSinB2Min < 0.0) || (aCosBetweenTangent >= 2.0 * aSinB2Min * aSinB2Min - 1.0))
       {//Real deflection is less than tolconf/2.0
-        Status = IntWalk_StepTooSmall;
+        aStatus = IntWalk_StepTooSmall;
       }
     }
 
-    if(Status == IntWalk_PasTropGrand)
+    if(aStatus == IntWalk_PasTropGrand)
     {
       pasuv[0]*=0.5; pasuv[1]*=0.5; pasuv[2]*=0.5; pasuv[3]*=0.5;
-      return Status;
+      return aStatus;
     }
 
-    if(Status == IntWalk_StepTooSmall)
+    if(aStatus == IntWalk_StepTooSmall)
     {
       pasuv[0] = Max(pasuv[0], AbsDu1);
       pasuv[1] = Max(pasuv[1], AbsDv1);
@@ -3304,7 +3304,7 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
       pasInit[2] = Max(pasInit[2], AbsDu2);
       pasInit[3] = Max(pasInit[3], AbsDv2);
 
-      return Status;
+      return aStatus;
     }
   }
 
@@ -3313,8 +3313,8 @@ IntWalk_StatusDeflection  IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
   pasuv[2] = Max(myStepMin[2],Min(Min(Ratio*AbsDu2,pasuv[2]),pasInit[2]));
   pasuv[3] = Max(myStepMin[3],Min(Min(Ratio*AbsDv2,pasuv[3]),pasInit[3]));
 
-  if(Status == IntWalk_OK) STATIC_BLOCAGE_SUR_PAS_TROP_GRAND=0;
-  return Status;
+  if(aStatus == IntWalk_OK) STATIC_BLOCAGE_SUR_PAS_TROP_GRAND=0;
+  return aStatus;
 }
 
 Standard_Boolean IntWalk_PWalking::
index 4429eb61aa470527ff943f8bb9fad571e69b2f3e..e457fb6f014aa5e2a05b467b4e4e807d9cfb9ca4 100644 (file)
@@ -32,6 +32,10 @@ class Message_Msg;
 class TCollection_HAsciiString;
 class Message_Messenger;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class Interface_Check;
 DEFINE_STANDARD_HANDLE(Interface_Check, MMgt_TShared)
index 41768d6bb30ae690f6ba854038fa14fa7584842a..710ab3af17f4f4d34cdba5eee440efb54b950f63 100644 (file)
@@ -36,6 +36,10 @@ class Interface_Check;
 class Standard_Transient;
 class Message_Messenger;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Result of a Check operation (especially from InterfaceModel)
 class Interface_CheckIterator 
index 6eaa95f01dfa562dfff86f6419b4ec6c56460c13..9714b122e7ae6de24e9bc09ac664ce2664a7a2d4 100644 (file)
 #include <Interface_BitMap.hxx>
 #include <Interface_InterfaceModel.hxx>
 
-#include <TCollection_AsciiString.hxx>
+#include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_HArray1OfListOfInteger.hxx>
 #include <TColStd_HSequenceOfTransient.hxx>
 
-class Interface_InterfaceModel;
 class Standard_DomainError;
 class Interface_GeneralLib;
 class Interface_Protocol;
 class Interface_GTool;
 class Standard_Transient;
-class Interface_BitMap;
 class Interface_EntityIterator;
-class TCollection_HAsciiString;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Gives basic data structure for operating and storing
 //! graph results (usage is normally internal)
index 236700eec21e5a36a5271b005a443025b6857639..43ab88a23a0c221c9ea1670149dfbf6a6f02b51c 100644 (file)
 #include <stdio.h>
 
 // exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
-#define GL_GLEXT_LEGACY
-#define GLX_GLXEXT_LEGACY
+#ifndef GL_GLEXT_LEGACY
+  #define GL_GLEXT_LEGACY
+#endif
+#ifndef GLX_GLXEXT_LEGACY
+  #define GLX_GLXEXT_LEGACY
+#endif
 
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
 #include <GL/glx.h>
 
-// workaround name conflicts with OCCT methods (in class TopoDS_Shape for example)
-#ifdef Convex
-  #undef Convex
-#endif
-#ifdef Status
-  #undef Status
-#endif
-#ifdef Opposite
-  #undef Opposite
-#endif
-
 #endif
 
 #endif // __INTERFACE_GRAPHIC_HXX
index b5f5cbe990aec4b58864303e5dd246dc2daac038..4cb74531f71113a44dffa371ec9d17f1a740da85 100644 (file)
@@ -29,7 +29,7 @@ static Standard_Boolean IsTangentDefined (LProp_SLProps& SProp,
                                           const Standard_Real linTol,
                                           const Standard_Integer  Derivative, 
                                           Standard_Integer&       Order,
-                                          LProp_Status&  Status) 
+                                          LProp_Status&  theStatus)
 {
   Standard_Real Tol = linTol * linTol;
   gp_Vec V[2];
@@ -54,13 +54,13 @@ static Standard_Boolean IsTangentDefined (LProp_SLProps& SProp,
 
       if(V[Derivative].SquareMagnitude() > Tol)
       {
-        Status = LProp_Defined;
+        theStatus = LProp_Defined;
         return Standard_True;
       }
     }//if(cn >= Order)
     else
     {
-      Status = LProp_Undefined;
+      theStatus = LProp_Undefined;
       return Standard_False;
     }
   }
@@ -324,9 +324,9 @@ Standard_Boolean LProp_SLProps::IsNormalDefined()
 
   // status = UnDecided 
   // first try the standard computation of the normal.
-  CSLib_DerivativeStatus Status;
-  CSLib::Normal(myD1u, myD1v, myLinTol, Status, myNormal);
-  if (Status  == CSLib_Done ) 
+  CSLib_DerivativeStatus aStatus = CSLib_Done;
+  CSLib::Normal(myD1u, myD1v, myLinTol, aStatus, myNormal);
+  if (aStatus == CSLib_Done)
   {
     myNormalStatus = LProp_Computed;
     return Standard_True;
index fc6165f8f814f0ef438121d04d9c98c75b270e91..9ee7595246a7f997860eb213ec18c968a3d2d855 100644 (file)
@@ -1422,7 +1422,7 @@ static Standard_Integer wavefront(Draw_Interpretor&, Standard_Integer nbarg, con
   gp_Dir Nor;
   gp_Pnt P;
   Standard_Real U, V;
-  CSLib_DerivativeStatus Status;
+  CSLib_DerivativeStatus aStatus;
   CSLib_NormalStatus NStat;
   Standard_Real x, y, z;
   Standard_Integer n1, n2, n3;
@@ -1473,8 +1473,8 @@ static Standard_Integer wavefront(Draw_Interpretor&, Standard_Integer nbarg, con
           V = UVNodes(i).Y();
 
           BS.D1(U,V,P,D1U,D1V);
-          CSLib::Normal(D1U,D1V,Precision::Angular(),Status,Nor);
-          if (Status != CSLib_Done) {
+          CSLib::Normal (D1U, D1V, Precision::Angular(), aStatus, Nor);
+          if (aStatus != CSLib_Done) {
             BS.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
             CSLib::Normal(D1U,D1V,D2U,D2V,D2UV,Precision::Angular(),OK,NStat,Nor);
           }
index 6ea42e6ee6ee377457c0686490093ac323266273..a5d90f20c900f23074a59d8911f75f43957198de 100644 (file)
@@ -30,6 +30,10 @@ class Message_Printer;
 class TCollection_AsciiString;
 class TCollection_ExtendedString;
 
+// resolve name collisions with WinAPI headers
+#ifdef AddPrinter
+  #undef AddPrinter
+#endif
 
 class Message_Messenger;
 DEFINE_STANDARD_HANDLE(Message_Messenger, MMgt_TShared)
index 84a1d574018b4e7d5693c9d58499d9d958011cac..4c85ec073b550d3e994475da3c5449ad879ef7ca 100644 (file)
@@ -181,9 +181,6 @@ Standard_Integer OSD_Process::Error()const{
 #endif
 #include <windows.h>
 
-#ifdef SetCurrentDirectory
-# undef SetCurrentDirectory /* undefine SetCurrentDirectory from <winbase.h> to correctly include <OSD_Process.hxx> */
-#endif
 #include <OSD_Process.hxx>
 
 #include <OSD_Path.hxx>
index 573b0a4279be90fc9f15bf974fbc16be23310975..e897d3f3b7ca0eeb970bd2d3a7f0976f443eec42 100644 (file)
@@ -29,6 +29,10 @@ class TCollection_AsciiString;
 class Quantity_Date;
 class OSD_Path;
 
+// undefine SetCurrentDirectory that can be #defined by previous inclusion of windows.h
+#ifdef SetCurrentDirectory
+# undef SetCurrentDirectory
+#endif
 
 //! A set of system process tools
 class OSD_Process 
index fca42c5e2f5fcd2bf7b33b4c7a79d39f9561ec82..880589d1735c281a5507fcca00103c7122f396d0 100644 (file)
 #endif
 
 // exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
-#define GL_GLEXT_LEGACY
-#define GLX_GLXEXT_LEGACY
+#ifndef GL_GLEXT_LEGACY
+  #define GL_GLEXT_LEGACY
+#endif
+#ifndef GLX_GLXEXT_LEGACY
+  #define GLX_GLXEXT_LEGACY
+#endif
 
 // include main OpenGL header provided with system
 #if defined(__APPLE__)
index 1b0f8a5e8e3ef0e07aca85111656b072b66b8759..5876f9a870997c846bbc67d459d7dbb44fb5c4dd 100644 (file)
@@ -152,7 +152,7 @@ static Standard_Integer OCC367 (Draw_Interpretor& di, Standard_Integer argc, con
   Standard_Real goodY = Draw::Atof(argv[4]);
   Standard_Real goodZ = Draw::Atof(argv[5]);
   Standard_Real percent = Draw::Atof(argv[6]);
-  Standard_Boolean Status = Standard_False;
+  Standard_Boolean aStatus = Standard_False;
 
   // Find the first vertex of the wire
   BRepTools_WireExplorer wire_exp(myTopoDSWire);
@@ -221,14 +221,14 @@ static Standard_Integer OCC367 (Draw_Interpretor& di, Standard_Integer argc, con
          deltaY = delta_percent(FirstEdgeY, goodY);
          deltaZ = delta_percent(FirstEdgeZ, goodZ);
          if (deltaX <= percent && deltaY <= percent && deltaZ <= percent) {
-           Status = Standard_True;
+           aStatus = Standard_True;
          }
        }
       }
     }
   di << "\n\nFirstEdge = " << FirstEdgeX <<" " << FirstEdgeY <<" " << FirstEdgeZ << "\n";
   di << "deltaX = " << deltaX << " deltaY = " << deltaY << " deltaZ = " << deltaZ << "\n";
-  if (Status) {
+  if (aStatus) {
     di << argv[0] << " : OK\n";
   } else {
     di << argv[0] << " : ERROR\n";
index dfeaecc7a9fbcaace92047cf6529d7c319073bdd..f57ba02eb6bba6c9903d9f7bbe027b30d2fc9e9a 100644 (file)
@@ -1281,7 +1281,7 @@ namespace AllocTest
   // The test is based of occupying of all available virtual memory.
   // Obviously it has no sense on 64-bit platforms.
 
-  enum Status
+  enum AllocTestStatus
   {
     NotApplicable = 0x1,
     OUMCatchOK    = 0x2,
index 0720f1595b55bc1e23b7e2bd56654404a82685f5..b48dadda2cab34aeee034406261f591918c8b1f8 100644 (file)
@@ -107,9 +107,9 @@ TopoDS_Shape QADNaming::CurrentShape (const Standard_CString  LabelName,
 
 TCollection_AsciiString QADNaming::GetEntry (const TopoDS_Shape&         Shape,
                                           const Handle(TDF_Data)&     DF,
-                                          Standard_Integer&           Status)
+                                          Standard_Integer&           theStatus)
 {
-  Status = 0;
+  theStatus = 0;
   //Handle(TNaming_UsedShapes) US;
   //DF->Root().FindAttribute(TNaming_UsedShapes::GetID(),US);
 
@@ -119,11 +119,11 @@ TCollection_AsciiString QADNaming::GetEntry (const TopoDS_Shape&         Shape,
   Standard_Integer Transdef;
   TDF_Label Lab = TNaming_Tool::Label (DF->Root(), Shape,Transdef);
   TCollection_AsciiString entry; TDF_Tool::Entry(Lab,entry);
-  //Update Status;
+  //Update theStatus;
   TNaming_Iterator it(Lab,DF->Transaction());
   for (; it.More(); it.Next()) {
-    Status++;
-    if (Status == 2) break;
+    theStatus++;
+    if (theStatus == 2) break;
   }
   return entry;
 }
index 822bfb90d3a6ce6b82dc8bdaeace4bc53b619f0f..56d676d52721711b2fb71a29230b4c4372101ec6 100644 (file)
@@ -45,10 +45,10 @@ public:
   
   Standard_EXPORT static void GetShape (const Standard_CString ShapeEntry, const Handle(TDF_Data)& Data, TopTools_ListOfShape& Shapes);
   
-  //! Status = 0  Not  found,
-  //! Status = 1  One  shape,
-  //! Status = 2  More than one shape.
-  Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& Status);
+  //! theStatus = 0  Not  found,
+  //! theStatus = 1  One  shape,
+  //! theStatus = 2  More than one shape.
+  Standard_EXPORT static TCollection_AsciiString GetEntry (const TopoDS_Shape& Shape, const Handle(TDF_Data)& Data, Standard_Integer& theStatus);
   
   //! returns label by first two arguments (df and entry string)
   Standard_EXPORT static Standard_Boolean Entry (const Standard_Address theArguments, TDF_Label& theLabel);
index 589d66df04f691d52b2f54c6328d4498b301c9fc..74489273b84caffb84cf87511766644e3c13db38 100644 (file)
@@ -160,14 +160,14 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
     di << 0;
     return 0;
   }
-  Standard_Integer Status ;
-  TCollection_AsciiString Name   = QADNaming::GetEntry(S,ND,Status);
-  if (Status == 0) {
+  Standard_Integer aStatus = 0;
+  TCollection_AsciiString Name = QADNaming::GetEntry (S, ND, aStatus);
+  if (aStatus == 0) {
     di <<"E_NoName";
   }
   else  {
     di <<Name.ToCString();
-    if (Status == 2) {
+    if (aStatus == 2) {
       di <<"Several shapes have the same name\n";
     }
   }
@@ -429,15 +429,14 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
     di <<"E_NoName";
     return 0;
   }
-  Standard_Integer Status ;
-  
-  TCollection_AsciiString Name   = QADNaming::GetEntry(S,ND,Status);
-  if (Status == 0) {
+  Standard_Integer aStatus = 0;
+  TCollection_AsciiString Name = QADNaming::GetEntry (S, ND, aStatus);
+  if (aStatus == 0) {
     di <<"E_NoName";
   }
   else  {
     di <<Name.ToCString();
-    if (Status == 2) {
+    if (aStatus == 2) {
       di <<"Several shapes have the same name\n";
     }
   }
index be8f83911c9a700531da1baaa2b938159dd404ec..defe99e386c2616997f4bce6b00868857f488fd0 100644 (file)
@@ -255,7 +255,7 @@ Standard_Boolean Resource_Manager::Save() const
   TCollection_AsciiString aFilePath(dir);
   OSD_Path anOSDPath(aFilePath);
   OSD_Directory Dir = anOSDPath;
-  Standard_Boolean Status = Standard_True;
+  Standard_Boolean aStatus = Standard_True;
   if ( !Dir.Exists() ) {
     {
       try {
@@ -263,11 +263,11 @@ Standard_Boolean Resource_Manager::Save() const
         Dir.Build(OSD_Protection(OSD_RX, OSD_RWXD, OSD_RX, OSD_RX));
       }
       catch (Standard_Failure) {
-        Status = Standard_False;
+        aStatus = Standard_False;
       }
     }
-    Status = Status && !Dir.Failed();
-    if (!Status) {
+    aStatus = aStatus && !Dir.Failed();
+    if (!aStatus) {
       if (myVerbose)
         cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
              << "\". Permission denied. Cannot save resources." << endl;
@@ -285,18 +285,18 @@ Standard_Boolean Resource_Manager::Save() const
 
   OSD_File File = anOSDPath;
   OSD_Protection theProt;
-  Status = Standard_True;
+  aStatus = Standard_True;
   {
     try {
       OCC_CATCH_SIGNALS
       File.Build(OSD_ReadWrite, theProt);
     }
     catch (Standard_Failure) {
-      Status = Standard_False;
+      aStatus = Standard_False;
     }
   }
-  Status = Status && !File.Failed();
-  if (!Status) {
+  aStatus = aStatus && !File.Failed();
+  if (!aStatus) {
     if (myVerbose)
       cout << "Resource Manager: Error opening or creating file \"" << aFilePath
            << "\". Permission denied. Cannot save resources." << endl;
index 42b07ed1900c395aac4b4c35ec7a501eef7ca60e..29330de7387cedf82d704d35cab784412427cecd 100644 (file)
@@ -37,6 +37,10 @@ class SelectMgr_SensitiveEntitySet;
 class SelectMgr_EntityOwner;
 class SelectBasics_SensitiveEntity;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 typedef NCollection_DataMap<Handle(SelectMgr_SelectableObject), Handle(SelectMgr_SensitiveEntitySet) > SelectMgr_MapOfObjectSensitives;
 typedef NCollection_DataMap<Handle(SelectMgr_SelectableObject), Handle(SelectMgr_SensitiveEntitySet) >::Iterator SelectMgr_MapOfObjectSensitivesIterator;
 
index 429637279ec80c0ee8b7b2569de2dd5db77cc61e..65cef40280137f62ff92d2a5077884169eabe9c9 100644 (file)
@@ -84,8 +84,8 @@ class ShapeAnalysis_BoxBndTreeSelector
   Standard_Boolean ContWire(Standard_Integer nbWire)
     { return myList.Contains(nbWire); }
   
-  inline Standard_Boolean LastCheckStatus (const ShapeExtend_Status Status) const
-    { return ShapeExtend::DecodeStatus ( myStatus, Status ); }
+  inline Standard_Boolean LastCheckStatus (const ShapeExtend_Status theStatus) const
+    { return ShapeExtend::DecodeStatus ( myStatus, theStatus ); }
     
   Standard_Boolean Reject (const Bnd_Box& theBnd) const;
   Standard_Boolean Accept (const Standard_Integer &);
index 0bcc33c4a43d3799c561b62969b384feb43f4601..50da1a38483c8c660bfef2c72451ff65f6194cc9 100644 (file)
@@ -34,6 +34,10 @@ class gp_Pnt;
 class TopoDS_Edge;
 class TopoDS_Compound;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Analysis of the face size
 class ShapeAnalysis_CheckSmallFace 
index 1022a0e1b4bf1d0ebc9acfba0126924f07ec0c60..e7e42f46f11ce363fcc4e8b8f656ecb4d2bc36fd 100644 (file)
@@ -37,6 +37,10 @@ class gp_Vec2d;
 class gp_Pnt;
 class Adaptor3d_Curve;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Tool for analyzing the edge.
 //! Queries geometrical representations of the edge (3d curve, pcurve
index fb0913bbc9677f0bdebc93f3816bde5c6402c41e..e09e984b94b842b1c03c297fc8619e2fb7cb0cd8 100644 (file)
@@ -35,7 +35,6 @@
 class ShapeExtend_WireData;
 class ShapeAnalysis_Surface;
 class TopoDS_Wire;
-class TopoDS_Face;
 class Geom_Surface;
 class TopLoc_Location;
 class ShapeAnalysis_WireOrder;
@@ -44,6 +43,10 @@ class gp_Pnt2d;
 class TopoDS_Shape;
 class TopoDS_Edge;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeAnalysis_Wire;
 DEFINE_STANDARD_HANDLE(ShapeAnalysis_Wire, MMgt_TShared)
index 5f61a562a6aab989e28a05fb73672bfa8299058c..22a3576475b6386b927a8bd6b54e9827f5645f92 100644 (file)
@@ -30,6 +30,10 @@ class Standard_TypeMismatch;
 class gp_XYZ;
 class gp_XY;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This class is intended to control and, if possible, redefine
 //! the order of a list of edges which define a wire
index 13acb2327c18f01c1a188cff98c2520dab474b0a..e3475c4decf3fdc4cad3ecb785fde531853ee9d3 100644 (file)
@@ -31,6 +31,10 @@ class ShapeExtend_WireData;
 class TopoDS_Wire;
 class gp_XYZ;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Analyzes and records status of vertices in a Wire
 //!
index 3e24522aed79b451bae023f5760122723b5ff418..06ae83df81ee98b10c99af30da17d2faedf5a624 100644 (file)
 #include <ShapeExtend_Status.hxx>
 class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeBuild_ReShape;
 DEFINE_STANDARD_HANDLE(ShapeBuild_ReShape, BRepTools_ReShape)
index 765f3e6ab3c4ad8c2c2e05f6cc3cd863558be364..14e52f4484f067c06b7e68e04a54f443680a7ea4 100644 (file)
@@ -195,9 +195,9 @@ static Standard_Integer NbSurfIntervals(const Handle(GeomAdaptor_HSurface)& GAS,
 //purpose  : 
 //=======================================================================
 
- Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Status (const ShapeExtend_Status Status) const
+ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Status (const ShapeExtend_Status theStatus) const
 {
-  return ShapeExtend::DecodeStatus (myStatus, Status);
+  return ShapeExtend::DecodeStatus (myStatus, theStatus);
 }
 
 //=======================================================================
index 749c13f779c045bd132d9e15a132c3e1250b0eaf..0fc9b6c8591c983ea2c53e83c4bb2262123445b0 100644 (file)
@@ -38,8 +38,11 @@ class ShapeAnalysis_Surface;
 class Geom_Surface;
 class Geom_Curve;
 class Geom2d_Curve;
-class gp_Pnt2d;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeConstruct_ProjectCurveOnSurface;
 DEFINE_STANDARD_HANDLE(ShapeConstruct_ProjectCurveOnSurface, MMgt_TShared)
@@ -99,7 +102,7 @@ public:
   Standard_EXPORT Standard_Integer& AdjustOverDegenMode();
   
   //! Returns the status of last Peform
-  Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status Status) const;
+  Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status theStatus) const;
   
   //! Computes the projection of 3d curve onto a surface using the
   //! specialized algorithm. Returns False if projector fails,
index 666cb24685f8e22d1ee628f49736a6d5d3c043e4..3b8195a358edcb48dd1fc2573a2e0241ff85bb80 100644 (file)
 #include <TopTools_SequenceOfShape.hxx>
 class ShapeExtend_CompositeSurface;
 class ShapeAnalysis_TransferParameters;
-class TopLoc_Location;
-class TopoDS_Face;
-class TopoDS_Shape;
 class ShapeExtend_WireData;
 class gp_Lin2d;
 class ShapeFix_WireSegment;
 class Geom_Surface;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeFix_ComposeShell;
 DEFINE_STANDARD_HANDLE(ShapeFix_ComposeShell, ShapeFix_Root)
index 2dd4da99fe4b13724182e226500123c40266f8e9..abf3f42d734d3c92f4ca8f9ab7fb5fb517374141 100644 (file)
@@ -33,6 +33,11 @@ class TopLoc_Location;
 class ShapeAnalysis_Surface;
 class ShapeBuild_ReShape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
+
 class ShapeFix_Edge;
 DEFINE_STANDARD_HANDLE(ShapeFix_Edge, MMgt_TShared)
 
index dcb6f8d29b297ca18d008dbfd5270b6dd7368248..9fc7d070a66097fc39610c5eae01186da51c737f 100644 (file)
 #include <ShapeExtend_Status.hxx>
 class ShapeAnalysis_Surface;
 class ShapeFix_Wire;
-class TopoDS_Face;
 class Geom_Surface;
 class ShapeExtend_BasicMsgRegistrator;
 class TopoDS_Wire;
 class ShapeExtend_WireData;
 class TopoDS_Vertex;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeFix_Face;
 DEFINE_STANDARD_HANDLE(ShapeFix_Face, ShapeFix_Root)
index 121004c846ced65921ba6df77c33979f52c193fb..7a0b045d9e8ca2d9638e49738ef87c5b8299a008 100644 (file)
@@ -31,7 +31,6 @@
 #include <Message_ProgressIndicator.hxx>
 
 class ShapeFix_Solid;
-class TopoDS_Shape;
 class Message_ProgressIndicator;
 class ShapeFix_Shell;
 class ShapeFix_Face;
@@ -39,6 +38,10 @@ class ShapeFix_Wire;
 class ShapeFix_Edge;
 class ShapeExtend_BasicMsgRegistrator;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeFix_Shape;
 DEFINE_STANDARD_HANDLE(ShapeFix_Shape, ShapeFix_Root)
index 73e8c7fa2c39c04e0b916a9759ba63a17043b248..c098d084ca11e914bec501a9a015abd4ea4e7081 100644 (file)
 #include <ShapeExtend_Status.hxx>
 
 class ShapeFix_Face;
-class TopoDS_Shell;
-class TopoDS_Shape;
-class TopoDS_Compound;
 class ShapeExtend_BasicMsgRegistrator;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
+
 class ShapeFix_Shell;
 DEFINE_STANDARD_HANDLE(ShapeFix_Shell, ShapeFix_Root)
 
index 9a2f314451bb608bd65068b481ab4ea9c6676a3b..0c946e372da3dc1b3f1901e80ef4c3b1044cfb05 100644 (file)
@@ -30,9 +30,12 @@ class ShapeFix_Shell;
 class TopoDS_Solid;
 class Message_ProgressIndicator;
 class TopoDS_Shell;
-class TopoDS_Shape;
 class ShapeExtend_BasicMsgRegistrator;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeFix_Solid;
 DEFINE_STANDARD_HANDLE(ShapeFix_Solid, ShapeFix_Root)
index 4a52e2df3c63a21b92f6d0be43087532dc6dcebb..b03577badd5d494efe6471ab8c7dc1eae543212b 100644 (file)
 #include <Standard_Type.hxx>
 
 #include <TopoDS_Face.hxx>
-#include <TopoDS_Shape.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_Integer.hxx>
 #include <ShapeUpgrade_Tool.hxx>
 #include <ShapeExtend_Status.hxx>
 class ShapeUpgrade_SplitSurface;
 class ShapeUpgrade_WireDivide;
-class TopoDS_Face;
-class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_FaceDivide;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_FaceDivide, ShapeUpgrade_Tool)
index 3599e0ee6af4775c81c516d99bb48dfe5f79dd25..6a49e5d3f5b3431018a71ca7e2bb594ba39a42af 100644 (file)
 #include <ShapeExtend_Status.hxx>
 class ShapeUpgrade_SplitCurve3d;
 class ShapeUpgrade_SplitCurve2d;
-class TopoDS_Edge;
-class TopoDS_Face;
 class Geom_Curve;
 class Geom2d_Curve;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_FixSmallCurves;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_FixSmallCurves, ShapeUpgrade_Tool)
index d9fe9312f1721013978a412279eda82336ebb454..ca1c0e35e8fa354285c21d53f22a17f91220f493 100644 (file)
 #include <Standard_Integer.hxx>
 #include <ShapeUpgrade_Tool.hxx>
 #include <ShapeExtend_Status.hxx>
-class TopoDS_Shape;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_RemoveInternalWires;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_RemoveInternalWires, ShapeUpgrade_Tool)
index 7e6fc37be6fe3630945fe02b7bbe905d48c95699..729849596983d69f73c4a2e0825b9e4c57cf36aa 100644 (file)
 class ShapeUpgrade_FaceDivide;
 class ShapeBuild_ReShape;
 class ShapeExtend_BasicMsgRegistrator;
-class TopoDS_Shape;
 class Message_Msg;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Divides a all faces in shell with given criteria Shell.
 class ShapeUpgrade_ShapeDivide 
index 1840898f9248a00878faa11ec60a6735661d214c..b63ec005481e1602f2cbdd788aafded554eae303 100644 (file)
 #include <Standard_Boolean.hxx>
 #include <ShapeExtend_Status.hxx>
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_SplitCurve;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_SplitCurve, MMgt_TShared)
index 7da763ce5cb39b793d55f066e1765e91ba9e8d41..8936432d70114e6488cd66c0592eda02caa8f010 100644 (file)
 class Geom_Surface;
 class ShapeExtend_CompositeSurface;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_SplitSurface;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_SplitSurface, MMgt_TShared)
index cd78a06296774636e8114ab183af488793dfcfad..6571674b5faaef1904f002d2766502e708c4e818 100644 (file)
@@ -31,12 +31,14 @@ class ShapeUpgrade_SplitCurve2d;
 class ShapeUpgrade_EdgeDivide;
 class ShapeAnalysis_TransferParameters;
 class ShapeUpgrade_FixSmallCurves;
-class TopoDS_Wire;
-class TopoDS_Face;
 class Geom_Surface;
 class TopoDS_Edge;
 class TopLoc_Location;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class ShapeUpgrade_WireDivide;
 DEFINE_STANDARD_HANDLE(ShapeUpgrade_WireDivide, ShapeUpgrade_Tool)
index 8500a73f5536180d463af03a8751b2ed3bd1b2f4..92a43d2415db5559b8f5de10243760bc9891bb24 100644 (file)
 class TCollection_HAsciiString;
 class StepBasic_ApplicationContext;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class StepBasic_ApplicationProtocolDefinition;
 DEFINE_STANDARD_HANDLE(StepBasic_ApplicationProtocolDefinition, MMgt_TShared)
index 1db438da2145ca555f4c84bef27982186686b2fb..62d006dee80f501218542b1f5476c6619db56734 100644 (file)
 class StepBasic_ApprovalStatus;
 class TCollection_HAsciiString;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class StepBasic_Approval;
 DEFINE_STANDARD_HANDLE(StepBasic_Approval, MMgt_TShared)
index d8916120baaf296df28dbd4bd7c3be6a102ee61f..f12c71d2727c4e74000946d432ba5143738772bd 100644 (file)
@@ -59,7 +59,7 @@ static void Normal(const TopoDS_Face&  aFace,
     gp_Vec D2U,D2V,D2UV;
     gp_Pnt P;
     Standard_Real U, V;
-    CSLib_DerivativeStatus Status;
+    CSLib_DerivativeStatus aStatus;
     CSLib_NormalStatus NStat;
     S.Initialize(aFace, Standard_False);
     const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
@@ -68,8 +68,8 @@ static void Normal(const TopoDS_Face&  aFace,
        U = UVNodes(i).X();
        V = UVNodes(i).Y();
        S.D1(U,V,P,D1U,D1V);
-       CSLib::Normal(D1U,D1V,Precision::Angular(),Status,Nor(i));
-       if (Status != CSLib_Done) {
+       CSLib::Normal (D1U, D1V, Precision::Angular(), aStatus, Nor (i));
+       if (aStatus != CSLib_Done) {
          S.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
          CSLib::Normal(D1U,D1V,D2U,D2V,D2UV,Precision::Angular(),OK,NStat,Nor(i));
        }
@@ -81,8 +81,8 @@ static void Normal(const TopoDS_Face&  aFace,
       U = UVNodes(UVNodes.Lower()).X();
       V = UVNodes(UVNodes.Lower()).Y();
       S.D1(U,V,P,D1U,D1V);
-      CSLib::Normal(D1U,D1V,Precision::Angular(),Status,NPlane);
-      if (Status != CSLib_Done) {
+      CSLib::Normal (D1U, D1V, Precision::Angular(), aStatus, NPlane);
+      if (aStatus != CSLib_Done) {
        S.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
        CSLib::Normal(D1U,D1V,D2U,D2V,D2UV,Precision::Angular(),OK,NStat,NPlane);
       }
index 5014c03821d2d2049d6d003c220a87d41133139d..38fd04dcaca789cfb8f33aad1631eedec6757e8d 100644 (file)
@@ -480,18 +480,18 @@ const
   for ( ;It.More() ; It.Next()) {
     const TopoDS_Shape& OS     = It.OldShape();
     const TopoDS_Shape& NS     = It.NewShape();
-    TNaming_Evolution   Status = It.Evolution();
+    TNaming_Evolution   aStatus = It.Evolution();
 
 // Modification_1 24.06.99 (szy)  
     TopoDS_Shape copOS, copNS;
-    if(Status != TNaming_PRIMITIVE)
+    if(aStatus != TNaming_PRIMITIVE)
       TNaming_CopyShape::CopyTool(OS, Tab->TransientTable(), copOS);
     else copOS.Nullify();    
-    if(Status != TNaming_DELETE )
+    if(aStatus != TNaming_DELETE )
       TNaming_CopyShape::CopyTool(NS, Tab->TransientTable(), copNS);
     else copNS.Nullify();
     
-    switch (Status) {
+    switch (aStatus) {
     case TNaming_PRIMITIVE :
       {
        B.Generated(copNS);
index 91064a8db967f3889c1e1c5d286212b8e31aad8b..2866f153f4420e1935dbee7d033a59aeb05fda19 100644 (file)
 class TopOpeBRep_Hctxff2d;
 class TopOpeBRep_Hctxee2d;
 class TopOpeBRep_EdgesIntersector;
-class IntRes2d_IntersectionPoint;
-class TopoDS_Vertex;
-class TopOpeBRepDS_Transition;
-class gp_Pnt;
-class gp_Pnt2d;
-
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class TopOpeBRep_Point2d 
 {
index 642db5c007d39f97e5930537ca1d61c80ea653e5..85b91be05175c52e9161ae57abfcd2f475981677 100755 (executable)
@@ -41,7 +41,7 @@ TopOpeBRepBuild_FaceBuilder.hxx
 TopOpeBRepBuild_fctwes.cxx
 TopOpeBRepBuild_ffsfs.cxx
 TopOpeBRepBuild_ffwesk.cxx
-TopOpeBRepBuild_Fill.hxx
+TopOpeBRepBuild_Fill.pxx
 TopOpeBRepBuild_FREGU.cxx
 TopOpeBRepBuild_FuseFace.cxx
 TopOpeBRepBuild_FuseFace.hxx
@@ -111,7 +111,7 @@ TopOpeBRepBuild_SolidBuilder.hxx
 TopOpeBRepBuild_SplitEdge.hxx
 TopOpeBRepBuild_SplitFace.hxx
 TopOpeBRepBuild_SplitShapes.hxx
-TopOpeBRepBuild_SplitSolid.hxx
+TopOpeBRepBuild_SplitSolid.pxx
 TopOpeBRepBuild_SREGU.cxx
 TopOpeBRepBuild_Tools.cxx
 TopOpeBRepBuild_Tools.hxx
index 720817dd8849dd740e1f3fd31b383ead8b3beab5..de411c45c810fe60deb53549ae086c72bc6f8cf4 100644 (file)
@@ -75,9 +75,9 @@ Standard_EXPORT void debchangesplit(const Standard_Integer i) {cout<<"++ debchan
 static  Standard_Integer STATIC_SOLIDINDEX = 0;
 #include <TopOpeBRepBuild_SplitEdge.hxx>
 #include <TopOpeBRepBuild_SplitFace.hxx>
-#include <TopOpeBRepBuild_SplitSolid.hxx>
+#include "TopOpeBRepBuild_SplitSolid.pxx"
 #include <TopOpeBRepBuild_SplitShapes.hxx>
-#include <TopOpeBRepBuild_Fill.hxx>
+#include "TopOpeBRepBuild_Fill.pxx"
 
 Standard_EXPORT TopOpeBRepBuild_Builder* GLOBAL_PBUILDER;
 
index 393453dc0925a17cd38709f88a380e239262fadf..6b7fe30f92f51ad5c027f8752fae5294947dbf07 100644 (file)
@@ -52,8 +52,6 @@
 class TopOpeBRepDS_HDataStructure;
 class Standard_NoSuchObject;
 class TopOpeBRepBuild_HBuilder;
-class TopOpeBRepDS_BuildTool;
-class TopoDS_Shape;
 class TopOpeBRepTool_ShapeExplorer;
 class TopOpeBRepBuild_ShapeSet;
 class TopOpeBRepBuild_EdgeBuilder;
@@ -67,11 +65,12 @@ class TopOpeBRepBuild_ShellFaceSet;
 class TopOpeBRepDS_SurfaceIterator;
 class TopOpeBRepDS_CurveIterator;
 class TopoDS_Vertex;
-class TopoDS_Edge;
 class gp_Pnt;
-class TopoDS_Face;
-class TCollection_AsciiString;
 
+// resolve name collisions with X11 headers
+#ifdef FillSolid
+  #undef FillSolid
+#endif
 
 //! The Builder  algorithm    constructs   topological
 //! objects  from   an    existing  topology  and  new
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.hxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.hxx
deleted file mode 100644 (file)
index 07a136a..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-// Created on: 1993-06-14
-// Created by: Jean Yves LEBEY
-// Copyright (c) 1993-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _TopOpeBRepBuild_Fill_HeaderFile
-#define _TopOpeBRepBuild_Fill_HeaderFile
-
-//=======================================================================
-//function : FillShape
-//purpose  : 
-//=======================================================================
-void TopOpeBRepBuild_Builder::FillShape(const TopoDS_Shape& S1,
-                                       const TopAbs_State ToBuild1,
-                                       const TopTools_ListOfShape& LS2,
-                                       const TopAbs_State ToBuild2,
-                                       TopOpeBRepBuild_ShapeSet& aSet,
-                                       const Standard_Boolean In_RevOri)
-{
-  Standard_Boolean RevOri = In_RevOri;
-  TopAbs_ShapeEnum t = S1.ShapeType();
-  TopAbs_ShapeEnum t1=TopAbs_COMPOUND,t11=TopAbs_COMPOUND;
-
-  if      (t == TopAbs_FACE )  { 
-    t1 = TopAbs_WIRE;
-    t11 = TopAbs_EDGE;
-  }
-  else if (t == TopAbs_SOLID || t == TopAbs_SHELL) {
-    t1 = TopAbs_SHELL; 
-    t11 = TopAbs_FACE; 
-  }
-
-  // if the shape S1 is a SameDomain one, get its orientation compared
-  // with the shape taken as reference for all of the SameDomain shape of S1.
-  Standard_Boolean hsd = myDataStructure->HasSameDomain(S1);
-  if (hsd) {
-    TopOpeBRepDS_Config ssc = myDataStructure->SameDomainOrientation(S1);
-    if ( ssc == TopOpeBRepDS_DIFFORIENTED ) {
-      RevOri = ! RevOri;
-#ifdef OCCT_DEBUG
-//      Standard_Integer iFace = myDataStructure->Shape(S1);
-//      cout<<endl<<"********** ";
-//      cout<<"retournement d'orientation de ";TopAbs::Print(t,cout);
-//      cout<<" "<<iFace<<endl;
-#endif
-    }
-  }
-
-  // work on a FORWARD shape <aShape>
-  TopoDS_Shape aShape = S1; 
-  myBuildTool.Orientation(aShape,TopAbs_FORWARD);
-
-  TopoDS_Shape aSubShape;
-  TopAbs_Orientation newori;
-
-  // Explore the SubShapes of type <t1>
-  for (TopOpeBRepTool_ShapeExplorer ex1(aShape,t1); ex1.More(); ex1.Next()) {
-    aSubShape = ex1.Current();
-
-    if ( ! myDataStructure->HasShape(aSubShape) ) {
-      // SubShape is not in DS : classify it with shapes of LS2
-      Standard_Boolean keep = KeepShape(aSubShape,LS2,ToBuild1);
-      if (keep) {
-       newori = Orient(myBuildTool.Orientation(aSubShape),RevOri);
-       myBuildTool.Orientation(aSubShape,newori);
-       aSet.AddShape(aSubShape);
-      }
-    }
-    else {
-      // SubShape has geometry : split the <t11> SubShapes of the SubShape
-      TopOpeBRepTool_ShapeExplorer ex11(aSubShape,t11);
-      SplitShapes(ex11,ToBuild1,ToBuild2,aSet,RevOri);
-    } 
-  } // exploration ot SubShapes of type <t1> of shape <S1>
-
-} // FillShape
-
-
-//=======================================================================
-//function : FillFace
-//purpose  : 
-//=======================================================================
-void TopOpeBRepBuild_Builder::FillFace(const TopoDS_Shape& F1, 
-                                      const TopAbs_State ToBuild1,
-                                      const TopTools_ListOfShape& LF2,
-                                      const TopAbs_State ToBuild2,
-                                      TopOpeBRepBuild_WireEdgeSet& WES,
-                                      const Standard_Boolean RevOri)
-{
-#ifdef OCCT_DEBUG
-  Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
-//  Standard_Integer iFace = myDataStructure->Shape(F1);
-  if(tSPF){cout<<endl;}
-  if(tSPF){GdumpSHASTA(F1,ToBuild1,"=-= FillFace ");}
-#endif
-  myListOfFace = LF2;
-  FillShape(F1,ToBuild1,LF2,ToBuild2,WES,RevOri);
-  myListOfFace.Clear();
-} // FillFace
-
-
-//=======================================================================
-//function : FillSolid
-//purpose  : load shells and faces from the solid in the ShellFaceSet <aSet>
-//=======================================================================
-void TopOpeBRepBuild_Builder::FillSolid(const TopoDS_Shape& S1, 
-                                       const TopAbs_State ToBuild1, 
-                                       const TopTools_ListOfShape& LS2,
-                                       const TopAbs_State ToBuild2, 
-                                       TopOpeBRepBuild_ShapeSet& aSet,
-                                       const Standard_Boolean RevOri)
-{
-  FillShape(S1,ToBuild1,LS2,ToBuild2,aSet,RevOri);
-} // FillSolid
-
-
-//=======================================================================
-//function : FillVertexSet
-//purpose  : private
-//=======================================================================
-void TopOpeBRepBuild_Builder::FillVertexSet(TopOpeBRepDS_PointIterator& IT,
-                                           const TopAbs_State ToBuild,
-                                           TopOpeBRepBuild_PaveSet& PVS) const
-{
-  for (; IT.More(); IT.Next()) {
-    FillVertexSetOnValue(IT,ToBuild,PVS);
-  }
-}
-
-
-//=======================================================================
-//function : FillVertexSetOnValue
-//purpose  : private
-//=======================================================================
-void TopOpeBRepBuild_Builder::FillVertexSetOnValue
-(const TopOpeBRepDS_PointIterator& IT,
- const TopAbs_State ToBuild,
- TopOpeBRepBuild_PaveSet& PVS) const
-{
-  TopoDS_Shape V;
-  
-  // ind = index of new point or existing vertex
-  Standard_Integer ind = IT.Current();
-  Standard_Boolean ispoint  = IT.IsPoint();
-  //**!
-  //if (ispoint) V = NewVertex(ind);
-  if (ispoint && ind <= myDataStructure->NbPoints()) V = NewVertex(ind);
-  //**!
-  else         V = myDataStructure->Shape(ind);
-  Standard_Real      par = IT.Parameter();
-  TopAbs_Orientation ori = IT.Orientation(ToBuild);
-  
-  Standard_Boolean keep = Standard_True;
-  //    if (ori==TopAbs_EXTERNAL || ori==TopAbs_INTERNAL) keep = Standard_False;
-  
-  if ( keep ) {
-    myBuildTool.Orientation(V,ori);
-    Handle(TopOpeBRepBuild_Pave) PV = new TopOpeBRepBuild_Pave(V,par,Standard_False);
-    PVS.Append(PV);
-  }
-  
-#ifdef OCCT_DEBUG
-  const TopoDS_Edge& EDEB = PVS.Edge();
-  Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EDEB,iE);
-  if (tSPS) {
-    if (keep) cout<<"+"; else cout<<"-";
-    if (ispoint) cout<<" PDS "; else cout<<" VDS ";
-    cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
-    cout<<endl;
-  }
-#endif
-}
-
-//#ifndef _TopOpeBRepBuild_Fill_HeaderFile
-#endif
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.pxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_Fill.pxx
new file mode 100644 (file)
index 0000000..07a136a
--- /dev/null
@@ -0,0 +1,186 @@
+// Created on: 1993-06-14
+// Created by: Jean Yves LEBEY
+// Copyright (c) 1993-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef _TopOpeBRepBuild_Fill_HeaderFile
+#define _TopOpeBRepBuild_Fill_HeaderFile
+
+//=======================================================================
+//function : FillShape
+//purpose  : 
+//=======================================================================
+void TopOpeBRepBuild_Builder::FillShape(const TopoDS_Shape& S1,
+                                       const TopAbs_State ToBuild1,
+                                       const TopTools_ListOfShape& LS2,
+                                       const TopAbs_State ToBuild2,
+                                       TopOpeBRepBuild_ShapeSet& aSet,
+                                       const Standard_Boolean In_RevOri)
+{
+  Standard_Boolean RevOri = In_RevOri;
+  TopAbs_ShapeEnum t = S1.ShapeType();
+  TopAbs_ShapeEnum t1=TopAbs_COMPOUND,t11=TopAbs_COMPOUND;
+
+  if      (t == TopAbs_FACE )  { 
+    t1 = TopAbs_WIRE;
+    t11 = TopAbs_EDGE;
+  }
+  else if (t == TopAbs_SOLID || t == TopAbs_SHELL) {
+    t1 = TopAbs_SHELL; 
+    t11 = TopAbs_FACE; 
+  }
+
+  // if the shape S1 is a SameDomain one, get its orientation compared
+  // with the shape taken as reference for all of the SameDomain shape of S1.
+  Standard_Boolean hsd = myDataStructure->HasSameDomain(S1);
+  if (hsd) {
+    TopOpeBRepDS_Config ssc = myDataStructure->SameDomainOrientation(S1);
+    if ( ssc == TopOpeBRepDS_DIFFORIENTED ) {
+      RevOri = ! RevOri;
+#ifdef OCCT_DEBUG
+//      Standard_Integer iFace = myDataStructure->Shape(S1);
+//      cout<<endl<<"********** ";
+//      cout<<"retournement d'orientation de ";TopAbs::Print(t,cout);
+//      cout<<" "<<iFace<<endl;
+#endif
+    }
+  }
+
+  // work on a FORWARD shape <aShape>
+  TopoDS_Shape aShape = S1; 
+  myBuildTool.Orientation(aShape,TopAbs_FORWARD);
+
+  TopoDS_Shape aSubShape;
+  TopAbs_Orientation newori;
+
+  // Explore the SubShapes of type <t1>
+  for (TopOpeBRepTool_ShapeExplorer ex1(aShape,t1); ex1.More(); ex1.Next()) {
+    aSubShape = ex1.Current();
+
+    if ( ! myDataStructure->HasShape(aSubShape) ) {
+      // SubShape is not in DS : classify it with shapes of LS2
+      Standard_Boolean keep = KeepShape(aSubShape,LS2,ToBuild1);
+      if (keep) {
+       newori = Orient(myBuildTool.Orientation(aSubShape),RevOri);
+       myBuildTool.Orientation(aSubShape,newori);
+       aSet.AddShape(aSubShape);
+      }
+    }
+    else {
+      // SubShape has geometry : split the <t11> SubShapes of the SubShape
+      TopOpeBRepTool_ShapeExplorer ex11(aSubShape,t11);
+      SplitShapes(ex11,ToBuild1,ToBuild2,aSet,RevOri);
+    } 
+  } // exploration ot SubShapes of type <t1> of shape <S1>
+
+} // FillShape
+
+
+//=======================================================================
+//function : FillFace
+//purpose  : 
+//=======================================================================
+void TopOpeBRepBuild_Builder::FillFace(const TopoDS_Shape& F1, 
+                                      const TopAbs_State ToBuild1,
+                                      const TopTools_ListOfShape& LF2,
+                                      const TopAbs_State ToBuild2,
+                                      TopOpeBRepBuild_WireEdgeSet& WES,
+                                      const Standard_Boolean RevOri)
+{
+#ifdef OCCT_DEBUG
+  Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
+//  Standard_Integer iFace = myDataStructure->Shape(F1);
+  if(tSPF){cout<<endl;}
+  if(tSPF){GdumpSHASTA(F1,ToBuild1,"=-= FillFace ");}
+#endif
+  myListOfFace = LF2;
+  FillShape(F1,ToBuild1,LF2,ToBuild2,WES,RevOri);
+  myListOfFace.Clear();
+} // FillFace
+
+
+//=======================================================================
+//function : FillSolid
+//purpose  : load shells and faces from the solid in the ShellFaceSet <aSet>
+//=======================================================================
+void TopOpeBRepBuild_Builder::FillSolid(const TopoDS_Shape& S1, 
+                                       const TopAbs_State ToBuild1, 
+                                       const TopTools_ListOfShape& LS2,
+                                       const TopAbs_State ToBuild2, 
+                                       TopOpeBRepBuild_ShapeSet& aSet,
+                                       const Standard_Boolean RevOri)
+{
+  FillShape(S1,ToBuild1,LS2,ToBuild2,aSet,RevOri);
+} // FillSolid
+
+
+//=======================================================================
+//function : FillVertexSet
+//purpose  : private
+//=======================================================================
+void TopOpeBRepBuild_Builder::FillVertexSet(TopOpeBRepDS_PointIterator& IT,
+                                           const TopAbs_State ToBuild,
+                                           TopOpeBRepBuild_PaveSet& PVS) const
+{
+  for (; IT.More(); IT.Next()) {
+    FillVertexSetOnValue(IT,ToBuild,PVS);
+  }
+}
+
+
+//=======================================================================
+//function : FillVertexSetOnValue
+//purpose  : private
+//=======================================================================
+void TopOpeBRepBuild_Builder::FillVertexSetOnValue
+(const TopOpeBRepDS_PointIterator& IT,
+ const TopAbs_State ToBuild,
+ TopOpeBRepBuild_PaveSet& PVS) const
+{
+  TopoDS_Shape V;
+  
+  // ind = index of new point or existing vertex
+  Standard_Integer ind = IT.Current();
+  Standard_Boolean ispoint  = IT.IsPoint();
+  //**!
+  //if (ispoint) V = NewVertex(ind);
+  if (ispoint && ind <= myDataStructure->NbPoints()) V = NewVertex(ind);
+  //**!
+  else         V = myDataStructure->Shape(ind);
+  Standard_Real      par = IT.Parameter();
+  TopAbs_Orientation ori = IT.Orientation(ToBuild);
+  
+  Standard_Boolean keep = Standard_True;
+  //    if (ori==TopAbs_EXTERNAL || ori==TopAbs_INTERNAL) keep = Standard_False;
+  
+  if ( keep ) {
+    myBuildTool.Orientation(V,ori);
+    Handle(TopOpeBRepBuild_Pave) PV = new TopOpeBRepBuild_Pave(V,par,Standard_False);
+    PVS.Append(PV);
+  }
+  
+#ifdef OCCT_DEBUG
+  const TopoDS_Edge& EDEB = PVS.Edge();
+  Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EDEB,iE);
+  if (tSPS) {
+    if (keep) cout<<"+"; else cout<<"-";
+    if (ispoint) cout<<" PDS "; else cout<<" VDS ";
+    cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
+    cout<<endl;
+  }
+#endif
+}
+
+//#ifndef _TopOpeBRepBuild_Fill_HeaderFile
+#endif
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.hxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.hxx
deleted file mode 100644 (file)
index 9017304..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-// Created on: 1995-09-12
-// Created by: Jean Yves LEBEY
-// Copyright (c) 1995-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef TopOpeBRepBuild_SplitSolid_INCLUDED
-#define TopOpeBRepBuild_SplitSolid_INCLUDED
-
-#include <TopOpeBRepBuild_ShellFaceSet.hxx>
-#include <TopOpeBRepBuild_SolidBuilder.hxx>
-#include <TopOpeBRepBuild_define.hxx>
-
-#ifdef OCCT_DEBUG
-#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
-Standard_EXPORT Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
-Standard_EXPORT void debsplitf(const Standard_Integer i);
-Standard_EXPORT void debspanc(const Standard_Integer i);
-//Standard_IMPORT extern Standard_Integer GLOBAL_iexF;
-Standard_IMPORT Standard_Integer GLOBAL_iexF;
-#endif
-
-//=======================================================================
-//function : SplitSolid
-//purpose  : 
-//=======================================================================
-
-void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
-                                        const TopAbs_State ToBuild1,
-                                        const TopAbs_State ToBuild2)
-{
-  //modified by IFV for treating shell
-  Standard_Boolean tosplit = Standard_False;
-  Standard_Boolean IsShell = (S1oriented.ShapeType() == TopAbs_SHELL);
-  if(IsShell) {
-    TopExp_Explorer ex;
-    ex.Init(S1oriented, TopAbs_FACE);
-    for (; ex.More(); ex.Next()) {
-      const TopoDS_Shape& sh = ex.Current();
-      tosplit = ToSplit(sh,ToBuild1);
-      if(tosplit) break;
-    }
-  }
-  else tosplit = ToSplit(S1oriented,ToBuild1);
-
-  if ( ! tosplit ) return;
-  // end IFV
-
-  Standard_Boolean RevOri1 = Reverse(ToBuild1,ToBuild2);
-  Standard_Boolean RevOri2 = Reverse(ToBuild2,ToBuild1);
-  Standard_Boolean ConnectTo1 = Standard_True;
-  Standard_Boolean ConnectTo2 = Standard_False;
-
-  // work on a FORWARD solid <S1forward>
-  TopoDS_Shape S1forward = S1oriented; 
-  myBuildTool.Orientation(S1forward,TopAbs_FORWARD);
-  
-  // build the list of solids to split : LS1, LS2
-  TopTools_ListOfShape LS1,LS2;
-  LS1.Append(S1forward);
-  FindSameDomain(LS1,LS2);
-  Standard_Integer n1 = LS1.Extent();
-  Standard_Integer n2 = LS2.Extent();
-  
-  if (!n2) RevOri1 = Standard_False;
-  if (!n1) RevOri2 = Standard_False;
-  
-  // Create a face set <FS> connected by edges
-  // -----------------------------------------
-  TopOpeBRepBuild_ShellFaceSet SFS;
-  
-#ifdef OCCT_DEBUG
-  Standard_Boolean tSPS = TopOpeBRepBuild_GettraceSPS();
-//  Standard_Integer iSolid = myDataStructure->Shape(S1oriented);
-  if (tSPS) {
-    cout<<endl;
-    GdumpSHASTA(S1oriented,ToBuild1,"___ SplitSolid ");
-    GdumpSAMDOM(LS1, (char *) "1 : "); 
-    GdumpSAMDOM(LS2, (char *) "2 : ");
-  }
-  SFS.DEBNumber(GdumpSHASETindex());
-#endif
-
-  STATIC_SOLIDINDEX = 1;
-  TopTools_ListIteratorOfListOfShape itLS1;
-  for (itLS1.Initialize(LS1); itLS1.More(); itLS1.Next()) {
-    TopoDS_Shape Scur = itLS1.Value();
-    FillSolid(Scur,ToBuild1,LS2,ToBuild2,SFS,RevOri1);
-  }
-  
-  STATIC_SOLIDINDEX = 2;
-  TopTools_ListIteratorOfListOfShape itLS2;
-  for (itLS2.Initialize(LS2); itLS2.More(); itLS2.Next()) {
-    TopoDS_Shape Scur = itLS2.Value();
-    FillSolid(Scur,ToBuild2,LS1,ToBuild1,SFS,RevOri2);
-  }
-  
-  // Add the intersection surfaces
-  // -----------------------------
-  if (myDataStructure->NbSurfaces() > 0) {
-    TopOpeBRepDS_SurfaceIterator SSurfaces = myDataStructure->SolidSurfaces(S1forward);
-    for (; SSurfaces.More(); SSurfaces.Next()) {
-      Standard_Integer iS = SSurfaces.Current();
-      const TopTools_ListOfShape& LnewF = NewFaces(iS);
-      for (TopTools_ListIteratorOfListOfShape Iti(LnewF); Iti.More(); Iti.Next()) {
-       TopoDS_Shape aFace = Iti.Value();
-       TopAbs_Orientation ori = SSurfaces.Orientation(ToBuild1);
-       myBuildTool.Orientation(aFace,ori);
-       
-#ifdef OCCT_DEBUG
-       if (tSPS){
-         DEBSHASET(ss,"--- SplitSolid ",SFS," AddElement SFS+ face ");  
-         GdumpSHA(aFace,(Standard_Address)ss.ToCString());
-         cout<<" ";TopAbs::Print(ToBuild1,cout)<<" : 1 face ";
-         TopAbs::Print(ori,cout); cout<<endl;
-       }
-#endif
-       SFS.AddElement(aFace);
-      }
-    }
-  }
-
-  // Create a Solid Builder SOBU
-  // -------------------------
-  TopOpeBRepBuild_SolidBuilder SOBU(SFS);
-
-  // Build the new solids on S1
-  // --------------------------
-  TopTools_ListOfShape& SolidList = ChangeMerged(S1oriented,ToBuild1);
-  if(IsShell)
-    MakeShells(SOBU,SolidList);
-  else
-    MakeSolids(SOBU,SolidList);
-
-  // connect list of new solids <SolidList> as solids built on LS1 solids
-  // --------------------------------------------------------------------
-
-  for (itLS1.Initialize(LS1); itLS1.More(); itLS1.Next()) {
-    TopoDS_Shape Scur = itLS1.Value();
-    MarkSplit(Scur,ToBuild1);
-    TopTools_ListOfShape& SL = ChangeSplit(Scur,ToBuild1);
-    if ( ConnectTo1 ) SL = SolidList;
-
-  }
-  
-  // connect list of new solids <SolidList> as solids built on LS2 solids
-  // --------------------------------------------------------------------
-  for (itLS2.Initialize(LS2); itLS2.More(); itLS2.Next()) {
-    TopoDS_Shape Scur = itLS2.Value();
-    MarkSplit(Scur,ToBuild2);
-    TopTools_ListOfShape& SL = ChangeSplit(Scur,ToBuild2);
-    if ( ConnectTo2 ) SL = SolidList;
-  }
-
-} // SplitSolid
-
-//#ifndef TopOpeBRepBuild_SplitSolid_INCLUDED
-#endif
diff --git a/src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.pxx b/src/TopOpeBRepBuild/TopOpeBRepBuild_SplitSolid.pxx
new file mode 100644 (file)
index 0000000..9017304
--- /dev/null
@@ -0,0 +1,168 @@
+// Created on: 1995-09-12
+// Created by: Jean Yves LEBEY
+// Copyright (c) 1995-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
+
+#ifndef TopOpeBRepBuild_SplitSolid_INCLUDED
+#define TopOpeBRepBuild_SplitSolid_INCLUDED
+
+#include <TopOpeBRepBuild_ShellFaceSet.hxx>
+#include <TopOpeBRepBuild_SolidBuilder.hxx>
+#include <TopOpeBRepBuild_define.hxx>
+
+#ifdef OCCT_DEBUG
+#define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
+Standard_EXPORT Standard_Boolean TopOpeBRepDS_GettraceSTRANGE();
+Standard_EXPORT void debsplitf(const Standard_Integer i);
+Standard_EXPORT void debspanc(const Standard_Integer i);
+//Standard_IMPORT extern Standard_Integer GLOBAL_iexF;
+Standard_IMPORT Standard_Integer GLOBAL_iexF;
+#endif
+
+//=======================================================================
+//function : SplitSolid
+//purpose  : 
+//=======================================================================
+
+void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
+                                        const TopAbs_State ToBuild1,
+                                        const TopAbs_State ToBuild2)
+{
+  //modified by IFV for treating shell
+  Standard_Boolean tosplit = Standard_False;
+  Standard_Boolean IsShell = (S1oriented.ShapeType() == TopAbs_SHELL);
+  if(IsShell) {
+    TopExp_Explorer ex;
+    ex.Init(S1oriented, TopAbs_FACE);
+    for (; ex.More(); ex.Next()) {
+      const TopoDS_Shape& sh = ex.Current();
+      tosplit = ToSplit(sh,ToBuild1);
+      if(tosplit) break;
+    }
+  }
+  else tosplit = ToSplit(S1oriented,ToBuild1);
+
+  if ( ! tosplit ) return;
+  // end IFV
+
+  Standard_Boolean RevOri1 = Reverse(ToBuild1,ToBuild2);
+  Standard_Boolean RevOri2 = Reverse(ToBuild2,ToBuild1);
+  Standard_Boolean ConnectTo1 = Standard_True;
+  Standard_Boolean ConnectTo2 = Standard_False;
+
+  // work on a FORWARD solid <S1forward>
+  TopoDS_Shape S1forward = S1oriented; 
+  myBuildTool.Orientation(S1forward,TopAbs_FORWARD);
+  
+  // build the list of solids to split : LS1, LS2
+  TopTools_ListOfShape LS1,LS2;
+  LS1.Append(S1forward);
+  FindSameDomain(LS1,LS2);
+  Standard_Integer n1 = LS1.Extent();
+  Standard_Integer n2 = LS2.Extent();
+  
+  if (!n2) RevOri1 = Standard_False;
+  if (!n1) RevOri2 = Standard_False;
+  
+  // Create a face set <FS> connected by edges
+  // -----------------------------------------
+  TopOpeBRepBuild_ShellFaceSet SFS;
+  
+#ifdef OCCT_DEBUG
+  Standard_Boolean tSPS = TopOpeBRepBuild_GettraceSPS();
+//  Standard_Integer iSolid = myDataStructure->Shape(S1oriented);
+  if (tSPS) {
+    cout<<endl;
+    GdumpSHASTA(S1oriented,ToBuild1,"___ SplitSolid ");
+    GdumpSAMDOM(LS1, (char *) "1 : "); 
+    GdumpSAMDOM(LS2, (char *) "2 : ");
+  }
+  SFS.DEBNumber(GdumpSHASETindex());
+#endif
+
+  STATIC_SOLIDINDEX = 1;
+  TopTools_ListIteratorOfListOfShape itLS1;
+  for (itLS1.Initialize(LS1); itLS1.More(); itLS1.Next()) {
+    TopoDS_Shape Scur = itLS1.Value();
+    FillSolid(Scur,ToBuild1,LS2,ToBuild2,SFS,RevOri1);
+  }
+  
+  STATIC_SOLIDINDEX = 2;
+  TopTools_ListIteratorOfListOfShape itLS2;
+  for (itLS2.Initialize(LS2); itLS2.More(); itLS2.Next()) {
+    TopoDS_Shape Scur = itLS2.Value();
+    FillSolid(Scur,ToBuild2,LS1,ToBuild1,SFS,RevOri2);
+  }
+  
+  // Add the intersection surfaces
+  // -----------------------------
+  if (myDataStructure->NbSurfaces() > 0) {
+    TopOpeBRepDS_SurfaceIterator SSurfaces = myDataStructure->SolidSurfaces(S1forward);
+    for (; SSurfaces.More(); SSurfaces.Next()) {
+      Standard_Integer iS = SSurfaces.Current();
+      const TopTools_ListOfShape& LnewF = NewFaces(iS);
+      for (TopTools_ListIteratorOfListOfShape Iti(LnewF); Iti.More(); Iti.Next()) {
+       TopoDS_Shape aFace = Iti.Value();
+       TopAbs_Orientation ori = SSurfaces.Orientation(ToBuild1);
+       myBuildTool.Orientation(aFace,ori);
+       
+#ifdef OCCT_DEBUG
+       if (tSPS){
+         DEBSHASET(ss,"--- SplitSolid ",SFS," AddElement SFS+ face ");  
+         GdumpSHA(aFace,(Standard_Address)ss.ToCString());
+         cout<<" ";TopAbs::Print(ToBuild1,cout)<<" : 1 face ";
+         TopAbs::Print(ori,cout); cout<<endl;
+       }
+#endif
+       SFS.AddElement(aFace);
+      }
+    }
+  }
+
+  // Create a Solid Builder SOBU
+  // -------------------------
+  TopOpeBRepBuild_SolidBuilder SOBU(SFS);
+
+  // Build the new solids on S1
+  // --------------------------
+  TopTools_ListOfShape& SolidList = ChangeMerged(S1oriented,ToBuild1);
+  if(IsShell)
+    MakeShells(SOBU,SolidList);
+  else
+    MakeSolids(SOBU,SolidList);
+
+  // connect list of new solids <SolidList> as solids built on LS1 solids
+  // --------------------------------------------------------------------
+
+  for (itLS1.Initialize(LS1); itLS1.More(); itLS1.Next()) {
+    TopoDS_Shape Scur = itLS1.Value();
+    MarkSplit(Scur,ToBuild1);
+    TopTools_ListOfShape& SL = ChangeSplit(Scur,ToBuild1);
+    if ( ConnectTo1 ) SL = SolidList;
+
+  }
+  
+  // connect list of new solids <SolidList> as solids built on LS2 solids
+  // --------------------------------------------------------------------
+  for (itLS2.Initialize(LS2); itLS2.More(); itLS2.Next()) {
+    TopoDS_Shape Scur = itLS2.Value();
+    MarkSplit(Scur,ToBuild2);
+    TopTools_ListOfShape& SL = ChangeSplit(Scur,ToBuild2);
+    if ( ConnectTo2 ) SL = SolidList;
+  }
+
+} // SplitSolid
+
+//#ifndef TopOpeBRepBuild_SplitSolid_INCLUDED
+#endif
index 677c2393c82944ae5fa0deb567b44a33eb4818da..8c6bc70eed52b283d138211c8b62a2b668bd7994 100644 (file)
 #include <TopAbs_ShapeEnum.hxx>
 #include <Standard_Integer.hxx>
 class TopoDS_TShape;
-class Standard_NullObject;
-class Standard_DomainError;
-class Standard_TypeMismatch;
-class TopLoc_Location;
 
+// resolve name collisions with X11 headers
+#ifdef Convex
+  #undef Convex
+#endif
 
 //! Describes a shape which
 //! - references an underlying shape with the potential
index a2736faca7bc36ba14d99a0bfec4ce529feb2c22..0cb0292320d706ece8ba76c9379c9ab76a2f03b9 100644 (file)
 #include <MMgt_TShared.hxx>
 #include <Standard_Boolean.hxx>
 #include <TopAbs_ShapeEnum.hxx>
-class Standard_ConstructionError;
+
 class TopoDS_Iterator;
 class TopoDS_Builder;
 
+// resolve name collisions with X11 headers
+#ifdef Convex
+  #undef Convex
+#endif
 
 class TopoDS_TShape;
 DEFINE_STANDARD_HANDLE(TopoDS_TShape, MMgt_TShared)
index 78e7599e9ba8f69fba7626704a2d1a6831f523a6..795998d5f7ae5009b0cd174eaf0912c3a79cb24a 100644 (file)
 
 
 class TopoDS_TVertex;
+
+// resolve name collisions with X11 headers
+#ifdef Convex
+  #undef Convex
+#endif
+
 DEFINE_STANDARD_HANDLE(TopoDS_TVertex, TopoDS_TShape)
 
 //! A  Vertex is a topological  point in  two or three
index 50ed06a1438e92717af8d3601919ee59436c091a..a1e3d4f1cc7119b420efe311807ff4a5f294aa38 100644 (file)
 class Interface_Check;
 class Transfer_TransferFailure;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 class Transfer_Binder;
 DEFINE_STANDARD_HANDLE(Transfer_Binder, MMgt_TShared)
index cf95a90cd312933505e5a546c887530d0132f082..46c23c0a1f01d0e727a6949de36483f395bf730e 100644 (file)
@@ -32,6 +32,10 @@ class Transfer_Binder;
 class Standard_Transient;
 class Interface_Check;
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! Defines an Iterator on the result of a Transfer
 //! Available for Normal Results or not (Erroneous Transfer)
index fcfe879fff7026ba9829d4450f579ccc5f46edde..97277dbe57dcd6e94cd495709fd7dcf78ee2d3d7 100644 (file)
@@ -387,7 +387,7 @@ void VrmlConverter_ShadedShape::ComputeNormal(const TopoDS_Face& aFace,
     gp_Vec D2U,D2V,D2UV;
     gp_Pnt P;
     Standard_Real U, V;
-    CSLib_DerivativeStatus Status;
+    CSLib_DerivativeStatus aStatus;
     CSLib_NormalStatus NStat;
     S.Initialize(aFace);
     const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
@@ -395,8 +395,8 @@ void VrmlConverter_ShadedShape::ComputeNormal(const TopoDS_Face& aFace,
       U = UVNodes(i).X();
       V = UVNodes(i).Y();
       S.D1(U,V,P,D1U,D1V);
-      CSLib::Normal(D1U,D1V,Precision::Angular(),Status,Nor(i));
-      if (Status != CSLib_Done) {
+      CSLib::Normal(D1U,D1V,Precision::Angular(),aStatus,Nor(i));
+      if (aStatus != CSLib_Done) {
        S.D2(U,V,P,D1U,D1V,D2U,D2V,D2UV);
        CSLib::Normal(D1U,D1V,D2U,D2V,D2UV,Precision::Angular(),OK,NStat,Nor(i));
       }
index 052be359dec782a2ffbc931ef7de7a1bce7dfe27..8ad8195222fca62286f2af714b59db94411891ed 100644 (file)
 #include <Standard_Mutex.hxx>
 #include <VrmlData_DataMapOfShapeAppearance.hxx>
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
+
 struct VrmlData_InBuffer;
 
 /**
index a89663b27d3f382f5356c44526cb8c9a72e9b7d4..af08b97f9b4d49709536886fac13c825f44dbb7e 100644 (file)
 #include <gce_ErrorType.hxx>
 #include <Standard_Boolean.hxx>
 
+// resolve name collisions with X11 headers
+#ifdef Status
+  #undef Status
+#endif
 
 //! This class implements the common services for
 //! all classes of gce which report error.
index 2e9563c6a2a86f7dca2a630614b01d740dba31db..68893a134423ba6adfb5bd85d0c12b5e3fc6e068 100644 (file)
 
 #include <math_SingleTab.hxx>
 
-class Standard_DimensionError;
-class Standard_DivideByZero;
-class Standard_RangeError;
-class math_Matrix;
+// resolve name collisions with X11 headers
+#ifdef Opposite
+  #undef Opposite
+#endif
 
 //! This class implements the real IntegerVector abstract data type.
 //! IntegerVectors can have an arbitrary range which must be define at
index a729d83f2ae47b56da242faba81f16b7ea4572f1..b5edbb4e0b98458d7f5e0f05495c4f794efa7729 100644 (file)
 #include <Standard_Address.hxx>
 #include <math_Vector.hxx>
 #include <Standard_OStream.hxx>
-class Standard_DimensionError;
-class Standard_RangeError;
-class Standard_DivideByZero;
-class math_NotSquare;
-class math_SingularMatrix;
-class math_Vector;
 
+// resolve name collisions with X11 headers
+#ifdef Opposite
+  #undef Opposite
+#endif
 
 //! This class implements the real matrix abstract data type.
 //! Matrixes can have an arbitrary range which must be defined
index c967b187882bd571aa2830b83c5e029d0ca8aa0b..e73ff37b94cb6b7f760a128f01625e83ddba93c4 100644 (file)
 #include <gp_XY.hxx>
 #include <gp_XYZ.hxx>
 
-class Standard_DimensionError;
-class Standard_DivideByZero;
-class Standard_RangeError;
-class Standard_NullValue;
+// resolve name collisions with X11 headers
+#ifdef Opposite
+  #undef Opposite
+#endif
+
 class math_Matrix;
 
 //! This class implements the real vector abstract data type.