foldablebox.py revision 4e10d188042815c5285edf00ea96896b862e0863
'''
Copyright (C) 2009 Aurelio A. Heckert <aurium (a) gmail dot com>
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
'''
__version__ = "0.2"
import inkex, simplestyle
from math import *
from simplepath import formatPath
help="The Box Width - in the X dimension")
help="The Box Height - in the Y dimension")
help="The Box Depth - in the Z dimension")
help="The unit of the box dimensions")
help="Paper Thickness - sometimes that is important")
help="Inner tab propotion for upper tab")
help="Add guide lines to help the drawing limits")
#self.createGuide( 0, docH, 0 );
# Inner Close Tab
line_path = [
[ 'Z', [] ]
]
left_pos = 0
#self.createGuide( 0, docH-tabH, 0 );
# Upper Close Tab
line_path = [
[ 'Z', [] ]
]
# Upper Right Tab
line_path = [
[ 'Z', [] ]
]
# Upper Left Tab
line_path = [
[ 'Z', [] ]
]
left_pos = 0
#self.createGuide( 0, docH-tabH-boxD, 0 );
# Right Tab
line_path = [
[ 'Z', [] ]
]
# Front
line_path = [
[ 'Z', [] ]
]
# Right
line_path = [
[ 'Z', [] ]
]
# Back
line_path = [
[ 'Z', [] ]
]
# Left
line_path = [
[ 'Z', [] ]
]
left_pos = 0
# Bottom Front Tab
line_path = [
[ 'Z', [] ]
]
# Bottom Right Tab
line_path = [
[ 'Z', [] ]
]
# Bottom Back Tab
line_path = [
[ 'Z', [] ]
]
# Bottom Left Tab
line_path = [
[ 'Z', [] ]
]
if __name__ == '__main__':
e = FoldableBox()
e.affect()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99