No more SetSurfaceCurvature() but SetUseSurfaceCurvature()

And fix SIGSEGV if SetUseSurfaceCurvature(False) + Optimize(True)
This commit is contained in:
eap 2014-05-08 11:50:54 +04:00
parent e69bcd9018
commit 88496597ee
2 changed files with 5 additions and 4 deletions

View File

@ -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.

View File

@ -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;