Workspace 6.21.5
Public Member Functions | List of all members
StreakMeshGenerator Class Reference

#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)
 

Detailed Description

Generates a mesh representing a particle streak from the provided inputs.

Constructor & Destructor Documentation

◆ StreakMeshGenerator()

StreakMeshGenerator ( )
default

Member Function Documentation

◆ generateStreakGeometry()

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.

Parameters
positionOverTimeThe position of the particle over time.
widthOverTimeThe width of the streak over time.
colorOverTimeThe color of the streak over time.
meshThe 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.
Returns
true if the streak is successfully generated.