Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/sphinx/source/content/FirstSteps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ We first propose to add a visual grid, in order to see things more clearly. To d

Now, we create a new child node, in order to add the general configuration of the scene : required plugins (here SofaPython3) and other tools (like a system of axes).

.. code-block:: python
def createScene(rootNode):
.. code-block:: python

def createScene(rootNode):
import SofaRuntime
# Make sure to load all necessary libraries
SofaRuntime.importPlugin("Sofa.Component.Visual")
Expand All @@ -182,6 +183,7 @@ Now, we create a new child node, in order to add the general configuration of th
Finally, we add the sphere itself, which consists of two parts : the mechanical representation and the visual representation of the sphere:

.. code-block:: python

def createScene(rootNode):
import SofaRuntime
# Make sure to load all necessary libraries
Expand Down
Loading