From 7962f0a1bb223b842133f434a1a5cf2467a74312 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Tue, 30 Nov 2021 19:35:06 +0100 Subject: [PATCH] fix edge projection --- 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 f20389b0..901417bc 100644 --- a/libsrc/occ/occ_edge.cpp +++ b/libsrc/occ/occ_edge.cpp @@ -69,7 +69,7 @@ namespace netgen GeomAPI_ProjectPointOnCurve proj(pnt, curve); pnt = proj.NearestPoint(); if(gi) - gi->dist = proj.LowerDistanceParameter(); + gi->dist = (proj.LowerDistanceParameter() - s0)/(s1-s0); p = occ2ng(pnt); }