From: skv Date: Tue, 29 Dec 2015 10:01:30 +0000 (+0300) Subject: 0052954: Get In Place does not work X-Git-Tag: V7_8_0a1~6^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=92478173383e7af3ec38442c96f4aa2f503461a1;p=modules%2Fgeom.git 0052954: Get In Place does not work --- diff --git a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx index 3ed4513ec..65716670c 100644 --- a/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IShapesOperations.cxx @@ -74,6 +74,7 @@ #include #include #include +#include #include #include #include @@ -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;