Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88401591
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, 15:05
Size
1 KB
Mime Type
text/x-python
Expires
Sun, Oct 20, 15:05 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21765897
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
#f = np.genfromtxt("points.txt", comments="#", delimiter=" ", usecols=(0,1,2))
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