From: eap Date: Thu, 8 May 2014 07:50:54 +0000 (+0400) Subject: No more SetSurfaceCurvature() but SetUseSurfaceCurvature() X-Git-Tag: V7_4_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88496597ee6717b1814f16ecf4f34d2c1cd40e37;p=plugins%2Fnetgenplugin.git No more SetSurfaceCurvature() but SetUseSurfaceCurvature() And fix SIGSEGV if SetUseSurfaceCurvature(False) + Optimize(True) --- diff --git a/src/NETGENPlugin/NETGENPluginBuilder.py b/src/NETGENPlugin/NETGENPluginBuilder.py index c4056df..9c2fc8f 100644 --- a/src/NETGENPlugin/NETGENPluginBuilder.py +++ b/src/NETGENPlugin/NETGENPluginBuilder.py @@ -346,10 +346,10 @@ class NETGEN_2D_Only_Algorithm(NETGEN_Algorithm): hyp = self.Hypothesis("LengthFromEdges", UseExisting=1, CompareMethod=self.CompareEqualHyp) return hyp - ## Sets @c SurfaceCurvature flag - # @param toAllow new value of the @c SurfaceCurvature parameter (@c True by default) - def SetSurfaceCurvature(self, toAllow=True): - if self.Parameters(): self.params.SetSurfaceCurvature(toAllow) + ## Sets @c UseSurfaceCurvature flag + # @param toUse new value of the @c UseSurfaceCurvature parameter (@c True by default) + def SetUseSurfaceCurvature(self, toUse=True): + if self.Parameters(): self.params.SetUseSurfaceCurvature(toUse) pass ## Sets @c QuadAllowed flag. diff --git a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx index 9ef97d7..6c54aac 100644 --- a/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx +++ b/src/NETGENPlugin/NETGENPlugin_NETGEN_2D_ONLY.cxx @@ -363,6 +363,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh, startWith = MESHCONST_MESHSURFACE; endWith = MESHCONST_OPTSURFACE; + netgen::mparam.uselocalh = true; // needed while optimization try { OCC_CATCH_SIGNALS;