Workspace 6.21.5
|
#include <Rendering/SceneComponents/Models/streakmeshgenerator.h>
Public Member Functions | |
StreakMeshGenerator () | |
bool | generateStreakGeometry (const QVector< Mesh::Vector3d > &positionOverTime, const QVector< double > &widthOverTime, const QVector< QColor > &colorOverTime, Mesh::MeshModel &mesh) |
Generates a mesh representing a particle streak from the provided inputs.
|
default |
bool generateStreakGeometry | ( | const QVector< Mesh::Vector3d > & | positionOverTime, |
const QVector< double > & | widthOverTime, | ||
const QVector< QColor > & | colorOverTime, | ||
Mesh::MeshModel & | mesh | ||
) |
Generates the geometry for a particle streak using the supplied positions, radii and color which are all supplied as arrays. Each index in the supplied arrays represents a particular state at a timestep in the streak, with index 0 representing the initial state (t = 0), and the last index representing being the final state of the particle.
positionOverTime | The position of the particle over time. |
widthOverTime | The width of the streak over time. |
colorOverTime | The color of the streak over time. |
mesh | The mesh into which the resulting geometry is stored. New nodes and elements will be appended to the existing geometry - it is not necessary to clear a mesh prior to generating a streak. |