Skip to content

Commit

Permalink
Switch to npm version of simshady #16
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianK13 authored and khdlr committed Jun 27, 2024
1 parent 0c41d32 commit 7324d61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/simulation/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// This is the only file where both functionality and GUI stuff is allowed

import Scene from "@openpv/simshady";
import ShadingScene from "@openpv/simshady";
import * as THREE from "three";
import { downloadBuildings } from "./download";
import { setLocation } from "./location";
import { processGeometries } from "./preprocessing";
import { showMesh } from "./viewer";
import * as THREE from "three"

export async function main(inputValue, inputChanged, oldLocation) {
const location = await setLocation(inputValue, inputChanged, oldLocation)
Expand All @@ -21,7 +21,7 @@ export async function main(inputValue, inputChanged, oldLocation) {
// TODO: Dynamically call this when sliders are moved instead of re-downloading everything
const { simulationGeometry, surroundingGeometry } = processGeometries(buildingGeometries);

const scene = new Scene(location.lat, location.lon);
const scene = new ShadingScene(location.lat, location.lon);
scene.addSimulationGeometry(simulationGeometry);
scene.addShadingGeometry(simulationGeometry);
scene.addShadingGeometry(surroundingGeometry);
Expand Down

0 comments on commit 7324d61

Please sign in to comment.