mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-25 16:02:04 +05:00
22364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms/hypotheses
pass toCheckAll=true to IsApplicable() only if a shape is geom group
This commit is contained in:
parent
88c84e8922
commit
e8af590068
@ -1567,8 +1567,10 @@ class Mesh:
|
|||||||
if self.mesh.HasShapeToMesh():
|
if self.mesh.HasShapeToMesh():
|
||||||
hyp_type = hyp.GetName()
|
hyp_type = hyp.GetName()
|
||||||
lib_name = hyp.GetLibName()
|
lib_name = hyp.GetLibName()
|
||||||
isSubMesh = ( not geom.IsSame( self.mesh.GetShapeToMesh() ))
|
checkAll = ( not geom.IsSame( self.mesh.GetShapeToMesh() ))
|
||||||
isApplicable = self.smeshpyD.IsApplicable(hyp_type, lib_name, geom, isSubMesh)
|
if checkAll and geom:
|
||||||
|
checkAll = geom.GetType() == 37
|
||||||
|
isApplicable = self.smeshpyD.IsApplicable(hyp_type, lib_name, geom, checkAll)
|
||||||
if isApplicable:
|
if isApplicable:
|
||||||
AssureGeomPublished( self, geom, "shape for %s" % hyp.GetName())
|
AssureGeomPublished( self, geom, "shape for %s" % hyp.GetName())
|
||||||
status = self.mesh.AddHypothesis(geom, hyp)
|
status = self.mesh.AddHypothesis(geom, hyp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user