-
Notifications
You must be signed in to change notification settings - Fork 24
refactoring and adding OpenGL tree emulation support #3
base: main
Are you sure you want to change the base?
Conversation
|
Oh thank you so much! This is so much better than using the proprietary grasshopper program which does not even have a Linux port. |
|
I forgot to mention that you can also rotate the tree by pushing left mouse button and dragging left or right. Dragging up and down scales the tree |
|
This sounds awesome, really cool initiative. The contribution sounds quite deep. I suggest detaching it from the Btw, ran into this error trying to run your code: |
|
You need to install OpenGL (almost certain it is already installed), PyOpenGL PyOpenGL_accelerate with pip3. I assume this is why it doesn't work for you. Ok, I will make one more commit to move visualization to visualize.py |
|
Oh! But now I have realized that visualization uses much code from 03_execution. What should I do in this case? My options are:
I think the option 1 is the best but it is up to you :) |
|
I am fine with leaving the I still get the same error with this update: #3 (comment). Fyi, I cannot find a Lastly, this code is not working on the CSV files that contain a first ID column. |
|
About opengl, sorry, my fault. I meant you need to install OpenGL on your machine, not in pip. But it might be already installed, just skip it. |
|
I made visualizer.py that relies on matplotlib so it should run basically everywhere. Edit: when given coordinates will work with either csv or py effects, will create a csv from a py effect, will work without coordinates only with a py script since csv is tree-specific |
|
"Lastly, this code is not working on the CSV files that contain a first ID column." - solved |
|
I believe I found an answer to the GLUT problem on windows (at least for anaconda users). |
I had problems with running sequences, so I decided to write code for buildin tree emulation. Just add path of a tree map file as second (optional) param (txt where each row is like "[r, b, g]" or csv where each ro is like "r,g,b") and enjoy.
example:
Also some OOP refactoring involved for easier maintaining.