mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-28 00:40:33 +05:00
52713: Wrong creation info for ProjectionOnCylinder object
fix Python API of GetCreationInformation()
This commit is contained in:
parent
ee311dbb32
commit
354aaa03b1
@ -10966,14 +10966,17 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
||||
return aDict
|
||||
|
||||
def GetCreationInformation(self, theShape):
|
||||
info = theShape.GetCreationInformation()
|
||||
res = ''
|
||||
infos = theShape.GetCreationInformation()
|
||||
for info in infos:
|
||||
# operationName
|
||||
opName = info.operationName
|
||||
if not opName: opName = "no info available"
|
||||
res = "Operation: " + opName
|
||||
if res: res += "\n"
|
||||
res += "Operation: " + opName
|
||||
# parameters
|
||||
for parVal in info.params:
|
||||
res += " \n %s = %s" % ( parVal.name, parVal.value )
|
||||
res += "\n \t%s = %s" % ( parVal.name, parVal.value )
|
||||
return res
|
||||
|
||||
## Get a point, situated at the centre of mass of theShape.
|
||||
|
Loading…
Reference in New Issue
Block a user