From: Debian Science Maintainers Date: Fri, 6 May 2011 13:52:41 +0000 (+0100) Subject: workaround-bug-mesher X-Git-Tag: archive/raspbian/7.3.0+dfsg1-4+rpi1~1^2^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=515922ccf87a54fe9a132405e53e00675dbe64ea;p=opencascade.git workaround-bug-mesher Workaround poor performance of the new mesher in OCC 6.5.0 with B-spline surfaces The new mesher in OCC 6.5.0 is more robust, but also produces much larger meshes on B-spline surfaces. Until this bug is fixed, it seems better to use the generic procedure. Patch provided by Jérôme Robert. See http://www.opencascade.org/org/forum/thread_20076/ Gbp-Pq: Topic submitted Gbp-Pq: Name workaround-bug-mesher.patch --- diff --git a/ros/src/BRepMesh/BRepMesh_FastDiscretFace.cxx b/ros/src/BRepMesh/BRepMesh_FastDiscretFace.cxx index 8f969279a..cbdfb9227 100644 --- a/ros/src/BRepMesh/BRepMesh_FastDiscretFace.cxx +++ b/ros/src/BRepMesh/BRepMesh_FastDiscretFace.cxx @@ -936,7 +936,7 @@ void BRepMesh_FastDiscretFace::InternalVertices ( const Handle(BRepAdaptor_HSurf } } } - else if (thetype == GeomAbs_BezierSurface || thetype == GeomAbs_BSplineSurface) + else if (false /* See http://www.opencascade.org/org/forum/thread_20076/ thetype == GeomAbs_BezierSurface || thetype == GeomAbs_BSplineSurface */) { Standard_Integer i, j;