From ca25d6838bfd249854737f7891a06fa5a3f81134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Thu, 10 Oct 2019 07:38:00 +0200 Subject: [PATCH] use NextUV --- libsrc/occ/occmeshsurf.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occmeshsurf.cpp b/libsrc/occ/occmeshsurf.cpp index a2693700..ed6daab9 100644 --- a/libsrc/occ/occmeshsurf.cpp +++ b/libsrc/occ/occmeshsurf.cpp @@ -371,6 +371,7 @@ namespace netgen void OCCSurface :: Project (Point<3> & ap, PointGeomInfo & gi) { static Timer t("OccSurface::Project"); RegionTimer reg(t); + static Timer t2("OccSurface::Project actural"); // try Newton's method ... @@ -475,7 +476,10 @@ namespace netgen Handle( ShapeAnalysis_Surface ) su = new ShapeAnalysis_Surface( occface ); auto toltool = BRep_Tool::Tolerance( topods_face ); - gp_Pnt2d suval = su->ValueOfUV ( pnt, toltool); + // gp_Pnt2d suval = su->ValueOfUV ( pnt, toltool); + t2.Start(); + gp_Pnt2d suval = su->NextValueOfUV (gp_Pnt2d(u,v), pnt, toltool); + t2.Stop(); suval.Coord( u, v); pnt = occface->Value( u, v );