From 72f7e325e4b0d5994ef1ff9d3e8fa5695e5d2ccf Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Mon, 11 May 2026 15:32:17 +0200 Subject: [PATCH] Update Nordex geometry based on user's new QGIS schema (KSF, AMF, Road) --- app.js | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/app.js b/app.js index f072455..070313c 100644 --- a/app.js +++ b/app.js @@ -193,28 +193,24 @@ document.addEventListener('DOMContentLoaded', async () => { let blfCoords, ksfCoords, mfParts; if (hersteller && hersteller.toLowerCase() === 'nordex') { - // Nordex Geometries (Based on technical drawing: Tower is not centered in KSF width) - // Foundation: R=5.5 - // KSF: 59.65m (L) x 36.50m (B). - // Width Offset: Narrow side (12.1m) is towards the road, wider side (24.4m) is away. - ksfCoords = [[-24.4, -5.5], [12.1, -5.5], [12.1, -65.15], [-24.4, -65.15], [-24.4, -5.5]]; + // Nordex Geometries (Based on new QGIS schema provided by user) + // KSF (Red): Complex polygon + ksfCoords = [ + [18, -44.72], [18, 14.91], [-6.31, 14.91], [-18.38, 0], + [-18.38, -33.19], [-7, -44.72], [18, -44.72] + ]; - // AMF: 180.00m (L) x 15.00m (B). Centered on tower axis. - const amf = [[-7.5, -65.15], [7.5, -65.15], [7.5, -245.15], [-7.5, -245.15], [-7.5, -65.15]]; + // AMF (Green Area): 180m long starting at KSF edge, 15m wide + const amf = [ + [18, -44.72], [18, -224.72], [3, -224.72], [3, -44.72], [18, -44.72] + ]; + mfParts = [amf]; - // NVM (Nabenvor-Montagefläche): 26,00m (L) x 10,50m (B). - // Positioned on the RIGHT side (the 12.1m road side), starting at 18.25m from center. - const nvm = [[18.25, -5.5], [28.75, -5.5], [28.75, -31.5], [18.25, -31.5], [18.25, -5.5]]; - - // CRANE BOOM PAD (Triangular auxiliary area): 120.00m (L). - // Narrows from 18m to 7.5m width on the wider side (Left). - const cbp = [[-18.0, -65.15], [-7.5, -65.15], [-7.5, -185.15], [-18.0, -65.15]]; - - mfParts = [amf, nvm, cbp]; - - // BLF (Blattlagerfläche): 90,00m (L) x 15,00m (B). - // Positioned on the RIGHT side, starting at 18.25m from center. - blfCoords = [[18.25, -65.15], [33.25, -65.15], [33.25, -155.15], [18.25, -155.15], [18.25, -65.15]]; + // BLF/Road (Blue Area): Complex unified shape + blfCoords = [ + [18, -224.72], [18, 40], [49.5, 40], [49.5, -100], + [24, -100], [24, -224.72], [18, -224.72] + ]; } else { // Enercon / Vestas / GE (Standard) blfCoords = [[-41, 9], [-61, 9], [-61, -81], [-41, -81], [-41, 9]];