From aa17232c48a7fcfaacb370277781bf22d2c76c42 Mon Sep 17 00:00:00 2001 From: JGV <> Date: Fri, 21 Oct 2011 16:16:25 +0000 Subject: [PATCH] 0022758: Problem in BRepExtrema_DistShapeShape --- src/BRepExtrema/BRepExtrema_DistanceSS.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BRepExtrema/BRepExtrema_DistanceSS.cxx b/src/BRepExtrema/BRepExtrema_DistanceSS.cxx index 634ac5c375..cb4eb3665e 100755 --- a/src/BRepExtrema/BRepExtrema_DistanceSS.cxx +++ b/src/BRepExtrema/BRepExtrema_DistanceSS.cxx @@ -715,7 +715,7 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Edge& S1,const TopoDS_Vertex& Standard_Real Udeb,Ufin; BRep_Tool::Range(S1,Udeb,Ufin); - gp_Pnt Pt,P1=BRep_Tool::Pnt(S2); + gp_Pnt Pt, P2 = BRep_Tool::Pnt(S2); const Standard_Real epsP=Precision::PConfusion(); for (i = 1; i <= NbExtrema; i++) @@ -732,8 +732,8 @@ void BRepExtrema_DistanceSS::Perform(const TopoDS_Edge& S1,const TopoDS_Vertex& if (myDstRef > Dstmin) myDstRef=Dstmin; myModif=Standard_True; - const BRepExtrema_SolutionElem Sol1(Dstmin,P1,BRepExtrema_IsOnEdge,S1,t); - const BRepExtrema_SolutionElem Sol2(Dstmin,Pt,BRepExtrema_IsVertex,S2); + const BRepExtrema_SolutionElem Sol1(Dstmin,Pt,BRepExtrema_IsOnEdge,S1,t); + const BRepExtrema_SolutionElem Sol2(Dstmin,P2,BRepExtrema_IsVertex,S2); SeqSolShape1.Append(Sol1); SeqSolShape2.Append(Sol2); }