0031458: Visualization - refine classes across Prs3d and StdPrs packages
[occt.git] / src / PrsDim / PrsDim_EqualDistanceRelation.cxx
index 72c2868..b726874 100644 (file)
@@ -250,9 +250,7 @@ void PrsDim_EqualDistanceRelation::ComputeSelection( const Handle( SelectMgr_Sel
       Standard_Real FirstPar = ElCLib::Parameter(aCircle->Circ(), myAttachPoint1),
                     LastPar  = ElCLib::Parameter(aCircle->Circ(), myPoint1);
       if (LastPar < FirstPar ) LastPar+=M_PI*2;
-      //add sensetive arc
-      Handle(Select3D_SensitiveCircle) circ = 
-       new Select3D_SensitiveCircle( own, aCircle,  FirstPar, LastPar);
+      Handle(Select3D_SensitiveCircle) circ = new Select3D_SensitiveCircle (own, aCircle->Circ(), FirstPar, LastPar);
       aSelection->Add( circ );
     }
   }
@@ -273,9 +271,7 @@ void PrsDim_EqualDistanceRelation::ComputeSelection( const Handle( SelectMgr_Sel
       Standard_Real FirstPar = ElCLib::Parameter(aCircle->Circ(), myAttachPoint2),
       LastPar  = ElCLib::Parameter(aCircle->Circ(), myPoint2);
       if (LastPar < FirstPar ) LastPar+=M_PI*2;
-      //add sensetive arc
-      Handle(Select3D_SensitiveCircle) circ = 
-       new Select3D_SensitiveCircle( own,aCircle,  FirstPar, LastPar);
+      Handle(Select3D_SensitiveCircle) circ = new Select3D_SensitiveCircle (own, aCircle->Circ(), FirstPar, LastPar);
       aSelection->Add( circ );
     }
   }
@@ -296,8 +292,7 @@ void PrsDim_EqualDistanceRelation::ComputeSelection( const Handle( SelectMgr_Sel
       Standard_Real FirstPar = ElCLib::Parameter(aCircle->Circ(), myAttachPoint3),
       LastPar  = ElCLib::Parameter(aCircle->Circ(), myPoint3);
       if (LastPar < FirstPar ) LastPar+=M_PI*2;
-      Handle(Select3D_SensitiveCircle) circ = 
-       new Select3D_SensitiveCircle( own, aCircle,  FirstPar, LastPar);
+      Handle(Select3D_SensitiveCircle) circ = new Select3D_SensitiveCircle (own, aCircle->Circ(), FirstPar, LastPar);
       aSelection->Add( circ );
     }
     else {
@@ -322,9 +317,7 @@ void PrsDim_EqualDistanceRelation::ComputeSelection( const Handle( SelectMgr_Sel
       Standard_Real FirstPar = ElCLib::Parameter(aCircle->Circ(), myAttachPoint4),
       LastPar  = ElCLib::Parameter(aCircle->Circ(), myPoint4);
       if (LastPar < FirstPar ) LastPar+=M_PI*2;
-      //add sensetive arc
-      Handle(Select3D_SensitiveCircle) circ = 
-       new Select3D_SensitiveCircle( own,aCircle,  FirstPar, LastPar);
+      Handle(Select3D_SensitiveCircle) circ = new Select3D_SensitiveCircle (own, aCircle->Circ(), FirstPar, LastPar);
       aSelection->Add( circ );
     }
   }