From: eap Date: Wed, 17 Nov 2010 08:42:40 +0000 (+0000) Subject: 0021073: EDF 1683 NETGENPLUGIN: Local size on edge creates unreguler 1D elements X-Git-Tag: V5_1_5~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f1a3aed2572edb3597d5318b549f9e3ad637c10;p=plugins%2Fnetgenplugin.git 0021073: EDF 1683 NETGENPLUGIN: Local size on edge creates unreguler 1D elements inclease more twice nb of points to restrict local size on the edge --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 0363ae9..8846359 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -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