Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88459729
dummy_file.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Oct 18, 21:59
Size
1 KB
Mime Type
text/x-python
Expires
Sun, Oct 20, 21:59 (2 d)
Engine
blob
Format
Raw Data
Handle
21774410
Attached To
R11910 Additive Manufacturing Work
dummy_file.py
View Options
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 16 16:55:48 2021
@author: ekinkubilay
"""
#import numpy as np
import
argparse
parser
=
argparse
.
ArgumentParser
(
description
=
'Create Part Geometry and Save'
)
parser
.
add_argument
(
"data_file"
,
type
=
str
,
help
=
'filename of the geometry data'
)
parser
.
add_argument
(
"save_file"
,
type
=
str
,
help
=
'name of the step file to be saved'
)
args
=
parser
.
parse_args
()
print
(
args
.
data_file
)
#points = []
#f = open('points.txt')
#lines = f.readlines()
#for line in lines:
# print(line)
# line = line.split(',')
# coord = (float(line[0]), float(line[1]), float(line[2]))
# points.append(coord)
#f.close()
"""
x = -51
y = 8
for i in range(25):
x += 1
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y -= 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x += 0.8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y += 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x = 5
y = 8
for i in range(25):
x += 1
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y -= 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
x += 0.8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
y += 8
print('({}, {}, 0),'.format(np.round(x,1),np.round(y,1)))
"""
Event Timeline
Log In to Comment