diff --git a/src/components/ThreeViewer/Scene.jsx b/src/components/ThreeViewer/Scene.jsx index 60061cf..9399f5a 100644 --- a/src/components/ThreeViewer/Scene.jsx +++ b/src/components/ThreeViewer/Scene.jsx @@ -23,8 +23,6 @@ const Scene = ({ setSelectedMesh, selectedPVSystem, setSelectedPVSystem, - pvPoints, - setPVPoints, vegetationGeometries, geoLocation, }) => { @@ -32,6 +30,8 @@ const Scene = ({ const [showTerrain, setShowTerrain] = useState(true) // A list of visible PV Systems - they get visible after they are drawn on a building and calculated const [pvSystems, setPVSystems] = useState([]) + // pvPoints are the red points that appear when drawing PV systems + const [pvPoints, setPVPoints] = useState([]) window.setPVPoints = setPVPoints const position = [ diff --git a/src/pages/Simulation.jsx b/src/pages/Simulation.jsx index 7059b8e..ee23fea 100644 --- a/src/pages/Simulation.jsx +++ b/src/pages/Simulation.jsx @@ -16,9 +16,6 @@ function Index() { // simulationProgress is used for the loading bar const [simulationProgress, setSimulationProgress] = useState(0) - // pvPoints are the red points that appear when drawing PV systems - const [pvPoints, setPVPoints] = useState([]) - // The federal State where the material comes from, ie "BY" const [federalState, setFederalState] = useState(false) window.setFederalState = setFederalState @@ -71,8 +68,6 @@ function Index() { setSelectedMesh={setSelectedMesh} selectedPVSystem={selectedPVSystem} setSelectedPVSystem={setSelectedPVSystem} - pvPoints={pvPoints} - setPVPoints={setPVPoints} vegetationGeometries={vegetationGeometries} geoLocation={location} />