-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Right now the process flow of downloading geometries, simulating building, resimulating building is not really good. With the idea of having PV systems as own geometries that are simulated, we should simplify this.
My idea would be to have every geometry stored in the geometries react state with sublists: geometries.background, geometries.simulation, ...
graph TD;
id1[Click 'Simulation Starten' on Map]-->id2[Load simulation and background buildings to geometry React state];
id2-->id3[If necessary, load vegetiation to geometry.vegetation react state];
id3-->id4[Initialize simshady scene with simulation and background geometries, geometries are taken fro react state];
id5[Click 'Simualte new Building']-->id6[Resort react state of geometries by moving selected building from background to simulationGeometries];
id6-->id4;
id7[Create new PV system with its own simulation Geometry]-->id4
Functions we need:
initializeGeometries
- first search of specific location, download of all relevant geometriessimulateBuilding
- init the simshady scene with relevant geometries taken from geometries react statesimulatePVSystem
- init the simshady scene with geometries from react state and the newly created pv system geometry