mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 09:00:37 +05:00
in Scale(), allow theScaleFact be a float or an integer
This commit is contained in:
parent
387aa16d04
commit
7b9e79f480
@ -3680,6 +3680,10 @@ class Mesh:
|
||||
theObject = theObject.GetMesh()
|
||||
if ( isinstance( theObject, list )):
|
||||
theObject = self.GetIDSource(theObject, SMESH.ALL)
|
||||
if ( isinstance( theScaleFact, float )):
|
||||
theScaleFact = [theScaleFact]
|
||||
if ( isinstance( theScaleFact, int )):
|
||||
theScaleFact = [ float(theScaleFact)]
|
||||
|
||||
self.mesh.SetParameters(thePoint.parameters)
|
||||
|
||||
@ -3700,6 +3704,10 @@ class Mesh:
|
||||
theObject = theObject.GetMesh()
|
||||
if ( isinstance( theObject, list )):
|
||||
theObject = self.GetIDSource(theObject,SMESH.ALL)
|
||||
if ( isinstance( theScaleFact, float )):
|
||||
theScaleFact = [theScaleFact]
|
||||
if ( isinstance( theScaleFact, int )):
|
||||
theScaleFact = [ float(theScaleFact)]
|
||||
|
||||
self.mesh.SetParameters(thePoint.parameters)
|
||||
mesh = self.editor.ScaleMakeMesh(theObject, thePoint, theScaleFact,
|
||||
|
Loading…
Reference in New Issue
Block a user