Utility for modelling polyhedra
Project description
License
With this program you can interactively investigate some polyhedra. I use this program myself and I am willing to share it with other who are interested. I use Ubuntu, as a consequence some problems might exist with windows.
Copyright (C) 2021 Marcel Tunnissen http://www.tunnissen.eu
License: GPLv2, see LICENCSE.txt
wxPython
When wxPython is installed through pip it is compiled. This can take quite some time (e.g. more than 15 minutes). This means that there should be c-compiler available at least. For a Debian Linux you would need have installed (e.g. through apt-get) the packages
- build-essential
- libgtk-3-dev and libwxgtk3.0-gtk3-dev (or whathever GTK version you are using)
- python3-dev
- libgl1-mesa-glx libglu1-mesa
The reason for me to choose wxPython over Tk was that I ran into quite some preformance problems with Tk. The disadvantage is that it can be a pain to install wxPython through pip.
If You Install through PyPI (pip install)
Alse here it is important to have the correct packages for building wxPython installed. See section wxPython" above.
Install
pip install orbitit
Run
python -m orbitit
If You Downloaded from Github Directly
Requirements
You will need:
- python 3.x: http://www.python.org
- wxPython: http://www.wxpython.org
- pyOpenGL: http://pyopengl.sourceforge.net/
Install
E.g. for Ubuntu or other Debian based Linux dist:
sudo apt-get install python3 python3-pip
Then use pip to install other packages, e.g:
pip3 install pyopengl wxpython
See section wxPython for more about installing wxPython through pip.
Run
Make sure the PYTHONPATH
points out this directory, e.g. in Linux
export PYTHONPATH=$PWD
Also make sure to have set the PYOPENGL_PLATFORM
environment variable.
On my system I do
source init_env
python orbitit
Errors
1.
If you get problems with a context not being valid, e.g. OpenGL.error.Error: Attempt to retrieve context when no valid context
Then this might be related to eht wrong PYOPENGL_PLATFORM
In my case this problem was solved by
PYOPENGL_PLATFORM=egl python -m orbitit
2.
If you get problems with NotImplementedError on GLCanvas you probably built wxPython without the wxgtk support. See section wxPython above.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file orbitit-0.5.4.tar.gz
.
File metadata
- Download URL: orbitit-0.5.4.tar.gz
- Upload date:
- Size: 198.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ec67aa71f2c483a5a4026ad4a99e36f7690a5270d34dbdb41ad8b02d175e7db |
|
MD5 | b70cf49cdb91d7ad65449a99be0eb3c1 |
|
BLAKE2b-256 | 11ea26bef5a8911cf24846c69e7c38b4d8cbc5c646969285feb8c2b7d72db114 |
File details
Details for the file orbitit-0.5.4-py3-none-any.whl
.
File metadata
- Download URL: orbitit-0.5.4-py3-none-any.whl
- Upload date:
- Size: 229.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecda6cc0d3a33c8a0c2110c8b34f21473873a2bfd34aa381ef243db2fbdcc727 |
|
MD5 | c8d0d49fd6eb7a8e459d8d3c410ca4e6 |
|
BLAKE2b-256 | 909e4fd7986ab5062d155e2766c59ef27538bfd61e00765b9079eaa9ae5c987f |