From 92478173383e7af3ec38442c96f4aa2f503461a1 Mon Sep 17 00:00:00 2001 From: skv Date: Tue, 29 Dec 2015 13:01:30 +0300 Subject: [PATCH] 0052954: Get In Place does not work --- src/GEOMImpl/GEOMImpl_IShapesOperations.cxx | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2