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)
|
hyp = self.Hypothesis("LengthFromEdges", UseExisting=1, CompareMethod=self.CompareEqualHyp)
|
||||||
return hyp
|
return hyp
|
||||||
|
|
||||||
## Sets @c SurfaceCurvature flag
|
## Sets @c UseSurfaceCurvature flag
|
||||||
# @param toAllow new value of the @c SurfaceCurvature parameter (@c True by default)
|
# @param toUse new value of the @c UseSurfaceCurvature parameter (@c True by default)
|
||||||
def SetSurfaceCurvature(self, toAllow=True):
|
def SetUseSurfaceCurvature(self, toUse=True):
|
||||||
if self.Parameters(): self.params.SetSurfaceCurvature(toAllow)
|
if self.Parameters(): self.params.SetUseSurfaceCurvature(toUse)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
## Sets @c QuadAllowed flag.
|
## Sets @c QuadAllowed flag.
|
||||||
|
@ -363,6 +363,7 @@ bool NETGENPlugin_NETGEN_2D_ONLY::Compute(SMESH_Mesh& aMesh,
|
|||||||
startWith = MESHCONST_MESHSURFACE;
|
startWith = MESHCONST_MESHSURFACE;
|
||||||
endWith = MESHCONST_OPTSURFACE;
|
endWith = MESHCONST_OPTSURFACE;
|
||||||
|
|
||||||
|
netgen::mparam.uselocalh = true; // needed while optimization
|
||||||
try {
|
try {
|
||||||
OCC_CATCH_SIGNALS;
|
OCC_CATCH_SIGNALS;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user