Skip to content

Latest commit

 

History

History
125 lines (95 loc) · 2.46 KB

installation.md

File metadata and controls

125 lines (95 loc) · 2.46 KB

Setup & Get Sarted

::::::{card} SOFA setup ^^^

You can either build it from sources:

::::{grid} 2

:::{grid-item-card} :columns: auto :shadow: none :class-card: sd-border-0

:color: primary
:outline:
:tooltip: github-repo
{octicon}`mark-github;1em;github-repo`

::: :::{grid-item-card} :columns: auto :shadow: none :class-card: sd-border-0

:color: primary
:outline:
:tooltip: doc-how-to
{octicon}`book;1em;doc-how-to`

::: ::::

:::::

Or download the binaries:

::::{grid} 1

:::{grid-item-card} :columns: auto :shadow: none :class-card: sd-border-0

:color: primary
:outline:
:tooltip: binaries-download
{octicon}`download;1em;download`

::: ::::

::::::

:::::::{card} ModelOrderReduction setup ^^^

You can either build it from the source as explained here with SOFA. Or take the binaries generated here and link them to your SOFA build/binaries.

::::::{tab-set}

:::::{tab-item} Ubuntu

::::{card} Python install ^^^

::::{tab-set}

:::{tab-item} minimal

  sudo apt-get install python-cheetah python-yaml

:::

:::{tab-item} all

  sudo apt-get install python-cheetah python-yaml python-pyqt5 notebook

::: :::: ::::

::::{card} PythonPath ^^^

Then don't forget to add into your pythonPath the sofa launcher. To do that in a definitive way add this line at the end of your shell configuration file (usually .bashrc)

export PYTHONPATH=$PYTHONPATH:/PathToYourSofaSrcFolder/tools/sofa-launcher

:::: :::::

:::::{tab-item} Windows 🚧 :::::

:::::{tab-item} Mac 🚧 :::::

::::::

:::::::

Try some exemples

To confirm all the previous steps and verify that the plugin is working properly you can launch the test_component.py SOFA scene situated in:

/ModelOrderReduction/tools

This example show that after the reduction of a model (here the 2 examples {doc}Diamond Robot </usage/examples/Diamond/diamond>, {doc}Starfish robot </usage/examples/Starfish/starfish>), you can re-use it easily as a python object with different arguments allowing positionning of the model in the SOFA scene.