workaround-bug-mesher
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
committerAdam C. Powell, IV <hazelsct@debian.org>
Fri, 6 May 2011 13:52:41 +0000 (14:52 +0100)
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

ros/src/BRepMesh/BRepMesh_FastDiscretFace.cxx

index 8f969279a74b5b21a28256945b514f0a4e68c75e..cbdfb9227ef394868347a60e3e5d8f477c1afe35 100644 (file)
@@ -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;