mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +05:00
In RemoveHypothesis() print a WARNING if the hypothesis was not
assigned to the given shape
This commit is contained in:
parent
7f5d1328b1
commit
6f564a0788
@ -1388,11 +1388,16 @@ class Mesh:
|
|||||||
if isinstance( hyp, Mesh_Algorithm ):
|
if isinstance( hyp, Mesh_Algorithm ):
|
||||||
hyp = hyp.GetAlgorithm()
|
hyp = hyp.GetAlgorithm()
|
||||||
pass
|
pass
|
||||||
if not geom:
|
shape = geom
|
||||||
geom = self.geom
|
if not shape:
|
||||||
|
shape = self.geom
|
||||||
pass
|
pass
|
||||||
status = self.mesh.RemoveHypothesis(geom, hyp)
|
if self.IsUsedHypothesis( hyp, shape ):
|
||||||
return status
|
return self.mesh.RemoveHypothesis(shape, hyp)
|
||||||
|
hypName = GetName( hyp )
|
||||||
|
geoName = GetName( shape )
|
||||||
|
print "WARNING: RemoveHypothesis() failed as '%s' is not assigned to '%s' shape" % ( hypName, geoName )
|
||||||
|
return None
|
||||||
|
|
||||||
## Gets the list of hypotheses added on a geometry
|
## Gets the list of hypotheses added on a geometry
|
||||||
# @param geom a sub-shape of mesh geometry
|
# @param geom a sub-shape of mesh geometry
|
||||||
|
Loading…
Reference in New Issue
Block a user