]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0052954: Get In Place does not work
authorskv <skv@opencascade.com>
Tue, 29 Dec 2015 10:01:30 +0000 (13:01 +0300)
committerskv <skv@opencascade.com>
Tue, 29 Dec 2015 10:01:30 +0000 (13:01 +0300)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

index 3ed4513ecd8181068f80fe7d1710f8d0a9fd8d12..65716670c9e393839fade61a8d9ac9b74a4c3655 100644 (file)
@@ -74,6 +74,7 @@
 #include <Geom_Plane.hxx>
 #include <Geom_SphericalSurface.hxx>
 #include <Geom_Surface.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <Precision.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TDF_Tool.hxx>
@@ -4636,6 +4637,8 @@ static bool isSameEdge(const TopoDS_Edge& theEdge1, const TopoDS_Edge& theEdge2)
   U = U11+range*2.0/3.0;
   gp_Pnt P2 = C1->Value(U);     //Compute a point on two thirds of the edge's length
 
+  C2 = new Geom_TrimmedCurve(C2, U21, U22);
+
   if(!GeomLib_Tool::Parameter(C2, P1, MAX_TOLERANCE, U) ||  U < U21 || U > U22)
     return false;