add copyright notice
This commit is contained in:
parent
b4559841ad
commit
59a42c8695
1 changed files with 19 additions and 0 deletions
19
partsgen.py
19
partsgen.py
|
@ -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
|
||||
import re
|
||||
|
||||
|
@ -538,6 +554,9 @@ def render_part(part):
|
|||
else:
|
||||
print "not supported part type: %s"%m.group('type')
|
||||
exit(1)
|
||||
###################################################
|
||||
# write data to file #
|
||||
###################################################
|
||||
outfile = open("parts/%s.dat"%partid, 'w')
|
||||
outfile.write("0 %s\n"%parttext)
|
||||
for (x1, y1, z1), (x2, y2, z2) in lines:
|
||||
|
|
Loading…
Reference in a new issue