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 --installsudo apt-get install build-essentialWe 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 -yYou can have many environments in parallel. Therefore, you need to activate the environment you want to use.
conda activate zha-introExcept 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.13compas_cgalcompas_gmshcompas_libiglcompas_modelcompas_sessioncompas_shapeopcompas_viewer
Launch an interactive Python interpreter.
pythonWhen 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()