You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fluids/tutorial.md
+7-9
Original file line number
Diff line number
Diff line change
@@ -92,17 +92,15 @@ In CMakeLists.txt, the cuda compiler might need graphics card specific flags:
92
92
### Some code explanation:
93
93
94
94
* The world plugin `FluidWorldPlugin.cc`:
95
-
96
-
* in the constructor the fluid engine is initialized
97
-
* in `FluidWorldPlugin::Load` the sdf parameters are loaded, the fluid world is created, fluid is added, the objects from the environment are recreated in the fluid environment (when possible)
98
-
* in `FluidWorldPlugin::Init` the publishers of the objects and fluids particles positions are initialized
99
-
*`FluidWorldPlugin::OnUpdate` is called every world update event, there the fluid engine is updated one timestamp, a msg is sent for the rendering plugin with all the new particles position, and computed forces and torques are applied on the rigid objects.
95
+
* in the constructor the fluid engine is initialized
96
+
* in `FluidWorldPlugin::Load` the sdf parameters are loaded, the fluid world is created, fluid is added, the objects from the environment are recreated in the fluid environment (when possible)
97
+
* in `FluidWorldPlugin::Init` the publishers of the objects and fluids particles positions are initialized
98
+
*`FluidWorldPlugin::OnUpdate` is called every world update event, there the fluid engine is updated one timestamp, a msg is sent for the rendering plugin with all the new particles position, and computed forces and torques are applied on the rigid objects.
100
99
101
100
* The system plugin `FluidVisPlugin.cc`, used for rendering the fluid:
102
-
103
-
* in `FluidVisPlugin::Load` the arguments (if given) are loaded for the type of rendering, `sphere` or default `point`. When sphere is selected the rendering gets slower if many particles are loaded.
104
-
* in `FluidVisPlugin::Init` the subscribes for the fluid particle positions are loaded.
105
-
* in `FluidVisPlugin::RenderAsPointsUpdate` or `FluidVisPlugin::RenderAsSpheresUpdate`, (depending on the rendering type) if a new message with the particle positions is available, these will be rendered.
101
+
* in `FluidVisPlugin::Load` the arguments (if given) are loaded for the type of rendering, `sphere` or default `point`. When sphere is selected the rendering gets slower if many particles are loaded.
102
+
* in `FluidVisPlugin::Init` the subscribes for the fluid particle positions are loaded.
103
+
* in `FluidVisPlugin::RenderAsPointsUpdate` or `FluidVisPlugin::RenderAsSpheresUpdate`, (depending on the rendering type) if a new message with the particle positions is available, these will be rendered.
106
104
107
105
* The fluid simulation engine `FluidEngine.cu` is similar to the SPH example from Fluidix.
0 commit comments