Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1648: Dump Python in the High Level Parameterized Geometry API
[modules/shaper.git]
/
src
/
PythonAPI
/
extension
/
box.py
diff --git
a/src/PythonAPI/extension/box.py
b/src/PythonAPI/extension/box.py
index 6808cd4412632a520c1ecf8ff5b6d7aa79de4f14..5897da2c52486ecd5cc36a11a572113de470be78 100644
(file)
--- a/
src/PythonAPI/extension/box.py
+++ b/
src/PythonAPI/extension/box.py
@@
-7,7
+7,7
@@
from model import Interface
from macros.box.feature import BoxFeature as MY
from macros.box.feature import BoxFeature as MY
-def addBox(part, *args):
+def addBox
Script
(part, *args):
"""Add Box feature to the part and return Box.
Pass all args to Box __init__ function.
"""Add Box feature to the part and return Box.
Pass all args to Box __init__ function.
@@
-47,20
+47,20
@@
class Box(Interface):
self.setLength(dy)
self.setHeight(dz)
self.setLength(dy)
self.setHeight(dz)
- self.
_
execute()
+ self.execute()
pass
def setWidth(self, width):
"""B.setWidth(float) -- modify width attribute"""
pass
def setWidth(self, width):
"""B.setWidth(float) -- modify width attribute"""
- self._
fill_attribute(self._width,
width)
+ self._
width.setValue(
width)
pass
def setLength(self, length):
"""B.setLength(float) -- modify length attribute"""
pass
def setLength(self, length):
"""B.setLength(float) -- modify length attribute"""
- self._
fill_attribute(self._length,
length)
+ self._
length.setValue(
length)
pass
def setHeight(self, height):
"""B.setHeight(float) -- modify height attribute"""
pass
def setHeight(self, height):
"""B.setHeight(float) -- modify height attribute"""
- self._
fill_attribute(self._height,
height)
+ self._
height.setValue(
height)
pass
pass