]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
0021073: EDF 1683 NETGENPLUGIN: Local size on edge creates unreguler 1D elements
authoreap <eap@opencascade.com>
Wed, 17 Nov 2010 08:42:40 +0000 (08:42 +0000)
committereap <eap@opencascade.com>
Wed, 17 Nov 2010 08:42:40 +0000 (08:42 +0000)
  inclease more twice nb of points to restrict local size on the edge

src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index 0363ae94ebd3fe452ec9b0d726289cb26e5e32f1..88463590c14b5292d0a315457b83862b4ca66844 100644 (file)
@@ -1505,7 +1505,7 @@ bool NETGENPlugin_Mesher::Compute()
             Handle(Geom_Curve) curve = BRep_Tool::Curve(e, u1, u2);
             GeomAdaptor_Curve AdaptCurve(curve);
             double length = GCPnts_AbscissaPoint::Length(AdaptCurve, u1, u2);
-            int nb = length/hi * 10;
+            int nb = length/hi * 20;
             if(nb<2) nb=2;
             Standard_Real delta = (u2-u1)/nb;
             for(int i=0; i<nb; i++)