Skip to content

EnergyCampus-Feature: Add heating grid VIS - #147

Merged
MDjur merged 24 commits into
hlrs-vis:masterfrom
MDjur:master
Jul 2, 2026
Merged

EnergyCampus-Feature: Add heating grid VIS #147
MDjur merged 24 commits into
hlrs-vis:masterfrom
MDjur:master

Conversation

@MDjur

@MDjur MDjur commented Jul 2, 2026

Copy link
Copy Markdown
Contributor
  • add interpolation of missing simulation data:

add functionality to interpolate of data for nodes not containing
data, but a connection to another node:

  1. search for nodes data has to be interpolated for
  2. loop through these nodes and interpolate data:
    2.a get data of next nodes containing data
    2.b interpolate data for the current node, based on distance to and data
    of neighboring nodes
  • fix shader interpolation error

  • Refactor osgUtils.cpp

TobiasFrit and others added 24 commits March 6, 2026 11:17
* add interpolation of missing simulation data:

add functionality to  interpolate of data for nodes not containing
  data, but a connection to another node:
1. search for nodes data has to be interpolated for
2. loop through these nodes and interpolate data:
2.a get data of next nodes containing data
2.b interpolate data for the current node, based on distance to and data
of neighboring nodes

* fix shader interpolation error

* Refactor osgUtils.cpp

---------

Co-authored-by: Marko Djuric <34012023+MDjur@users.noreply.github.com>
@MDjur
MDjur merged commit e257fdf into hlrs-vis:master Jul 2, 2026
2 checks passed
// intArray->push_back(i);
// intArray->push_back(colorInterpolation ? i : 0);
for (size_t i = 0; i < lengthSegments + 1; ++i) {
for (size_t j = 0; j <= circleSegments; ++j) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (size_t j = 0; j <= circleSegments; ++j) {
for (size_t j = 0; j < circleSegments + 1; ++j) {

This is mean: in both the inner and outer loop, the iteration should include the given upper bound. In order to make clear that both loops should behave the same, their notation should match as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants