Add customized particle Informations #325
Replies: 4 comments
-
You can add a field for this parameter. See for example here: Example: If you added a field, you can tell the exporter to export this field by setting the following parameter in the scene file: "particleAttributes": “velocity;id” |
Beta Was this translation helpful? Give feedback.
-
Thank you very much. I was able to add a new field. I use a Vector3 type to store a color code.
However, at the moment the program just crashes. Probably because I am not yet using the new field in the calculation. The field should be used to distinguish the particles of the surface, the “second row” (blind particles) and the inner particles. Now I am looking for a suitable place for my code to calculate the field. Would the place in the TimeStep.cpp at the end of the for-loop of line 96 be suitable? |
Beta Was this translation helpful? Give feedback.
-
Please, can you help? |
Beta Was this translation helpful? Give feedback.
-
The loop in line 96 is intended to compute the densities. I would not mix this with the code computation. Why not just write a new function and call it, e.g. in TimeStepDFSPH::step()? |
Beta Was this translation helpful? Give feedback.
-
Hello there,
i would like to add an additional parameter for each particle that is also exportet to the bgeos.
( one Int value contains a 0 or 1 or 2)
How can I implement this?
Beta Was this translation helpful? Give feedback.
All reactions