BRG workshop at ZHCODE
- Rhino 8
Visual Studio Code with the following extensions from Microsoft:
- Python
- Pylance
- C++ Extension Pack
This is only needed on Friday...
- Install Visual Studio
- During installation, select "Desktop development with C++" workload
xcode-select --install
sudo apt-get install build-essential
We will repeat the installation process during the workshop. However, it is useful to already test that the installed tools work properly.
If you are totally new to conda
, please refer to the getting started instructions.
On Windows, use the Anaconda Prompt
instead of the standard Commdand Prompt
or Windows Powershell
to run conda
commands.
On Mac, you can just use the Terminal
.
Using conda
, create an environment zha-intro
, and install python3.12
and compas_occ
from conda-forge
.
conda create -n zha-intro -c conda-forge python=3.12 compas_occ -y
You can have many environments in parallel. Therefore, you need to activate the environment you want to use.
conda activate zha-intro
Except for compas_occ
, the core packages of the COMPAS Framework can be installed directly from PyPI
using the compas_framework
meta package.
pip install "compas_framework>=0.1.3"
This will install
compas >= 2.13
compas_cgal
compas_gmsh
compas_libigl
compas_model
compas_session
compas_shapeop
compas_viewer
Launch an interactive Python interpreter.
python
When the Python interpreter is active you will see the Python prompt (>>>
).
Import some or all of the installed packages and print their version.
>>> import compas
>>> print(compas.__version__)
'2.13.0'
>>>
Exit the interpreter when you're done.
>>> exit()