From 11f2ff0c769e247fc9968cf7d679f10ece0e9445 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Fri, 7 Oct 2022 12:22:11 +0200 Subject: [PATCH] fix project point on edge to stay in param range --- libsrc/occ/occ_edge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/occ/occ_edge.cpp b/libsrc/occ/occ_edge.cpp index 913a1b76..1685aa9b 100644 --- a/libsrc/occ/occ_edge.cpp +++ b/libsrc/occ/occ_edge.cpp @@ -56,7 +56,7 @@ namespace netgen void OCCEdge::ProjectPoint(Point<3>& p, EdgePointGeomInfo* gi) const { auto pnt = ng2occ(p); - GeomAPI_ProjectPointOnCurve proj(pnt, curve); + GeomAPI_ProjectPointOnCurve proj(pnt, curve, s0, s1); pnt = proj.NearestPoint(); if(gi) gi->dist = (proj.LowerDistanceParameter() - s0)/(s1-s0);