-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.py
executable file
·30 lines (26 loc) · 764 Bytes
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
#
# How-to execute this script
# --------------------------
# - Method 1: `$ pyton ./script.py`
# - Method 2: `$ ./script.py` (needs to be executable)
#
# To use a custom 3D object, just inject it's class. These
# objects can be created programatically (look at the
# rectangular prism file) or statically (look at the
# triangular prism file).
#
# Omar Trejo
# October, 2016
#
from triangular_prism import TriangularPrism
from euler_parametrization import EulerParametrization
# To use the default rectangular prism use this:
# e = EulerParametrization()
# To inject a new 3D object of your choosing use this:
e = EulerParametrization(
object_3D=TriangularPrism(),
rotation_data_file='accel_two.csv'
)
_ = e.animation()
e.show()