No more SetSurfaceCurvature() but SetUseSurfaceCurvature()
And fix SIGSEGV if SetUseSurfaceCurvature(False) + Optimize(True)
This commit is contained in:
parent
e69bcd9018
commit
88496597ee
@ -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.
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user