mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-19 11:50:32 +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()
|
theObject = theObject.GetMesh()
|
||||||
if ( isinstance( theObject, list )):
|
if ( isinstance( theObject, list )):
|
||||||
theObject = self.GetIDSource(theObject, SMESH.ALL)
|
theObject = self.GetIDSource(theObject, SMESH.ALL)
|
||||||
|
if ( isinstance( theScaleFact, float )):
|
||||||
|
theScaleFact = [theScaleFact]
|
||||||
|
if ( isinstance( theScaleFact, int )):
|
||||||
|
theScaleFact = [ float(theScaleFact)]
|
||||||
|
|
||||||
self.mesh.SetParameters(thePoint.parameters)
|
self.mesh.SetParameters(thePoint.parameters)
|
||||||
|
|
||||||
@ -3700,6 +3704,10 @@ class Mesh:
|
|||||||
theObject = theObject.GetMesh()
|
theObject = theObject.GetMesh()
|
||||||
if ( isinstance( theObject, list )):
|
if ( isinstance( theObject, list )):
|
||||||
theObject = self.GetIDSource(theObject,SMESH.ALL)
|
theObject = self.GetIDSource(theObject,SMESH.ALL)
|
||||||
|
if ( isinstance( theScaleFact, float )):
|
||||||
|
theScaleFact = [theScaleFact]
|
||||||
|
if ( isinstance( theScaleFact, int )):
|
||||||
|
theScaleFact = [ float(theScaleFact)]
|
||||||
|
|
||||||
self.mesh.SetParameters(thePoint.parameters)
|
self.mesh.SetParameters(thePoint.parameters)
|
||||||
mesh = self.editor.ScaleMakeMesh(theObject, thePoint, theScaleFact,
|
mesh = self.editor.ScaleMakeMesh(theObject, thePoint, theScaleFact,
|
||||||
|
Loading…
Reference in New Issue
Block a user