SimpleSceneTutorial
From Yade
This page is a walk-through example of creating very simple scene: one sphere falling onto a box underneath. There are two implementations of this scene (we now have syntax highlighter enabled for our site: GeSHi)
- in Python,
scripts/simple-scene.py
(online), which you can find commented at SimpleScenePython. - in c++,
extra/SimpleScene.hpp
(online) andextra/SimpleScene.cpp
(online), which is commented at SimpleSceneCpp.
The comments are the same in both cases, you can read the pages in parallel to get an idea about the structure of Yade simulation.