A few extra things

This commit is contained in:
Turingon 2024-07-05 21:38:40 +02:00
parent 6023f3d5db
commit d3f2fa9784
8 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 9.0.2, 2024-07-05T13:15:28. -->
<!-- Written by QtCreator 9.0.2, 2024-07-05T21:26:06. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>

View file

@ -292,7 +292,8 @@ void OpenGLDisplayWidget::initVisualizationPipeline()
delete[] isos;
streamlinemapper = new StreamlineMapper();
streamlinemapper->getData(filter->passCube(), XValue, YValue, ZValue);
streamlinemapper->setValues(125, 100);
streamlinemapper->setValues(1000, 100);
//streamlinemapper->setValues(125, 100);
// Initialize rendering modules.

View file

@ -175,7 +175,8 @@ QVector<QVector<QVector3D>> StreamlineMapper::computeStreamlines() {
float dT = 0.2;
for (int i = 0; i < num_seeds; i++) {
seed_point = QVector3D(0.2*(i%5) +0.01, 0.2*(i/5 % 5) +0.01, 0.2 * (i/25) +0.01);
//seed_point = QVector3D(0.2*(i%5) +0.01, 0.2*(i/5 % 5) +0.01, 0.2 * (i/25) +0.01);
seed_point = QVector3D(0.1*(i%10) +0.01, 0.1*(i/10 % 10) +0.01, 0.1 * (i/100) +0.01);
container << seed_point;
for (int j = 0; j < num_steps-1; j++) {
seed_point = euler3D(seed_point, dT);

View file

@ -66,7 +66,7 @@ void StreamlineRenderer::draw(QMatrix4x4 mvpMatrix)
}
void StreamlineRenderer::render(QVector<QVector3D> vectors, QMatrix4x4 mvpMatrix) {
std::cout << vectors.size() << std::endl;
//std::cout << vectors.size() << std::endl;
vertexBuffer.bind();
vertexBuffer.allocate(vectors.data(), vectors.size() * sizeof(QVector3D));
vertexBuffer.release();