add copyright notice

This commit is contained in:
josch 2013-07-17 20:28:23 +02:00
parent b4559841ad
commit 59a42c8695

View file

@ -1,3 +1,19 @@
#
# Copyright 2013 Johannes Schauer <j.schauer at email.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 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, see <http://www.gnu.org/licenses/>.
from math import sin, cos, pi, copysign from math import sin, cos, pi, copysign
import re import re
@ -538,6 +554,9 @@ def render_part(part):
else: else:
print "not supported part type: %s"%m.group('type') print "not supported part type: %s"%m.group('type')
exit(1) exit(1)
###################################################
# write data to file #
###################################################
outfile = open("parts/%s.dat"%partid, 'w') outfile = open("parts/%s.dat"%partid, 'w')
outfile.write("0 %s\n"%parttext) outfile.write("0 %s\n"%parttext)
for (x1, y1, z1), (x2, y2, z2) in lines: for (x1, y1, z1), (x2, y2, z2) in lines: