measure.py revision f3d3661f257ff23dc3b673e926afe4dc6547d59a
'''
Copyright (C) 2006 Nathan Hurst
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
'''
return pointdistance(sp1[1], sp1[2]) + pointdistance(sp1[2], sp2[0]) + pointdistance(sp2[0], sp2[1])
total = 0
lengths = []
total += l
help="Size of node label numbers")
help="The distance above the curve")
try:
except AttributeError:
pass
a =[]
num = 1
'font-weight': 'normal', 'font-style': 'normal', 'fill': '#000000'}
#tp.setAttribute('dy', dy) # dubious merit
e = Length()
e.affect()