summersnight.py revision cffe94fe9f3f72cae85cb3643cd45582025f5950
"""
Copyright (C) 2005 Aaron Spike, aaron@ekips.org
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
"""
from ffgeom import *
import gettext
+ " "
+ _("The second path must be exactly four nodes long."))
exit()
#obj is selected second
inkex.errormsg(_("The first selected object is of type '%s'.\nTry using the procedure Path | Object to Path." % obj.get(inkex.addNS('type','sodipodi'))))
exit()
#distil trafo into four node points
exit()
#vectors pointing away from the trafo origin
#query inkscape about the bounding box of obj
f.close()
else:
inkex.errormsg(_("The second selected object is a group, not a path.\nTry using the procedure Object | Ungroup."))
else:
inkex.errormsg(_("The second selected object is not a path.\nTry using the procedure Path | Object to Path."))
exit()
else:
inkex.errormsg(_("The first selected object is not a path.\nTry using the procedure Path | Object to Path."))
exit()
p = cubicsuperpath.parsePath(d)
for subs in p:
def trafopoint(self,(x,y)):
#Transform algorithm thanks to Jose Hevia (freon)
return [p['x'],p['y']]
if __name__ == '__main__':
e = Project()
e.affect()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99