From 862626267946361a2bda0a6496b4a99e6d6f0236 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Mon, 29 Nov 2021 16:20:24 +0100 Subject: [PATCH] comments --- libsrc/occ/occ_face.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occ_face.cpp b/libsrc/occ/occ_face.cpp index 99fe0717..d4d1a7c4 100644 --- a/libsrc/occ/occ_face.cpp +++ b/libsrc/occ/occ_face.cpp @@ -104,10 +104,11 @@ namespace netgen double s[2] = { seg.epgeominfo[0].dist, seg.epgeominfo[1].dist }; - // fixes normal-vector roundoff problem when endpoint is cone-tip + // dist is in [0,1], map parametrization to [s0, s1] s[0] = s0 + s[0]*(s1-s0); s[1] = s0 + s[1]*(s1-s0); + // fixes normal-vector roundoff problem when endpoint is cone-tip double delta = s[1]-s[0]; s[0] += 1e-10*delta; s[1] -= 1e-10*delta;