Salome HOME
Updated for PAL14857. T_EDF_15278 T_PAL_15278
authorskl <skl@opencascade.com>
Fri, 4 May 2007 08:57:42 +0000 (08:57 +0000)
committerskl <skl@opencascade.com>
Fri, 4 May 2007 08:57:42 +0000 (08:57 +0000)
src/GEOMImpl/GEOMImpl_PipeDriver.cxx

index 9991179429aed5c6d5c30feef81bac30830da4c8..ea9d3acbb2ced4892fe354820a3b55f1c8a02ebe 100644 (file)
@@ -438,7 +438,7 @@ static TopoDS_Shape CreatePipeForShellSections(const TopoDS_Wire& aWirePath,
   TopTools_SequenceOfShape tmpEdges;
   for(i=1; i<=Edges.Length() && jcurr<nbLocs; i++) {
     TopoDS_Edge E = TopoDS::Edge(Edges.Value(i));
-    tol = BRep_Tool::Tolerance(edge);
+    tol = BRep_Tool::Tolerance(E);
     TopoDS_Vertex V1 = sae.FirstVertex(E);
     TopoDS_Vertex V2 = sae.LastVertex(E);
     gp_Pnt P1 = BRep_Tool::Pnt(V1);
@@ -509,7 +509,7 @@ static TopoDS_Shape CreatePipeForShellSections(const TopoDS_Wire& aWirePath,
        Edges.InsertAfter(i,E2);
       }
       else {
-       tmpEdges.Append(edge);
+       tmpEdges.Append(E);
       }
     }
   }