0022967: Boolean operations between two cylinders with orthogonal axis generate a...
[occt.git] / src / BOPTools / BOPTools_StateFiller.cxx
index 47983ac..27fe9b6 100755 (executable)
       gp_Pnt aP3d = aSurf->Value(aParU, aParV);
 
       const TopoDS_Solid          &aRefSolid = TopoDS::Solid(aRef);
-      IntTools_Context            &aContext  = myFiller->ChangeContext();
-      BRepClass3d_SolidClassifier &aSC       = 
-                                      aContext.SolidClassifier(aRefSolid);
-  //
+      const Handle(IntTools_Context)& aContext  = myFiller->Context();
+      BRepClass3d_SolidClassifier &aSC = 
+       aContext->SolidClassifier(aRefSolid);
+      //
       aSC.Perform(aP3d, 1e-7);
-  //
+      //
       aSt = aSC.State();
     }
   }
   }
   //
   const TopoDS_Solid& aRefSolid=TopoDS::Solid(Ref);
-  IntTools_Context& aContext=myFiller->ChangeContext();
-  BRepClass3d_SolidClassifier& aSC=aContext.SolidClassifier(aRefSolid);
+  const Handle(IntTools_Context)& aContext=myFiller->Context();
+  BRepClass3d_SolidClassifier& aSC=aContext->SolidClassifier(aRefSolid);
   //
   aSC.Perform(aP3d, 1e-7);
   //