feat: refactor spawnpointcallback

This commit is contained in:
2024-05-30 18:14:27 +02:00
parent c825e63762
commit 9ecdc5eb43
12 changed files with 206 additions and 85 deletions

View File

@@ -2,9 +2,7 @@
#include <QVTKOpenGLNativeWidget.h>
#include "QT/MainWindow.h"
// TODO: make LColLayer use a modified spawnpointCallback to spawn multiple particles per interaction
// TODO: make Lagrangian Layers share one vtkPoints for seemless technique swiching
// TODO: add text gui explaining the above?
// TODO: yoink Robin's isNearestNeighbourZero function to improve beaching
// TODO: add a button to reset the simulation - set time=0 and reset points array of particles.
// FIXME: go over each function and add const where appropriate.
@@ -13,6 +11,8 @@
// COULDHAVE: the Legends are just statically rendered images; ideally these would be created along with the luts and then displayed accordingly.
int main(int argc, char* argv[]) {
srand (static_cast <unsigned> (time(0)));
QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());
QApplication app(argc, argv);