From d658985e69361cfef56266a70e908ba035f45085 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Wed, 11 Aug 2021 21:57:22 +0200 Subject: [PATCH] don't do own Newton for finding OCC u/v parameters (e.g. a problem for parameter domain for a sphere --- libsrc/occ/occmeshsurf.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occmeshsurf.cpp b/libsrc/occ/occmeshsurf.cpp index ff3d1ae3..8f815b5c 100644 --- a/libsrc/occ/occmeshsurf.cpp +++ b/libsrc/occ/occmeshsurf.cpp @@ -369,6 +369,9 @@ namespace netgen double u = gi.u; double v = gi.v; +#ifdef OLD + // was a problem for pheres: got u-v paramters outside range of definition + gp_Pnt x = occface->Value (u,v); if (p.SquareDistance(x) <= sqr(PROJECTION_TOLERANCE)) return; @@ -418,7 +421,7 @@ namespace netgen } } while (count < 20); - +#endif // Newton did not converge, use OCC projection