diff --git a/.gitignore b/.gitignore index 4642f47..07bda0a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,3 @@ __pycache__/ /out/ /scratch/ -bin/ -obj/ -.godot/ -.vs/ diff --git a/Directory.Build.props b/Directory.Build.props deleted file mode 100644 index 047d29f..0000000 --- a/Directory.Build.props +++ /dev/null @@ -1,8 +0,0 @@ - - - $(YMIR_ROOT) - $(MSBuildThisFileDirectory)..\Ymir - $(CULTLIB_ROOT) - $(MSBuildThisFileDirectory)..\CultLib - - diff --git a/README.md b/README.md index 658af05..e28e9d8 100644 --- a/README.md +++ b/README.md @@ -8,54 +8,21 @@ The lore lives in Weksa: `settings/rust-to-dust/` in [GameCult/Weksa](https://github.com/GameCult/Weksa) (setting, story, battle royale, aliens, language design). This repo holds no lore. -## What is live today (`nibu/rtd-prototype`) +## What is here today -- **`RustToDust.Core`**: - - Aetheria 2D grid chassis (`Dorsal` vehicles/quadrupeds and `Coronal` bipeds), - conductive/radiative heat transfer, trapezoidal thermal plateau curves, - localized armor + core destruction, and live cargo-to-hardpoint swapping. - - 6 playable chassis (`buggy`, `technical`, `tank`, `manticore`, `raptor`, - `paladin`), 8 human salvage modules, and 5 Imperial Tourist modules. - - Shrinking `SpectatorRing` perimeter (`Tourist`, `Patron`, and `Exemplar` - tiers with `Neutral` / `Cleared` / `Provoked` stances and Weksa-voiced - `BroadcastFeed` commentary). - - `TerrainField`: deterministic `1536m x 1536m` desert terrain divided into an - `8x8` (`192m x 192m`) tile grid with procedural dunes, mesas, salvage pads, - dirt roads, and runtime crater / tire-track / thermal-scorch stamping. -- **`RustToDust.Ymir`**: - - `ArenaSession` bridging `MatchState` onto Ymir's `Box3DSoaWorld` with - 4-corner spring-damper terrain support, raycast weapons, terrain crater/scorch - impacts, and AI contenders + perimeter spectators. -- **`tests/RustToDust.Tests`**: - - Behavioral xUnit suite covering Aetheria grid heat, spectator ring clearance, - Ymir vehicle driving/combat/swapping, and procedural/dynamic terrain relief. -- **`client/` (Godot 4.7.2 Mono)**: - - 3D desert client with a top-down orthographic `SubViewport` brush-to-tile PBR - + height displacement baker, procedural 3D chassis/spectator silhouettes, - tactical radar, clickable Aetheria Hardpoint & Heat schematic, and Imperial - Broadcast chyron. +Nothing runnable yet. This repo is the home for the mech work now being +prototyped: -## Build, test, and run +- mechs kitbashed from parts with [Brokkr](https://eureka.gamecult.org/forge/GameCult/Brokkr) + (armour shells, ribs, cuts, joints, hoses, frames); +- a mechanical rig with one bone per degree of freedom, driven rams and linkages; +- generic walk and combat animation retargeted onto each chassis. -Requires a sibling `Ymir` checkout beside `RustToDust` (or `YMIR_ROOT` set), -CMake, a C compiler, .NET SDK 8/10, and Godot 4.7.2 Mono (`--path client`). +That work currently lives on `nibu/fable-*` experiment branches in +GameCult/Brokkr and moves here as it settles. -```bash -# Run the behavioral test suite -dotnet test tests/RustToDust.Tests/RustToDust.Tests.csproj -c Release +## Planned, not live -# Build the Godot 4.7.2 Mono client assembly (also builds Ymir native Box3D) -dotnet build client/RustToDust.Client.csproj -c Debug - -# Run the playable 3D client -godot --path client - -# Run the headless Godot smoke test -godot --headless --path client res://tests/Smoke.tscn -``` - -## Planned, not live yet - -- Kitbashed Brokkr mechanical rigs and goal-space walk/combat retargeting - replacing the procedural box/cylinder silhouettes. -- Multiplayer networking and audio synthesis. +- Mech parts library and chassis definitions. +- Rig generator and goal-space retargeting solver. +- A playable walk-and-fight prototype. diff --git a/RustToDust.slnx b/RustToDust.slnx deleted file mode 100644 index 5955da4..0000000 --- a/RustToDust.slnx +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/assets/decals/decal_atlas_albedo.png b/assets/decals/decal_atlas_albedo.png deleted file mode 100644 index c87f3e1..0000000 Binary files a/assets/decals/decal_atlas_albedo.png and /dev/null differ diff --git a/assets/decals/decal_atlas_normal.png b/assets/decals/decal_atlas_normal.png deleted file mode 100644 index 6155e10..0000000 Binary files a/assets/decals/decal_atlas_normal.png and /dev/null differ diff --git a/assets/decals/decal_atlas_ormh.png b/assets/decals/decal_atlas_ormh.png deleted file mode 100644 index 89b9590..0000000 Binary files a/assets/decals/decal_atlas_ormh.png and /dev/null differ diff --git a/assets/gear/autocannon.glb b/assets/gear/autocannon.glb deleted file mode 100644 index fa2c413..0000000 Binary files a/assets/gear/autocannon.glb and /dev/null differ diff --git a/assets/gear/copper_rad.glb b/assets/gear/copper_rad.glb deleted file mode 100644 index e1c2692..0000000 Binary files a/assets/gear/copper_rad.glb and /dev/null differ diff --git a/assets/gear/gilded_lance.glb b/assets/gear/gilded_lance.glb deleted file mode 100644 index 1e0878b..0000000 Binary files a/assets/gear/gilded_lance.glb and /dev/null differ diff --git a/assets/gear/gold_radiator.glb b/assets/gear/gold_radiator.glb deleted file mode 100644 index b0952c8..0000000 Binary files a/assets/gear/gold_radiator.glb and /dev/null differ diff --git a/assets/gear/mg_762.glb b/assets/gear/mg_762.glb deleted file mode 100644 index 8c6658a..0000000 Binary files a/assets/gear/mg_762.glb and /dev/null differ diff --git a/assets/gear/recoilless.glb b/assets/gear/recoilless.glb deleted file mode 100644 index 815f0cc..0000000 Binary files a/assets/gear/recoilless.glb and /dev/null differ diff --git a/assets/maps/sion/buildings_manifest.json b/assets/maps/sion/buildings_manifest.json deleted file mode 100644 index 60c9aa8..0000000 --- a/assets/maps/sion/buildings_manifest.json +++ /dev/null @@ -1,58000 +0,0 @@ -{ - "map": "sion", - "coordinateSystem": "rusttodust_arena_gltf", - "attribution": "Federal Office of Topography swisstopo", - "sizeMeters": 3072.0, - "tileGrid": 6, - "tileSizeMeters": 512.0, - "count": 2319, - "classes": { - "Gebaeude Einzelhaus": 2130, - "Offenes Gebaeude": 97, - "Mauer gross": 20, - "Hochhaus": 16, - "Im Bau": 16, - "Flugdach": 11, - "Lagertank": 10, - "Sakrales Gebaeude": 9, - "Unterirdisches Gebaeude": 5, - "Kapelle": 3, - "Sakraler Turm": 1, - "Treibhaus": 1 - }, - "buildings": [ - { - "id": "sion_0001", - "uuid": "{79F45852-C942-421B-A1B3-D405D5B0CDE1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -524.666, - 6.506, - 437.863 - ], - "size": [ - 13.777, - 10.79, - 14.366 - ], - "groundY": 1.111, - "roofY": 11.901, - "wallCount": 47, - "roofCount": 28 - }, - { - "id": "sion_0002", - "uuid": "{3EFA5FA4-45A5-45AD-B0D2-A39D96A7DA38}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -457.059, - 8.705, - 519.852 - ], - "size": [ - 93.32, - 14.962, - 67.95 - ], - "groundY": 1.224, - "roofY": 16.186, - "wallCount": 22, - "roofCount": 10 - }, - { - "id": "sion_0003", - "uuid": "{EC186A34-2806-4681-A9D5-5FBBA14F44DB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1109.613, - 7.856, - 218.27 - ], - "size": [ - 40.023, - 17.418, - 29.939 - ], - "groundY": -0.853, - "roofY": 16.565, - "wallCount": 26, - "roofCount": 21 - }, - { - "id": "sion_0004", - "uuid": "{408BED01-170F-4E9C-8EED-82ED4A0FFEAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -923.979, - 296.84, - -1499.304 - ], - "size": [ - 23.809, - 10.9, - 24.068 - ], - "groundY": 291.39, - "roofY": 302.29, - "wallCount": 40, - "roofCount": 27 - }, - { - "id": "sion_0005", - "uuid": "{394508E5-94D3-4AFC-A089-97F3CC4044D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1477.338, - 68.344, - 217.291 - ], - "size": [ - 16.754, - 9.928, - 29.723 - ], - "groundY": 63.38, - "roofY": 73.308, - "wallCount": 35, - "roofCount": 26 - }, - { - "id": "sion_0006", - "uuid": "{E3FBDDB8-8CA0-49A8-921A-9275DB751A89}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -966.238, - 60.771, - -180.966 - ], - "size": [ - 25.258, - 8.93, - 17.773 - ], - "groundY": 56.306, - "roofY": 65.236, - "wallCount": 30, - "roofCount": 4 - }, - { - "id": "sion_0007", - "uuid": "{E1B3FD18-71A1-4E67-B878-CF7470FFDB0C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1124.541, - 295.651, - -1491.381 - ], - "size": [ - 32.621, - 11.649, - 22.03 - ], - "groundY": 289.827, - "roofY": 301.476, - "wallCount": 37, - "roofCount": 27 - }, - { - "id": "sion_0008", - "uuid": "{0146E432-2468-462D-AADE-398086942AA4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -484.807, - 69.202, - -660.992 - ], - "size": [ - 23.809, - 17.385, - 21.256 - ], - "groundY": 60.51, - "roofY": 77.894, - "wallCount": 61, - "roofCount": 51 - }, - { - "id": "sion_0009", - "uuid": "{DE6A9087-266C-493B-93CB-FEA78391F108}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1242.514, - 139.005, - -375.101 - ], - "size": [ - 35.871, - 6.31, - 21.136 - ], - "groundY": 135.85, - "roofY": 142.16, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0010", - "uuid": "{7E4E14E0-9272-4EAC-91CB-7CC848B0A14A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1068.332, - 4.948, - 971.333 - ], - "size": [ - 50.531, - 14.715, - 45.557 - ], - "groundY": -2.409, - "roofY": 12.306, - "wallCount": 26, - "roofCount": 4 - }, - { - "id": "sion_0011", - "uuid": "{F9F270AB-E7EF-4438-AA6A-C561F1D74DCF}", - "name": "", - "class": "Sakraler Turm", - "archStyle": "fortress", - "tile": [ - 0, - 3 - ], - "center": [ - -1031.971, - 19.307, - 148.086 - ], - "size": [ - 3.332, - 28.989, - 3.001 - ], - "groundY": 4.813, - "roofY": 33.802, - "wallCount": 79, - "roofCount": 4 - }, - { - "id": "sion_0012", - "uuid": "{4731FA14-D712-4922-8327-00ADEC5571CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -679.033, - 289.003, - -1288.825 - ], - "size": [ - 8.793, - 7.376, - 8.918 - ], - "groundY": 285.315, - "roofY": 292.691, - "wallCount": 45, - "roofCount": 22 - }, - { - "id": "sion_0013", - "uuid": "{37E34BE9-2012-4DD6-B422-07286AFEA1F8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -474.451, - 61.444, - -630.771 - ], - "size": [ - 23.387, - 17.251, - 23.116 - ], - "groundY": 52.818, - "roofY": 70.069, - "wallCount": 56, - "roofCount": 48 - }, - { - "id": "sion_0014", - "uuid": "{FA4B7596-EC19-4672-BB5A-5CA8F8B03D38}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1190.365, - 2.896, - 949.048 - ], - "size": [ - 16.246, - 8.466, - 17.482 - ], - "groundY": -1.337, - "roofY": 7.129, - "wallCount": 51, - "roofCount": 39 - }, - { - "id": "sion_0015", - "uuid": "{E774F9F6-77B1-448A-A96A-BFBE915B8337}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -641.98, - 9.369, - 307.867 - ], - "size": [ - 32.086, - 19.268, - 30.298 - ], - "groundY": -0.265, - "roofY": 19.003, - "wallCount": 80, - "roofCount": 28 - }, - { - "id": "sion_0016", - "uuid": "{6EA77527-40D6-4761-A01E-7A7375025B42}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -453.188, - 49.946, - -445.818 - ], - "size": [ - 13.664, - 17.138, - 14.896 - ], - "groundY": 41.377, - "roofY": 58.515, - "wallCount": 26, - "roofCount": 16 - }, - { - "id": "sion_0017", - "uuid": "{53D9B141-EDF2-448B-B9BA-BF5A4DF9420E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -603.855, - 5.729, - 477.823 - ], - "size": [ - 17.086, - 13.942, - 14.598 - ], - "groundY": -1.242, - "roofY": 12.7, - "wallCount": 46, - "roofCount": 30 - }, - { - "id": "sion_0018", - "uuid": "{E0C6227E-9165-4EEA-A88F-FC7A05A30ADC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1308.787, - 266.872, - -1017.527 - ], - "size": [ - 30.223, - 13.317, - 16.436 - ], - "groundY": 260.213, - "roofY": 273.53, - "wallCount": 68, - "roofCount": 47 - }, - { - "id": "sion_0019", - "uuid": "{D2D74AED-123B-4F52-A33A-8F63D36263C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -455.928, - 26.572, - 131.565 - ], - "size": [ - 101.684, - 26.772, - 106.276 - ], - "groundY": 13.186, - "roofY": 39.958, - "wallCount": 188, - "roofCount": 161 - }, - { - "id": "sion_0020", - "uuid": "{45FCACD2-D722-47B8-89A6-291F87FD0A96}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1199.768, - 258.764, - -904.268 - ], - "size": [ - 20.715, - 9.896, - 16.591 - ], - "groundY": 253.816, - "roofY": 263.712, - "wallCount": 25, - "roofCount": 21 - }, - { - "id": "sion_0021", - "uuid": "{D294A36C-FFF7-4EF0-9092-3F80186F573D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1485.439, - 2.246, - 444.141 - ], - "size": [ - 15.668, - 12.346, - 14.578 - ], - "groundY": -3.927, - "roofY": 8.419, - "wallCount": 42, - "roofCount": 18 - }, - { - "id": "sion_0022", - "uuid": "{2B94E666-8859-4B5F-B1FC-1B70484B94C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -578.092, - 25.177, - 100.289 - ], - "size": [ - 81.387, - 20.158, - 76.166 - ], - "groundY": 15.098, - "roofY": 35.256, - "wallCount": 106, - "roofCount": 267 - }, - { - "id": "sion_0023", - "uuid": "{0ADA0856-4594-48A6-AA32-DD54895E0A90}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -898.365, - 1.503, - 227.22 - ], - "size": [ - 25.184, - 5.181, - 11.442 - ], - "groundY": -1.087, - "roofY": 4.094, - "wallCount": 17, - "roofCount": 2 - }, - { - "id": "sion_0024", - "uuid": "{DECFA4B9-B824-4B74-A328-6F6AE531E50F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1409.111, - 45.973, - 203.296 - ], - "size": [ - 15.309, - 11.855, - 17.09 - ], - "groundY": 40.046, - "roofY": 51.901, - "wallCount": 50, - "roofCount": 16 - }, - { - "id": "sion_0025", - "uuid": "{E4CCB247-E8E0-4F06-80BB-A91C77090A84}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1519.365, - 156.976, - -255.953 - ], - "size": [ - 16.559, - 11.815, - 14.048 - ], - "groundY": 151.068, - "roofY": 162.883, - "wallCount": 42, - "roofCount": 28 - }, - { - "id": "sion_0026", - "uuid": "{E59EA16A-8B7E-4403-9342-4AE4F2359916}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -576.154, - 34.944, - -166.307 - ], - "size": [ - 31.699, - 14.814, - 42.426 - ], - "groundY": 27.537, - "roofY": 42.351, - "wallCount": 15, - "roofCount": 13 - }, - { - "id": "sion_0027", - "uuid": "{0EF178DA-22B3-485D-9EFB-DA355878B950}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -684.803, - 9.244, - 505.394 - ], - "size": [ - 63.379, - 21.388, - 63.464 - ], - "groundY": -1.45, - "roofY": 19.938, - "wallCount": 13, - "roofCount": 2 - }, - { - "id": "sion_0028", - "uuid": "{C87A41B1-30A7-4B7E-8326-0DBE04626F41}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1379.045, - 229.635, - -752.242 - ], - "size": [ - 18.231, - 9.304, - 29.53 - ], - "groundY": 224.983, - "roofY": 234.287, - "wallCount": 40, - "roofCount": 19 - }, - { - "id": "sion_0029", - "uuid": "{3D3CB7D3-CC3A-4DA1-9C7E-726501AB4A0D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -610.885, - 7.598, - 418.724 - ], - "size": [ - 14.191, - 17.606, - 14.487 - ], - "groundY": -1.205, - "roofY": 16.401, - "wallCount": 43, - "roofCount": 39 - }, - { - "id": "sion_0030", - "uuid": "{812F1498-94C2-4B33-A455-C0488908572B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -796.648, - 2.699, - 323.945 - ], - "size": [ - 13.945, - 10.91, - 10.628 - ], - "groundY": -2.756, - "roofY": 8.154, - "wallCount": 52, - "roofCount": 28 - }, - { - "id": "sion_0031", - "uuid": "{9827BA01-93BC-4E8D-AC03-4EE54A4C23AB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1188.545, - 285.858, - -1155.693 - ], - "size": [ - 16.777, - 9.526, - 15.95 - ], - "groundY": 281.095, - "roofY": 290.621, - "wallCount": 34, - "roofCount": 13 - }, - { - "id": "sion_0032", - "uuid": "{C79144DD-2E1E-48CF-8B90-118429BCD0B2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -543.121, - 5.98, - 443.248 - ], - "size": [ - 18.992, - 11.178, - 12.102 - ], - "groundY": 0.391, - "roofY": 11.569, - "wallCount": 42, - "roofCount": 16 - }, - { - "id": "sion_0033", - "uuid": "{C725B337-6507-451F-9937-9D05BBFD9E27}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1273.648, - 283.345, - -1109.476 - ], - "size": [ - 12.25, - 12.694, - 13.097 - ], - "groundY": 276.998, - "roofY": 289.692, - "wallCount": 54, - "roofCount": 32 - }, - { - "id": "sion_0034", - "uuid": "{20223371-13B6-4F57-ACAB-285D39F0EF30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -523.988, - 23.12, - 231.818 - ], - "size": [ - 48.883, - 24.086, - 17.966 - ], - "groundY": 11.077, - "roofY": 35.163, - "wallCount": 41, - "roofCount": 12 - }, - { - "id": "sion_0035", - "uuid": "{0B60AF08-E4FF-4C02-A21F-980C2CD8F35F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1467.432, - 2.226, - 438.609 - ], - "size": [ - 16.293, - 12.328, - 15.097 - ], - "groundY": -3.938, - "roofY": 8.39, - "wallCount": 32, - "roofCount": 16 - }, - { - "id": "sion_0036", - "uuid": "{D4EA8196-9D08-4CC7-94A1-ABC95C941947}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -519.014, - 32.036, - -126.816 - ], - "size": [ - 27.598, - 12.81, - 18.698 - ], - "groundY": 25.631, - "roofY": 38.441, - "wallCount": 57, - "roofCount": 43 - }, - { - "id": "sion_0037", - "uuid": "{0CEE934A-254D-410B-86D7-9807886A6E02}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -986.043, - 296.881, - -1423.985 - ], - "size": [ - 19.023, - 10.693, - 30.439 - ], - "groundY": 291.534, - "roofY": 302.227, - "wallCount": 44, - "roofCount": 31 - }, - { - "id": "sion_0038", - "uuid": "{15DEA2A0-A914-4ED9-8106-B36C75409C7C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1135.674, - 0.454, - 670.742 - ], - "size": [ - 37.309, - 6.926, - 18.88 - ], - "groundY": -3.009, - "roofY": 3.917, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0039", - "uuid": "{4E3B4C74-8E6E-4939-8174-B0E5B8980AAA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1431.801, - 60.256, - 183.343 - ], - "size": [ - 16.641, - 13.266, - 15.386 - ], - "groundY": 53.623, - "roofY": 66.889, - "wallCount": 31, - "roofCount": 14 - }, - { - "id": "sion_0040", - "uuid": "{885FE677-400B-4922-9164-1BB4EE5B18E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -523.935, - 18.606, - 300.091 - ], - "size": [ - 34.066, - 24.166, - 13.39 - ], - "groundY": 6.523, - "roofY": 30.689, - "wallCount": 27, - "roofCount": 17 - }, - { - "id": "sion_0041", - "uuid": "{7285FB75-6D5C-4E0A-BBAA-D441FF56B917}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1309.873, - 257.017, - -936.624 - ], - "size": [ - 39.559, - 11.524, - 17.7 - ], - "groundY": 251.255, - "roofY": 262.779, - "wallCount": 41, - "roofCount": 17 - }, - { - "id": "sion_0042", - "uuid": "{7AE0698D-CA33-4292-AD5E-1C06AC194EB0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1013.959, - 295.691, - -1406.516 - ], - "size": [ - 12.769, - 10.844, - 24.624 - ], - "groundY": 290.269, - "roofY": 301.113, - "wallCount": 45, - "roofCount": 20 - }, - { - "id": "sion_0043", - "uuid": "{A0E7EAAD-7F59-4D27-9FB9-28341A189869}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -585.92, - 43.273, - -370.373 - ], - "size": [ - 19.231, - 12.862, - 19.42 - ], - "groundY": 36.842, - "roofY": 49.704, - "wallCount": 13, - "roofCount": 7 - }, - { - "id": "sion_0044", - "uuid": "{E8E79685-7A2C-42F4-A935-F45C9879A4FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -747.228, - 67.536, - -349.246 - ], - "size": [ - 16.949, - 13.419, - 16.145 - ], - "groundY": 60.827, - "roofY": 74.246, - "wallCount": 39, - "roofCount": 17 - }, - { - "id": "sion_0045", - "uuid": "{6A489AC5-7A88-4C2A-A5EC-5F96A03E4BA5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1527.066, - 135.184, - -162.883 - ], - "size": [ - 6.461, - 10.134, - 6.448 - ], - "groundY": 130.117, - "roofY": 140.251, - "wallCount": 54, - "roofCount": 6 - }, - { - "id": "sion_0046", - "uuid": "{3A1E1E27-E17A-44DF-88CF-7331C4F1FA01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1008.449, - 121.29, - -479.446 - ], - "size": [ - 26.562, - 9.411, - 25.986 - ], - "groundY": 116.585, - "roofY": 125.996, - "wallCount": 52, - "roofCount": 26 - }, - { - "id": "sion_0047", - "uuid": "{72E49FCA-D387-4818-BE4B-395FB3D339EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1441.719, - 73.595, - 16.736 - ], - "size": [ - 19.367, - 12.214, - 16.517 - ], - "groundY": 67.488, - "roofY": 79.702, - "wallCount": 45, - "roofCount": 20 - }, - { - "id": "sion_0048", - "uuid": "{49E60980-40E8-41EF-A0F8-0EE720AFB7CD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -589.648, - 28.184, - 29.223 - ], - "size": [ - 30.422, - 24.68, - 28.27 - ], - "groundY": 15.844, - "roofY": 40.524, - "wallCount": 170, - "roofCount": 35 - }, - { - "id": "sion_0049", - "uuid": "{34C72E0E-FF9B-4E44-A2DD-D7CB377F781D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1261.338, - 19.189, - 160.826 - ], - "size": [ - 36.965, - 24.222, - 42.952 - ], - "groundY": 7.078, - "roofY": 31.3, - "wallCount": 48, - "roofCount": 10 - }, - { - "id": "sion_0050", - "uuid": "{52CB2116-49F6-412D-83D2-ABFCF0702920}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -808.541, - 5.629, - 617.891 - ], - "size": [ - 23.324, - 14.06, - 18.026 - ], - "groundY": -1.401, - "roofY": 12.659, - "wallCount": 26, - "roofCount": 22 - }, - { - "id": "sion_0051", - "uuid": "{1CBB3629-D2B8-41C6-940D-98BA0BFB4A96}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -872.453, - 21.089, - 39.361 - ], - "size": [ - 21.727, - 19.478, - 21.06 - ], - "groundY": 11.35, - "roofY": 30.828, - "wallCount": 67, - "roofCount": 87 - }, - { - "id": "sion_0052", - "uuid": "{9C9A7B51-66F3-46AC-BB44-71CBEFA65FAA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -554.012, - 2.098, - 722.342 - ], - "size": [ - 7.234, - 5.398, - 10.224 - ], - "groundY": -0.601, - "roofY": 4.797, - "wallCount": 19, - "roofCount": 10 - }, - { - "id": "sion_0053", - "uuid": "{FB034529-08ED-4AED-9CB2-5AA7E25526ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1459.396, - 274.479, - -1011.477 - ], - "size": [ - 16.106, - 10.946, - 13.323 - ], - "groundY": 269.006, - "roofY": 279.952, - "wallCount": 61, - "roofCount": 33 - }, - { - "id": "sion_0054", - "uuid": "{AB97D0AD-3F35-4FC0-A2E2-8EA315DB21E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -460.549, - 47.321, - -361.222 - ], - "size": [ - 30.629, - 21.44, - 24.813 - ], - "groundY": 36.601, - "roofY": 58.041, - "wallCount": 39, - "roofCount": 52 - }, - { - "id": "sion_0055", - "uuid": "{C1C60920-7BE6-4373-BC14-62ECFB945E93}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -899.912, - 74.121, - -244.46 - ], - "size": [ - 28.285, - 17.174, - 23.078 - ], - "groundY": 65.534, - "roofY": 82.708, - "wallCount": 92, - "roofCount": 50 - }, - { - "id": "sion_0056", - "uuid": "{8D2E6C08-D30E-4B55-9093-D5C61CD57E65}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1397.0, - 235.853, - -832.885 - ], - "size": [ - 21.328, - 10.12, - 18.746 - ], - "groundY": 230.793, - "roofY": 240.913, - "wallCount": 29, - "roofCount": 6 - }, - { - "id": "sion_0057", - "uuid": "{50F5B1B9-5B5C-4CB7-ADD0-6449F8E259E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1330.754, - 34.375, - 177.693 - ], - "size": [ - 16.828, - 12.889, - 15.396 - ], - "groundY": 27.93, - "roofY": 40.819, - "wallCount": 46, - "roofCount": 28 - }, - { - "id": "sion_0058", - "uuid": "{2F5D2737-402D-49B9-BECB-EDC8F1B36B40}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1319.154, - 73.88, - -82.307 - ], - "size": [ - 14.199, - 5.525, - 14.067 - ], - "groundY": 71.118, - "roofY": 76.643, - "wallCount": 24, - "roofCount": 4 - }, - { - "id": "sion_0059", - "uuid": "{FD97BC4E-A885-4072-9BA5-2BFC592DCBC8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1015.652, - 9.222, - 205.154 - ], - "size": [ - 40.68, - 20.717, - 25.822 - ], - "groundY": -1.136, - "roofY": 19.58, - "wallCount": 33, - "roofCount": 50 - }, - { - "id": "sion_0060", - "uuid": "{A8DE9354-E8DE-4B83-A35B-D6D7F921DA54}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1499.428, - 223.597, - -752.33 - ], - "size": [ - 10.691, - 10.362, - 15.348 - ], - "groundY": 218.416, - "roofY": 228.778, - "wallCount": 28, - "roofCount": 20 - }, - { - "id": "sion_0061", - "uuid": "{457E3B58-D5BC-4576-99E0-9CEADB506B8E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1146.676, - 110.956, - -330.695 - ], - "size": [ - 30.508, - 12.429, - 26.958 - ], - "groundY": 104.742, - "roofY": 117.17, - "wallCount": 52, - "roofCount": 41 - }, - { - "id": "sion_0062", - "uuid": "{6271834E-462B-4E06-95CE-BC9B1949EBA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1137.266, - 293.891, - -1419.465 - ], - "size": [ - 13.977, - 9.932, - 16.05 - ], - "groundY": 288.925, - "roofY": 298.857, - "wallCount": 48, - "roofCount": 19 - }, - { - "id": "sion_0063", - "uuid": "{D8F1D26D-F0CC-433A-A6A2-3B0B7903D2F7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1292.049, - 293.861, - -1472.418 - ], - "size": [ - 33.73, - 14.734, - 18.85 - ], - "groundY": 286.494, - "roofY": 301.228, - "wallCount": 60, - "roofCount": 45 - }, - { - "id": "sion_0064", - "uuid": "{E289D2BE-CB70-427E-A126-C2AF124B2D9D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1279.643, - 293.224, - -1503.67 - ], - "size": [ - 19.394, - 11.104, - 12.481 - ], - "groundY": 287.672, - "roofY": 298.776, - "wallCount": 38, - "roofCount": 12 - }, - { - "id": "sion_0065", - "uuid": "{F51FBCA4-E8A9-4E4A-869B-9C664A4F81B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -593.107, - 53.205, - -468.098 - ], - "size": [ - 11.832, - 13.749, - 12.536 - ], - "groundY": 46.331, - "roofY": 60.08, - "wallCount": 58, - "roofCount": 21 - }, - { - "id": "sion_0066", - "uuid": "{D2311505-29B7-4E6B-8B93-79B1F8FF4CBF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1176.842, - 287.338, - -1338.359 - ], - "size": [ - 7.262, - 6.865, - 8.56 - ], - "groundY": 283.906, - "roofY": 290.771, - "wallCount": 43, - "roofCount": 15 - }, - { - "id": "sion_0067", - "uuid": "{31A43A2C-C04E-40DC-9786-3C3D4E6679BB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1317.945, - 289.67, - -1357.961 - ], - "size": [ - 15.328, - 11.519, - 18.533 - ], - "groundY": 283.91, - "roofY": 295.429, - "wallCount": 37, - "roofCount": 24 - }, - { - "id": "sion_0068", - "uuid": "{43A8FA80-8117-4216-9455-95B239D8B947}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1179.184, - 4.976, - 281.109 - ], - "size": [ - 52.914, - 18.448, - 33.284 - ], - "groundY": -4.248, - "roofY": 14.2, - "wallCount": 97, - "roofCount": 71 - }, - { - "id": "sion_0069", - "uuid": "{25C01150-7D97-4461-BE94-4CA2ECAC4E19}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -683.588, - 20.104, - 238.116 - ], - "size": [ - 17.16, - 23.348, - 15.324 - ], - "groundY": 8.43, - "roofY": 31.778, - "wallCount": 65, - "roofCount": 34 - }, - { - "id": "sion_0070", - "uuid": "{C96BED0B-9E95-4D70-9218-4DC85E1BD209}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -870.637, - 110.554, - -547.856 - ], - "size": [ - 32.664, - 14.488, - 22.933 - ], - "groundY": 103.31, - "roofY": 117.798, - "wallCount": 46, - "roofCount": 21 - }, - { - "id": "sion_0071", - "uuid": "{F42C8D67-3D86-4AC0-A6E1-C774F791C3CF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -975.994, - 25.345, - -80.276 - ], - "size": [ - 38.582, - 17.836, - 23.294 - ], - "groundY": 16.427, - "roofY": 34.263, - "wallCount": 21, - "roofCount": 39 - }, - { - "id": "sion_0072", - "uuid": "{98D24BD6-CB13-4F86-A9F0-B5481D970A13}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -741.637, - 292.662, - -1249.403 - ], - "size": [ - 23.25, - 13.632, - 25.658 - ], - "groundY": 285.846, - "roofY": 299.477, - "wallCount": 28, - "roofCount": 9 - }, - { - "id": "sion_0073", - "uuid": "{5356C6A9-94B4-487F-939F-5D710DD28DBB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1289.137, - 293.188, - -1420.833 - ], - "size": [ - 14.32, - 12.422, - 33.953 - ], - "groundY": 286.977, - "roofY": 299.399, - "wallCount": 53, - "roofCount": 19 - }, - { - "id": "sion_0074", - "uuid": "{60D8354C-427A-4090-9B6F-2D0757962F16}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -844.053, - 3.263, - 990.813 - ], - "size": [ - 33.418, - 9.972, - 37.341 - ], - "groundY": -1.723, - "roofY": 8.249, - "wallCount": 29, - "roofCount": 4 - }, - { - "id": "sion_0075", - "uuid": "{F640F40E-7EB7-47B7-B0AC-122BD473342C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1373.963, - 212.358, - -633.731 - ], - "size": [ - 17.324, - 11.034, - 17.546 - ], - "groundY": 206.841, - "roofY": 217.875, - "wallCount": 50, - "roofCount": 11 - }, - { - "id": "sion_0076", - "uuid": "{A8845A32-F5CA-4144-BE8F-5F2D9839E052}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -458.695, - 72.642, - -740.594 - ], - "size": [ - 22.008, - 11.074, - 21.96 - ], - "groundY": 67.105, - "roofY": 78.179, - "wallCount": 57, - "roofCount": 10 - }, - { - "id": "sion_0077", - "uuid": "{A43C42DD-535F-4F8E-A125-8D1E6BBA974B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -683.74, - 6.001, - 303.189 - ], - "size": [ - 36.621, - 16.382, - 19.86 - ], - "groundY": -2.19, - "roofY": 14.192, - "wallCount": 45, - "roofCount": 26 - }, - { - "id": "sion_0078", - "uuid": "{CBF855DD-17C5-4CE6-BEFB-10602852842F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -970.576, - 19.497, - -50.098 - ], - "size": [ - 18.637, - 10.746, - 18.185 - ], - "groundY": 14.124, - "roofY": 24.87, - "wallCount": 16, - "roofCount": 27 - }, - { - "id": "sion_0079", - "uuid": "{00A91D8C-92DA-4EB1-B115-EFBC65DFE9FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -785.574, - 29.023, - -119.081 - ], - "size": [ - 32.164, - 19.67, - 29.46 - ], - "groundY": 19.188, - "roofY": 38.858, - "wallCount": 61, - "roofCount": 21 - }, - { - "id": "sion_0080", - "uuid": "{768E693A-8D2C-4983-8DF9-95163DB03DB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -647.646, - 39.227, - -264.285 - ], - "size": [ - 26.66, - 21.032, - 25.47 - ], - "groundY": 28.711, - "roofY": 49.743, - "wallCount": 30, - "roofCount": 27 - }, - { - "id": "sion_0081", - "uuid": "{1057E322-D5FC-400F-BB9B-9E572D258197}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -647.904, - 24.915, - -29.279 - ], - "size": [ - 10.02, - 11.441, - 11.098 - ], - "groundY": 19.195, - "roofY": 30.636, - "wallCount": 54, - "roofCount": 23 - }, - { - "id": "sion_0082", - "uuid": "{70E4750C-2B63-4FA8-B151-7DCA694F7FFF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -533.795, - 62.022, - -591.657 - ], - "size": [ - 37.449, - 14.902, - 20.346 - ], - "groundY": 54.571, - "roofY": 69.473, - "wallCount": 36, - "roofCount": 20 - }, - { - "id": "sion_0083", - "uuid": "{E88B1CB9-56CB-4313-A9D7-8559A9C85884}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1340.066, - 123.587, - -231.226 - ], - "size": [ - 6.586, - 7.6, - 6.341 - ], - "groundY": 119.787, - "roofY": 127.387, - "wallCount": 59, - "roofCount": 10 - }, - { - "id": "sion_0084", - "uuid": "{59048C5C-018D-41FE-90F8-02E203FFDABF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -429.225, - 85.226, - -881.704 - ], - "size": [ - 18.895, - 11.661, - 22.611 - ], - "groundY": 79.396, - "roofY": 91.057, - "wallCount": 40, - "roofCount": 21 - }, - { - "id": "sion_0085", - "uuid": "{DAB5AFED-1293-4C1F-A6E5-A458520F2233}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1399.041, - 276.07, - -1238.788 - ], - "size": [ - 18.457, - 9.541, - 24.424 - ], - "groundY": 271.299, - "roofY": 280.84, - "wallCount": 35, - "roofCount": 31 - }, - { - "id": "sion_0086", - "uuid": "{5E7329C8-A4CF-496F-85D9-C8386952F84F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1382.158, - 201.882, - -502.885 - ], - "size": [ - 23.434, - 12.072, - 18.268 - ], - "groundY": 195.846, - "roofY": 207.918, - "wallCount": 85, - "roofCount": 36 - }, - { - "id": "sion_0087", - "uuid": "{7FFA645F-FA6C-4CD8-BC1E-29B37196B21C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1017.662, - 295.57, - -1207.02 - ], - "size": [ - 16.176, - 10.592, - 13.048 - ], - "groundY": 290.274, - "roofY": 300.866, - "wallCount": 20, - "roofCount": 18 - }, - { - "id": "sion_0088", - "uuid": "{F94F15BD-331F-4718-8E8F-393EC41561B4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1277.332, - 51.344, - 33.951 - ], - "size": [ - 20.445, - 13.413, - 16.609 - ], - "groundY": 44.638, - "roofY": 58.051, - "wallCount": 91, - "roofCount": 20 - }, - { - "id": "sion_0089", - "uuid": "{879B0684-EC1D-4E34-AA74-1D216EA547D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1305.215, - 228.784, - -760.807 - ], - "size": [ - 18.695, - 13.348, - 21.886 - ], - "groundY": 222.11, - "roofY": 235.458, - "wallCount": 44, - "roofCount": 24 - }, - { - "id": "sion_0090", - "uuid": "{D9E53BE9-3161-4F92-9189-ABB0D7213501}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1096.271, - 91.359, - -261.693 - ], - "size": [ - 21.035, - 12.647, - 19.194 - ], - "groundY": 85.036, - "roofY": 97.683, - "wallCount": 44, - "roofCount": 18 - }, - { - "id": "sion_0091", - "uuid": "{9E6333D0-B2CD-4B3F-AEA8-DFD9C0E106AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -846.709, - 16.795, - 127.855 - ], - "size": [ - 31.168, - 18.447, - 12.788 - ], - "groundY": 7.572, - "roofY": 26.019, - "wallCount": 12, - "roofCount": 36 - }, - { - "id": "sion_0092", - "uuid": "{DF39008D-EFAD-4A42-A78D-A3554E5703D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1363.719, - 243.501, - -871.975 - ], - "size": [ - 22.484, - 8.709, - 19.794 - ], - "groundY": 239.147, - "roofY": 247.856, - "wallCount": 30, - "roofCount": 14 - }, - { - "id": "sion_0093", - "uuid": "{366CEA43-3215-4351-8F68-5C45AB7B865E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1391.676, - 210.985, - -609.037 - ], - "size": [ - 16.18, - 11.573, - 15.408 - ], - "groundY": 205.198, - "roofY": 216.771, - "wallCount": 33, - "roofCount": 14 - }, - { - "id": "sion_0094", - "uuid": "{C835A74B-878F-471D-9B0F-944166B89CBE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -659.937, - 95.376, - -662.799 - ], - "size": [ - 15.688, - 9.578, - 15.148 - ], - "groundY": 90.587, - "roofY": 100.165, - "wallCount": 23, - "roofCount": 25 - }, - { - "id": "sion_0095", - "uuid": "{2188B1FF-E981-468F-9EDD-9BFF16BD09CD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -639.998, - 86.855, - -639.95 - ], - "size": [ - 19.176, - 10.778, - 19.896 - ], - "groundY": 81.466, - "roofY": 92.244, - "wallCount": 34, - "roofCount": 13 - }, - { - "id": "sion_0096", - "uuid": "{15DC95C9-60D8-4B74-B9BB-BCA34F4B7F5B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1241.299, - 0.79, - 823.868 - ], - "size": [ - 7.684, - 6.578, - 9.416 - ], - "groundY": -2.499, - "roofY": 4.079, - "wallCount": 26, - "roofCount": 2 - }, - { - "id": "sion_0097", - "uuid": "{A58B591D-64E9-4F23-BAD1-2D80D019BC85}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -739.16, - 29.07, - -104.813 - ], - "size": [ - 31.117, - 20.343, - 27.263 - ], - "groundY": 18.899, - "roofY": 39.242, - "wallCount": 32, - "roofCount": 23 - }, - { - "id": "sion_0098", - "uuid": "{853DF4DD-59A7-4A38-B775-B36F6491C91C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -565.633, - 64.267, - -578.621 - ], - "size": [ - 16.891, - 11.63, - 16.318 - ], - "groundY": 58.452, - "roofY": 70.082, - "wallCount": 13, - "roofCount": 7 - }, - { - "id": "sion_0099", - "uuid": "{08E3F0EA-5637-40E3-9788-5E5EDBFD8459}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1081.654, - 286.493, - -1278.581 - ], - "size": [ - 8.113, - 5.098, - 7.445 - ], - "groundY": 283.944, - "roofY": 289.042, - "wallCount": 43, - "roofCount": 2 - }, - { - "id": "sion_0100", - "uuid": "{717479C7-C8DC-4E93-B101-4704769BABF6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -800.164, - 24.674, - -15.409 - ], - "size": [ - 41.234, - 20.988, - 40.172 - ], - "groundY": 14.18, - "roofY": 35.168, - "wallCount": 66, - "roofCount": 40 - }, - { - "id": "sion_0101", - "uuid": "{661C5C4B-900B-434E-B383-667E56A0A270}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1382.662, - 8.365, - 489.889 - ], - "size": [ - 74.473, - 24.232, - 56.212 - ], - "groundY": -3.751, - "roofY": 20.481, - "wallCount": 187, - "roofCount": 62 - }, - { - "id": "sion_0102", - "uuid": "{2A69FE20-B6A5-4305-842C-E391E0E9C71B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -429.227, - 63.732, - -666.377 - ], - "size": [ - 26.555, - 17.231, - 25.721 - ], - "groundY": 55.117, - "roofY": 72.348, - "wallCount": 81, - "roofCount": 24 - }, - { - "id": "sion_0103", - "uuid": "{009BC55E-B08C-4C18-8F23-9820A5960EC3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -519.195, - 5.002, - 401.561 - ], - "size": [ - 8.531, - 6.357, - 6.376 - ], - "groundY": 1.824, - "roofY": 8.181, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_0104", - "uuid": "{752E9AD7-884F-46D9-A772-BC57C44789A9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1187.727, - 64.207, - -37.799 - ], - "size": [ - 18.5, - 8.962, - 14.93 - ], - "groundY": 59.726, - "roofY": 68.688, - "wallCount": 30, - "roofCount": 4 - }, - { - "id": "sion_0105", - "uuid": "{D43C952E-3A9A-4BF3-8B64-2F312A248845}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1296.344, - 238.233, - -816.268 - ], - "size": [ - 13.57, - 7.612, - 11.939 - ], - "groundY": 234.427, - "roofY": 242.039, - "wallCount": 20, - "roofCount": 2 - }, - { - "id": "sion_0106", - "uuid": "{1E82C7A5-EF04-4D22-9B8D-D3369F27D99F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1495.037, - 274.644, - -1009.401 - ], - "size": [ - 16.434, - 14.707, - 14.876 - ], - "groundY": 267.291, - "roofY": 281.998, - "wallCount": 75, - "roofCount": 39 - }, - { - "id": "sion_0107", - "uuid": "{348A2A36-6091-444B-9E69-9965056972BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -833.523, - 69.921, - -268.073 - ], - "size": [ - 16.023, - 10.512, - 16.574 - ], - "groundY": 64.665, - "roofY": 75.177, - "wallCount": 38, - "roofCount": 8 - }, - { - "id": "sion_0108", - "uuid": "{9FDB55AC-216A-4FFA-A2D1-0B9B4A0916EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1446.033, - 89.478, - -38.832 - ], - "size": [ - 49.77, - 20.059, - 45.794 - ], - "groundY": 79.448, - "roofY": 99.507, - "wallCount": 81, - "roofCount": 50 - }, - { - "id": "sion_0109", - "uuid": "{CCB23CE0-D937-48FF-81C8-F067F83E40EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -425.168, - 18.432, - 219.508 - ], - "size": [ - 16.289, - 14.327, - 16.466 - ], - "groundY": 11.269, - "roofY": 25.596, - "wallCount": 41, - "roofCount": 32 - }, - { - "id": "sion_0110", - "uuid": "{961ADC14-549C-4994-A493-3AEF44F0B328}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1137.441, - 291.005, - -1369.629 - ], - "size": [ - 27.641, - 9.446, - 30.695 - ], - "groundY": 286.282, - "roofY": 295.728, - "wallCount": 42, - "roofCount": 42 - }, - { - "id": "sion_0111", - "uuid": "{08B95A8B-D066-467F-A2BE-C8ACD6174210}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1345.402, - -0.399, - 591.156 - ], - "size": [ - 18.453, - 5.41, - 10.736 - ], - "groundY": -3.104, - "roofY": 2.306, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_0112", - "uuid": "{E960B51C-542A-4207-902A-67BF6A2DFA9F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1351.33, - 278.791, - -1084.451 - ], - "size": [ - 13.863, - 10.746, - 12.744 - ], - "groundY": 273.418, - "roofY": 284.164, - "wallCount": 41, - "roofCount": 14 - }, - { - "id": "sion_0113", - "uuid": "{754400EE-BDB8-4CB2-A8F1-51E872F4DD9C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1471.627, - 272.743, - -1136.551 - ], - "size": [ - 15.699, - 9.798, - 12.674 - ], - "groundY": 267.844, - "roofY": 277.642, - "wallCount": 50, - "roofCount": 29 - }, - { - "id": "sion_0114", - "uuid": "{130DADC9-51EF-4BB7-8008-10A3F16C94E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -579.232, - 59.37, - -518.921 - ], - "size": [ - 32.051, - 12.698, - 30.284 - ], - "groundY": 53.021, - "roofY": 65.719, - "wallCount": 14, - "roofCount": 26 - }, - { - "id": "sion_0115", - "uuid": "{9966E6A2-57EE-4B72-B1D3-7EF600BE508A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1130.738, - 263.689, - -953.224 - ], - "size": [ - 19.984, - 11.588, - 18.8 - ], - "groundY": 257.895, - "roofY": 269.483, - "wallCount": 47, - "roofCount": 20 - }, - { - "id": "sion_0116", - "uuid": "{CF26BE48-244E-4709-B74D-8B26F80881F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -823.197, - 23.084, - -45.08 - ], - "size": [ - 16.199, - 14.958, - 16.452 - ], - "groundY": 15.605, - "roofY": 30.563, - "wallCount": 84, - "roofCount": 36 - }, - { - "id": "sion_0117", - "uuid": "{5FF3B50C-A1B6-40B4-8930-49489ECE6B90}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1152.861, - 248.877, - -877.987 - ], - "size": [ - 15.363, - 10.228, - 17.702 - ], - "groundY": 243.763, - "roofY": 253.991, - "wallCount": 46, - "roofCount": 27 - }, - { - "id": "sion_0118", - "uuid": "{C107AFF5-8367-4D67-B683-383651D10EC1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1259.002, - 2.955, - 856.002 - ], - "size": [ - 43.121, - 11.937, - 20.94 - ], - "groundY": -3.014, - "roofY": 8.923, - "wallCount": 26, - "roofCount": 8 - }, - { - "id": "sion_0119", - "uuid": "{8C687629-A9A2-46E2-BC54-1A475BB1B466}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -649.465, - 34.583, - -207.686 - ], - "size": [ - 18.477, - 15.604, - 17.884 - ], - "groundY": 26.781, - "roofY": 42.385, - "wallCount": 32, - "roofCount": 32 - }, - { - "id": "sion_0120", - "uuid": "{4457F36A-82C6-4448-8793-9E53CD459EE1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1058.521, - 294.949, - -1325.001 - ], - "size": [ - 30.496, - 11.616, - 25.606 - ], - "groundY": 289.141, - "roofY": 300.757, - "wallCount": 54, - "roofCount": 20 - }, - { - "id": "sion_0121", - "uuid": "{1F8CCE10-EA49-4B42-A8B8-EC622F306075}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -913.793, - 3.31, - 933.813 - ], - "size": [ - 31.289, - 10.412, - 58.355 - ], - "groundY": -1.896, - "roofY": 8.516, - "wallCount": 21, - "roofCount": 40 - }, - { - "id": "sion_0122", - "uuid": "{2DFBAF8E-6E55-4393-867D-0E04809EF9FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1333.918, - 41.994, - 153.222 - ], - "size": [ - 15.727, - 10.32, - 10.418 - ], - "groundY": 36.834, - "roofY": 47.154, - "wallCount": 47, - "roofCount": 12 - }, - { - "id": "sion_0123", - "uuid": "{B7F5EF10-3F1F-410B-A0A2-57170ED42A09}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1317.207, - 6.079, - 280.569 - ], - "size": [ - 36.539, - 17.925, - 45.233 - ], - "groundY": -2.883, - "roofY": 15.042, - "wallCount": 8, - "roofCount": 50 - }, - { - "id": "sion_0124", - "uuid": "{FB048844-EC0B-4C12-A00A-0CBF527E1737}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -902.338, - 7.381, - 249.747 - ], - "size": [ - 39.121, - 19.256, - 21.9 - ], - "groundY": -2.247, - "roofY": 17.009, - "wallCount": 61, - "roofCount": 37 - }, - { - "id": "sion_0125", - "uuid": "{4B585326-96E2-419E-927F-8C45E18883B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -879.228, - 3.85, - 1030.658 - ], - "size": [ - 58.574, - 10.981, - 33.756 - ], - "groundY": -1.64, - "roofY": 9.341, - "wallCount": 38, - "roofCount": 28 - }, - { - "id": "sion_0126", - "uuid": "{82E8C4CD-3A6D-4BF4-B346-3E8A64FE2620}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1164.668, - 2.461, - 961.949 - ], - "size": [ - 33.633, - 7.828, - 33.224 - ], - "groundY": -1.453, - "roofY": 6.375, - "wallCount": 15, - "roofCount": 10 - }, - { - "id": "sion_0127", - "uuid": "{B2F1521B-DA3F-4E6C-BDD7-73AE8631CB7B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -447.186, - 54.949, - -547.935 - ], - "size": [ - 24.52, - 19.716, - 15.134 - ], - "groundY": 45.091, - "roofY": 64.807, - "wallCount": 41, - "roofCount": 39 - }, - { - "id": "sion_0128", - "uuid": "{74345BAB-39EB-4AE5-9B6E-B7082FFF617E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -697.518, - 36.325, - -234.487 - ], - "size": [ - 19.012, - 11.76, - 18.782 - ], - "groundY": 30.445, - "roofY": 42.205, - "wallCount": 10, - "roofCount": 32 - }, - { - "id": "sion_0129", - "uuid": "{B64836A6-0A89-406F-AF26-79705100332E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1220.613, - 2.674, - 961.232 - ], - "size": [ - 32.242, - 9.794, - 26.62 - ], - "groundY": -2.223, - "roofY": 7.571, - "wallCount": 29, - "roofCount": 3 - }, - { - "id": "sion_0130", - "uuid": "{48D1FFA0-58FB-40BD-BF0C-78E0EA908407}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1325.324, - 16.075, - 415.81 - ], - "size": [ - 42.484, - 41.504, - 31.265 - ], - "groundY": -4.677, - "roofY": 36.827, - "wallCount": 50, - "roofCount": 12 - }, - { - "id": "sion_0131", - "uuid": "{BBCE775E-FA37-4CF5-BDAA-D19D3040BFA3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -921.174, - 298.095, - -1441.442 - ], - "size": [ - 23.215, - 12.061, - 21.985 - ], - "groundY": 292.064, - "roofY": 304.125, - "wallCount": 35, - "roofCount": 32 - }, - { - "id": "sion_0132", - "uuid": "{3F41FAE4-61A0-4660-8B3A-A3A27EC80168}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -968.057, - 205.68, - -808.515 - ], - "size": [ - 5.371, - 5.603, - 5.433 - ], - "groundY": 202.878, - "roofY": 208.481, - "wallCount": 18, - "roofCount": 4 - }, - { - "id": "sion_0133", - "uuid": "{FDF80442-50AF-4EA9-82B4-071838FBE024}", - "name": "Patinoire de l'ancien Stand", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -983.074, - 4.103, - 417.373 - ], - "size": [ - 81.883, - 13.53, - 45.876 - ], - "groundY": -2.662, - "roofY": 10.868, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0134", - "uuid": "{0BDB26DC-9415-4163-94C1-F35D74C9DE0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1010.309, - 18.397, - -17.512 - ], - "size": [ - 35.648, - 13.399, - 29.334 - ], - "groundY": 11.698, - "roofY": 25.097, - "wallCount": 24, - "roofCount": 10 - }, - { - "id": "sion_0135", - "uuid": "{1EDD707E-5F33-48B7-8A05-DA532C268A23}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1078.873, - 11.182, - 393.988 - ], - "size": [ - 30.582, - 31.214, - 16.002 - ], - "groundY": -4.425, - "roofY": 26.789, - "wallCount": 127, - "roofCount": 20 - }, - { - "id": "sion_0136", - "uuid": "{70F202D6-2F23-46A3-B424-A932F99A7685}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1053.914, - 257.682, - -957.306 - ], - "size": [ - 18.203, - 12.719, - 17.286 - ], - "groundY": 251.323, - "roofY": 264.042, - "wallCount": 39, - "roofCount": 22 - }, - { - "id": "sion_0137", - "uuid": "{1D36C5A5-2436-4014-BDA5-398F84E2A94F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -966.516, - 34.0, - -107.787 - ], - "size": [ - 25.156, - 10.146, - 14.666 - ], - "groundY": 28.927, - "roofY": 39.073, - "wallCount": 30, - "roofCount": 15 - }, - { - "id": "sion_0138", - "uuid": "{04BF676C-E68E-45AC-8059-1755D00E4828}", - "name": "", - "class": "Kapelle", - "archStyle": "fortress", - "tile": [ - 0, - 0 - ], - "center": [ - -1147.766, - 288.483, - -1215.504 - ], - "size": [ - 14.734, - 10.428, - 14.098 - ], - "groundY": 283.269, - "roofY": 293.697, - "wallCount": 83, - "roofCount": 28 - }, - { - "id": "sion_0139", - "uuid": "{6B30F12B-4548-4F08-9455-0E299717AD0D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -998.043, - 75.989, - -213.141 - ], - "size": [ - 17.781, - 13.832, - 17.024 - ], - "groundY": 69.073, - "roofY": 82.905, - "wallCount": 24, - "roofCount": 11 - }, - { - "id": "sion_0140", - "uuid": "{BA92DD97-B6BA-4FA3-B105-0590FCE10A58}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1256.523, - 40.459, - 91.945 - ], - "size": [ - 24.156, - 10.114, - 22.072 - ], - "groundY": 35.402, - "roofY": 45.516, - "wallCount": 44, - "roofCount": 14 - }, - { - "id": "sion_0141", - "uuid": "{E744FB5C-D187-4F34-AE3D-1C3258DA91D8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -648.705, - 46.925, - -365.627 - ], - "size": [ - 20.707, - 10.885, - 21.986 - ], - "groundY": 41.483, - "roofY": 52.367, - "wallCount": 29, - "roofCount": 47 - }, - { - "id": "sion_0142", - "uuid": "{23402289-81FF-4B06-887E-744BABBE07B8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1184.643, - 102.526, - -255.5 - ], - "size": [ - 15.613, - 13.129, - 20.277 - ], - "groundY": 95.962, - "roofY": 109.091, - "wallCount": 27, - "roofCount": 24 - }, - { - "id": "sion_0143", - "uuid": "{7C1096D4-39C7-45A3-B0E2-AACF57F70AD5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -809.152, - 97.38, - -510.505 - ], - "size": [ - 36.672, - 11.629, - 29.734 - ], - "groundY": 91.565, - "roofY": 103.194, - "wallCount": 22, - "roofCount": 6 - }, - { - "id": "sion_0144", - "uuid": "{AC37CEFE-0285-42BD-AA17-6AB17CF17721}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -923.123, - 32.099, - -133.179 - ], - "size": [ - 14.02, - 10.462, - 13.052 - ], - "groundY": 26.868, - "roofY": 37.33, - "wallCount": 47, - "roofCount": 2 - }, - { - "id": "sion_0145", - "uuid": "{002E5BB4-2CFB-45E7-9AA3-084EF00B59E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1243.863, - 282.625, - -1165.864 - ], - "size": [ - 9.93, - 10.81, - 9.138 - ], - "groundY": 277.22, - "roofY": 288.03, - "wallCount": 55, - "roofCount": 23 - }, - { - "id": "sion_0146", - "uuid": "{C7F5035C-3D3F-4278-A100-92DDE20CA0F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -698.119, - 8.568, - 676.032 - ], - "size": [ - 113.715, - 20.284, - 50.264 - ], - "groundY": -1.574, - "roofY": 18.71, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_0147", - "uuid": "{7DB079D3-2E60-44FA-8A31-7500ABAFA587}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -971.451, - 297.55, - -1438.417 - ], - "size": [ - 14.973, - 10.761, - 14.986 - ], - "groundY": 292.169, - "roofY": 302.93, - "wallCount": 46, - "roofCount": 9 - }, - { - "id": "sion_0148", - "uuid": "{5033F73B-89ED-439D-9826-2A85D8C4147E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -840.629, - 15.159, - 194.082 - ], - "size": [ - 30.664, - 22.354, - 22.935 - ], - "groundY": 3.982, - "roofY": 26.336, - "wallCount": 21, - "roofCount": 25 - }, - { - "id": "sion_0149", - "uuid": "{00D02B40-2916-4E17-8862-DEA411BD983B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -746.389, - 57.765, - -310.091 - ], - "size": [ - 17.996, - 12.704, - 17.206 - ], - "groundY": 51.413, - "roofY": 64.117, - "wallCount": 27, - "roofCount": 31 - }, - { - "id": "sion_0150", - "uuid": "{BD45FAF9-DA75-420F-8459-13D4BD999CD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1531.246, - 267.337, - -1004.444 - ], - "size": [ - 32.297, - 14.485, - 20.92 - ], - "groundY": 260.095, - "roofY": 274.58, - "wallCount": 50, - "roofCount": 27 - }, - { - "id": "sion_0151", - "uuid": "{0A612374-4F9E-405E-9037-01F59DE4B2A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -606.359, - 24.786, - 138.68 - ], - "size": [ - 33.398, - 21.419, - 27.678 - ], - "groundY": 14.077, - "roofY": 35.496, - "wallCount": 20, - "roofCount": 38 - }, - { - "id": "sion_0152", - "uuid": "{BCEECE30-70D2-45F2-817C-FC9B1EA0591E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1500.17, - 268.808, - -888.701 - ], - "size": [ - 15.965, - 12.846, - 13.866 - ], - "groundY": 262.385, - "roofY": 275.231, - "wallCount": 53, - "roofCount": 41 - }, - { - "id": "sion_0153", - "uuid": "{810D6196-5C3A-421C-8859-F4F31C68DBDA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1260.352, - 282.239, - -1139.236 - ], - "size": [ - 23.828, - 12.534, - 23.5 - ], - "groundY": 275.972, - "roofY": 288.506, - "wallCount": 66, - "roofCount": 39 - }, - { - "id": "sion_0154", - "uuid": "{310E419F-3C5B-49EF-9800-46FB317612BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -818.277, - 71.12, - -286.008 - ], - "size": [ - 15.273, - 10.823, - 14.559 - ], - "groundY": 65.709, - "roofY": 76.532, - "wallCount": 29, - "roofCount": 2 - }, - { - "id": "sion_0155", - "uuid": "{A1B6C259-095B-4EFA-B91A-3328EFD8220A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -585.41, - 8.876, - 510.287 - ], - "size": [ - 41.031, - 20.825, - 24.393 - ], - "groundY": -1.537, - "roofY": 19.288, - "wallCount": 21, - "roofCount": 17 - }, - { - "id": "sion_0156", - "uuid": "{1A4829CE-9DB2-4CD6-BD09-E0B59BFA000F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -773.742, - 101.456, - -584.608 - ], - "size": [ - 21.883, - 12.502, - 14.884 - ], - "groundY": 95.205, - "roofY": 107.707, - "wallCount": 43, - "roofCount": 6 - }, - { - "id": "sion_0157", - "uuid": "{243B2450-4FEF-4A17-8F47-4DDBF1B68E0A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1140.533, - 16.601, - 69.952 - ], - "size": [ - 32.855, - 19.194, - 27.532 - ], - "groundY": 7.004, - "roofY": 26.198, - "wallCount": 51, - "roofCount": 22 - }, - { - "id": "sion_0158", - "uuid": "{C1FFD96F-7089-4956-BCB9-D683A7C0C4A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1395.168, - 284.07, - -1377.498 - ], - "size": [ - 25.031, - 14.642, - 24.416 - ], - "groundY": 276.749, - "roofY": 291.391, - "wallCount": 58, - "roofCount": 44 - }, - { - "id": "sion_0159", - "uuid": "{BB9AAAC5-4452-4A43-81FD-D52A9AA56B23}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1230.105, - 283.383, - -1247.046 - ], - "size": [ - 13.164, - 14.968, - 21.206 - ], - "groundY": 275.899, - "roofY": 290.867, - "wallCount": 37, - "roofCount": 11 - }, - { - "id": "sion_0160", - "uuid": "{7C2B405C-5564-47A3-8249-D73254ED1F00}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -695.273, - 42.88, - -292.041 - ], - "size": [ - 25.672, - 10.749, - 23.557 - ], - "groundY": 37.505, - "roofY": 48.254, - "wallCount": 28, - "roofCount": 15 - }, - { - "id": "sion_0161", - "uuid": "{C13C1939-4F4A-4C80-A873-F4C6780056CC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -704.387, - 32.241, - -126.811 - ], - "size": [ - 41.57, - 20.305, - 31.794 - ], - "groundY": 22.088, - "roofY": 42.393, - "wallCount": 21, - "roofCount": 17 - }, - { - "id": "sion_0162", - "uuid": "{BE8A5F5E-9246-4D8E-B7D3-7099B6AE35D2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1369.445, - 280.297, - -1062.778 - ], - "size": [ - 17.172, - 16.701, - 18.68 - ], - "groundY": 271.946, - "roofY": 288.647, - "wallCount": 48, - "roofCount": 47 - }, - { - "id": "sion_0163", - "uuid": "{2483F918-865A-45F6-BCBE-295ADB1EEF41}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1247.764, - 118.626, - -295.16 - ], - "size": [ - 17.176, - 10.03, - 17.05 - ], - "groundY": 113.611, - "roofY": 123.641, - "wallCount": 45, - "roofCount": 12 - }, - { - "id": "sion_0164", - "uuid": "{CB552D26-E851-4C47-AF79-00B2E3B199F3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1463.117, - 225.653, - -768.71 - ], - "size": [ - 8.219, - 7.112, - 10.547 - ], - "groundY": 222.097, - "roofY": 229.209, - "wallCount": 47, - "roofCount": 30 - }, - { - "id": "sion_0165", - "uuid": "{A6CCCF58-4956-4DD9-96B6-8939C9C4E9BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -924.619, - 15.881, - 44.534 - ], - "size": [ - 50.684, - 14.832, - 39.588 - ], - "groundY": 8.465, - "roofY": 23.297, - "wallCount": 35, - "roofCount": 6 - }, - { - "id": "sion_0166", - "uuid": "{D0B9FC45-AA55-440F-91C2-E0B44D36238B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -761.072, - 69.5, - -423.16 - ], - "size": [ - 23.269, - 13.432, - 22.777 - ], - "groundY": 62.784, - "roofY": 76.216, - "wallCount": 42, - "roofCount": 11 - }, - { - "id": "sion_0167", - "uuid": "{4F96BF6E-8A4F-4B37-900C-9763E7CEF683}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -847.504, - 96.369, - -481.727 - ], - "size": [ - 36.75, - 11.669, - 30.714 - ], - "groundY": 90.534, - "roofY": 102.203, - "wallCount": 17, - "roofCount": 7 - }, - { - "id": "sion_0168", - "uuid": "{AB18C61C-D739-4B9C-B5D8-450D633EA63F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1011.309, - 75.235, - -221.27 - ], - "size": [ - 13.281, - 7.766, - 11.644 - ], - "groundY": 71.352, - "roofY": 79.118, - "wallCount": 38, - "roofCount": 14 - }, - { - "id": "sion_0169", - "uuid": "{7A783CB8-F680-4E7A-AA2D-3759F934A544}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1200.447, - 1.65, - 505.762 - ], - "size": [ - 53.559, - 8.979, - 32.762 - ], - "groundY": -2.84, - "roofY": 6.139, - "wallCount": 21, - "roofCount": 12 - }, - { - "id": "sion_0170", - "uuid": "{66B4A0AD-8015-407D-8A97-7398DF108A3C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1165.266, - 93.406, - -224.898 - ], - "size": [ - 17.664, - 11.693, - 15.573 - ], - "groundY": 87.559, - "roofY": 99.252, - "wallCount": 42, - "roofCount": 4 - }, - { - "id": "sion_0171", - "uuid": "{249A6621-91D2-45C3-B3AC-11CD5B8C4BC7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1040.83, - 293.723, - -1368.015 - ], - "size": [ - 3.371, - 6.149, - 6.328 - ], - "groundY": 290.649, - "roofY": 296.798, - "wallCount": 24, - "roofCount": 2 - }, - { - "id": "sion_0172", - "uuid": "{DC1731EE-40A6-4A99-B0E1-1A0980440144}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -622.121, - 52.782, - -425.787 - ], - "size": [ - 21.32, - 16.917, - 21.238 - ], - "groundY": 44.324, - "roofY": 61.241, - "wallCount": 44, - "roofCount": 45 - }, - { - "id": "sion_0173", - "uuid": "{274A3167-7186-47AD-8641-6FC8906224B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -513.033, - 68.145, - -646.424 - ], - "size": [ - 23.238, - 19.498, - 20.958 - ], - "groundY": 58.396, - "roofY": 77.894, - "wallCount": 66, - "roofCount": 47 - }, - { - "id": "sion_0174", - "uuid": "{07F59781-D4C8-4F3F-AD0E-7471447D630A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1460.158, - -1.244, - 496.944 - ], - "size": [ - 17.988, - 5.059, - 10.644 - ], - "groundY": -3.773, - "roofY": 1.286, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_0175", - "uuid": "{1BD5EBF4-00AD-4F4F-92F2-082EB609F05D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1304.26, - 2.918, - 695.106 - ], - "size": [ - 13.527, - 11.833, - 19.577 - ], - "groundY": -2.999, - "roofY": 8.834, - "wallCount": 56, - "roofCount": 25 - }, - { - "id": "sion_0176", - "uuid": "{68853087-7524-44C1-9A99-671486E57DEC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -638.941, - 17.613, - 277.189 - ], - "size": [ - 49.0, - 27.986, - 35.978 - ], - "groundY": 3.62, - "roofY": 31.606, - "wallCount": 60, - "roofCount": 20 - }, - { - "id": "sion_0177", - "uuid": "{A37AB7C3-1163-4865-8CA4-5F48BAF60C3A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -756.611, - 3.831, - 926.208 - ], - "size": [ - 29.582, - 9.844, - 25.408 - ], - "groundY": -1.091, - "roofY": 8.753, - "wallCount": 34, - "roofCount": 8 - }, - { - "id": "sion_0178", - "uuid": "{B8388A89-E9E4-49EE-908F-FDBE5F0DD5DF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1170.027, - 8.093, - 209.133 - ], - "size": [ - 33.477, - 16.544, - 26.574 - ], - "groundY": -0.179, - "roofY": 16.365, - "wallCount": 31, - "roofCount": 21 - }, - { - "id": "sion_0179", - "uuid": "{0B93AFDB-1A2C-412A-86FF-B49AA86C2799}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1410.789, - 211.038, - -597.525 - ], - "size": [ - 25.758, - 11.658, - 18.124 - ], - "groundY": 205.209, - "roofY": 216.867, - "wallCount": 38, - "roofCount": 14 - }, - { - "id": "sion_0180", - "uuid": "{B38EF14A-FC0C-4F94-BCF4-1BCDDADA4986}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1174.84, - 139.196, - -416.165 - ], - "size": [ - 65.719, - 15.862, - 34.137 - ], - "groundY": 131.265, - "roofY": 147.127, - "wallCount": 204, - "roofCount": 96 - }, - { - "id": "sion_0181", - "uuid": "{7CA29E9C-3395-4F79-9728-75EE3288C96E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1136.721, - 4.883, - 795.525 - ], - "size": [ - 44.488, - 13.914, - 50.494 - ], - "groundY": -2.074, - "roofY": 11.84, - "wallCount": 58, - "roofCount": 16 - }, - { - "id": "sion_0182", - "uuid": "{07077EFD-7648-4FFA-89D7-061EC8644CCC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -889.619, - 2.512, - 993.332 - ], - "size": [ - 50.059, - 8.349, - 29.684 - ], - "groundY": -1.662, - "roofY": 6.686, - "wallCount": 27, - "roofCount": 40 - }, - { - "id": "sion_0183", - "uuid": "{843E1E36-8C82-48D6-BE83-3FDCC0CBA90F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -711.863, - 3.664, - 950.53 - ], - "size": [ - 36.867, - 10.456, - 35.158 - ], - "groundY": -1.564, - "roofY": 8.892, - "wallCount": 21, - "roofCount": 40 - }, - { - "id": "sion_0184", - "uuid": "{90DB1778-BB1D-4892-8379-60FCAF81B1B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1310.311, - 293.131, - -1501.942 - ], - "size": [ - 19.91, - 12.694, - 30.901 - ], - "groundY": 286.784, - "roofY": 299.478, - "wallCount": 30, - "roofCount": 26 - }, - { - "id": "sion_0185", - "uuid": "{98FB20DB-75B2-4C44-B88E-0672DF5395C2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1264.875, - 46.698, - 75.763 - ], - "size": [ - 17.148, - 8.626, - 13.282 - ], - "groundY": 42.385, - "roofY": 51.011, - "wallCount": 52, - "roofCount": 13 - }, - { - "id": "sion_0186", - "uuid": "{A50D634A-AC33-4599-914F-F33C339426B2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1446.617, - 226.889, - -715.53 - ], - "size": [ - 15.992, - 10.672, - 14.284 - ], - "groundY": 221.553, - "roofY": 232.225, - "wallCount": 49, - "roofCount": 22 - }, - { - "id": "sion_0187", - "uuid": "{D06DD0CC-C4D1-456B-9D5F-0B20AD61B6E5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -440.162, - 44.698, - -261.047 - ], - "size": [ - 71.441, - 26.624, - 47.174 - ], - "groundY": 31.386, - "roofY": 58.01, - "wallCount": 79, - "roofCount": 124 - }, - { - "id": "sion_0188", - "uuid": "{D4DD62FC-CC78-4634-99D1-46FA5DC870C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -558.873, - 17.399, - 233.963 - ], - "size": [ - 13.457, - 13.012, - 10.361 - ], - "groundY": 10.893, - "roofY": 23.905, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_0189", - "uuid": "{1A7337AE-CD9E-4876-B84B-7D104DF7D1FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1408.725, - 279.472, - -1484.998 - ], - "size": [ - 25.512, - 10.452, - 24.703 - ], - "groundY": 274.246, - "roofY": 284.698, - "wallCount": 22, - "roofCount": 24 - }, - { - "id": "sion_0190", - "uuid": "{52413F98-DFB8-4F83-947B-2F55518381F3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1448.941, - 2.461, - 857.752 - ], - "size": [ - 14.672, - 11.17, - 11.668 - ], - "groundY": -3.124, - "roofY": 8.046, - "wallCount": 52, - "roofCount": 26 - }, - { - "id": "sion_0191", - "uuid": "{B4FF19CB-CF61-4ABB-8A04-C36452F92703}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1204.301, - 285.492, - -1324.721 - ], - "size": [ - 8.969, - 5.864, - 9.494 - ], - "groundY": 282.56, - "roofY": 288.424, - "wallCount": 49, - "roofCount": 2 - }, - { - "id": "sion_0192", - "uuid": "{D40A3E5E-91E5-43EC-B9BD-A2C3F577C607}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1531.711, - 58.105, - 334.829 - ], - "size": [ - 25.719, - 13.854, - 21.046 - ], - "groundY": 51.178, - "roofY": 65.032, - "wallCount": 80, - "roofCount": 19 - }, - { - "id": "sion_0193", - "uuid": "{0616E551-F76D-4937-9CD6-9683963013C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1275.144, - 274.28, - -1206.225 - ], - "size": [ - 6.875, - 9.113, - 7.729 - ], - "groundY": 269.723, - "roofY": 278.836, - "wallCount": 46, - "roofCount": 11 - }, - { - "id": "sion_0194", - "uuid": "{9A28937E-D985-428A-9DCD-1AB0D0947DC2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -613.816, - 96.006, - -714.793 - ], - "size": [ - 18.391, - 11.722, - 19.79 - ], - "groundY": 90.145, - "roofY": 101.867, - "wallCount": 36, - "roofCount": 5 - }, - { - "id": "sion_0195", - "uuid": "{CE4F1998-4724-40C8-B3BE-FF2B754C91BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1161.887, - 295.167, - -1480.567 - ], - "size": [ - 9.344, - 7.85, - 9.91 - ], - "groundY": 291.242, - "roofY": 299.092, - "wallCount": 43, - "roofCount": 24 - }, - { - "id": "sion_0196", - "uuid": "{988B7D65-AF52-4D1B-BC6A-B5E2AF73130D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -998.844, - 11.993, - 177.48 - ], - "size": [ - 28.422, - 18.651, - 18.071 - ], - "groundY": 2.668, - "roofY": 21.318, - "wallCount": 37, - "roofCount": 16 - }, - { - "id": "sion_0197", - "uuid": "{0EDE7F6C-FCDC-4535-9F72-8AACB696688E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -497.867, - 36.107, - -120.079 - ], - "size": [ - 49.719, - 22.414, - 29.966 - ], - "groundY": 24.9, - "roofY": 47.314, - "wallCount": 25, - "roofCount": 20 - }, - { - "id": "sion_0198", - "uuid": "{92AE2CAF-98E8-488F-BFDE-8ECFE0A7F17D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -554.957, - 32.944, - -227.926 - ], - "size": [ - 33.555, - 9.948, - 42.022 - ], - "groundY": 27.97, - "roofY": 37.918, - "wallCount": 18, - "roofCount": 4 - }, - { - "id": "sion_0199", - "uuid": "{711C78D5-AE6D-482F-B44D-17AE50F5D845}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1430.018, - 1.637, - 857.238 - ], - "size": [ - 12.801, - 9.13, - 6.902 - ], - "groundY": -2.928, - "roofY": 6.202, - "wallCount": 67, - "roofCount": 18 - }, - { - "id": "sion_0200", - "uuid": "{9B510B22-D6DD-48DC-B46C-1055BB06D61A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1463.645, - 276.503, - -1211.267 - ], - "size": [ - 18.359, - 11.198, - 21.34 - ], - "groundY": 270.904, - "roofY": 282.102, - "wallCount": 43, - "roofCount": 27 - }, - { - "id": "sion_0201", - "uuid": "{2791B142-2E67-411D-AC21-544481749696}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -547.072, - 2.079, - 720.778 - ], - "size": [ - 7.606, - 5.438, - 10.976 - ], - "groundY": -0.64, - "roofY": 4.798, - "wallCount": 38, - "roofCount": 2 - }, - { - "id": "sion_0202", - "uuid": "{19CD5BB5-005F-491A-995D-BD8C835EE984}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1071.428, - 296.922, - -1340.158 - ], - "size": [ - 17.574, - 10.75, - 16.558 - ], - "groundY": 291.547, - "roofY": 302.297, - "wallCount": 18, - "roofCount": 13 - }, - { - "id": "sion_0203", - "uuid": "{E3C4980C-C384-4D48-9502-169F3ACEE403}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1225.418, - 268.094, - -1003.732 - ], - "size": [ - 15.312, - 11.596, - 14.987 - ], - "groundY": 262.296, - "roofY": 273.892, - "wallCount": 33, - "roofCount": 11 - }, - { - "id": "sion_0204", - "uuid": "{24214E03-B95A-4B5A-BB19-0103A7EE3267}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1185.469, - 118.531, - -334.837 - ], - "size": [ - 6.445, - 8.282, - 6.303 - ], - "groundY": 114.39, - "roofY": 122.672, - "wallCount": 32, - "roofCount": 8 - }, - { - "id": "sion_0205", - "uuid": "{016C190B-573B-4721-973A-7AFF9B5B87AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1121.551, - 293.568, - -1454.345 - ], - "size": [ - 11.172, - 11.002, - 10.689 - ], - "groundY": 288.067, - "roofY": 299.069, - "wallCount": 66, - "roofCount": 24 - }, - { - "id": "sion_0206", - "uuid": "{D199A23D-D631-40CD-B0BE-AB8555103EAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -983.676, - 4.88, - 330.398 - ], - "size": [ - 47.281, - 17.217, - 20.276 - ], - "groundY": -3.729, - "roofY": 13.488, - "wallCount": 14, - "roofCount": 24 - }, - { - "id": "sion_0207", - "uuid": "{ABE7675A-7E4F-4E90-A8AE-ADF17C6C1091}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -831.123, - 4.432, - 295.89 - ], - "size": [ - 12.793, - 14.156, - 11.224 - ], - "groundY": -2.646, - "roofY": 11.51, - "wallCount": 78, - "roofCount": 31 - }, - { - "id": "sion_0208", - "uuid": "{14D34460-097E-4013-9C7C-B90BFDF58F27}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1264.203, - 271.134, - -1046.989 - ], - "size": [ - 13.133, - 11.018, - 12.422 - ], - "groundY": 265.625, - "roofY": 276.643, - "wallCount": 64, - "roofCount": 33 - }, - { - "id": "sion_0209", - "uuid": "{CAB36172-8E24-4A69-9873-5CB4A874B96C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1301.764, - 280.496, - -1143.731 - ], - "size": [ - 16.199, - 10.891, - 14.86 - ], - "groundY": 275.051, - "roofY": 285.942, - "wallCount": 50, - "roofCount": 24 - }, - { - "id": "sion_0210", - "uuid": "{5051DD2D-7919-4D7A-91E7-B0F4C324602F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -803.584, - 59.44, - -258.59 - ], - "size": [ - 22.637, - 12.242, - 18.454 - ], - "groundY": 53.319, - "roofY": 65.561, - "wallCount": 19, - "roofCount": 32 - }, - { - "id": "sion_0211", - "uuid": "{1330EF53-9455-4DF1-AC55-D07A1814F980}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1122.975, - 2.2, - 429.178 - ], - "size": [ - 11.902, - 11.09, - 21.428 - ], - "groundY": -3.345, - "roofY": 7.745, - "wallCount": 27, - "roofCount": 12 - }, - { - "id": "sion_0212", - "uuid": "{1BC1470B-75CD-4EBD-B0CE-49741F8329CA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -590.057, - 46.914, - -423.96 - ], - "size": [ - 15.535, - 13.106, - 15.908 - ], - "groundY": 40.361, - "roofY": 53.467, - "wallCount": 39, - "roofCount": 8 - }, - { - "id": "sion_0213", - "uuid": "{CED361C7-3A3B-4D2B-A2C4-5D50412D06BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -697.379, - 3.701, - 1015.302 - ], - "size": [ - 49.477, - 10.271, - 79.464 - ], - "groundY": -1.435, - "roofY": 8.836, - "wallCount": 34, - "roofCount": 10 - }, - { - "id": "sion_0214", - "uuid": "{578305CD-4FEB-4C90-966E-51F616EA3124}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -792.328, - 20.098, - -49.53 - ], - "size": [ - 11.812, - 7.208, - 15.734 - ], - "groundY": 16.494, - "roofY": 23.702, - "wallCount": 38, - "roofCount": 21 - }, - { - "id": "sion_0215", - "uuid": "{58CA72CD-856B-46AE-820D-D6AE88948824}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1040.174, - 17.487, - 3.221 - ], - "size": [ - 24.684, - 13.736, - 21.682 - ], - "groundY": 10.619, - "roofY": 24.355, - "wallCount": 20, - "roofCount": 18 - }, - { - "id": "sion_0216", - "uuid": "{7312DDF7-C9A1-431E-9279-CC58589835B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1251.994, - 261.36, - -930.371 - ], - "size": [ - 14.402, - 13.24, - 20.695 - ], - "groundY": 254.74, - "roofY": 267.98, - "wallCount": 64, - "roofCount": 33 - }, - { - "id": "sion_0217", - "uuid": "{6CE1ADB7-77EB-4E24-9044-114678160C3F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -777.029, - 22.21, - 109.811 - ], - "size": [ - 28.441, - 22.177, - 33.31 - ], - "groundY": 11.122, - "roofY": 33.298, - "wallCount": 11, - "roofCount": 38 - }, - { - "id": "sion_0218", - "uuid": "{4BA816FE-AB15-4189-9E19-5FF783F580A6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1086.428, - 294.675, - -1203.276 - ], - "size": [ - 19.551, - 11.528, - 14.388 - ], - "groundY": 288.911, - "roofY": 300.439, - "wallCount": 30, - "roofCount": 13 - }, - { - "id": "sion_0219", - "uuid": "{5869D8D7-06F9-4D51-9146-D73021B94FA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1233.873, - 17.322, - 135.467 - ], - "size": [ - 23.434, - 19.643, - 22.508 - ], - "groundY": 7.5, - "roofY": 27.143, - "wallCount": 29, - "roofCount": 16 - }, - { - "id": "sion_0220", - "uuid": "{E967A833-56EC-4135-9846-4656BBB2FFAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -718.545, - 5.891, - 292.414 - ], - "size": [ - 20.691, - 15.634, - 17.285 - ], - "groundY": -1.926, - "roofY": 13.708, - "wallCount": 27, - "roofCount": 31 - }, - { - "id": "sion_0221", - "uuid": "{8BD82661-AB42-4003-9B24-962C118A0260}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -761.266, - 39.076, - -216.139 - ], - "size": [ - 17.656, - 15.701, - 17.235 - ], - "groundY": 31.226, - "roofY": 46.927, - "wallCount": 17, - "roofCount": 31 - }, - { - "id": "sion_0222", - "uuid": "{AF8D2C91-86FD-40DA-B4F2-362754E99BBD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1327.805, - -0.013, - 903.061 - ], - "size": [ - 10.625, - 5.864, - 10.332 - ], - "groundY": -2.945, - "roofY": 2.919, - "wallCount": 16, - "roofCount": 17 - }, - { - "id": "sion_0223", - "uuid": "{5BE6B44E-2A65-47E4-83B0-F61CCF8F3D93}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -536.473, - 12.817, - 403.02 - ], - "size": [ - 25.883, - 24.353, - 20.689 - ], - "groundY": 0.641, - "roofY": 24.994, - "wallCount": 23, - "roofCount": 18 - }, - { - "id": "sion_0224", - "uuid": "{A5894A51-50F9-4305-B3C3-40B417780A26}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -855.455, - 7.963, - 288.86 - ], - "size": [ - 27.144, - 20.697, - 19.588 - ], - "groundY": -2.385, - "roofY": 18.312, - "wallCount": 49, - "roofCount": 11 - }, - { - "id": "sion_0225", - "uuid": "{9116BC1F-3C2F-4F22-A04A-92D08DB122D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1029.777, - 122.364, - -454.632 - ], - "size": [ - 22.266, - 10.47, - 20.479 - ], - "groundY": 117.129, - "roofY": 127.6, - "wallCount": 29, - "roofCount": 24 - }, - { - "id": "sion_0226", - "uuid": "{37B2B18A-8274-4F32-A328-543F9A9995ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -794.543, - 82.802, - -471.964 - ], - "size": [ - 30.945, - 16.242, - 29.676 - ], - "groundY": 74.681, - "roofY": 90.923, - "wallCount": 58, - "roofCount": 18 - }, - { - "id": "sion_0227", - "uuid": "{9DC0C62A-094F-47FF-AE9C-1B855A1916AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -953.619, - 6.202, - 270.828 - ], - "size": [ - 17.246, - 17.54, - 17.176 - ], - "groundY": -2.568, - "roofY": 14.972, - "wallCount": 24, - "roofCount": 26 - }, - { - "id": "sion_0228", - "uuid": "{25A47FFC-4FEF-4A19-8615-638CBFE13B0C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -411.084, - 64.449, - -684.068 - ], - "size": [ - 23.598, - 16.774, - 23.528 - ], - "groundY": 56.062, - "roofY": 72.836, - "wallCount": 90, - "roofCount": 22 - }, - { - "id": "sion_0229", - "uuid": "{EFB6693E-8814-4133-895A-9945D95FD344}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1270.912, - 139.06, - -365.233 - ], - "size": [ - 17.582, - 6.198, - 14.468 - ], - "groundY": 135.961, - "roofY": 142.159, - "wallCount": 35, - "roofCount": 4 - }, - { - "id": "sion_0230", - "uuid": "{C2CB13CA-A1F7-4980-B0FD-415CC4B35BFD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1448.643, - 1.861, - 433.571 - ], - "size": [ - 16.34, - 11.987, - 17.464 - ], - "groundY": -4.133, - "roofY": 7.854, - "wallCount": 49, - "roofCount": 20 - }, - { - "id": "sion_0231", - "uuid": "{24BC1D02-4AB7-4250-B0F0-2B2E7DCA7371}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -710.059, - 26.577, - -81.035 - ], - "size": [ - 17.516, - 18.421, - 16.0 - ], - "groundY": 17.367, - "roofY": 35.788, - "wallCount": 26, - "roofCount": 14 - }, - { - "id": "sion_0232", - "uuid": "{5AD718A5-AF51-48DB-B0E8-0C471E7C4E9A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1062.904, - 8.682, - 418.11 - ], - "size": [ - 40.652, - 26.702, - 29.506 - ], - "groundY": -4.669, - "roofY": 22.033, - "wallCount": 154, - "roofCount": 40 - }, - { - "id": "sion_0233", - "uuid": "{A6D3784C-E484-40A7-A7A5-184436B09DA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1274.328, - 290.285, - -1454.862 - ], - "size": [ - 7.953, - 5.433, - 8.574 - ], - "groundY": 287.569, - "roofY": 293.002, - "wallCount": 40, - "roofCount": 2 - }, - { - "id": "sion_0234", - "uuid": "{4C94EF15-BE3A-456C-86A5-B0C8F29092A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1192.199, - 265.814, - -1022.714 - ], - "size": [ - 13.336, - 8.944, - 11.578 - ], - "groundY": 261.342, - "roofY": 270.286, - "wallCount": 43, - "roofCount": 4 - }, - { - "id": "sion_0235", - "uuid": "{DECB828C-5114-41D8-8D4D-F3BB49587887}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -506.061, - 22.04, - 154.902 - ], - "size": [ - 16.863, - 15.148, - 14.483 - ], - "groundY": 14.466, - "roofY": 29.614, - "wallCount": 63, - "roofCount": 67 - }, - { - "id": "sion_0236", - "uuid": "{3A5543A4-6281-48E9-B64B-FF5E179A5C6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1165.549, - 59.64, - -36.395 - ], - "size": [ - 14.473, - 8.29, - 13.171 - ], - "groundY": 55.495, - "roofY": 63.785, - "wallCount": 19, - "roofCount": 2 - }, - { - "id": "sion_0237", - "uuid": "{A500D40E-C86B-4F04-8D46-8183271037CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1465.73, - 271.549, - -969.107 - ], - "size": [ - 17.07, - 12.12, - 20.67 - ], - "groundY": 265.489, - "roofY": 277.609, - "wallCount": 27, - "roofCount": 16 - }, - { - "id": "sion_0238", - "uuid": "{BA658F9E-34A5-4DF2-8126-E979EEDDCBD5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1250.885, - 281.603, - -1101.811 - ], - "size": [ - 9.215, - 8.838, - 8.265 - ], - "groundY": 277.184, - "roofY": 286.022, - "wallCount": 49, - "roofCount": 25 - }, - { - "id": "sion_0239", - "uuid": "{8125B374-7F56-49CB-8A51-45D9A2B09828}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -628.047, - 74.023, - -561.127 - ], - "size": [ - 25.797, - 9.164, - 25.225 - ], - "groundY": 69.441, - "roofY": 78.605, - "wallCount": 24, - "roofCount": 13 - }, - { - "id": "sion_0240", - "uuid": "{6E00B9DC-C8A3-4EBA-BBB5-041EF8B2E20F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1233.572, - 280.391, - -1193.18 - ], - "size": [ - 13.559, - 11.614, - 20.988 - ], - "groundY": 274.584, - "roofY": 286.198, - "wallCount": 58, - "roofCount": 17 - }, - { - "id": "sion_0241", - "uuid": "{DF599715-1987-4AF0-8E3E-3B0484B3455C}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -903.328, - 25.897, - -98.559 - ], - "size": [ - 23.086, - 19.49, - 21.832 - ], - "groundY": 16.152, - "roofY": 35.642, - "wallCount": 62, - "roofCount": 6 - }, - { - "id": "sion_0242", - "uuid": "{D02BE349-4B8A-42B3-8527-DA936D972411}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -926.795, - 1.713, - 310.216 - ], - "size": [ - 14.098, - 10.536, - 11.13 - ], - "groundY": -3.555, - "roofY": 6.981, - "wallCount": 34, - "roofCount": 18 - }, - { - "id": "sion_0243", - "uuid": "{FD5F07E1-6BE5-431B-B09F-C834C7983468}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1301.828, - 280.127, - -1159.754 - ], - "size": [ - 10.945, - 11.254, - 9.538 - ], - "groundY": 274.5, - "roofY": 285.754, - "wallCount": 63, - "roofCount": 33 - }, - { - "id": "sion_0244", - "uuid": "{1059F20F-F580-479F-9D23-6CD09FEA684E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -979.057, - 68.264, - -202.741 - ], - "size": [ - 19.832, - 14.549, - 21.614 - ], - "groundY": 60.989, - "roofY": 75.538, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_0245", - "uuid": "{7102FCF4-FE81-4301-A2B4-F12ED74578AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -471.141, - 14.866, - 417.904 - ], - "size": [ - 24.992, - 23.359, - 21.302 - ], - "groundY": 3.187, - "roofY": 26.545, - "wallCount": 39, - "roofCount": 23 - }, - { - "id": "sion_0246", - "uuid": "{C2BAAA6A-B32C-4041-AD51-BB9693A9BFFA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1198.475, - 281.589, - -1101.459 - ], - "size": [ - 13.957, - 13.544, - 16.172 - ], - "groundY": 274.817, - "roofY": 288.361, - "wallCount": 55, - "roofCount": 14 - }, - { - "id": "sion_0247", - "uuid": "{2FBB802F-7EC5-4142-A822-4BE3F393EAAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1484.527, - 220.309, - -597.813 - ], - "size": [ - 16.242, - 8.798, - 15.782 - ], - "groundY": 215.91, - "roofY": 224.708, - "wallCount": 44, - "roofCount": 8 - }, - { - "id": "sion_0248", - "uuid": "{C80B65FD-0CB5-4829-8980-9D85397DCAFB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -450.139, - 42.555, - -309.975 - ], - "size": [ - 62.098, - 17.143, - 44.086 - ], - "groundY": 33.984, - "roofY": 51.127, - "wallCount": 22, - "roofCount": 34 - }, - { - "id": "sion_0249", - "uuid": "{A87BEE65-DD84-47AB-87CC-75F222534C3D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -931.127, - 3.192, - 273.124 - ], - "size": [ - 11.293, - 12.1, - 12.744 - ], - "groundY": -2.858, - "roofY": 9.242, - "wallCount": 45, - "roofCount": 34 - }, - { - "id": "sion_0250", - "uuid": "{3E3BE0FD-D3F9-4D37-8C57-7D18351318E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1393.502, - 264.651, - -964.309 - ], - "size": [ - 18.317, - 10.711, - 23.767 - ], - "groundY": 259.296, - "roofY": 270.007, - "wallCount": 23, - "roofCount": 20 - }, - { - "id": "sion_0251", - "uuid": "{26284C98-DD05-4379-970E-1C25AD3D42E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -630.721, - 64.536, - -533.091 - ], - "size": [ - 9.98, - 6.635, - 10.018 - ], - "groundY": 61.219, - "roofY": 67.854, - "wallCount": 22, - "roofCount": 10 - }, - { - "id": "sion_0252", - "uuid": "{866D913A-2B56-4636-BB93-8F006B678B0C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1196.652, - 2.299, - 1007.87 - ], - "size": [ - 41.047, - 9.808, - 25.252 - ], - "groundY": -2.605, - "roofY": 7.203, - "wallCount": 15, - "roofCount": 21 - }, - { - "id": "sion_0253", - "uuid": "{0787ED0C-A986-4ADA-A95A-677F5196F614}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1283.242, - 208.836, - -671.058 - ], - "size": [ - 14.367, - 9.734, - 13.323 - ], - "groundY": 203.969, - "roofY": 213.703, - "wallCount": 38, - "roofCount": 4 - }, - { - "id": "sion_0254", - "uuid": "{41E2B8A9-1740-4DFF-8403-EDC32831A713}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -705.959, - 21.539, - 185.152 - ], - "size": [ - 25.356, - 23.393, - 16.21 - ], - "groundY": 9.843, - "roofY": 33.236, - "wallCount": 12, - "roofCount": 39 - }, - { - "id": "sion_0255", - "uuid": "{72097DFC-282C-413B-97BC-6021D90A7BD1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -822.426, - 3.017, - 1024.016 - ], - "size": [ - 24.086, - 9.065, - 15.45 - ], - "groundY": -1.516, - "roofY": 7.549, - "wallCount": 12, - "roofCount": 17 - }, - { - "id": "sion_0256", - "uuid": "{9C84663F-D7E8-4102-AED2-22DA7BF35026}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -950.535, - 296.574, - -1247.761 - ], - "size": [ - 24.609, - 12.086, - 20.292 - ], - "groundY": 290.531, - "roofY": 302.617, - "wallCount": 21, - "roofCount": 13 - }, - { - "id": "sion_0257", - "uuid": "{EF519C76-9F9A-4E31-A319-C3A119C1B7EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -966.125, - 92.361, - -321.49 - ], - "size": [ - 31.766, - 15.108, - 30.809 - ], - "groundY": 84.807, - "roofY": 99.915, - "wallCount": 61, - "roofCount": 26 - }, - { - "id": "sion_0258", - "uuid": "{D08DB01D-8E87-4035-80F0-C75822B6B8BF}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -446.637, - 15.243, - 450.053 - ], - "size": [ - 22.352, - 25.294, - 22.273 - ], - "groundY": 2.596, - "roofY": 27.89, - "wallCount": 46, - "roofCount": 2 - }, - { - "id": "sion_0259", - "uuid": "{267F73D2-037A-4028-8E56-2DBF46B7527D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1413.602, - 277.732, - -1047.566 - ], - "size": [ - 19.086, - 10.566, - 16.33 - ], - "groundY": 272.449, - "roofY": 283.015, - "wallCount": 67, - "roofCount": 17 - }, - { - "id": "sion_0260", - "uuid": "{541E9277-07D6-4295-95E2-ECA31D88705C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -480.221, - 44.668, - -454.22 - ], - "size": [ - 17.207, - 5.413, - 18.972 - ], - "groundY": 41.961, - "roofY": 47.374, - "wallCount": 12, - "roofCount": 7 - }, - { - "id": "sion_0261", - "uuid": "{8142E6B4-AB3A-4324-816F-635C2E7B224D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -675.049, - 29.346, - -79.954 - ], - "size": [ - 41.316, - 23.703, - 49.008 - ], - "groundY": 17.495, - "roofY": 41.198, - "wallCount": 129, - "roofCount": 99 - }, - { - "id": "sion_0262", - "uuid": "{F6BEA10E-06CD-4552-A869-5E8D15898736}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1241.336, - 112.069, - -243.908 - ], - "size": [ - 36.188, - 11.28, - 27.816 - ], - "groundY": 106.429, - "roofY": 117.709, - "wallCount": 99, - "roofCount": 36 - }, - { - "id": "sion_0263", - "uuid": "{3A9F60D0-3DA6-44F3-9CE1-687386D10F25}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -450.174, - 7.421, - 597.481 - ], - "size": [ - 38.004, - 15.526, - 16.896 - ], - "groundY": -0.342, - "roofY": 15.184, - "wallCount": 54, - "roofCount": 61 - }, - { - "id": "sion_0264", - "uuid": "{F84B50AC-D224-46E3-B8DF-DFB478ED8D9F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1174.158, - 264.916, - -1027.583 - ], - "size": [ - 15.16, - 9.348, - 10.389 - ], - "groundY": 260.242, - "roofY": 269.59, - "wallCount": 48, - "roofCount": 4 - }, - { - "id": "sion_0265", - "uuid": "{B2CFEE32-DFAD-4B6B-8FD3-B55155555A58}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -997.514, - 76.483, - -250.241 - ], - "size": [ - 18.332, - 10.083, - 15.27 - ], - "groundY": 71.442, - "roofY": 81.525, - "wallCount": 48, - "roofCount": 42 - }, - { - "id": "sion_0266", - "uuid": "{9CBE3754-B4FD-4D9A-B007-513E26D18571}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -725.709, - 26.207, - 23.326 - ], - "size": [ - 124.902, - 25.961, - 120.868 - ], - "groundY": 13.227, - "roofY": 39.188, - "wallCount": 206, - "roofCount": 143 - }, - { - "id": "sion_0267", - "uuid": "{47272D6D-9C9C-4E0E-8A6A-075C944B61CF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1356.883, - 267.238, - -992.541 - ], - "size": [ - 19.109, - 8.886, - 21.297 - ], - "groundY": 262.795, - "roofY": 271.681, - "wallCount": 47, - "roofCount": 8 - }, - { - "id": "sion_0268", - "uuid": "{A28BFE86-C0B6-495A-BA0E-4AB7D4F13591}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -812.482, - 202.133, - -886.072 - ], - "size": [ - 21.449, - 8.575, - 25.428 - ], - "groundY": 197.846, - "roofY": 206.421, - "wallCount": 31, - "roofCount": 21 - }, - { - "id": "sion_0269", - "uuid": "{1CDB162E-02A0-4ECA-ABB6-1233E7685D0B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1068.611, - 270.031, - -1000.735 - ], - "size": [ - 15.941, - 12.425, - 22.798 - ], - "groundY": 263.819, - "roofY": 276.244, - "wallCount": 38, - "roofCount": 16 - }, - { - "id": "sion_0270", - "uuid": "{0D273878-AF29-456E-A0C2-6FBF0074E2E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1216.455, - 295.689, - -1419.617 - ], - "size": [ - 16.559, - 12.144, - 15.908 - ], - "groundY": 289.617, - "roofY": 301.761, - "wallCount": 48, - "roofCount": 23 - }, - { - "id": "sion_0271", - "uuid": "{E99C6A4F-B04F-4737-BC39-F2104A640829}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -707.41, - 16.131, - 237.596 - ], - "size": [ - 23.195, - 18.43, - 19.59 - ], - "groundY": 6.916, - "roofY": 25.346, - "wallCount": 47, - "roofCount": 28 - }, - { - "id": "sion_0272", - "uuid": "{CF2A99EC-6A68-4AA5-8530-99D133FEF859}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -971.996, - 103.363, - -451.383 - ], - "size": [ - 15.703, - 11.152, - 17.876 - ], - "groundY": 97.787, - "roofY": 108.938, - "wallCount": 36, - "roofCount": 10 - }, - { - "id": "sion_0273", - "uuid": "{EEC3CFD9-8873-4740-8A17-57D951FD6597}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -428.566, - 51.295, - -582.397 - ], - "size": [ - 40.25, - 7.658, - 79.442 - ], - "groundY": 47.466, - "roofY": 55.124, - "wallCount": 36, - "roofCount": 10 - }, - { - "id": "sion_0274", - "uuid": "{E1EE99F1-D3DD-4C6E-A9A2-C2D0D58CF062}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1514.396, - 273.177, - -1369.49 - ], - "size": [ - 18.348, - 7.729, - 8.662 - ], - "groundY": 269.313, - "roofY": 277.042, - "wallCount": 34, - "roofCount": 18 - }, - { - "id": "sion_0275", - "uuid": "{D6AE1251-5095-4744-9C02-2A26550B27B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1169.908, - 263.425, - -957.449 - ], - "size": [ - 15.129, - 10.738, - 13.878 - ], - "groundY": 258.056, - "roofY": 268.794, - "wallCount": 34, - "roofCount": 4 - }, - { - "id": "sion_0276", - "uuid": "{64A7D940-E35A-4DD8-8128-884182440624}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -641.33, - 117.956, - -763.645 - ], - "size": [ - 14.629, - 9.976, - 14.668 - ], - "groundY": 112.968, - "roofY": 122.944, - "wallCount": 27, - "roofCount": 12 - }, - { - "id": "sion_0277", - "uuid": "{F43BA7F9-FA93-4277-A2AF-0033A09F03CC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -686.297, - 38.57, - -262.664 - ], - "size": [ - 24.484, - 13.569, - 17.958 - ], - "groundY": 31.785, - "roofY": 45.354, - "wallCount": 34, - "roofCount": 45 - }, - { - "id": "sion_0278", - "uuid": "{6BCB49AD-B7EE-4543-A9DF-A064BF6A707B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1019.76, - 15.4, - -32.154 - ], - "size": [ - 30.363, - 4.94, - 23.572 - ], - "groundY": 12.93, - "roofY": 17.87, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0279", - "uuid": "{F89EE1E6-8A48-4CC3-82C6-5A0EFAC65CB0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -506.082, - 24.269, - 180.338 - ], - "size": [ - 52.719, - 23.144, - 33.156 - ], - "groundY": 12.697, - "roofY": 35.841, - "wallCount": 75, - "roofCount": 25 - }, - { - "id": "sion_0280", - "uuid": "{19257C1E-6404-4B60-8C5B-FDA2EB155B46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1426.375, - 69.57, - 36.204 - ], - "size": [ - 6.195, - 5.44, - 7.41 - ], - "groundY": 66.85, - "roofY": 72.29, - "wallCount": 25, - "roofCount": 18 - }, - { - "id": "sion_0281", - "uuid": "{514A3F48-A3B7-4FC9-BEA0-50C895135B41}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1385.4, - 200.526, - -513.273 - ], - "size": [ - 9.91, - 6.184, - 8.8 - ], - "groundY": 197.434, - "roofY": 203.618, - "wallCount": 31, - "roofCount": 8 - }, - { - "id": "sion_0282", - "uuid": "{B16A37C3-83E3-4EB5-A2DA-4849AA833F8D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -757.338, - 91.662, - -511.424 - ], - "size": [ - 40.715, - 6.548, - 30.128 - ], - "groundY": 88.388, - "roofY": 94.936, - "wallCount": 20, - "roofCount": 8 - }, - { - "id": "sion_0283", - "uuid": "{641D09D7-532D-40D6-8F71-7E54D0ECE6F7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1318.715, - 279.211, - -1140.036 - ], - "size": [ - 7.711, - 7.774, - 8.611 - ], - "groundY": 275.324, - "roofY": 283.098, - "wallCount": 47, - "roofCount": 15 - }, - { - "id": "sion_0284", - "uuid": "{D2620514-C4A9-4390-B7E7-DC4D989BE8E0}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1342.74, - 235.67, - -801.477 - ], - "size": [ - 17.043, - 10.366, - 22.11 - ], - "groundY": 230.487, - "roofY": 240.853, - "wallCount": 41, - "roofCount": 9 - }, - { - "id": "sion_0285", - "uuid": "{E0BDC2A5-36E7-4C09-B193-C20EB358669E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -714.295, - 6.842, - 804.634 - ], - "size": [ - 19.652, - 15.292, - 28.472 - ], - "groundY": -0.804, - "roofY": 14.488, - "wallCount": 29, - "roofCount": 4 - }, - { - "id": "sion_0286", - "uuid": "{1B97B77F-D133-4733-9B81-60DFA575F149}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -931.076, - 9.983, - 197.144 - ], - "size": [ - 33.09, - 20.841, - 22.614 - ], - "groundY": -0.438, - "roofY": 20.403, - "wallCount": 26, - "roofCount": 42 - }, - { - "id": "sion_0287", - "uuid": "{9A4FA64B-1FF8-4F91-A177-9A800AD7CE30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1166.356, - 287.15, - -1151.525 - ], - "size": [ - 19.0, - 12.662, - 23.989 - ], - "groundY": 280.819, - "roofY": 293.481, - "wallCount": 70, - "roofCount": 27 - }, - { - "id": "sion_0288", - "uuid": "{28A3BDD9-87B2-41C2-9997-222D1F38D85C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1221.389, - 10.269, - 230.025 - ], - "size": [ - 69.793, - 22.393, - 59.338 - ], - "groundY": -0.927, - "roofY": 21.466, - "wallCount": 141, - "roofCount": 141 - }, - { - "id": "sion_0289", - "uuid": "{EA1BDF6C-062A-4D91-BC8E-17C4C45C908C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1098.572, - 239.258, - -862.08 - ], - "size": [ - 9.527, - 5.253, - 8.637 - ], - "groundY": 236.631, - "roofY": 241.884, - "wallCount": 26, - "roofCount": 6 - }, - { - "id": "sion_0290", - "uuid": "{BF7DC762-6488-48AB-BD7A-6BAF4069C5A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1306.172, - 258.134, - -958.112 - ], - "size": [ - 20.078, - 11.414, - 12.176 - ], - "groundY": 252.427, - "roofY": 263.841, - "wallCount": 36, - "roofCount": 17 - }, - { - "id": "sion_0291", - "uuid": "{6DD7BCD0-031D-468A-94F9-3DD4DAD5ADA4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1174.242, - 264.992, - -1006.945 - ], - "size": [ - 22.344, - 10.122, - 10.258 - ], - "groundY": 259.931, - "roofY": 270.053, - "wallCount": 42, - "roofCount": 14 - }, - { - "id": "sion_0292", - "uuid": "{F16D66B1-CD39-4B28-A890-3C61BAB81551}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -987.5, - 297.589, - -1232.425 - ], - "size": [ - 15.531, - 11.381, - 14.92 - ], - "groundY": 291.898, - "roofY": 303.279, - "wallCount": 34, - "roofCount": 23 - }, - { - "id": "sion_0293", - "uuid": "{1CA7A4C6-3351-491E-B748-53CFD518937D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1030.643, - 294.078, - -1390.203 - ], - "size": [ - 13.473, - 10.168, - 22.008 - ], - "groundY": 288.994, - "roofY": 299.162, - "wallCount": 71, - "roofCount": 19 - }, - { - "id": "sion_0294", - "uuid": "{49C6B3A9-0301-4720-9508-E9159269F5FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -538.982, - 20.264, - 202.062 - ], - "size": [ - 15.223, - 16.444, - 13.964 - ], - "groundY": 12.042, - "roofY": 28.486, - "wallCount": 29, - "roofCount": 46 - }, - { - "id": "sion_0295", - "uuid": "{0E7AA7BB-02DF-4418-B639-220E855898EE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -864.051, - 18.266, - 70.922 - ], - "size": [ - 20.461, - 17.356, - 18.418 - ], - "groundY": 9.588, - "roofY": 26.944, - "wallCount": 29, - "roofCount": 13 - }, - { - "id": "sion_0296", - "uuid": "{DC695CD7-500B-47C1-88B8-D1A82C15C614}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -891.703, - 292.243, - -1270.027 - ], - "size": [ - 16.133, - 11.145, - 17.466 - ], - "groundY": 286.671, - "roofY": 297.816, - "wallCount": 38, - "roofCount": 13 - }, - { - "id": "sion_0297", - "uuid": "{2EF57DE8-339C-4336-A96B-364D88D466A6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1476.088, - 266.103, - -953.064 - ], - "size": [ - 10.574, - 7.368, - 14.091 - ], - "groundY": 262.419, - "roofY": 269.787, - "wallCount": 58, - "roofCount": 8 - }, - { - "id": "sion_0298", - "uuid": "{CEBA34A6-233C-44CF-B7E6-FE5D33310B73}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -461.307, - 70.369, - -677.361 - ], - "size": [ - 23.035, - 16.371, - 24.082 - ], - "groundY": 62.184, - "roofY": 78.555, - "wallCount": 40, - "roofCount": 38 - }, - { - "id": "sion_0299", - "uuid": "{995AEFF8-AD42-4478-8961-C6237767570C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1389.844, - 283.012, - -1096.898 - ], - "size": [ - 17.695, - 9.341, - 18.233 - ], - "groundY": 278.342, - "roofY": 287.683, - "wallCount": 50, - "roofCount": 22 - }, - { - "id": "sion_0300", - "uuid": "{2D8CAB2D-F62E-4EC9-9773-2C1863C4AD87}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1530.893, - 159.33, - -342.285 - ], - "size": [ - 16.809, - 10.273, - 15.83 - ], - "groundY": 154.194, - "roofY": 164.467, - "wallCount": 51, - "roofCount": 14 - }, - { - "id": "sion_0301", - "uuid": "{DE3EA44A-D8A7-4C2F-B37A-AABA9EDF640D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1274.453, - 280.279, - -1090.632 - ], - "size": [ - 16.258, - 12.216, - 20.706 - ], - "groundY": 274.171, - "roofY": 286.387, - "wallCount": 53, - "roofCount": 25 - }, - { - "id": "sion_0302", - "uuid": "{8D0C160E-4D85-4188-8EC7-F62518853451}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1010.328, - 2.588, - 270.212 - ], - "size": [ - 13.047, - 11.416, - 12.686 - ], - "groundY": -3.12, - "roofY": 8.296, - "wallCount": 32, - "roofCount": 18 - }, - { - "id": "sion_0303", - "uuid": "{93A2BA0B-F5D4-420A-ABE9-99889A864CDD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -901.098, - 96.42, - -434.716 - ], - "size": [ - 74.922, - 20.954, - 64.414 - ], - "groundY": 85.943, - "roofY": 106.897, - "wallCount": 46, - "roofCount": 34 - }, - { - "id": "sion_0304", - "uuid": "{8E71BF34-7F6A-4228-9CBC-65E3EBA908B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1133.031, - 6.538, - 271.585 - ], - "size": [ - 22.5, - 18.251, - 32.902 - ], - "groundY": -2.587, - "roofY": 15.664, - "wallCount": 15, - "roofCount": 24 - }, - { - "id": "sion_0305", - "uuid": "{BF770524-302B-4300-A3EF-61B9250E8599}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1117.654, - 63.76, - -105.134 - ], - "size": [ - 116.082, - 23.226, - 46.07 - ], - "groundY": 52.147, - "roofY": 75.373, - "wallCount": 191, - "roofCount": 59 - }, - { - "id": "sion_0306", - "uuid": "{AAE57953-7297-42C4-9697-D8C9F41B1DC5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1276.66, - 280.492, - -1133.03 - ], - "size": [ - 11.352, - 9.768, - 21.198 - ], - "groundY": 275.608, - "roofY": 285.376, - "wallCount": 61, - "roofCount": 37 - }, - { - "id": "sion_0307", - "uuid": "{86D5DD53-37FA-4100-ACB4-CAFE59584CC6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -761.881, - 2.25, - 525.677 - ], - "size": [ - 65.394, - 7.507, - 92.6 - ], - "groundY": -1.504, - "roofY": 6.003, - "wallCount": 61, - "roofCount": 23 - }, - { - "id": "sion_0308", - "uuid": "{B63D265C-238C-42F9-950F-C6EAD2EB4406}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -609.707, - 58.579, - -497.97 - ], - "size": [ - 14.609, - 8.476, - 14.834 - ], - "groundY": 54.341, - "roofY": 62.817, - "wallCount": 47, - "roofCount": 4 - }, - { - "id": "sion_0309", - "uuid": "{3AD35B2C-8529-4B74-8A4C-4DB5E6135419}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -489.945, - 9.47, - 419.831 - ], - "size": [ - 18.094, - 13.42, - 21.144 - ], - "groundY": 2.76, - "roofY": 16.18, - "wallCount": 56, - "roofCount": 24 - }, - { - "id": "sion_0310", - "uuid": "{23FFB907-C1D0-4A50-8443-24610E637999}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1292.549, - 146.056, - -386.07 - ], - "size": [ - 26.879, - 10.026, - 19.654 - ], - "groundY": 141.043, - "roofY": 151.069, - "wallCount": 36, - "roofCount": 9 - }, - { - "id": "sion_0311", - "uuid": "{B248A929-0A91-4AB4-AF9A-964C369D5DD9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -707.098, - 18.767, - 208.741 - ], - "size": [ - 23.531, - 19.864, - 14.052 - ], - "groundY": 8.835, - "roofY": 28.699, - "wallCount": 26, - "roofCount": 17 - }, - { - "id": "sion_0312", - "uuid": "{FE769E9A-219C-4970-AA89-2DEB83A4E478}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1144.287, - 13.286, - 113.455 - ], - "size": [ - 26.785, - 16.582, - 24.598 - ], - "groundY": 4.995, - "roofY": 21.577, - "wallCount": 21, - "roofCount": 15 - }, - { - "id": "sion_0313", - "uuid": "{199BA417-D217-4E16-BD58-6128286047B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1492.643, - 276.7, - -1169.845 - ], - "size": [ - 17.754, - 11.459, - 15.03 - ], - "groundY": 270.97, - "roofY": 282.429, - "wallCount": 54, - "roofCount": 19 - }, - { - "id": "sion_0314", - "uuid": "{C9EF25A8-9B2D-476B-9322-B295C8D2F26A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1283.785, - 203.298, - -565.133 - ], - "size": [ - 16.328, - 10.104, - 19.234 - ], - "groundY": 198.246, - "roofY": 208.35, - "wallCount": 27, - "roofCount": 12 - }, - { - "id": "sion_0315", - "uuid": "{678C1E47-58CD-418B-9E6A-115CB3071BAC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1050.752, - 49.046, - -105.638 - ], - "size": [ - 14.465, - 11.232, - 14.37 - ], - "groundY": 43.43, - "roofY": 54.662, - "wallCount": 52, - "roofCount": 16 - }, - { - "id": "sion_0316", - "uuid": "{B398AD7F-FF7C-4B5D-BD37-2900A03B2739}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -622.449, - 27.16, - 42.828 - ], - "size": [ - 24.195, - 22.216, - 25.184 - ], - "groundY": 16.052, - "roofY": 38.268, - "wallCount": 134, - "roofCount": 31 - }, - { - "id": "sion_0317", - "uuid": "{EDB1890A-0BC4-41C1-8F15-3DEE4EAFE223}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -411.373, - 70.168, - -774.702 - ], - "size": [ - 16.434, - 11.933, - 17.08 - ], - "groundY": 64.202, - "roofY": 76.135, - "wallCount": 44, - "roofCount": 24 - }, - { - "id": "sion_0318", - "uuid": "{464BC89B-2290-411F-BF79-A651D56D7018}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -694.803, - 24.41, - 128.261 - ], - "size": [ - 58.996, - 26.37, - 45.12 - ], - "groundY": 11.225, - "roofY": 37.595, - "wallCount": 23, - "roofCount": 15 - }, - { - "id": "sion_0319", - "uuid": "{9A94CCD6-ED83-4778-A941-33AA199182B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -474.301, - 81.362, - -794.656 - ], - "size": [ - 21.414, - 11.394, - 20.074 - ], - "groundY": 75.665, - "roofY": 87.059, - "wallCount": 75, - "roofCount": 37 - }, - { - "id": "sion_0320", - "uuid": "{967E62E7-D9FE-4C03-9030-E556FFBDCB2D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -631.701, - 88.597, - -682.259 - ], - "size": [ - 23.887, - 12.694, - 27.198 - ], - "groundY": 82.25, - "roofY": 94.944, - "wallCount": 29, - "roofCount": 4 - }, - { - "id": "sion_0321", - "uuid": "{CB2B064A-3E09-44CC-9710-8B8F98E10D4B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -894.353, - 296.049, - -1473.438 - ], - "size": [ - 16.77, - 10.791, - 25.118 - ], - "groundY": 290.654, - "roofY": 301.445, - "wallCount": 33, - "roofCount": 14 - }, - { - "id": "sion_0322", - "uuid": "{672FA8B4-37FA-45DC-945B-6AC0609CB276}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1032.184, - 4.479, - 245.618 - ], - "size": [ - 18.164, - 12.779, - 11.594 - ], - "groundY": -1.91, - "roofY": 10.869, - "wallCount": 16, - "roofCount": 31 - }, - { - "id": "sion_0323", - "uuid": "{A2170063-66B9-48EB-91C9-3C8377B2B76F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -501.695, - 35.898, - -147.707 - ], - "size": [ - 22.359, - 15.283, - 22.746 - ], - "groundY": 28.257, - "roofY": 43.54, - "wallCount": 10, - "roofCount": 34 - }, - { - "id": "sion_0324", - "uuid": "{4CA7A693-B2EB-447D-8B56-0C3C1572D603}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1316.285, - 285.434, - -1307.145 - ], - "size": [ - 27.547, - 15.562, - 21.12 - ], - "groundY": 277.653, - "roofY": 293.215, - "wallCount": 59, - "roofCount": 31 - }, - { - "id": "sion_0325", - "uuid": "{6D7E356F-9F57-43F6-913F-F5A9B29F6ADA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1171.078, - 3.929, - 1014.128 - ], - "size": [ - 85.0, - 13.018, - 66.986 - ], - "groundY": -2.58, - "roofY": 10.438, - "wallCount": 29, - "roofCount": 29 - }, - { - "id": "sion_0326", - "uuid": "{EEC9C27D-3840-45B9-B905-54E0FCF0A29B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -720.615, - 295.455, - -1217.882 - ], - "size": [ - 23.949, - 14.556, - 22.441 - ], - "groundY": 288.177, - "roofY": 302.733, - "wallCount": 23, - "roofCount": 10 - }, - { - "id": "sion_0327", - "uuid": "{19AF82DD-C84D-4063-B205-01B2C4FB27E5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -464.594, - 56.358, - -575.055 - ], - "size": [ - 33.984, - 18.336, - 34.36 - ], - "groundY": 47.19, - "roofY": 65.526, - "wallCount": 109, - "roofCount": 47 - }, - { - "id": "sion_0328", - "uuid": "{2800718A-69A8-4463-AC75-EA419C6A8550}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -750.17, - 1.078, - 1033.381 - ], - "size": [ - 25.606, - 4.984, - 11.025 - ], - "groundY": -1.414, - "roofY": 3.57, - "wallCount": 28, - "roofCount": 29 - }, - { - "id": "sion_0329", - "uuid": "{81B055AE-FC4F-4AF6-8DB9-97896B452CD0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1235.834, - 3.652, - 726.516 - ], - "size": [ - 24.973, - 12.974, - 24.569 - ], - "groundY": -2.835, - "roofY": 10.139, - "wallCount": 123, - "roofCount": 26 - }, - { - "id": "sion_0330", - "uuid": "{0BFE095B-2D3D-4737-AFA4-459186E6DDC9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -553.902, - 29.236, - 15.553 - ], - "size": [ - 34.523, - 22.967, - 23.618 - ], - "groundY": 17.753, - "roofY": 40.719, - "wallCount": 11, - "roofCount": 7 - }, - { - "id": "sion_0331", - "uuid": "{10CAE089-8C0C-4703-BC2C-D07B7657D97E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1210.637, - 281.923, - -1114.543 - ], - "size": [ - 21.797, - 9.746, - 17.234 - ], - "groundY": 277.05, - "roofY": 286.796, - "wallCount": 49, - "roofCount": 20 - }, - { - "id": "sion_0332", - "uuid": "{05910818-B8BE-4C48-A662-0A4FA3A6D0D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1453.922, - 71.227, - 178.093 - ], - "size": [ - 20.859, - 11.208, - 20.352 - ], - "groundY": 65.623, - "roofY": 76.831, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0333", - "uuid": "{F3BA78BB-F982-4D3C-B9EE-21166795734A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1225.76, - -0.318, - 692.544 - ], - "size": [ - 9.613, - 4.966, - 15.693 - ], - "groundY": -2.801, - "roofY": 2.165, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_0334", - "uuid": "{5088C5CF-7D0E-4C24-B080-2DB6936E94D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -607.705, - 66.61, - -544.275 - ], - "size": [ - 20.941, - 13.799, - 20.548 - ], - "groundY": 59.71, - "roofY": 73.509, - "wallCount": 14, - "roofCount": 10 - }, - { - "id": "sion_0335", - "uuid": "{6C009759-EED2-49A4-ADE8-77C0F1E441C3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1409.705, - 3.137, - 739.389 - ], - "size": [ - 49.394, - 13.516, - 96.485 - ], - "groundY": -3.621, - "roofY": 9.895, - "wallCount": 56, - "roofCount": 41 - }, - { - "id": "sion_0336", - "uuid": "{6B5DFDF6-D5BF-4CEC-82AC-BBA08C7099C2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1441.1, - 100.391, - -129.624 - ], - "size": [ - 17.246, - 10.352, - 17.06 - ], - "groundY": 95.215, - "roofY": 105.567, - "wallCount": 65, - "roofCount": 12 - }, - { - "id": "sion_0337", - "uuid": "{16994336-313D-4ED0-8F22-36A17C7063A8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -649.123, - 26.018, - 110.678 - ], - "size": [ - 22.395, - 24.699, - 36.308 - ], - "groundY": 13.669, - "roofY": 38.368, - "wallCount": 25, - "roofCount": 18 - }, - { - "id": "sion_0338", - "uuid": "{540A80D3-9EC0-483C-A9E6-7DCB92566E5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -985.055, - 5.146, - 491.583 - ], - "size": [ - 71.594, - 15.947, - 53.809 - ], - "groundY": -2.827, - "roofY": 13.12, - "wallCount": 108, - "roofCount": 66 - }, - { - "id": "sion_0339", - "uuid": "{8266670C-1E3D-4846-BA81-E446AAA5B764}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -489.74, - 22.96, - 224.686 - ], - "size": [ - 21.691, - 22.063, - 18.958 - ], - "groundY": 11.929, - "roofY": 33.992, - "wallCount": 49, - "roofCount": 24 - }, - { - "id": "sion_0340", - "uuid": "{299FD68C-10C8-4FB5-BC72-4671319694CF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -505.482, - 20.726, - 270.259 - ], - "size": [ - 67.809, - 24.534, - 29.622 - ], - "groundY": 8.459, - "roofY": 32.993, - "wallCount": 49, - "roofCount": 21 - }, - { - "id": "sion_0341", - "uuid": "{3429A046-C4E5-4AEA-8786-9B99BB88EF13}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -542.689, - 4.378, - 799.911 - ], - "size": [ - 34.449, - 10.888, - 20.361 - ], - "groundY": -1.066, - "roofY": 9.822, - "wallCount": 48, - "roofCount": 22 - }, - { - "id": "sion_0342", - "uuid": "{56B1395C-528F-4B86-ABDB-805B7535A70F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1218.178, - 118.375, - -335.542 - ], - "size": [ - 9.902, - 8.698, - 16.355 - ], - "groundY": 114.026, - "roofY": 122.724, - "wallCount": 43, - "roofCount": 2 - }, - { - "id": "sion_0343", - "uuid": "{FE331CD3-9B8C-437F-8B0A-C4D81FFC3798}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1447.051, - 11.522, - 507.68 - ], - "size": [ - 25.875, - 28.534, - 19.666 - ], - "groundY": -2.745, - "roofY": 25.789, - "wallCount": 102, - "roofCount": 10 - }, - { - "id": "sion_0344", - "uuid": "{9F47EA75-20F1-45A8-B06B-A69FD0C22C6A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1071.59, - 294.0, - -1205.91 - ], - "size": [ - 9.203, - 8.183, - 8.578 - ], - "groundY": 289.909, - "roofY": 298.091, - "wallCount": 60, - "roofCount": 14 - }, - { - "id": "sion_0345", - "uuid": "{B213214F-5A94-4511-8FBE-14C02752F055}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -748.814, - 16.713, - 177.022 - ], - "size": [ - 10.152, - 13.878, - 9.726 - ], - "groundY": 9.774, - "roofY": 23.651, - "wallCount": 29, - "roofCount": 30 - }, - { - "id": "sion_0346", - "uuid": "{D6FEAE5E-7780-44C4-8689-FF7030E984E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -769.395, - 28.657, - -89.082 - ], - "size": [ - 27.727, - 20.246, - 27.484 - ], - "groundY": 18.534, - "roofY": 38.78, - "wallCount": 47, - "roofCount": 22 - }, - { - "id": "sion_0347", - "uuid": "{4CCBE34D-E6F5-414D-A5DB-315BA8708200}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1063.219, - 83.402, - -239.605 - ], - "size": [ - 24.594, - 13.56, - 18.208 - ], - "groundY": 76.622, - "roofY": 90.182, - "wallCount": 81, - "roofCount": 21 - }, - { - "id": "sion_0348", - "uuid": "{37F207D5-5F16-4873-8197-152BDB8CA030}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1206.896, - 56.617, - 16.279 - ], - "size": [ - 18.754, - 7.246, - 14.344 - ], - "groundY": 52.994, - "roofY": 60.24, - "wallCount": 31, - "roofCount": 6 - }, - { - "id": "sion_0349", - "uuid": "{4E9B75E7-9EBE-4DD6-B859-9A35DF3E80D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -722.934, - 47.151, - -275.74 - ], - "size": [ - 19.883, - 12.025, - 18.864 - ], - "groundY": 41.138, - "roofY": 53.163, - "wallCount": 29, - "roofCount": 34 - }, - { - "id": "sion_0350", - "uuid": "{0E76A872-340C-4632-A14A-F7916164E1C3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -848.066, - 18.844, - 97.31 - ], - "size": [ - 35.797, - 18.568, - 16.774 - ], - "groundY": 9.56, - "roofY": 28.128, - "wallCount": 35, - "roofCount": 27 - }, - { - "id": "sion_0351", - "uuid": "{E331AC9A-C442-4A68-8362-852F4388B8B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1341.463, - 288.902, - -1499.909 - ], - "size": [ - 28.145, - 10.793, - 24.582 - ], - "groundY": 283.506, - "roofY": 294.299, - "wallCount": 48, - "roofCount": 65 - }, - { - "id": "sion_0352", - "uuid": "{5AFE414F-CF8B-4D1C-8B78-E46042019D69}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1364.246, - 128.27, - -249.103 - ], - "size": [ - 8.727, - 7.303, - 8.229 - ], - "groundY": 124.619, - "roofY": 131.922, - "wallCount": 52, - "roofCount": 16 - }, - { - "id": "sion_0353", - "uuid": "{754314A2-256D-40C8-B3CF-4EF4879F0867}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -738.234, - 44.932, - -257.672 - ], - "size": [ - 18.766, - 10.916, - 19.266 - ], - "groundY": 39.474, - "roofY": 50.39, - "wallCount": 29, - "roofCount": 29 - }, - { - "id": "sion_0354", - "uuid": "{DD658A5D-F6A7-4861-ABC0-2BAA580F92B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1035.918, - 92.817, - -303.739 - ], - "size": [ - 16.969, - 11.35, - 17.352 - ], - "groundY": 87.142, - "roofY": 98.492, - "wallCount": 39, - "roofCount": 24 - }, - { - "id": "sion_0355", - "uuid": "{6250F041-18FF-4D3E-9782-E694F1F91F4D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -974.666, - 78.091, - -273.489 - ], - "size": [ - 21.059, - 13.036, - 14.061 - ], - "groundY": 71.573, - "roofY": 84.609, - "wallCount": 131, - "roofCount": 72 - }, - { - "id": "sion_0356", - "uuid": "{1CDEEC8F-3319-48DF-BDD8-2C2B69F9B4EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -872.143, - 294.364, - -1400.881 - ], - "size": [ - 18.754, - 11.93, - 17.18 - ], - "groundY": 288.399, - "roofY": 300.329, - "wallCount": 22, - "roofCount": 14 - }, - { - "id": "sion_0357", - "uuid": "{9CC72C7D-D75F-4159-9ACC-D90562328D18}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1397.281, - 8.204, - 614.315 - ], - "size": [ - 157.867, - 27.768, - 121.86 - ], - "groundY": -5.68, - "roofY": 22.088, - "wallCount": 300, - "roofCount": 126 - }, - { - "id": "sion_0358", - "uuid": "{98D964F5-D393-43CF-AB48-07C3EB6D1B23}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1071.301, - 293.861, - -1227.76 - ], - "size": [ - 22.102, - 12.9, - 17.356 - ], - "groundY": 287.411, - "roofY": 300.311, - "wallCount": 37, - "roofCount": 16 - }, - { - "id": "sion_0359", - "uuid": "{9CF39B8E-45EB-471F-87E2-F521FA73691D}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1194.012, - 5.559, - 887.951 - ], - "size": [ - 25.766, - 0.101, - 17.422 - ], - "groundY": 5.509, - "roofY": 5.609, - "wallCount": 1, - "roofCount": 2 - }, - { - "id": "sion_0360", - "uuid": "{92BB60A4-620C-488B-9B02-C11B50F181D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1072.754, - 105.091, - -383.865 - ], - "size": [ - 33.523, - 16.74, - 29.38 - ], - "groundY": 96.721, - "roofY": 113.461, - "wallCount": 34, - "roofCount": 11 - }, - { - "id": "sion_0361", - "uuid": "{A34BE852-13F6-42CF-819A-FF9E766F2869}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1523.51, - 4.63, - 397.164 - ], - "size": [ - 43.254, - 14.66, - 25.162 - ], - "groundY": -2.7, - "roofY": 11.96, - "wallCount": 76, - "roofCount": 37 - }, - { - "id": "sion_0362", - "uuid": "{79D3D657-D70B-4695-A0F8-6D6E2DFBC583}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -929.203, - 110.619, - -496.283 - ], - "size": [ - 34.75, - 10.13, - 20.65 - ], - "groundY": 105.554, - "roofY": 115.684, - "wallCount": 41, - "roofCount": 10 - }, - { - "id": "sion_0363", - "uuid": "{D688A359-1500-46BD-ABE5-A6DB3AD6FF3F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1242.533, - 281.816, - -1223.224 - ], - "size": [ - 20.254, - 13.228, - 20.468 - ], - "groundY": 275.202, - "roofY": 288.43, - "wallCount": 64, - "roofCount": 43 - }, - { - "id": "sion_0364", - "uuid": "{6B723F75-FE6E-438D-99C4-6FD9F64EB771}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -762.137, - 296.081, - -1224.971 - ], - "size": [ - 21.844, - 18.545, - 27.356 - ], - "groundY": 286.808, - "roofY": 305.353, - "wallCount": 37, - "roofCount": 12 - }, - { - "id": "sion_0365", - "uuid": "{CDCE14DF-72AD-4F59-ABFB-7AC8E5515B26}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -650.01, - 21.865, - 194.918 - ], - "size": [ - 35.863, - 26.373, - 30.715 - ], - "groundY": 8.678, - "roofY": 35.051, - "wallCount": 32, - "roofCount": 24 - }, - { - "id": "sion_0366", - "uuid": "{97DDA14D-73E8-446B-B32F-D022F021AF37}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -984.457, - 19.233, - -34.148 - ], - "size": [ - 17.711, - 12.245, - 16.839 - ], - "groundY": 13.111, - "roofY": 25.356, - "wallCount": 33, - "roofCount": 22 - }, - { - "id": "sion_0367", - "uuid": "{B4CFA458-5F02-49F9-8B7F-F9B8524C9188}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1489.355, - 4.832, - 790.998 - ], - "size": [ - 48.984, - 16.061, - 45.863 - ], - "groundY": -3.198, - "roofY": 12.862, - "wallCount": 81, - "roofCount": 27 - }, - { - "id": "sion_0368", - "uuid": "{63F64C13-57CD-43D2-8B66-7BBB588A670F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1051.148, - 295.699, - -1205.449 - ], - "size": [ - 19.914, - 10.647, - 12.254 - ], - "groundY": 290.376, - "roofY": 301.023, - "wallCount": 25, - "roofCount": 34 - }, - { - "id": "sion_0369", - "uuid": "{5C6C0B5F-CB78-4446-A3DE-A8F394ABD347}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -741.008, - 25.435, - -47.818 - ], - "size": [ - 20.625, - 14.764, - 18.342 - ], - "groundY": 18.053, - "roofY": 32.817, - "wallCount": 37, - "roofCount": 40 - }, - { - "id": "sion_0370", - "uuid": "{47974D42-C9AC-4420-A1CC-3013C2F0B769}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1391.639, - 202.925, - -533.895 - ], - "size": [ - 23.043, - 8.657, - 18.481 - ], - "groundY": 198.596, - "roofY": 207.253, - "wallCount": 28, - "roofCount": 25 - }, - { - "id": "sion_0371", - "uuid": "{A9A85468-20DD-4D56-86D9-51FFCC1CD1AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -793.973, - 0.78, - 473.036 - ], - "size": [ - 25.336, - 5.919, - 23.658 - ], - "groundY": -2.179, - "roofY": 3.74, - "wallCount": 31, - "roofCount": 10 - }, - { - "id": "sion_0372", - "uuid": "{3CBA95C7-CCEE-4EC9-B54F-62D2900EAEEC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -803.762, - 4.643, - 724.715 - ], - "size": [ - 120.07, - 12.306, - 87.723 - ], - "groundY": -1.51, - "roofY": 10.796, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_0373", - "uuid": "{B76EA4BC-A6BC-425D-BB35-C5A60681B92B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1142.023, - 297.45, - -1468.123 - ], - "size": [ - 22.531, - 11.984, - 28.098 - ], - "groundY": 291.458, - "roofY": 303.442, - "wallCount": 53, - "roofCount": 37 - }, - { - "id": "sion_0374", - "uuid": "{EBDE2702-E283-49D8-BF76-81361EB7A788}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -726.205, - 35.908, - -218.88 - ], - "size": [ - 32.027, - 16.661, - 26.262 - ], - "groundY": 27.578, - "roofY": 44.239, - "wallCount": 57, - "roofCount": 43 - }, - { - "id": "sion_0375", - "uuid": "{2884628B-AB7D-49C3-BCD9-FE065C56D74D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1291.895, - 289.79, - -1448.338 - ], - "size": [ - 7.773, - 5.999, - 8.77 - ], - "groundY": 286.791, - "roofY": 292.79, - "wallCount": 56, - "roofCount": 4 - }, - { - "id": "sion_0376", - "uuid": "{551D3662-A89E-4C24-A942-98A2FB5575B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -429.074, - 254.808, - -1493.823 - ], - "size": [ - 8.516, - 5.843, - 6.632 - ], - "groundY": 251.886, - "roofY": 257.729, - "wallCount": 21, - "roofCount": 10 - }, - { - "id": "sion_0377", - "uuid": "{B21770E4-A5FB-492E-8ACA-CE947C2244F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -500.195, - 73.769, - -720.156 - ], - "size": [ - 27.672, - 7.518, - 33.936 - ], - "groundY": 70.01, - "roofY": 77.528, - "wallCount": 20, - "roofCount": 11 - }, - { - "id": "sion_0378", - "uuid": "{4141EA21-59F1-421D-AD71-49393C7CD49D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1364.166, - 2.155, - 315.013 - ], - "size": [ - 46.027, - 8.643, - 40.261 - ], - "groundY": -2.166, - "roofY": 6.477, - "wallCount": 45, - "roofCount": 52 - }, - { - "id": "sion_0379", - "uuid": "{BA7EE55C-73DE-4BE6-9DFA-E23830D88FD4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1000.805, - 87.769, - -313.071 - ], - "size": [ - 18.062, - 12.046, - 14.53 - ], - "groundY": 81.746, - "roofY": 93.792, - "wallCount": 48, - "roofCount": 15 - }, - { - "id": "sion_0380", - "uuid": "{875728C5-85FE-4CAC-B947-7AE04A4C5F2C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -525.396, - 24.989, - -61.209 - ], - "size": [ - 14.434, - 4.934, - 11.236 - ], - "groundY": 22.522, - "roofY": 27.456, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_0381", - "uuid": "{62314A83-5B91-4C63-BB44-E781621C5F31}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -838.67, - 22.669, - -8.336 - ], - "size": [ - 37.348, - 21.579, - 51.004 - ], - "groundY": 11.88, - "roofY": 33.459, - "wallCount": 26, - "roofCount": 14 - }, - { - "id": "sion_0382", - "uuid": "{0F563D93-48E0-4F79-B144-71D01E5626D6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -462.031, - 30.395, - 47.608 - ], - "size": [ - 89.805, - 29.907, - 87.548 - ], - "groundY": 15.442, - "roofY": 45.349, - "wallCount": 195, - "roofCount": 131 - }, - { - "id": "sion_0383", - "uuid": "{9FE56FCA-2A8F-45AB-A2AF-4B0DFFBF95C4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1203.16, - 105.609, - -268.094 - ], - "size": [ - 17.852, - 12.712, - 15.896 - ], - "groundY": 99.253, - "roofY": 111.965, - "wallCount": 70, - "roofCount": 28 - }, - { - "id": "sion_0384", - "uuid": "{8171221C-D6C1-428B-A1C3-B3626B029398}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1356.266, - 56.329, - 120.656 - ], - "size": [ - 16.656, - 9.67, - 19.626 - ], - "groundY": 51.494, - "roofY": 61.164, - "wallCount": 36, - "roofCount": 18 - }, - { - "id": "sion_0385", - "uuid": "{7E703A92-5249-4C54-9B25-09D8F68BEA66}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1447.605, - 280.397, - -1046.224 - ], - "size": [ - 25.078, - 11.91, - 20.79 - ], - "groundY": 274.442, - "roofY": 286.352, - "wallCount": 55, - "roofCount": 64 - }, - { - "id": "sion_0386", - "uuid": "{852DDA41-5BF0-4913-98D5-0539EA7BA654}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1081.475, - 289.159, - -1257.944 - ], - "size": [ - 12.207, - 9.72, - 9.41 - ], - "groundY": 284.299, - "roofY": 294.019, - "wallCount": 60, - "roofCount": 23 - }, - { - "id": "sion_0387", - "uuid": "{73F85D6D-2888-4D56-B47C-F4E8D72B5443}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -817.221, - 79.373, - -333.26 - ], - "size": [ - 20.879, - 14.602, - 21.212 - ], - "groundY": 72.072, - "roofY": 86.674, - "wallCount": 23, - "roofCount": 4 - }, - { - "id": "sion_0388", - "uuid": "{C07C26CB-9EF4-40F0-AB87-A4ED33E27E01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1397.916, - 285.272, - -1300.493 - ], - "size": [ - 25.434, - 16.084, - 18.51 - ], - "groundY": 277.23, - "roofY": 293.314, - "wallCount": 29, - "roofCount": 30 - }, - { - "id": "sion_0389", - "uuid": "{4787E836-A7A6-4BD6-BE6C-B540EB15B4D7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1521.648, - 62.425, - 309.921 - ], - "size": [ - 8.289, - 7.714, - 8.031 - ], - "groundY": 58.568, - "roofY": 66.282, - "wallCount": 54, - "roofCount": 12 - }, - { - "id": "sion_0390", - "uuid": "{00AE8FBF-4D23-4354-8E6B-B8F23EFDB641}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1092.01, - 25.988, - -0.892 - ], - "size": [ - 44.301, - 20.132, - 34.854 - ], - "groundY": 15.922, - "roofY": 36.054, - "wallCount": 30, - "roofCount": 26 - }, - { - "id": "sion_0391", - "uuid": "{CF7698A2-847E-4880-A2D9-C6CCFCC7674F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1396.545, - 7.66, - 433.269 - ], - "size": [ - 65.488, - 22.202, - 34.356 - ], - "groundY": -3.441, - "roofY": 18.761, - "wallCount": 57, - "roofCount": 18 - }, - { - "id": "sion_0392", - "uuid": "{5967F1FB-E5E8-429B-A627-577584A5954D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1062.832, - 92.316, - -281.582 - ], - "size": [ - 32.367, - 11.078, - 21.332 - ], - "groundY": 86.777, - "roofY": 97.855, - "wallCount": 43, - "roofCount": 16 - }, - { - "id": "sion_0393", - "uuid": "{1D848C3A-CD25-4C83-82E9-23592DBE64F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -836.559, - 18.118, - 164.643 - ], - "size": [ - 30.508, - 22.827, - 14.672 - ], - "groundY": 6.705, - "roofY": 29.532, - "wallCount": 44, - "roofCount": 42 - }, - { - "id": "sion_0394", - "uuid": "{D5CA51E1-F5FE-403C-8780-66FFE47B5DE4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -729.211, - 66.427, - -359.954 - ], - "size": [ - 17.32, - 13.828, - 16.434 - ], - "groundY": 59.513, - "roofY": 73.341, - "wallCount": 29, - "roofCount": 33 - }, - { - "id": "sion_0395", - "uuid": "{4B44F959-C77B-48BA-BAC8-9B8006033163}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1105.166, - 209.876, - -748.364 - ], - "size": [ - 14.848, - 9.48, - 14.672 - ], - "groundY": 205.136, - "roofY": 214.616, - "wallCount": 40, - "roofCount": 2 - }, - { - "id": "sion_0396", - "uuid": "{64A77B83-63DA-49CD-9B06-0ACF5ED4900B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1227.787, - 278.034, - -1076.297 - ], - "size": [ - 20.348, - 14.314, - 15.992 - ], - "groundY": 270.877, - "roofY": 285.191, - "wallCount": 34, - "roofCount": 23 - }, - { - "id": "sion_0397", - "uuid": "{1B1635C9-BFE2-433F-A3A1-1D4F0B6E7BEB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -562.693, - 21.212, - 267.213 - ], - "size": [ - 28.246, - 24.501, - 18.584 - ], - "groundY": 8.961, - "roofY": 33.462, - "wallCount": 32, - "roofCount": 28 - }, - { - "id": "sion_0398", - "uuid": "{1C94931B-6D98-423E-B1BD-68C050CBACAF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1279.766, - 3.722, - 822.089 - ], - "size": [ - 43.461, - 13.446, - 34.882 - ], - "groundY": -3.001, - "roofY": 10.445, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0399", - "uuid": "{7AB459CA-0199-4D33-9442-CE7220793DA6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -532.869, - 27.257, - 51.075 - ], - "size": [ - 17.66, - 24.269, - 19.906 - ], - "groundY": 15.122, - "roofY": 39.391, - "wallCount": 42, - "roofCount": 41 - }, - { - "id": "sion_0400", - "uuid": "{E80E7AF8-7FC6-4E48-8365-D2E46B4A3E01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -920.27, - 96.035, - -326.975 - ], - "size": [ - 17.906, - 17.012, - 17.782 - ], - "groundY": 87.529, - "roofY": 104.541, - "wallCount": 43, - "roofCount": 35 - }, - { - "id": "sion_0401", - "uuid": "{5A63E535-0686-420F-B7C1-6189F4356938}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -456.686, - 5.228, - 950.75 - ], - "size": [ - 146.223, - 12.287, - 111.673 - ], - "groundY": -0.915, - "roofY": 11.372, - "wallCount": 16, - "roofCount": 29 - }, - { - "id": "sion_0402", - "uuid": "{837FA505-8CE3-45AE-8FF4-24542B08E0D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1249.486, - 279.313, - -1073.354 - ], - "size": [ - 9.426, - 10.7, - 13.44 - ], - "groundY": 273.963, - "roofY": 284.663, - "wallCount": 47, - "roofCount": 19 - }, - { - "id": "sion_0403", - "uuid": "{86CECAA4-87DB-4972-A33C-E0DD017F425D}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1177.223, - 15.257, - 427.032 - ], - "size": [ - 69.086, - 37.698, - 48.224 - ], - "groundY": -3.592, - "roofY": 34.106, - "wallCount": 59, - "roofCount": 124 - }, - { - "id": "sion_0404", - "uuid": "{459A48B5-9EEF-495B-8614-B340609E2C1F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -705.654, - 63.776, - -454.878 - ], - "size": [ - 36.84, - 9.578, - 23.08 - ], - "groundY": 58.987, - "roofY": 68.565, - "wallCount": 51, - "roofCount": 22 - }, - { - "id": "sion_0405", - "uuid": "{413BA900-C7D9-4A2D-83DA-6DF8A04A8245}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1281.783, - -0.748, - 688.521 - ], - "size": [ - 13.09, - 5.116, - 24.81 - ], - "groundY": -3.306, - "roofY": 1.81, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0406", - "uuid": "{AB649AE7-EE30-4984-8B71-31415F965107}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -630.988, - 31.661, - -101.706 - ], - "size": [ - 37.32, - 21.48, - 53.486 - ], - "groundY": 20.921, - "roofY": 42.401, - "wallCount": 12, - "roofCount": 22 - }, - { - "id": "sion_0407", - "uuid": "{5C085679-4595-4CEC-B94B-39985C80DA30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -712.014, - 11.415, - 271.52 - ], - "size": [ - 12.668, - 13.45, - 11.7 - ], - "groundY": 4.69, - "roofY": 18.139, - "wallCount": 62, - "roofCount": 18 - }, - { - "id": "sion_0408", - "uuid": "{0D674C64-ABDB-461B-8B43-65A838FFF4BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1512.643, - 258.438, - -847.716 - ], - "size": [ - 24.684, - 10.419, - 17.54 - ], - "groundY": 253.229, - "roofY": 263.648, - "wallCount": 51, - "roofCount": 31 - }, - { - "id": "sion_0409", - "uuid": "{4A5C0A7B-74E3-406F-8502-87A3F098282E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1286.244, - 295.428, - -1528.455 - ], - "size": [ - 26.652, - 12.016, - 28.952 - ], - "groundY": 289.42, - "roofY": 301.436, - "wallCount": 52, - "roofCount": 29 - }, - { - "id": "sion_0410", - "uuid": "{7B856F92-5921-4C4F-9561-F651748A9299}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -594.189, - 8.574, - 549.967 - ], - "size": [ - 26.051, - 20.559, - 36.62 - ], - "groundY": -1.706, - "roofY": 18.853, - "wallCount": 39, - "roofCount": 53 - }, - { - "id": "sion_0411", - "uuid": "{3B03F95F-2BB0-4FDB-BFEB-74FB3A8DE266}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1002.934, - 2.641, - 297.265 - ], - "size": [ - 13.078, - 11.954, - 11.681 - ], - "groundY": -3.336, - "roofY": 8.618, - "wallCount": 32, - "roofCount": 21 - }, - { - "id": "sion_0412", - "uuid": "{F882FD3E-70F1-4DDA-93F1-343A072427EE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1142.891, - 211.265, - -764.045 - ], - "size": [ - 18.703, - 8.879, - 15.162 - ], - "groundY": 206.826, - "roofY": 215.704, - "wallCount": 21, - "roofCount": 2 - }, - { - "id": "sion_0413", - "uuid": "{575AD71A-A1CE-4318-9ABB-CE1D7D89679E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -579.436, - 17.112, - 231.704 - ], - "size": [ - 12.754, - 13.148, - 11.604 - ], - "groundY": 10.538, - "roofY": 23.686, - "wallCount": 34, - "roofCount": 25 - }, - { - "id": "sion_0414", - "uuid": "{D88764F9-E411-469D-84E3-7CC0B21F0F01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -913.408, - 295.284, - -1458.688 - ], - "size": [ - 10.879, - 7.442, - 12.079 - ], - "groundY": 291.563, - "roofY": 299.005, - "wallCount": 38, - "roofCount": 27 - }, - { - "id": "sion_0415", - "uuid": "{1CEDE183-9FE9-4AFC-8AAC-ED435E006133}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1121.471, - 0.006, - 516.769 - ], - "size": [ - 20.207, - 5.086, - 8.983 - ], - "groundY": -2.537, - "roofY": 2.549, - "wallCount": 20, - "roofCount": 6 - }, - { - "id": "sion_0416", - "uuid": "{45A40737-E08A-4AEF-8BD2-F6614EC3C9ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -493.879, - 59.18, - -588.183 - ], - "size": [ - 21.648, - 17.036, - 14.595 - ], - "groundY": 50.662, - "roofY": 67.698, - "wallCount": 24, - "roofCount": 31 - }, - { - "id": "sion_0417", - "uuid": "{4623F9BD-4443-45C5-8053-E6C6CD987A36}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1476.021, - 277.093, - -1030.241 - ], - "size": [ - 19.09, - 12.652, - 22.544 - ], - "groundY": 270.767, - "roofY": 283.419, - "wallCount": 83, - "roofCount": 34 - }, - { - "id": "sion_0418", - "uuid": "{E071EE72-68DC-4010-ABAC-16338C61BB21}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -1008.852, - 6.474, - 783.72 - ], - "size": [ - 181.758, - 18.365, - 109.43 - ], - "groundY": -2.708, - "roofY": 15.657, - "wallCount": 169, - "roofCount": 138 - }, - { - "id": "sion_0419", - "uuid": "{03211C89-D8BF-45E3-81AB-5FC09199CB22}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1230.848, - 283.81, - -1231.45 - ], - "size": [ - 16.227, - 14.288, - 20.318 - ], - "groundY": 276.666, - "roofY": 290.954, - "wallCount": 42, - "roofCount": 17 - }, - { - "id": "sion_0420", - "uuid": "{6D0328C4-E7D6-46B5-A34C-DAEA0C503AF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -654.75, - 1.73, - 382.696 - ], - "size": [ - 29.859, - 6.605, - 27.7 - ], - "groundY": -1.572, - "roofY": 5.033, - "wallCount": 24, - "roofCount": 11 - }, - { - "id": "sion_0421", - "uuid": "{02E1E779-C270-4AF8-8575-774A9DC1EC86}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1238.145, - 290.384, - -1357.787 - ], - "size": [ - 26.516, - 15.102, - 22.314 - ], - "groundY": 282.833, - "roofY": 297.935, - "wallCount": 57, - "roofCount": 47 - }, - { - "id": "sion_0422", - "uuid": "{69E9BCA6-03A4-4880-8009-BA7AFC282992}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1284.125, - 283.423, - -1313.054 - ], - "size": [ - 15.141, - 7.422, - 21.972 - ], - "groundY": 279.712, - "roofY": 287.134, - "wallCount": 14, - "roofCount": 4 - }, - { - "id": "sion_0423", - "uuid": "{AB36993F-E33A-44A4-836A-4EE594056AAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -422.361, - 17.053, - 196.531 - ], - "size": [ - 6.793, - 7.369, - 9.988 - ], - "groundY": 13.368, - "roofY": 20.737, - "wallCount": 29, - "roofCount": 14 - }, - { - "id": "sion_0424", - "uuid": "{9EFAE6D5-7E38-4FDB-A0A5-EDD699100F8B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1382.004, - 60.27, - 123.613 - ], - "size": [ - 13.086, - 15.208, - 15.238 - ], - "groundY": 52.666, - "roofY": 67.874, - "wallCount": 63, - "roofCount": 16 - }, - { - "id": "sion_0425", - "uuid": "{EA20A2FD-052B-40DA-889C-DE8507908FCB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1178.609, - 288.386, - -1173.361 - ], - "size": [ - 15.195, - 11.938, - 15.025 - ], - "groundY": 282.417, - "roofY": 294.355, - "wallCount": 44, - "roofCount": 10 - }, - { - "id": "sion_0426", - "uuid": "{9E5DB2E0-ED8E-4459-97BF-A04DA1E97615}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1193.461, - 297.548, - -1513.454 - ], - "size": [ - 13.266, - 11.304, - 12.439 - ], - "groundY": 291.896, - "roofY": 303.2, - "wallCount": 56, - "roofCount": 28 - }, - { - "id": "sion_0427", - "uuid": "{5B228987-14DE-4655-9B16-652549F793C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -852.176, - 295.932, - -1448.577 - ], - "size": [ - 20.273, - 10.241, - 16.51 - ], - "groundY": 290.812, - "roofY": 301.053, - "wallCount": 46, - "roofCount": 17 - }, - { - "id": "sion_0428", - "uuid": "{96EF9646-8188-4F46-94E4-FDC451FD1586}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1493.828, - 272.648, - -1026.661 - ], - "size": [ - 13.398, - 13.392, - 17.076 - ], - "groundY": 265.952, - "roofY": 279.344, - "wallCount": 80, - "roofCount": 18 - }, - { - "id": "sion_0429", - "uuid": "{7F07C2A4-A150-455C-9431-B534B95122AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -531.643, - 31.512, - -149.139 - ], - "size": [ - 21.809, - 9.561, - 13.632 - ], - "groundY": 26.732, - "roofY": 36.293, - "wallCount": 38, - "roofCount": 33 - }, - { - "id": "sion_0430", - "uuid": "{ED65DC7A-2B00-45EA-802A-38FF10C85939}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -511.867, - 8.5, - 414.249 - ], - "size": [ - 16.477, - 12.686, - 16.426 - ], - "groundY": 2.157, - "roofY": 14.843, - "wallCount": 72, - "roofCount": 49 - }, - { - "id": "sion_0431", - "uuid": "{75D0CBC6-DC0C-4096-9432-EE633B894662}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -514.426, - 35.299, - -83.155 - ], - "size": [ - 18.969, - 22.781, - 17.238 - ], - "groundY": 23.909, - "roofY": 46.689, - "wallCount": 63, - "roofCount": 71 - }, - { - "id": "sion_0432", - "uuid": "{25339E7B-227C-4B52-8DE8-02FA53236E31}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -994.432, - 93.969, - -391.767 - ], - "size": [ - 31.988, - 16.346, - 30.478 - ], - "groundY": 85.796, - "roofY": 102.142, - "wallCount": 19, - "roofCount": 21 - }, - { - "id": "sion_0433", - "uuid": "{7B649991-C467-4116-93EE-757096E4D678}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1241.684, - 47.407, - 75.296 - ], - "size": [ - 14.172, - 12.584, - 12.63 - ], - "groundY": 41.115, - "roofY": 53.699, - "wallCount": 87, - "roofCount": 38 - }, - { - "id": "sion_0434", - "uuid": "{76540D60-77E5-404F-9C67-5DE9803FC2AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -775.076, - 17.936, - 171.434 - ], - "size": [ - 10.324, - 15.266, - 10.398 - ], - "groundY": 10.303, - "roofY": 25.569, - "wallCount": 47, - "roofCount": 36 - }, - { - "id": "sion_0435", - "uuid": "{EACF4716-3C43-4342-AB30-CB075E6005B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1228.615, - 118.63, - -331.566 - ], - "size": [ - 19.832, - 9.328, - 20.22 - ], - "groundY": 113.966, - "roofY": 123.294, - "wallCount": 47, - "roofCount": 2 - }, - { - "id": "sion_0436", - "uuid": "{DA1D9F65-9F99-4F72-8A26-DFFF20B625C3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1278.49, - 1.547, - 885.736 - ], - "size": [ - 11.512, - 8.614, - 27.746 - ], - "groundY": -2.76, - "roofY": 5.854, - "wallCount": 19, - "roofCount": 35 - }, - { - "id": "sion_0437", - "uuid": "{BF6BEF71-84C4-4169-8622-078B45E66118}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1521.174, - 272.711, - -1439.095 - ], - "size": [ - 11.738, - 7.79, - 11.068 - ], - "groundY": 268.816, - "roofY": 276.606, - "wallCount": 39, - "roofCount": 26 - }, - { - "id": "sion_0438", - "uuid": "{D7FF2B1B-B92A-4AF9-8AFE-5A8A56534111}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1008.467, - 296.543, - -1372.559 - ], - "size": [ - 16.16, - 11.134, - 19.122 - ], - "groundY": 290.976, - "roofY": 302.11, - "wallCount": 61, - "roofCount": 35 - }, - { - "id": "sion_0439", - "uuid": "{91440531-E8DA-4711-B8D1-0414BAC55CDF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1337.656, - 266.84, - -1006.968 - ], - "size": [ - 18.438, - 9.151, - 25.603 - ], - "groundY": 262.264, - "roofY": 271.415, - "wallCount": 48, - "roofCount": 12 - }, - { - "id": "sion_0440", - "uuid": "{D04B5997-0FD0-47A8-AC5B-07ACDC6C16BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1057.359, - 1.904, - 880.455 - ], - "size": [ - 43.477, - 9.295, - 71.008 - ], - "groundY": -2.744, - "roofY": 6.551, - "wallCount": 25, - "roofCount": 40 - }, - { - "id": "sion_0441", - "uuid": "{158FB49C-92C6-43A5-BC21-BF9AC5E67BCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -607.971, - 75.153, - -594.854 - ], - "size": [ - 27.863, - 16.77, - 23.173 - ], - "groundY": 66.768, - "roofY": 83.538, - "wallCount": 62, - "roofCount": 22 - }, - { - "id": "sion_0442", - "uuid": "{328B78F0-7B45-4657-9CFC-0222CC31EBA4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -901.541, - 102.045, - -482.988 - ], - "size": [ - 61.91, - 12.867, - 59.428 - ], - "groundY": 95.611, - "roofY": 108.478, - "wallCount": 109, - "roofCount": 37 - }, - { - "id": "sion_0443", - "uuid": "{2AB60A83-A421-4583-AB33-4646718EEB8A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1491.398, - 5.728, - 513.321 - ], - "size": [ - 23.945, - 18.714, - 43.846 - ], - "groundY": -3.629, - "roofY": 15.085, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0444", - "uuid": "{62DCFDAE-2654-4D27-A633-ECFE2D53AD38}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1117.234, - 95.423, - -259.59 - ], - "size": [ - 11.172, - 9.294, - 10.479 - ], - "groundY": 90.776, - "roofY": 100.07, - "wallCount": 48, - "roofCount": 28 - }, - { - "id": "sion_0445", - "uuid": "{3733F9C7-5CFE-484F-9CC6-A53EBFEC8020}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1274.602, - 207.638, - -650.408 - ], - "size": [ - 14.367, - 9.742, - 15.0 - ], - "groundY": 202.767, - "roofY": 212.509, - "wallCount": 29, - "roofCount": 10 - }, - { - "id": "sion_0446", - "uuid": "{3F8248B9-AC6D-4097-9C4E-D4404D565090}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1430.059, - 272.542, - -1006.749 - ], - "size": [ - 18.578, - 11.365, - 16.965 - ], - "groundY": 266.859, - "roofY": 278.224, - "wallCount": 24, - "roofCount": 14 - }, - { - "id": "sion_0447", - "uuid": "{6A72E26F-BB8F-4AC6-B183-D96786EEA17E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1373.83, - 286.107, - -1320.378 - ], - "size": [ - 17.129, - 11.94, - 15.204 - ], - "groundY": 280.137, - "roofY": 292.077, - "wallCount": 37, - "roofCount": 17 - }, - { - "id": "sion_0448", - "uuid": "{5839F4AC-1CC2-4973-BAF4-4849F0BC8A0A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -403.691, - 27.896, - 121.587 - ], - "size": [ - 21.68, - 22.101, - 25.859 - ], - "groundY": 16.846, - "roofY": 38.947, - "wallCount": 19, - "roofCount": 14 - }, - { - "id": "sion_0449", - "uuid": "{EBD44EC8-3FE1-4EBF-B9DE-D8D3F2CF2686}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -915.096, - 85.967, - -376.221 - ], - "size": [ - 17.199, - 9.492, - 23.904 - ], - "groundY": 81.221, - "roofY": 90.713, - "wallCount": 45, - "roofCount": 12 - }, - { - "id": "sion_0450", - "uuid": "{76406B01-1130-4764-A0DF-0FFC51BDFEF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -866.92, - 0.741, - 233.574 - ], - "size": [ - 13.324, - 4.596, - 9.962 - ], - "groundY": -1.557, - "roofY": 3.039, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_0451", - "uuid": "{791D71B2-971F-48CA-8867-90A13E68BFDF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1242.566, - 267.624, - -1000.466 - ], - "size": [ - 13.938, - 11.021, - 12.714 - ], - "groundY": 262.114, - "roofY": 273.135, - "wallCount": 46, - "roofCount": 14 - }, - { - "id": "sion_0452", - "uuid": "{355BC443-8059-4FD4-8973-9FE62276B7BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1328.162, - 244.759, - -825.435 - ], - "size": [ - 20.902, - 10.737, - 18.845 - ], - "groundY": 239.391, - "roofY": 250.128, - "wallCount": 49, - "roofCount": 24 - }, - { - "id": "sion_0453", - "uuid": "{D2AF8E4E-9AE0-4B68-AED3-68DA6E648D7A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -587.965, - 67.478, - -567.904 - ], - "size": [ - 22.883, - 15.352, - 21.612 - ], - "groundY": 59.802, - "roofY": 75.154, - "wallCount": 14, - "roofCount": 10 - }, - { - "id": "sion_0454", - "uuid": "{BBC2172D-44A8-4271-BAEE-497FEC6BA57F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -801.205, - 105.789, - -578.229 - ], - "size": [ - 18.543, - 13.328, - 20.247 - ], - "groundY": 99.125, - "roofY": 112.453, - "wallCount": 56, - "roofCount": 28 - }, - { - "id": "sion_0455", - "uuid": "{D5A8CD49-0DA4-488E-A755-F48241C1F899}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1351.693, - 194.579, - -477.835 - ], - "size": [ - 7.574, - 7.554, - 8.738 - ], - "groundY": 190.802, - "roofY": 198.356, - "wallCount": 47, - "roofCount": 15 - }, - { - "id": "sion_0456", - "uuid": "{8A96E266-99AA-49F6-A3EA-3B1B9DEE30DF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -633.781, - 69.606, - -515.62 - ], - "size": [ - 22.547, - 17.295, - 22.79 - ], - "groundY": 60.959, - "roofY": 78.254, - "wallCount": 24, - "roofCount": 53 - }, - { - "id": "sion_0457", - "uuid": "{B3CFF8AB-A71D-49EB-85B0-6EE36EF1752C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1339.395, - 281.769, - -1115.732 - ], - "size": [ - 24.414, - 13.038, - 18.407 - ], - "groundY": 275.25, - "roofY": 288.288, - "wallCount": 34, - "roofCount": 32 - }, - { - "id": "sion_0458", - "uuid": "{386A1FA0-35F4-4024-BB0E-85B8BBE7D875}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -796.512, - 10.968, - 247.023 - ], - "size": [ - 42.086, - 19.524, - 31.168 - ], - "groundY": 1.206, - "roofY": 20.73, - "wallCount": 47, - "roofCount": 52 - }, - { - "id": "sion_0459", - "uuid": "{08DCEC80-420E-4420-9716-B82F323D79EB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -504.982, - 2.663, - 856.651 - ], - "size": [ - 20.106, - 7.31, - 29.306 - ], - "groundY": -0.992, - "roofY": 6.317, - "wallCount": 25, - "roofCount": 10 - }, - { - "id": "sion_0460", - "uuid": "{7FBB26EA-AC60-4B21-A702-F054163C84CF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -753.082, - 12.525, - 264.234 - ], - "size": [ - 18.93, - 17.178, - 15.916 - ], - "groundY": 3.936, - "roofY": 21.114, - "wallCount": 41, - "roofCount": 56 - }, - { - "id": "sion_0461", - "uuid": "{E7B58247-922E-4F4A-9C15-B58BEA0753A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -532.154, - 21.385, - 88.203 - ], - "size": [ - 11.645, - 9.772, - 14.441 - ], - "groundY": 16.499, - "roofY": 26.271, - "wallCount": 19, - "roofCount": 28 - }, - { - "id": "sion_0462", - "uuid": "{E77A8C2F-5A3F-4B36-B3FD-ADECB49B907F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -786.596, - 67.995, - -308.543 - ], - "size": [ - 28.988, - 9.458, - 23.801 - ], - "groundY": 63.266, - "roofY": 72.724, - "wallCount": 27, - "roofCount": 21 - }, - { - "id": "sion_0463", - "uuid": "{93695C96-D95D-406A-8685-A3CA61C42648}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1502.207, - 53.895, - 282.332 - ], - "size": [ - 24.391, - 14.368, - 35.844 - ], - "groundY": 46.711, - "roofY": 61.079, - "wallCount": 70, - "roofCount": 20 - }, - { - "id": "sion_0464", - "uuid": "{7986870E-EE45-4B13-8850-57441B2F2DD6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -735.277, - 5.412, - 450.096 - ], - "size": [ - 40.391, - 13.888, - 40.149 - ], - "groundY": -1.532, - "roofY": 12.356, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_0465", - "uuid": "{20C5D2A1-747D-4CCD-9D6F-8AACD82B41B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1323.412, - 206.146, - -600.305 - ], - "size": [ - 31.668, - 9.354, - 21.588 - ], - "groundY": 201.469, - "roofY": 210.823, - "wallCount": 37, - "roofCount": 22 - }, - { - "id": "sion_0466", - "uuid": "{9B9ECE1D-6C0A-4EB5-BAFB-8CB9C0DCEDA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1157.881, - 209.259, - -707.77 - ], - "size": [ - 36.168, - 10.299, - 33.72 - ], - "groundY": 204.11, - "roofY": 214.409, - "wallCount": 42, - "roofCount": 12 - }, - { - "id": "sion_0467", - "uuid": "{78F9D6ED-5558-49BE-ADC5-A4C8A4B18D98}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -598.756, - 29.785, - -16.351 - ], - "size": [ - 26.691, - 20.575, - 20.648 - ], - "groundY": 19.498, - "roofY": 40.073, - "wallCount": 20, - "roofCount": 18 - }, - { - "id": "sion_0468", - "uuid": "{C40F273F-1D0C-4F77-AD50-08D1BB80F614}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1031.893, - 55.577, - -135.654 - ], - "size": [ - 29.137, - 11.878, - 16.899 - ], - "groundY": 49.638, - "roofY": 61.516, - "wallCount": 59, - "roofCount": 20 - }, - { - "id": "sion_0469", - "uuid": "{1E8ED1EE-7C6E-4ABE-BC1D-5111E5C4679E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -715.264, - 55.273, - -335.837 - ], - "size": [ - 20.105, - 11.367, - 16.727 - ], - "groundY": 49.59, - "roofY": 60.957, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0470", - "uuid": "{8E626F30-3B39-4F5A-B1B9-E22E56E24347}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1267.715, - 292.274, - -1388.264 - ], - "size": [ - 13.359, - 9.47, - 18.512 - ], - "groundY": 287.539, - "roofY": 297.009, - "wallCount": 37, - "roofCount": 19 - }, - { - "id": "sion_0471", - "uuid": "{C7342E45-EC7B-46C3-90E6-2F3A5D314C13}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -405.119, - 18.63, - 156.277 - ], - "size": [ - 27.816, - 9.786, - 29.936 - ], - "groundY": 13.737, - "roofY": 23.523, - "wallCount": 25, - "roofCount": 2 - }, - { - "id": "sion_0472", - "uuid": "{35BA07F1-8368-414A-99DF-CDC6DB772C21}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -478.377, - 35.777, - -87.573 - ], - "size": [ - 41.067, - 24.346, - 39.11 - ], - "groundY": 23.604, - "roofY": 47.95, - "wallCount": 56, - "roofCount": 15 - }, - { - "id": "sion_0473", - "uuid": "{81036C80-DD77-472E-A966-8E9CCB67ADF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1413.898, - 232.928, - -771.792 - ], - "size": [ - 15.234, - 14.61, - 17.695 - ], - "groundY": 225.623, - "roofY": 240.233, - "wallCount": 58, - "roofCount": 8 - }, - { - "id": "sion_0474", - "uuid": "{A4EA7454-9265-4F3B-ABA7-E09B46ED0DB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -750.062, - 16.064, - 227.063 - ], - "size": [ - 16.922, - 18.211, - 13.112 - ], - "groundY": 6.959, - "roofY": 25.17, - "wallCount": 44, - "roofCount": 25 - }, - { - "id": "sion_0475", - "uuid": "{C97F04B0-2387-4C06-B7ED-84D7363DF3EF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1375.225, - 276.963, - -1259.782 - ], - "size": [ - 16.559, - 9.405, - 17.38 - ], - "groundY": 272.261, - "roofY": 281.665, - "wallCount": 55, - "roofCount": 14 - }, - { - "id": "sion_0476", - "uuid": "{5C659C12-8A60-4F5B-969E-94E746A32939}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1221.439, - 214.056, - -743.153 - ], - "size": [ - 15.996, - 9.164, - 13.424 - ], - "groundY": 209.474, - "roofY": 218.638, - "wallCount": 38, - "roofCount": 25 - }, - { - "id": "sion_0477", - "uuid": "{ECD84F8F-2D69-4321-9FF9-BA86782D6C4E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -799.164, - 76.555, - -355.819 - ], - "size": [ - 19.562, - 12.129, - 24.726 - ], - "groundY": 70.491, - "roofY": 82.62, - "wallCount": 34, - "roofCount": 40 - }, - { - "id": "sion_0478", - "uuid": "{70BD3859-0E3F-466C-B8DF-EBACCAF734AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -789.762, - 22.245, - 81.922 - ], - "size": [ - 24.953, - 21.111, - 26.538 - ], - "groundY": 11.69, - "roofY": 32.801, - "wallCount": 14, - "roofCount": 42 - }, - { - "id": "sion_0479", - "uuid": "{B204E27E-5239-45B5-AEA2-D593ABC803ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1347.314, - 6.292, - 693.172 - ], - "size": [ - 52.418, - 20.476, - 32.895 - ], - "groundY": -3.946, - "roofY": 16.53, - "wallCount": 88, - "roofCount": 113 - }, - { - "id": "sion_0480", - "uuid": "{0C6DD67E-D1D5-4F29-A02C-99162613CA16}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -635.451, - 8.851, - 919.474 - ], - "size": [ - 119.777, - 19.399, - 105.626 - ], - "groundY": -0.848, - "roofY": 18.551, - "wallCount": 20, - "roofCount": 4 - }, - { - "id": "sion_0481", - "uuid": "{45083B8F-4A36-4DD6-8BF5-7FA79610EC62}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -474.494, - 6.976, - 467.48 - ], - "size": [ - 29.723, - 11.29, - 34.173 - ], - "groundY": 1.331, - "roofY": 12.621, - "wallCount": 23, - "roofCount": 6 - }, - { - "id": "sion_0482", - "uuid": "{760C7A68-EDF1-4A48-BF19-66EFAFB5923E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -765.355, - 58.923, - -296.462 - ], - "size": [ - 17.211, - 10.388, - 16.352 - ], - "groundY": 53.729, - "roofY": 64.117, - "wallCount": 13, - "roofCount": 24 - }, - { - "id": "sion_0483", - "uuid": "{BBA31A1A-1A22-4658-BE04-176C843AD42B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1402.266, - 2.668, - 326.079 - ], - "size": [ - 11.328, - 10.618, - 12.186 - ], - "groundY": -2.641, - "roofY": 7.977, - "wallCount": 45, - "roofCount": 18 - }, - { - "id": "sion_0484", - "uuid": "{7AF69BA5-3103-4DE6-A368-D3A05198CF71}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1460.387, - 279.647, - -1037.058 - ], - "size": [ - 13.758, - 12.612, - 14.856 - ], - "groundY": 273.341, - "roofY": 285.953, - "wallCount": 52, - "roofCount": 13 - }, - { - "id": "sion_0485", - "uuid": "{B8C98023-8E0B-4F6A-92D2-8FBD6F8A3056}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1473.478, - 44.75, - 277.405 - ], - "size": [ - 21.598, - 11.947, - 34.204 - ], - "groundY": 38.777, - "roofY": 50.723, - "wallCount": 92, - "roofCount": 46 - }, - { - "id": "sion_0486", - "uuid": "{FCAAADAE-9508-4842-AE65-A0A632AD6D74}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1408.293, - 244.323, - -862.541 - ], - "size": [ - 23.484, - 10.319, - 16.455 - ], - "groundY": 239.163, - "roofY": 249.482, - "wallCount": 32, - "roofCount": 15 - }, - { - "id": "sion_0487", - "uuid": "{D697E404-2AC3-4EA4-B333-78A415AB1462}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1143.703, - -0.162, - 515.552 - ], - "size": [ - 22.148, - 5.254, - 12.07 - ], - "groundY": -2.789, - "roofY": 2.465, - "wallCount": 32, - "roofCount": 11 - }, - { - "id": "sion_0488", - "uuid": "{A1D252E6-014A-4882-885B-DDDD206B4009}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1214.086, - 138.562, - -383.602 - ], - "size": [ - 17.891, - 7.196, - 15.748 - ], - "groundY": 134.964, - "roofY": 142.16, - "wallCount": 37, - "roofCount": 11 - }, - { - "id": "sion_0489", - "uuid": "{436323AD-8B60-407B-A1DC-7A1C4E0FE556}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1238.037, - 284.911, - -1112.889 - ], - "size": [ - 25.996, - 14.25, - 41.64 - ], - "groundY": 277.786, - "roofY": 292.036, - "wallCount": 87, - "roofCount": 46 - }, - { - "id": "sion_0490", - "uuid": "{A7AFE0A8-C174-41C4-A2EB-00055C1CC02A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1349.588, - 64.235, - 42.715 - ], - "size": [ - 13.668, - 5.988, - 16.53 - ], - "groundY": 61.241, - "roofY": 67.229, - "wallCount": 23, - "roofCount": 4 - }, - { - "id": "sion_0491", - "uuid": "{564B23F8-622A-4959-A502-D16BD9C2C407}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1350.064, - 67.961, - 68.477 - ], - "size": [ - 23.801, - 14.294, - 17.75 - ], - "groundY": 60.814, - "roofY": 75.108, - "wallCount": 114, - "roofCount": 22 - }, - { - "id": "sion_0492", - "uuid": "{987B8B1B-6560-4594-9FAE-07F148E6EEF4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -672.133, - 86.743, - -572.695 - ], - "size": [ - 30.398, - 12.742, - 24.028 - ], - "groundY": 80.372, - "roofY": 93.114, - "wallCount": 29, - "roofCount": 24 - }, - { - "id": "sion_0493", - "uuid": "{EC5C3CD1-18AE-4A9E-854E-E7110ED98B0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1069.502, - 47.541, - -84.901 - ], - "size": [ - 12.387, - 10.052, - 15.646 - ], - "groundY": 42.515, - "roofY": 52.567, - "wallCount": 30, - "roofCount": 2 - }, - { - "id": "sion_0494", - "uuid": "{56C1167D-BB76-41B3-8454-C8642A232B59}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1410.711, - 3.142, - 856.089 - ], - "size": [ - 15.484, - 12.424, - 12.271 - ], - "groundY": -3.07, - "roofY": 9.354, - "wallCount": 34, - "roofCount": 29 - }, - { - "id": "sion_0495", - "uuid": "{734E0736-CBE6-419F-8196-E02DE920AA44}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -691.646, - 56.006, - -371.494 - ], - "size": [ - 34.473, - 15.613, - 23.16 - ], - "groundY": 48.2, - "roofY": 63.813, - "wallCount": 82, - "roofCount": 27 - }, - { - "id": "sion_0496", - "uuid": "{7DE1BDE7-BC1E-4EE1-A75B-33675A1CC243}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1445.293, - 54.918, - 222.118 - ], - "size": [ - 45.039, - 21.642, - 46.504 - ], - "groundY": 44.097, - "roofY": 65.739, - "wallCount": 136, - "roofCount": 50 - }, - { - "id": "sion_0497", - "uuid": "{69A44698-A4D8-4BAA-A1F2-597F477C399B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1247.695, - 271.018, - -1024.876 - ], - "size": [ - 15.0, - 10.867, - 17.195 - ], - "groundY": 265.585, - "roofY": 276.452, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0498", - "uuid": "{A66BC53F-A234-40BF-A26B-D0F26F589B6F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -601.18, - 19.636, - 265.842 - ], - "size": [ - 41.125, - 25.662, - 17.25 - ], - "groundY": 6.805, - "roofY": 32.467, - "wallCount": 29, - "roofCount": 21 - }, - { - "id": "sion_0499", - "uuid": "{28A5456D-E5C5-4A87-B01C-EB9DC48A442F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -859.48, - 2.497, - 264.566 - ], - "size": [ - 16.305, - 9.09, - 21.45 - ], - "groundY": -2.048, - "roofY": 7.042, - "wallCount": 28, - "roofCount": 28 - }, - { - "id": "sion_0500", - "uuid": "{21FFF641-D1CB-4DDD-AC62-29609DB3B931}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1307.125, - 260.844, - -992.864 - ], - "size": [ - 12.648, - 10.688, - 15.59 - ], - "groundY": 255.5, - "roofY": 266.188, - "wallCount": 33, - "roofCount": 35 - }, - { - "id": "sion_0501", - "uuid": "{1E6DD44D-05A9-4509-8812-4F3E9D204968}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1295.406, - 207.068, - -635.478 - ], - "size": [ - 16.242, - 9.878, - 17.407 - ], - "groundY": 202.129, - "roofY": 212.007, - "wallCount": 19, - "roofCount": 10 - }, - { - "id": "sion_0502", - "uuid": "{87AA2C56-DDCC-4D5C-B8AE-79D42A83B813}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1242.598, - 140.358, - -394.673 - ], - "size": [ - 46.609, - 9.668, - 27.348 - ], - "groundY": 135.524, - "roofY": 145.192, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_0503", - "uuid": "{691C93DF-D4EF-439D-927D-92747B2218A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -559.721, - 23.5, - 201.49 - ], - "size": [ - 16.77, - 23.952, - 45.608 - ], - "groundY": 11.524, - "roofY": 35.476, - "wallCount": 101, - "roofCount": 131 - }, - { - "id": "sion_0504", - "uuid": "{49FC06F7-04BE-41FD-93BF-6BFA12F0545B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1056.967, - 7.524, - 575.216 - ], - "size": [ - 29.23, - 21.586, - 49.382 - ], - "groundY": -3.269, - "roofY": 18.317, - "wallCount": 63, - "roofCount": 18 - }, - { - "id": "sion_0505", - "uuid": "{D4ED1186-0036-4C1A-BCF9-166BAE28F485}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1283.932, - 205.413, - -615.693 - ], - "size": [ - 15.629, - 10.535, - 17.942 - ], - "groundY": 200.145, - "roofY": 210.68, - "wallCount": 28, - "roofCount": 13 - }, - { - "id": "sion_0506", - "uuid": "{924C49C8-E54A-4375-8DEA-1AE31D237DED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -516.791, - 40.127, - -377.05 - ], - "size": [ - 17.043, - 7.948, - 19.718 - ], - "groundY": 36.153, - "roofY": 44.101, - "wallCount": 27, - "roofCount": 17 - }, - { - "id": "sion_0507", - "uuid": "{338AE335-BD00-40A7-AED7-7470ED6F0940}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1108.223, - 3.865, - 404.528 - ], - "size": [ - 16.688, - 14.176, - 51.698 - ], - "groundY": -3.223, - "roofY": 10.953, - "wallCount": 40, - "roofCount": 12 - }, - { - "id": "sion_0508", - "uuid": "{2314291F-B4AC-480F-91D1-FB404FF3B544}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -932.238, - 69.651, - -243.226 - ], - "size": [ - 17.164, - 10.232, - 15.864 - ], - "groundY": 64.535, - "roofY": 74.767, - "wallCount": 44, - "roofCount": 28 - }, - { - "id": "sion_0509", - "uuid": "{21ACE019-38ED-4EA0-B3FA-C7042556C1B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -954.41, - 15.938, - 129.799 - ], - "size": [ - 34.656, - 18.96, - 29.286 - ], - "groundY": 6.458, - "roofY": 25.418, - "wallCount": 28, - "roofCount": 50 - }, - { - "id": "sion_0510", - "uuid": "{19420598-C884-4C88-9212-AE991613B272}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1055.947, - 22.222, - -20.517 - ], - "size": [ - 26.981, - 18.655, - 24.905 - ], - "groundY": 12.895, - "roofY": 31.55, - "wallCount": 41, - "roofCount": 15 - }, - { - "id": "sion_0511", - "uuid": "{ACFC9777-71DF-4240-8DBB-C30FF7B8F6C1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1102.604, - 0.708, - 874.096 - ], - "size": [ - 48.09, - 6.626, - 88.086 - ], - "groundY": -2.605, - "roofY": 4.021, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_0512", - "uuid": "{25DA7EFB-547E-4466-B17D-8D05A2DC7512}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1403.295, - 284.347, - -1104.148 - ], - "size": [ - 38.449, - 16.75, - 41.834 - ], - "groundY": 275.972, - "roofY": 292.722, - "wallCount": 70, - "roofCount": 30 - }, - { - "id": "sion_0513", - "uuid": "{BF2EC73C-61AC-41F2-AF92-8994E0F834F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1460.133, - 76.703, - 22.572 - ], - "size": [ - 19.672, - 12.906, - 15.85 - ], - "groundY": 70.25, - "roofY": 83.156, - "wallCount": 43, - "roofCount": 23 - }, - { - "id": "sion_0514", - "uuid": "{DCAEB2A6-69B9-4609-BD57-72FF449A3CBA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1275.637, - 6.571, - 664.708 - ], - "size": [ - 38.055, - 20.05, - 23.211 - ], - "groundY": -3.454, - "roofY": 16.596, - "wallCount": 49, - "roofCount": 20 - }, - { - "id": "sion_0515", - "uuid": "{6FD9FB75-F0BE-4BA3-AF21-92A4A39DAE9B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1300.057, - 208.864, - -656.762 - ], - "size": [ - 16.301, - 9.702, - 16.146 - ], - "groundY": 204.013, - "roofY": 213.715, - "wallCount": 32, - "roofCount": 14 - }, - { - "id": "sion_0516", - "uuid": "{8337FC03-6FA4-4A62-B3B8-B7EE729F18B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -601.107, - 33.617, - -124.282 - ], - "size": [ - 27.644, - 19.662, - 23.066 - ], - "groundY": 23.786, - "roofY": 43.448, - "wallCount": 13, - "roofCount": 8 - }, - { - "id": "sion_0517", - "uuid": "{1C6FED47-D9D4-49B3-B0DB-84E427216E17}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1437.129, - 223.816, - -651.396 - ], - "size": [ - 16.773, - 8.211, - 12.733 - ], - "groundY": 219.71, - "roofY": 227.921, - "wallCount": 79, - "roofCount": 10 - }, - { - "id": "sion_0518", - "uuid": "{8CC3C05C-64DA-4E4A-B4BB-756254BED86B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -881.855, - 1.919, - 327.81 - ], - "size": [ - 11.641, - 9.85, - 11.034 - ], - "groundY": -3.006, - "roofY": 6.844, - "wallCount": 65, - "roofCount": 28 - }, - { - "id": "sion_0519", - "uuid": "{C4638CC9-4583-4002-AEB4-E914ABE73CCD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1197.992, - 273.132, - -1070.444 - ], - "size": [ - 20.883, - 12.16, - 14.836 - ], - "groundY": 267.052, - "roofY": 279.212, - "wallCount": 43, - "roofCount": 19 - }, - { - "id": "sion_0520", - "uuid": "{4146174F-D17F-476C-BC76-0672FC163081}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -711.627, - 33.709, - -168.545 - ], - "size": [ - 22.145, - 20.952, - 22.172 - ], - "groundY": 23.233, - "roofY": 44.185, - "wallCount": 38, - "roofCount": 33 - }, - { - "id": "sion_0521", - "uuid": "{5C81C33B-599E-4030-B29B-1A00DFFC69F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -816.789, - 3.835, - 313.449 - ], - "size": [ - 13.078, - 13.469, - 11.9 - ], - "groundY": -2.899, - "roofY": 10.57, - "wallCount": 61, - "roofCount": 37 - }, - { - "id": "sion_0522", - "uuid": "{20063A82-22CF-4B1A-80EE-786823797449}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -949.334, - 118.705, - -525.741 - ], - "size": [ - 17.457, - 10.712, - 12.246 - ], - "groundY": 113.349, - "roofY": 124.061, - "wallCount": 34, - "roofCount": 24 - }, - { - "id": "sion_0523", - "uuid": "{F8DCED1C-8FB1-43C9-BA06-AC06303E1594}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1180.869, - 284.894, - -1129.402 - ], - "size": [ - 26.371, - 15.18, - 17.882 - ], - "groundY": 277.304, - "roofY": 292.484, - "wallCount": 74, - "roofCount": 33 - }, - { - "id": "sion_0524", - "uuid": "{44361DA7-B5E2-4779-A17D-B200DFCB238A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1380.965, - 33.714, - 216.033 - ], - "size": [ - 44.078, - 19.978, - 46.203 - ], - "groundY": 23.725, - "roofY": 43.703, - "wallCount": 76, - "roofCount": 33 - }, - { - "id": "sion_0525", - "uuid": "{FA62BE00-6E1E-4869-9742-702AB3FC82A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -805.789, - 17.387, - 164.903 - ], - "size": [ - 12.445, - 15.682, - 11.006 - ], - "groundY": 9.546, - "roofY": 25.228, - "wallCount": 38, - "roofCount": 43 - }, - { - "id": "sion_0526", - "uuid": "{742A3392-33F1-42D1-9BFE-886EE5E19329}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1175.0, - 12.32, - 131.861 - ], - "size": [ - 32.273, - 15.938, - 26.456 - ], - "groundY": 4.351, - "roofY": 20.288, - "wallCount": 40, - "roofCount": 21 - }, - { - "id": "sion_0527", - "uuid": "{1A36D069-221D-411A-A180-67CDFC14643E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1350.691, - 290.474, - -1332.678 - ], - "size": [ - 22.891, - 18.186, - 16.318 - ], - "groundY": 281.381, - "roofY": 299.567, - "wallCount": 46, - "roofCount": 20 - }, - { - "id": "sion_0528", - "uuid": "{58460ED1-6C9B-453C-9E11-DC7704C7E04F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1322.85, - 251.256, - -906.965 - ], - "size": [ - 41.348, - 10.031, - 17.219 - ], - "groundY": 246.241, - "roofY": 256.272, - "wallCount": 93, - "roofCount": 57 - }, - { - "id": "sion_0529", - "uuid": "{5F7F558B-5D6E-4F6D-BD14-6244CE711161}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1034.686, - 293.032, - -1415.195 - ], - "size": [ - 15.277, - 9.412, - 19.933 - ], - "groundY": 288.326, - "roofY": 297.738, - "wallCount": 52, - "roofCount": 4 - }, - { - "id": "sion_0530", - "uuid": "{E628BD24-32C0-43AD-B45C-078F749FA3ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1530.473, - 5.574, - 525.513 - ], - "size": [ - 23.523, - 18.783, - 43.612 - ], - "groundY": -3.817, - "roofY": 14.966, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0531", - "uuid": "{30B9EC81-E04D-46E8-B969-FB99A1C77CA0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -784.107, - 43.661, - -228.968 - ], - "size": [ - 18.637, - 16.793, - 17.408 - ], - "groundY": 35.264, - "roofY": 52.057, - "wallCount": 36, - "roofCount": 31 - }, - { - "id": "sion_0532", - "uuid": "{B47B9C79-9D5B-4A06-9025-EF1A44EBC245}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1270.137, - 81.274, - -79.487 - ], - "size": [ - 78.781, - 25.697, - 64.344 - ], - "groundY": 68.426, - "roofY": 94.123, - "wallCount": 103, - "roofCount": 90 - }, - { - "id": "sion_0533", - "uuid": "{E211077E-D1B3-4C82-BC7B-E65C642CA9C4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1471.049, - 276.253, - -1009.696 - ], - "size": [ - 13.965, - 11.192, - 13.294 - ], - "groundY": 270.657, - "roofY": 281.849, - "wallCount": 47, - "roofCount": 18 - }, - { - "id": "sion_0534", - "uuid": "{076CBCC3-9368-4E25-8EFA-940987525629}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -848.723, - 1.414, - 943.882 - ], - "size": [ - 15.266, - 6.768, - 13.302 - ], - "groundY": -1.97, - "roofY": 4.798, - "wallCount": 40, - "roofCount": 23 - }, - { - "id": "sion_0535", - "uuid": "{946E6EB8-9181-4F93-A783-90DE3B8E754F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1101.154, - 82.474, - -179.016 - ], - "size": [ - 38.262, - 12.008, - 39.212 - ], - "groundY": 76.47, - "roofY": 88.478, - "wallCount": 59, - "roofCount": 29 - }, - { - "id": "sion_0536", - "uuid": "{1F5F8A87-846E-4AB8-B691-3FB03D2009B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1168.119, - 8.54, - 580.274 - ], - "size": [ - 56.356, - 22.136, - 77.524 - ], - "groundY": -2.528, - "roofY": 19.608, - "wallCount": 30, - "roofCount": 8 - }, - { - "id": "sion_0537", - "uuid": "{411029A7-A824-4091-8E9F-B5F3F8AB87A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1511.764, - 263.832, - -950.119 - ], - "size": [ - 19.113, - 14.772, - 20.141 - ], - "groundY": 256.446, - "roofY": 271.218, - "wallCount": 73, - "roofCount": 25 - }, - { - "id": "sion_0538", - "uuid": "{5D91E145-24D7-4191-941E-1DF1AE8A6BF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1152.172, - 238.984, - -843.325 - ], - "size": [ - 12.844, - 10.106, - 16.018 - ], - "groundY": 233.931, - "roofY": 244.037, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_0539", - "uuid": "{B05AA112-B0E4-4F86-912B-09B38BA161CC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1434.965, - 224.733, - -677.046 - ], - "size": [ - 23.859, - 6.754, - 22.309 - ], - "groundY": 221.356, - "roofY": 228.11, - "wallCount": 26, - "roofCount": 28 - }, - { - "id": "sion_0540", - "uuid": "{6C32A66E-C776-41B7-A49B-9C65710A6D1D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -652.35, - 5.497, - 334.505 - ], - "size": [ - 19.59, - 13.331, - 12.756 - ], - "groundY": -1.168, - "roofY": 12.163, - "wallCount": 20, - "roofCount": 26 - }, - { - "id": "sion_0541", - "uuid": "{F324BA03-988E-4D86-AB13-DB71DD3E2FF5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -592.346, - 96.184, - -740.561 - ], - "size": [ - 27.949, - 8.934, - 21.323 - ], - "groundY": 91.717, - "roofY": 100.651, - "wallCount": 24, - "roofCount": 8 - }, - { - "id": "sion_0542", - "uuid": "{5EDADF36-2094-4B65-BBA2-68D60164CF19}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -578.482, - 31.941, - -62.909 - ], - "size": [ - 17.371, - 22.365, - 18.802 - ], - "groundY": 20.759, - "roofY": 43.124, - "wallCount": 76, - "roofCount": 30 - }, - { - "id": "sion_0543", - "uuid": "{38F2BB4D-8C9B-449F-A21B-DB83F19C21C3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1530.393, - 231.349, - -659.433 - ], - "size": [ - 11.223, - 9.116, - 11.44 - ], - "groundY": 226.791, - "roofY": 235.907, - "wallCount": 58, - "roofCount": 11 - }, - { - "id": "sion_0544", - "uuid": "{0BA86F32-2DE6-4306-9348-F84D8147D628}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1475.496, - 1.66, - 466.43 - ], - "size": [ - 15.016, - 11.362, - 13.556 - ], - "groundY": -4.021, - "roofY": 7.341, - "wallCount": 36, - "roofCount": 13 - }, - { - "id": "sion_0545", - "uuid": "{ACA748C1-396B-4932-88E9-88AAAAC6C6ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1120.211, - 291.976, - -1430.733 - ], - "size": [ - 18.297, - 8.217, - 20.86 - ], - "groundY": 287.867, - "roofY": 296.084, - "wallCount": 41, - "roofCount": 23 - }, - { - "id": "sion_0546", - "uuid": "{6B0F2D36-0B9C-4856-8C73-76F331D52BDA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -504.98, - 4.386, - 893.367 - ], - "size": [ - 36.68, - 10.804, - 35.514 - ], - "groundY": -1.016, - "roofY": 9.788, - "wallCount": 40, - "roofCount": 10 - }, - { - "id": "sion_0547", - "uuid": "{47A14B7C-C1AD-495E-8567-6246EAE4FC52}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1105.424, - 263.709, - -996.409 - ], - "size": [ - 13.043, - 5.151, - 15.53 - ], - "groundY": 261.133, - "roofY": 266.284, - "wallCount": 27, - "roofCount": 4 - }, - { - "id": "sion_0548", - "uuid": "{87DCE1D7-2923-44ED-A87D-9F528A340EE4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1436.654, - 70.392, - 65.387 - ], - "size": [ - 29.582, - 15.791, - 28.354 - ], - "groundY": 62.497, - "roofY": 78.287, - "wallCount": 31, - "roofCount": 17 - }, - { - "id": "sion_0549", - "uuid": "{540A3128-12F0-4008-9E87-56D2A63243B0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1447.92, - 225.598, - -755.572 - ], - "size": [ - 10.684, - 5.958, - 7.77 - ], - "groundY": 222.619, - "roofY": 228.577, - "wallCount": 25, - "roofCount": 2 - }, - { - "id": "sion_0550", - "uuid": "{67451093-91FC-4AF5-A6F3-17425ADBFF88}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1175.123, - 56.63, - -4.659 - ], - "size": [ - 15.082, - 8.914, - 15.868 - ], - "groundY": 52.173, - "roofY": 61.087, - "wallCount": 29, - "roofCount": 4 - }, - { - "id": "sion_0551", - "uuid": "{597C19F8-BF0C-4702-95A8-6C50E1187BA0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1431.172, - 7.122, - 317.971 - ], - "size": [ - 26.609, - 13.69, - 22.68 - ], - "groundY": 0.277, - "roofY": 13.967, - "wallCount": 47, - "roofCount": 48 - }, - { - "id": "sion_0552", - "uuid": "{C525E8AF-174C-423B-9C80-D2F3036D0CEB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1456.607, - -1.247, - 481.174 - ], - "size": [ - 33.613, - 5.064, - 15.316 - ], - "groundY": -3.779, - "roofY": 1.285, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_0553", - "uuid": "{15175C11-AA51-439C-9369-EE223BA3251D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1140.518, - 41.965, - 13.375 - ], - "size": [ - 20.598, - 14.835, - 19.229 - ], - "groundY": 34.548, - "roofY": 49.383, - "wallCount": 32, - "roofCount": 14 - }, - { - "id": "sion_0554", - "uuid": "{03B52E9C-CA76-4E8C-82BC-2172255EC8C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -916.584, - 293.401, - -1259.521 - ], - "size": [ - 14.184, - 9.303, - 15.888 - ], - "groundY": 288.75, - "roofY": 298.052, - "wallCount": 50, - "roofCount": 6 - }, - { - "id": "sion_0555", - "uuid": "{DD4879B2-ED44-4AF4-8E0E-1E5C952F91E6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -697.65, - 74.309, - -496.45 - ], - "size": [ - 27.488, - 12.082, - 25.2 - ], - "groundY": 68.268, - "roofY": 80.35, - "wallCount": 14, - "roofCount": 4 - }, - { - "id": "sion_0556", - "uuid": "{0C6A241E-0A71-4D1E-B5D9-1018EBDF0D83}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -967.98, - 7.734, - 215.211 - ], - "size": [ - 21.469, - 18.078, - 19.848 - ], - "groundY": -1.305, - "roofY": 16.773, - "wallCount": 34, - "roofCount": 50 - }, - { - "id": "sion_0557", - "uuid": "{6E60C739-252A-4062-B07F-BA701EB09E94}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -942.785, - 297.552, - -1409.543 - ], - "size": [ - 15.648, - 9.866, - 21.809 - ], - "groundY": 292.619, - "roofY": 302.485, - "wallCount": 30, - "roofCount": 16 - }, - { - "id": "sion_0558", - "uuid": "{C1D1FD2C-C7AD-4B0B-9837-131B96ACDE77}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1053.135, - 270.693, - -1009.933 - ], - "size": [ - 13.543, - 11.104, - 13.483 - ], - "groundY": 265.141, - "roofY": 276.245, - "wallCount": 27, - "roofCount": 18 - }, - { - "id": "sion_0559", - "uuid": "{C061653E-19E4-4906-A636-964A6A927141}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1360.318, - 83.019, - -100.29 - ], - "size": [ - 26.184, - 20.395, - 40.75 - ], - "groundY": 72.822, - "roofY": 93.216, - "wallCount": 44, - "roofCount": 21 - }, - { - "id": "sion_0560", - "uuid": "{CAB3FEED-F346-466B-8595-6A1629F344E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -406.689, - 21.26, - 278.543 - ], - "size": [ - 108.332, - 25.471, - 71.383 - ], - "groundY": 8.524, - "roofY": 33.995, - "wallCount": 111, - "roofCount": 102 - }, - { - "id": "sion_0561", - "uuid": "{7811ED15-D839-4B5A-B573-D3A2916E3232}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -406.645, - 13.506, - 326.713 - ], - "size": [ - 24.914, - 7.542, - 12.496 - ], - "groundY": 9.735, - "roofY": 17.277, - "wallCount": 41, - "roofCount": 13 - }, - { - "id": "sion_0562", - "uuid": "{792AB448-C84C-47EF-B987-28A4D5670B74}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -723.803, - 28.856, - -155.993 - ], - "size": [ - 12.269, - 12.91, - 12.188 - ], - "groundY": 22.401, - "roofY": 35.311, - "wallCount": 35, - "roofCount": 12 - }, - { - "id": "sion_0563", - "uuid": "{E2DADC75-CE45-4CE3-B29F-B3C64774C07B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -490.273, - 30.92, - -15.282 - ], - "size": [ - 35.25, - 20.498, - 27.882 - ], - "groundY": 20.671, - "roofY": 41.169, - "wallCount": 25, - "roofCount": 31 - }, - { - "id": "sion_0564", - "uuid": "{A93DD52B-D71A-4BB7-A27A-302766B0DD3B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1322.059, - 209.426, - -631.28 - ], - "size": [ - 18.289, - 9.144, - 15.258 - ], - "groundY": 204.854, - "roofY": 213.998, - "wallCount": 40, - "roofCount": 20 - }, - { - "id": "sion_0565", - "uuid": "{68F08DD0-0D80-49F2-9961-43BEA43F0F98}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -478.541, - 12.515, - 659.822 - ], - "size": [ - 159.129, - 29.524, - 65.548 - ], - "groundY": -2.247, - "roofY": 27.277, - "wallCount": 201, - "roofCount": 62 - }, - { - "id": "sion_0566", - "uuid": "{775F7E83-6533-4264-BB9D-56D50ABDF5AD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -498.639, - 51.08, - -484.899 - ], - "size": [ - 162.371, - 21.938, - 88.162 - ], - "groundY": 40.111, - "roofY": 62.048, - "wallCount": 210, - "roofCount": 262 - }, - { - "id": "sion_0567", - "uuid": "{63273DAB-4028-4A40-94C1-C18F5684A098}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1200.818, - 18.184, - 110.936 - ], - "size": [ - 43.402, - 19.897, - 35.966 - ], - "groundY": 8.236, - "roofY": 28.132, - "wallCount": 23, - "roofCount": 31 - }, - { - "id": "sion_0568", - "uuid": "{6B6A03E3-5B1D-458D-B944-08A29EE05E18}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -971.135, - 19.589, - 21.938 - ], - "size": [ - 42.559, - 22.151, - 42.655 - ], - "groundY": 8.513, - "roofY": 30.664, - "wallCount": 77, - "roofCount": 20 - }, - { - "id": "sion_0569", - "uuid": "{57294E4D-791F-4261-A0AC-AA7DAA7DF941}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1179.078, - 199.34, - -621.095 - ], - "size": [ - 18.445, - 11.36, - 14.189 - ], - "groundY": 193.66, - "roofY": 205.02, - "wallCount": 53, - "roofCount": 31 - }, - { - "id": "sion_0570", - "uuid": "{596E307D-A820-41AF-B85C-389867A4F921}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1294.123, - 0.792, - 961.514 - ], - "size": [ - 49.395, - 6.924, - 47.116 - ], - "groundY": -2.67, - "roofY": 4.254, - "wallCount": 20, - "roofCount": 4 - }, - { - "id": "sion_0571", - "uuid": "{8E819AEC-6FD3-4B8C-8729-D3B729704EF7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1179.307, - 205.425, - -653.786 - ], - "size": [ - 15.465, - 7.918, - 13.356 - ], - "groundY": 201.466, - "roofY": 209.384, - "wallCount": 35, - "roofCount": 24 - }, - { - "id": "sion_0572", - "uuid": "{E0DBCB38-F0C7-4FF9-9D61-774EA0C8EE69}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1258.285, - 204.613, - -630.24 - ], - "size": [ - 24.547, - 9.271, - 18.906 - ], - "groundY": 199.978, - "roofY": 209.249, - "wallCount": 36, - "roofCount": 7 - }, - { - "id": "sion_0573", - "uuid": "{B741CAD8-2994-4E25-8BEB-78B43F722414}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1203.994, - 0.84, - 849.41 - ], - "size": [ - 38.996, - 7.097, - 24.554 - ], - "groundY": -2.708, - "roofY": 4.389, - "wallCount": 18, - "roofCount": 6 - }, - { - "id": "sion_0574", - "uuid": "{3A621D26-F8A6-44F2-9C35-E869FA7AA517}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1224.002, - 284.209, - -1132.626 - ], - "size": [ - 15.746, - 10.525, - 17.773 - ], - "groundY": 278.947, - "roofY": 289.472, - "wallCount": 40, - "roofCount": 17 - }, - { - "id": "sion_0575", - "uuid": "{EE029B2C-A27F-49F4-8BFF-B53C129C694B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -440.656, - 83.951, - -853.487 - ], - "size": [ - 21.922, - 11.672, - 20.176 - ], - "groundY": 78.115, - "roofY": 89.787, - "wallCount": 45, - "roofCount": 25 - }, - { - "id": "sion_0576", - "uuid": "{4A09BAB4-9F8D-4DCC-97AE-9F76C0F52679}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1171.381, - 288.315, - -1189.565 - ], - "size": [ - 19.137, - 12.46, - 18.168 - ], - "groundY": 282.085, - "roofY": 294.545, - "wallCount": 52, - "roofCount": 27 - }, - { - "id": "sion_0577", - "uuid": "{E367E047-744B-447B-87F6-6AF271C543A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1033.416, - 289.413, - -1296.351 - ], - "size": [ - 31.465, - 8.44, - 25.155 - ], - "groundY": 285.193, - "roofY": 293.633, - "wallCount": 17, - "roofCount": 21 - }, - { - "id": "sion_0578", - "uuid": "{96DE6AF6-8E11-441B-836F-7ABEE078A451}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1311.738, - 274.14, - -1076.451 - ], - "size": [ - 13.156, - 6.329, - 12.576 - ], - "groundY": 270.975, - "roofY": 277.304, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0579", - "uuid": "{3E1AB78D-2D1D-4652-8507-6DC333332D2A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1061.703, - 290.616, - -1286.269 - ], - "size": [ - 22.672, - 11.999, - 17.341 - ], - "groundY": 284.617, - "roofY": 296.616, - "wallCount": 46, - "roofCount": 24 - }, - { - "id": "sion_0580", - "uuid": "{E43FB864-A1DD-4744-B04E-BA6C040D91B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -964.504, - 298.25, - -1512.887 - ], - "size": [ - 20.102, - 9.638, - 21.136 - ], - "groundY": 293.431, - "roofY": 303.069, - "wallCount": 33, - "roofCount": 17 - }, - { - "id": "sion_0581", - "uuid": "{3FEA53CC-FA37-4D9E-B35D-E8AC5F1BF751}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1511.938, - 206.049, - -514.591 - ], - "size": [ - 15.727, - 10.986, - 16.456 - ], - "groundY": 200.556, - "roofY": 211.542, - "wallCount": 38, - "roofCount": 20 - }, - { - "id": "sion_0582", - "uuid": "{4EC000DC-1BBC-48E7-A8C7-8FD842ED068A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1096.146, - 265.658, - -1004.294 - ], - "size": [ - 8.519, - 10.121, - 8.96 - ], - "groundY": 260.598, - "roofY": 270.719, - "wallCount": 49, - "roofCount": 12 - }, - { - "id": "sion_0583", - "uuid": "{2D600AC2-8D70-4EDF-8546-42C3CE2FA238}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1211.412, - 283.13, - -1255.551 - ], - "size": [ - 19.535, - 12.451, - 13.506 - ], - "groundY": 276.904, - "roofY": 289.355, - "wallCount": 83, - "roofCount": 16 - }, - { - "id": "sion_0584", - "uuid": "{3935854F-74D6-40E8-8487-2D511F972463}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -752.49, - 15.495, - 202.049 - ], - "size": [ - 23.535, - 12.747, - 16.33 - ], - "groundY": 9.122, - "roofY": 21.869, - "wallCount": 44, - "roofCount": 27 - }, - { - "id": "sion_0585", - "uuid": "{E94206BF-B8A2-4271-8DF0-CB67865791B2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1204.186, - 96.546, - -215.171 - ], - "size": [ - 37.723, - 14.26, - 28.691 - ], - "groundY": 89.416, - "roofY": 103.676, - "wallCount": 18, - "roofCount": 33 - }, - { - "id": "sion_0586", - "uuid": "{F16D82B7-9ADD-4DEC-AF35-B519DA6A9C5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1076.684, - 34.95, - -34.609 - ], - "size": [ - 29.008, - 21.859, - 27.25 - ], - "groundY": 24.021, - "roofY": 45.88, - "wallCount": 44, - "roofCount": 19 - }, - { - "id": "sion_0587", - "uuid": "{E2FED06A-C5E3-4213-B224-2E825CA184EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1264.576, - 202.409, - -577.263 - ], - "size": [ - 17.949, - 11.126, - 15.397 - ], - "groundY": 196.846, - "roofY": 207.972, - "wallCount": 48, - "roofCount": 22 - }, - { - "id": "sion_0588", - "uuid": "{6D7AB25D-EDBE-424F-B781-2F831863A0AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1373.318, - 71.294, - 3.907 - ], - "size": [ - 25.527, - 17.375, - 24.792 - ], - "groundY": 62.607, - "roofY": 79.982, - "wallCount": 64, - "roofCount": 26 - }, - { - "id": "sion_0589", - "uuid": "{D10A4DE6-FA65-4D92-AAC1-1BA83E01DA82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1105.041, - 6.858, - 258.194 - ], - "size": [ - 24.863, - 18.062, - 39.569 - ], - "groundY": -2.173, - "roofY": 15.889, - "wallCount": 16, - "roofCount": 20 - }, - { - "id": "sion_0590", - "uuid": "{1A2F8982-7816-4F94-9EC0-542E95285A9A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -845.225, - 9.646, - 223.078 - ], - "size": [ - 55.027, - 21.964, - 38.332 - ], - "groundY": -1.336, - "roofY": 20.628, - "wallCount": 46, - "roofCount": 23 - }, - { - "id": "sion_0591", - "uuid": "{CFADC5B8-22BC-4E8D-BBA2-FAB012C566D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1285.383, - 275.126, - -1219.613 - ], - "size": [ - 16.375, - 13.39, - 17.41 - ], - "groundY": 268.431, - "roofY": 281.821, - "wallCount": 51, - "roofCount": 32 - }, - { - "id": "sion_0592", - "uuid": "{28797B4A-F517-4571-9A9C-3570C5CABE8B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -796.152, - 74.902, - -423.858 - ], - "size": [ - 18.836, - 9.94, - 23.804 - ], - "groundY": 69.932, - "roofY": 79.872, - "wallCount": 56, - "roofCount": 10 - }, - { - "id": "sion_0593", - "uuid": "{462F53F1-143B-428B-B9B0-2CDA1D08A490}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -775.277, - 109.683, - -610.65 - ], - "size": [ - 19.188, - 8.97, - 16.39 - ], - "groundY": 105.198, - "roofY": 114.168, - "wallCount": 35, - "roofCount": 13 - }, - { - "id": "sion_0594", - "uuid": "{FB29296E-4A76-4E08-BB7F-2B89C3A1FD31}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -864.064, - 76.925, - -250.782 - ], - "size": [ - 17.926, - 12.364, - 14.506 - ], - "groundY": 70.743, - "roofY": 83.107, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_0595", - "uuid": "{E8750BC7-0F09-4B19-AA72-E3F373E199A9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -1007.734, - 1.3, - 971.757 - ], - "size": [ - 11.953, - 7.487, - 10.622 - ], - "groundY": -2.443, - "roofY": 5.044, - "wallCount": 59, - "roofCount": 6 - }, - { - "id": "sion_0596", - "uuid": "{D429A6C8-D9C9-4436-9517-9F0A6EB454A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1426.695, - 280.806, - -1061.41 - ], - "size": [ - 17.344, - 9.726, - 12.223 - ], - "groundY": 275.943, - "roofY": 285.669, - "wallCount": 46, - "roofCount": 35 - }, - { - "id": "sion_0597", - "uuid": "{B61ADEB2-BAF4-491D-8198-B3DAAEA0D0EB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1451.059, - 228.23, - -695.516 - ], - "size": [ - 23.617, - 10.266, - 20.28 - ], - "groundY": 223.097, - "roofY": 233.363, - "wallCount": 37, - "roofCount": 27 - }, - { - "id": "sion_0598", - "uuid": "{38085E2A-259F-4C64-8D61-8D8E9ABC7E12}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1127.693, - 287.991, - -1254.997 - ], - "size": [ - 17.621, - 9.6, - 16.128 - ], - "groundY": 283.191, - "roofY": 292.791, - "wallCount": 41, - "roofCount": 25 - }, - { - "id": "sion_0599", - "uuid": "{4F6C5E09-F777-43A6-BC8F-144037946952}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1071.221, - 97.857, - -333.297 - ], - "size": [ - 27.809, - 13.92, - 27.432 - ], - "groundY": 90.897, - "roofY": 104.817, - "wallCount": 14, - "roofCount": 26 - }, - { - "id": "sion_0600", - "uuid": "{92BEB270-FA21-47B6-A918-84113F45E94F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -739.979, - 70.351, - -395.631 - ], - "size": [ - 20.129, - 14.951, - 17.594 - ], - "groundY": 62.876, - "roofY": 77.827, - "wallCount": 24, - "roofCount": 34 - }, - { - "id": "sion_0601", - "uuid": "{C666212D-1E99-4BF6-B6F1-03BCA3EEC7A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -755.689, - 5.503, - 283.774 - ], - "size": [ - 42.871, - 15.773, - 21.556 - ], - "groundY": -2.384, - "roofY": 13.389, - "wallCount": 15, - "roofCount": 20 - }, - { - "id": "sion_0602", - "uuid": "{A1C42721-738A-4CE5-A978-5571FB22FF6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -627.701, - 45.931, - -380.182 - ], - "size": [ - 24.012, - 10.674, - 22.172 - ], - "groundY": 40.594, - "roofY": 51.268, - "wallCount": 35, - "roofCount": 24 - }, - { - "id": "sion_0603", - "uuid": "{0DD7D073-D35C-426E-AF7D-0000CB558311}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1375.359, - 281.302, - -1126.944 - ], - "size": [ - 24.609, - 15.07, - 22.101 - ], - "groundY": 273.767, - "roofY": 288.837, - "wallCount": 55, - "roofCount": 25 - }, - { - "id": "sion_0604", - "uuid": "{6EEEEA77-23BB-42DD-8AAB-1A8DC3B501A5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1375.451, - 265.223, - -978.147 - ], - "size": [ - 17.215, - 9.502, - 27.366 - ], - "groundY": 260.472, - "roofY": 269.974, - "wallCount": 45, - "roofCount": 12 - }, - { - "id": "sion_0605", - "uuid": "{E76B836A-68ED-4F16-B77E-99DEDEDA8990}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -659.471, - 41.229, - -313.034 - ], - "size": [ - 36.348, - 11.082, - 30.15 - ], - "groundY": 35.688, - "roofY": 46.77, - "wallCount": 40, - "roofCount": 192 - }, - { - "id": "sion_0606", - "uuid": "{1DC2CE6B-8C3D-4034-86C2-E44B45DE4941}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1464.82, - 271.434, - -1186.332 - ], - "size": [ - 33.086, - 6.723, - 27.104 - ], - "groundY": 268.073, - "roofY": 274.796, - "wallCount": 25, - "roofCount": 5 - }, - { - "id": "sion_0607", - "uuid": "{FDA65AC0-46E4-480F-A3D4-9D51223C7419}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1119.055, - 12.62, - 136.274 - ], - "size": [ - 30.188, - 19.139, - 39.106 - ], - "groundY": 3.051, - "roofY": 22.19, - "wallCount": 45, - "roofCount": 43 - }, - { - "id": "sion_0608", - "uuid": "{F3468C3A-82F9-4217-8074-1C579323CC55}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -917.998, - 22.276, - -26.483 - ], - "size": [ - 58.48, - 19.079, - 45.312 - ], - "groundY": 12.737, - "roofY": 31.816, - "wallCount": 32, - "roofCount": 6 - }, - { - "id": "sion_0609", - "uuid": "{FC431DE9-9B1F-4A9A-BE2E-625BE5F61325}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -953.961, - 4.702, - 232.441 - ], - "size": [ - 12.211, - 13.169, - 12.042 - ], - "groundY": -1.882, - "roofY": 11.287, - "wallCount": 52, - "roofCount": 28 - }, - { - "id": "sion_0610", - "uuid": "{65AFB1A9-A5BC-4BCB-A4CA-D4EC1CD04240}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -566.254, - 23.462, - 155.751 - ], - "size": [ - 19.742, - 18.592, - 19.387 - ], - "groundY": 14.166, - "roofY": 32.758, - "wallCount": 55, - "roofCount": 35 - }, - { - "id": "sion_0611", - "uuid": "{5BC4EBC7-76DD-4F19-A697-A236E99C0A58}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1276.406, - 116.977, - -234.423 - ], - "size": [ - 23.688, - 9.923, - 17.748 - ], - "groundY": 112.015, - "roofY": 121.938, - "wallCount": 52, - "roofCount": 68 - }, - { - "id": "sion_0612", - "uuid": "{4B378D28-8920-451F-9C69-60FC5763CD65}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1059.764, - 15.316, - 73.701 - ], - "size": [ - 95.223, - 19.644, - 69.796 - ], - "groundY": 5.494, - "roofY": 25.138, - "wallCount": 61, - "roofCount": 22 - }, - { - "id": "sion_0613", - "uuid": "{31897F97-5CD2-4C7D-AFA5-9B0BB1519B02}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -894.055, - 5.725, - 294.455 - ], - "size": [ - 34.438, - 18.634, - 47.822 - ], - "groundY": -3.592, - "roofY": 15.042, - "wallCount": 157, - "roofCount": 78 - }, - { - "id": "sion_0614", - "uuid": "{F49EDC3C-E7E0-4256-82B0-BFB4A3C5CAAF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -835.393, - 20.205, - 66.486 - ], - "size": [ - 24.84, - 18.75, - 32.996 - ], - "groundY": 10.83, - "roofY": 29.58, - "wallCount": 45, - "roofCount": 25 - }, - { - "id": "sion_0615", - "uuid": "{A87CE973-467C-4420-93DF-FEA63EEA6FCC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -835.664, - 286.971, - -1296.651 - ], - "size": [ - 15.469, - 10.095, - 19.666 - ], - "groundY": 281.924, - "roofY": 292.019, - "wallCount": 33, - "roofCount": 32 - }, - { - "id": "sion_0616", - "uuid": "{031ECAB1-41D0-4A0B-AF7F-CD4DD1396A38}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1229.264, - 204.979, - -642.478 - ], - "size": [ - 30.113, - 12.873, - 43.474 - ], - "groundY": 198.543, - "roofY": 211.416, - "wallCount": 32, - "roofCount": 8 - }, - { - "id": "sion_0617", - "uuid": "{77D31914-986B-4548-8626-7692BA9B8AB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1193.73, - 296.059, - -1464.945 - ], - "size": [ - 19.773, - 9.156, - 17.124 - ], - "groundY": 291.481, - "roofY": 300.637, - "wallCount": 43, - "roofCount": 27 - }, - { - "id": "sion_0618", - "uuid": "{A9131C48-BB68-4E5E-97D3-63A9A1EF9270}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1491.334, - 269.411, - -1104.531 - ], - "size": [ - 21.793, - 9.92, - 35.464 - ], - "groundY": 264.451, - "roofY": 274.371, - "wallCount": 43, - "roofCount": 43 - }, - { - "id": "sion_0619", - "uuid": "{C2188881-928E-4B09-BAAC-A2600255B02D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1181.332, - 137.702, - -388.2 - ], - "size": [ - 5.945, - 5.258, - 5.914 - ], - "groundY": 135.073, - "roofY": 140.331, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_0620", - "uuid": "{9CBEB321-FD46-4981-B5C3-2857A049A6C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1442.105, - 235.245, - -825.378 - ], - "size": [ - 26.273, - 12.893, - 27.924 - ], - "groundY": 228.799, - "roofY": 241.692, - "wallCount": 57, - "roofCount": 25 - }, - { - "id": "sion_0621", - "uuid": "{C2F67DBD-C6EF-4CFF-B02E-0B2D430F0ADD}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 2 - ], - "center": [ - -1254.994, - 97.734, - -191.319 - ], - "size": [ - 51.832, - 13.376, - 32.314 - ], - "groundY": 91.046, - "roofY": 104.422, - "wallCount": 28, - "roofCount": 6 - }, - { - "id": "sion_0622", - "uuid": "{B2201596-79AA-4D12-94C7-A312CF06ED55}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1291.469, - 237.444, - -798.883 - ], - "size": [ - 15.258, - 9.947, - 20.93 - ], - "groundY": 232.471, - "roofY": 242.417, - "wallCount": 50, - "roofCount": 9 - }, - { - "id": "sion_0623", - "uuid": "{60C3E524-6F72-414C-BCAD-854B2C5CB8E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1377.74, - 49.466, - 166.998 - ], - "size": [ - 18.246, - 11.369, - 25.891 - ], - "groundY": 43.781, - "roofY": 55.15, - "wallCount": 62, - "roofCount": 22 - }, - { - "id": "sion_0624", - "uuid": "{9EF75475-83C7-459B-A5B1-0BF880D90121}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1195.014, - 247.425, - -859.627 - ], - "size": [ - 18.746, - 11.221, - 15.684 - ], - "groundY": 241.815, - "roofY": 253.036, - "wallCount": 53, - "roofCount": 11 - }, - { - "id": "sion_0625", - "uuid": "{08624A4F-A1ED-4FCE-ABD2-995FBF97EA15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -804.975, - 22.28, - 52.525 - ], - "size": [ - 31.691, - 20.807, - 36.976 - ], - "groundY": 11.876, - "roofY": 32.683, - "wallCount": 43, - "roofCount": 52 - }, - { - "id": "sion_0626", - "uuid": "{94ADE21D-27D5-456F-B1F0-7C7531F7116D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1075.432, - 237.962, - -873.275 - ], - "size": [ - 21.637, - 9.062, - 18.878 - ], - "groundY": 233.431, - "roofY": 242.493, - "wallCount": 29, - "roofCount": 10 - }, - { - "id": "sion_0627", - "uuid": "{3FB7F947-1D69-4505-8D4E-3A893D367FFA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1000.018, - 55.561, - -145.272 - ], - "size": [ - 21.106, - 11.78, - 14.55 - ], - "groundY": 49.671, - "roofY": 61.451, - "wallCount": 57, - "roofCount": 23 - }, - { - "id": "sion_0628", - "uuid": "{AFDEDF91-85E0-42C4-ABDA-94B0F1D371E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1314.619, - 36.272, - 167.489 - ], - "size": [ - 15.215, - 13.284, - 17.298 - ], - "groundY": 29.63, - "roofY": 42.914, - "wallCount": 60, - "roofCount": 25 - }, - { - "id": "sion_0629", - "uuid": "{8B943425-2C6B-4F4E-9C74-516E2D13E1BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1325.883, - 203.689, - -546.311 - ], - "size": [ - 16.609, - 10.016, - 17.716 - ], - "groundY": 198.681, - "roofY": 208.697, - "wallCount": 36, - "roofCount": 17 - }, - { - "id": "sion_0630", - "uuid": "{40F1CA80-0DB1-4210-971E-C1517272B692}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -547.027, - 28.646, - -70.147 - ], - "size": [ - 20.977, - 12.57, - 16.231 - ], - "groundY": 22.361, - "roofY": 34.931, - "wallCount": 17, - "roofCount": 28 - }, - { - "id": "sion_0631", - "uuid": "{F27BB429-2433-482D-AE6F-672967A823A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1315.357, - 0.681, - 817.935 - ], - "size": [ - 9.934, - 7.546, - 9.651 - ], - "groundY": -3.092, - "roofY": 4.454, - "wallCount": 35, - "roofCount": 22 - }, - { - "id": "sion_0632", - "uuid": "{CE5DB162-D8D3-4FAF-9A7B-674311C58DB5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -603.066, - 33.289, - -194.857 - ], - "size": [ - 9.102, - 11.2, - 10.233 - ], - "groundY": 27.689, - "roofY": 38.889, - "wallCount": 56, - "roofCount": 10 - }, - { - "id": "sion_0633", - "uuid": "{6428415D-F108-44C3-89B0-9D7C9DD513A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1067.805, - 82.714, - -214.264 - ], - "size": [ - 19.234, - 13.345, - 18.254 - ], - "groundY": 76.042, - "roofY": 89.386, - "wallCount": 43, - "roofCount": 12 - }, - { - "id": "sion_0634", - "uuid": "{DC0790E8-9319-4012-B20B-D45F01B33C46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -808.629, - 6.65, - 274.384 - ], - "size": [ - 49.75, - 17.526, - 26.384 - ], - "groundY": -2.113, - "roofY": 15.413, - "wallCount": 51, - "roofCount": 34 - }, - { - "id": "sion_0635", - "uuid": "{5F9A9890-26E3-48BE-9889-F07543823226}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1184.623, - 291.542, - -1382.675 - ], - "size": [ - 20.543, - 11.057, - 17.248 - ], - "groundY": 286.014, - "roofY": 297.07, - "wallCount": 39, - "roofCount": 18 - }, - { - "id": "sion_0636", - "uuid": "{B9E19A3A-2D63-4933-AA19-360006FF6769}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1019.555, - 2.927, - 298.74 - ], - "size": [ - 13.445, - 12.158, - 16.08 - ], - "groundY": -3.152, - "roofY": 9.006, - "wallCount": 25, - "roofCount": 25 - }, - { - "id": "sion_0637", - "uuid": "{E19AB6C6-A213-4D8D-A2C6-3CC812AA3F6D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -641.074, - 36.404, - -286.264 - ], - "size": [ - 16.703, - 9.388, - 20.046 - ], - "groundY": 31.71, - "roofY": 41.098, - "wallCount": 28, - "roofCount": 11 - }, - { - "id": "sion_0638", - "uuid": "{3B7EE228-DDE3-4485-B68D-921DB51C2A82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -981.395, - 5.232, - 280.877 - ], - "size": [ - 16.406, - 16.035, - 38.5 - ], - "groundY": -2.785, - "roofY": 13.25, - "wallCount": 26, - "roofCount": 22 - }, - { - "id": "sion_0639", - "uuid": "{770FF37E-30E4-4366-803D-1305B2A53F53}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -949.596, - 3.225, - 300.838 - ], - "size": [ - 15.176, - 12.848, - 13.387 - ], - "groundY": -3.199, - "roofY": 9.649, - "wallCount": 41, - "roofCount": 29 - }, - { - "id": "sion_0640", - "uuid": "{9A9DB608-2295-4608-8C34-45F7A8F8FC8C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -544.068, - 57.789, - -539.352 - ], - "size": [ - 30.863, - 16.528, - 24.806 - ], - "groundY": 49.525, - "roofY": 66.053, - "wallCount": 42, - "roofCount": 20 - }, - { - "id": "sion_0641", - "uuid": "{416047FA-94CB-4A23-9391-ECEBB2932E17}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -772.777, - 74.654, - -453.934 - ], - "size": [ - 18.352, - 10.088, - 23.925 - ], - "groundY": 69.61, - "roofY": 79.698, - "wallCount": 42, - "roofCount": 23 - }, - { - "id": "sion_0642", - "uuid": "{16AD8333-7B86-4ADC-9F5D-3F6E8EA8E7DD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1221.293, - 114.226, - -297.587 - ], - "size": [ - 15.828, - 10.302, - 18.658 - ], - "groundY": 109.075, - "roofY": 119.377, - "wallCount": 26, - "roofCount": 4 - }, - { - "id": "sion_0643", - "uuid": "{8F5BB852-D6C1-4676-B385-D5DA18472A21}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1136.168, - 70.293, - -74.865 - ], - "size": [ - 9.234, - 7.72, - 8.758 - ], - "groundY": 66.433, - "roofY": 74.153, - "wallCount": 46, - "roofCount": 12 - }, - { - "id": "sion_0644", - "uuid": "{5D72EC1F-0C24-4743-9CC6-B6EC1073B9F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1482.992, - 7.521, - 384.391 - ], - "size": [ - 27.875, - 19.713, - 20.278 - ], - "groundY": -2.335, - "roofY": 17.378, - "wallCount": 53, - "roofCount": 20 - }, - { - "id": "sion_0645", - "uuid": "{D7CD40A8-8891-430C-9161-5370EFB2A46B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1397.453, - 280.013, - -1261.089 - ], - "size": [ - 19.102, - 12.39, - 16.779 - ], - "groundY": 273.818, - "roofY": 286.208, - "wallCount": 31, - "roofCount": 17 - }, - { - "id": "sion_0646", - "uuid": "{AAA9AF5F-56E0-46A0-9347-CADF254C441C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -665.934, - 52.099, - -388.71 - ], - "size": [ - 19.984, - 12.476, - 19.878 - ], - "groundY": 45.861, - "roofY": 58.337, - "wallCount": 13, - "roofCount": 31 - }, - { - "id": "sion_0647", - "uuid": "{591739C7-0896-47E7-8164-31EBCE29658C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1518.744, - 223.735, - -752.134 - ], - "size": [ - 15.832, - 9.672, - 16.83 - ], - "groundY": 218.899, - "roofY": 228.571, - "wallCount": 57, - "roofCount": 33 - }, - { - "id": "sion_0648", - "uuid": "{779EAE00-003A-4F88-AA14-11EBBF03401E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -864.016, - 294.935, - -1503.106 - ], - "size": [ - 15.523, - 9.366, - 17.802 - ], - "groundY": 290.252, - "roofY": 299.618, - "wallCount": 36, - "roofCount": 20 - }, - { - "id": "sion_0649", - "uuid": "{3AF7C755-E384-4E7C-A665-1D48783D9AEF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1328.232, - 281.398, - -1151.46 - ], - "size": [ - 21.254, - 12.062, - 17.958 - ], - "groundY": 275.367, - "roofY": 287.429, - "wallCount": 37, - "roofCount": 17 - }, - { - "id": "sion_0650", - "uuid": "{73F7F6E1-4CB2-4393-B71D-D93A921936D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1329.557, - 82.718, - -118.631 - ], - "size": [ - 24.277, - 20.613, - 37.17 - ], - "groundY": 72.412, - "roofY": 93.025, - "wallCount": 25, - "roofCount": 21 - }, - { - "id": "sion_0651", - "uuid": "{FE148700-2D27-4962-85BF-E18EB77F6FDC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1158.387, - 281.553, - -1128.91 - ], - "size": [ - 7.523, - 6.883, - 7.04 - ], - "groundY": 278.112, - "roofY": 284.995, - "wallCount": 37, - "roofCount": 16 - }, - { - "id": "sion_0652", - "uuid": "{B714B7D2-C62E-4C81-A5D4-B2DAFA39556F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1243.785, - 281.958, - -1154.11 - ], - "size": [ - 13.125, - 9.301, - 9.564 - ], - "groundY": 277.308, - "roofY": 286.609, - "wallCount": 46, - "roofCount": 31 - }, - { - "id": "sion_0653", - "uuid": "{FCED8671-BE25-460E-B554-7DBFD4EE8A94}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -543.746, - 5.444, - 910.903 - ], - "size": [ - 25.938, - 13.386, - 40.853 - ], - "groundY": -1.249, - "roofY": 12.137, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_0654", - "uuid": "{0FAE753B-ED03-46DB-AA68-F8646BA50160}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -895.961, - 15.271, - 175.371 - ], - "size": [ - 78.648, - 25.074, - 29.139 - ], - "groundY": 2.734, - "roofY": 27.808, - "wallCount": 76, - "roofCount": 46 - }, - { - "id": "sion_0655", - "uuid": "{FFE99530-66A9-40CF-82F8-34B700BBF1E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -590.131, - 31.417, - -90.06 - ], - "size": [ - 23.871, - 21.109, - 22.088 - ], - "groundY": 20.863, - "roofY": 41.971, - "wallCount": 44, - "roofCount": 18 - }, - { - "id": "sion_0656", - "uuid": "{192F3861-3963-4AA7-AC4A-C77869EFC8A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -869.58, - 2.978, - 255.683 - ], - "size": [ - 14.16, - 10.064, - 12.476 - ], - "groundY": -2.054, - "roofY": 8.01, - "wallCount": 43, - "roofCount": 23 - }, - { - "id": "sion_0657", - "uuid": "{0810063A-09D5-4CD4-A4C5-D9159B02C2D8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1037.816, - 81.402, - -249.049 - ], - "size": [ - 19.906, - 14.772, - 17.649 - ], - "groundY": 74.016, - "roofY": 88.788, - "wallCount": 59, - "roofCount": 53 - }, - { - "id": "sion_0658", - "uuid": "{D424760D-1A3F-4934-9275-FC54693F272C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -436.395, - 68.343, - -697.525 - ], - "size": [ - 27.562, - 13.242, - 24.36 - ], - "groundY": 61.722, - "roofY": 74.964, - "wallCount": 51, - "roofCount": 50 - }, - { - "id": "sion_0659", - "uuid": "{A16877AA-043B-4FE0-AD63-B38EB695CEA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -651.771, - 18.85, - 232.07 - ], - "size": [ - 39.231, - 20.207, - 13.55 - ], - "groundY": 8.747, - "roofY": 28.954, - "wallCount": 14, - "roofCount": 24 - }, - { - "id": "sion_0660", - "uuid": "{57403081-34BA-4460-A4E4-D8A357F99FB8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1103.779, - 288.429, - -1272.368 - ], - "size": [ - 17.645, - 10.091, - 13.488 - ], - "groundY": 283.384, - "roofY": 293.475, - "wallCount": 30, - "roofCount": 14 - }, - { - "id": "sion_0661", - "uuid": "{35E1A4C9-878B-463B-9A91-CCFEDD79D224}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1200.678, - 264.509, - -951.402 - ], - "size": [ - 27.973, - 8.858, - 23.032 - ], - "groundY": 260.08, - "roofY": 268.938, - "wallCount": 44, - "roofCount": 14 - }, - { - "id": "sion_0662", - "uuid": "{39049F38-E154-47F4-82EB-00515EDD0061}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1220.803, - 284.553, - -1169.859 - ], - "size": [ - 29.894, - 16.988, - 32.62 - ], - "groundY": 276.059, - "roofY": 293.047, - "wallCount": 102, - "roofCount": 41 - }, - { - "id": "sion_0663", - "uuid": "{808DDED0-AFB6-458F-B5F3-E400236C189A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -631.287, - 29.176, - -3.75 - ], - "size": [ - 20.285, - 24.676, - 35.42 - ], - "groundY": 16.838, - "roofY": 41.514, - "wallCount": 14, - "roofCount": 17 - }, - { - "id": "sion_0664", - "uuid": "{B76274A2-A47F-4EF7-ACDF-323AB11F5A60}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -973.355, - 54.952, - -154.842 - ], - "size": [ - 24.898, - 12.004, - 15.436 - ], - "groundY": 48.95, - "roofY": 60.954, - "wallCount": 51, - "roofCount": 21 - }, - { - "id": "sion_0665", - "uuid": "{D890AD2D-D9C5-41CA-B0BE-31EB52FFBE83}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -524.738, - 15.961, - 337.031 - ], - "size": [ - 162.578, - 31.243, - 97.446 - ], - "groundY": 0.34, - "roofY": 31.582, - "wallCount": 137, - "roofCount": 53 - }, - { - "id": "sion_0666", - "uuid": "{0BF8F20B-75E7-4C49-A22B-F189613AA9EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1120.996, - 135.904, - -436.736 - ], - "size": [ - 14.141, - 12.821, - 16.096 - ], - "groundY": 129.494, - "roofY": 142.315, - "wallCount": 54, - "roofCount": 13 - }, - { - "id": "sion_0667", - "uuid": "{4E1A285D-0B82-4927-90AD-1472B22AF6DC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -674.975, - 1.961, - 991.64 - ], - "size": [ - 10.074, - 6.004, - 17.981 - ], - "groundY": -1.041, - "roofY": 4.963, - "wallCount": 33, - "roofCount": 6 - }, - { - "id": "sion_0668", - "uuid": "{4C96CE9B-D8F5-489B-90FD-A411CFE40AB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1258.615, - 216.61, - -745.857 - ], - "size": [ - 24.473, - 10.883, - 19.157 - ], - "groundY": 211.169, - "roofY": 222.052, - "wallCount": 33, - "roofCount": 60 - }, - { - "id": "sion_0669", - "uuid": "{50E604C5-8E55-4F7F-BBCE-1E41DCCCFDC2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -715.951, - 3.768, - 318.702 - ], - "size": [ - 14.121, - 11.999, - 11.602 - ], - "groundY": -2.231, - "roofY": 9.768, - "wallCount": 50, - "roofCount": 20 - }, - { - "id": "sion_0670", - "uuid": "{9CDFD173-CA90-4D95-8020-2C88856C32EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1300.555, - 282.539, - -1128.549 - ], - "size": [ - 31.75, - 13.996, - 21.939 - ], - "groundY": 275.541, - "roofY": 289.537, - "wallCount": 75, - "roofCount": 38 - }, - { - "id": "sion_0671", - "uuid": "{047549A2-BA16-406F-8576-65B5C5E79F26}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -870.691, - 26.357, - -117.331 - ], - "size": [ - 23.641, - 15.808, - 21.387 - ], - "groundY": 18.453, - "roofY": 34.261, - "wallCount": 33, - "roofCount": 8 - }, - { - "id": "sion_0672", - "uuid": "{226BABEF-7AA4-4D6B-BE32-E52EC7BEE1FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1496.693, - 229.476, - -647.445 - ], - "size": [ - 26.621, - 9.19, - 24.158 - ], - "groundY": 224.881, - "roofY": 234.071, - "wallCount": 24, - "roofCount": 24 - }, - { - "id": "sion_0673", - "uuid": "{4A45502D-D77F-49B7-8DE3-2B268687776A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -742.684, - 67.61, - -450.865 - ], - "size": [ - 18.164, - 10.76, - 24.168 - ], - "groundY": 62.23, - "roofY": 72.99, - "wallCount": 56, - "roofCount": 21 - }, - { - "id": "sion_0674", - "uuid": "{314D6E66-2777-47F2-8863-662E1F3C3D37}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -958.564, - 296.503, - -1491.296 - ], - "size": [ - 19.105, - 9.936, - 14.727 - ], - "groundY": 291.535, - "roofY": 301.471, - "wallCount": 36, - "roofCount": 13 - }, - { - "id": "sion_0675", - "uuid": "{608CAFAA-3DAF-4FF7-B406-6A49EAADE3BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1298.336, - 34.033, - 151.232 - ], - "size": [ - 16.281, - 16.295, - 17.38 - ], - "groundY": 25.885, - "roofY": 42.18, - "wallCount": 80, - "roofCount": 25 - }, - { - "id": "sion_0676", - "uuid": "{6674F8A7-2598-47DD-867D-36DD162AAFF1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1068.504, - 77.475, - -172.962 - ], - "size": [ - 26.758, - 13.212, - 27.13 - ], - "groundY": 70.869, - "roofY": 84.081, - "wallCount": 48, - "roofCount": 16 - }, - { - "id": "sion_0677", - "uuid": "{0C76DAF6-9825-4AE0-B157-A4E6C80D129D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1212.836, - 118.363, - -337.539 - ], - "size": [ - 9.633, - 8.725, - 16.391 - ], - "groundY": 114.001, - "roofY": 122.726, - "wallCount": 26, - "roofCount": 2 - }, - { - "id": "sion_0678", - "uuid": "{B05F0FC4-57B8-4691-A209-81CA6F7C74D7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1128.82, - 2.963, - 397.056 - ], - "size": [ - 13.164, - 12.222, - 33.672 - ], - "groundY": -3.148, - "roofY": 9.074, - "wallCount": 21, - "roofCount": 21 - }, - { - "id": "sion_0679", - "uuid": "{6E8F923A-C785-4A9D-B780-C704720D565D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1511.17, - 157.753, - -341.112 - ], - "size": [ - 12.262, - 11.533, - 14.258 - ], - "groundY": 151.986, - "roofY": 163.519, - "wallCount": 50, - "roofCount": 10 - }, - { - "id": "sion_0680", - "uuid": "{AAA83B37-7568-4801-B0FE-30D386755EC9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1198.205, - 286.522, - -1189.539 - ], - "size": [ - 18.137, - 13.469, - 20.082 - ], - "groundY": 279.788, - "roofY": 293.257, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_0681", - "uuid": "{3FA03437-9E2B-48BF-A0DE-E86675A46D3E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -714.076, - 294.327, - -1253.514 - ], - "size": [ - 23.543, - 15.298, - 19.804 - ], - "groundY": 286.678, - "roofY": 301.976, - "wallCount": 22, - "roofCount": 9 - }, - { - "id": "sion_0682", - "uuid": "{D0A43AE3-C126-4372-A984-9E610484A513}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1270.369, - 231.862, - -782.969 - ], - "size": [ - 18.856, - 9.437, - 18.032 - ], - "groundY": 227.143, - "roofY": 236.58, - "wallCount": 48, - "roofCount": 25 - }, - { - "id": "sion_0683", - "uuid": "{23E20763-8E5D-4361-9090-C6113A71ECA6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1263.512, - 281.063, - -1092.769 - ], - "size": [ - 11.148, - 11.374, - 17.819 - ], - "groundY": 275.376, - "roofY": 286.75, - "wallCount": 45, - "roofCount": 26 - }, - { - "id": "sion_0684", - "uuid": "{21B4E2A4-7F39-4A60-83AF-3F48D98019C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1310.83, - 19.746, - 541.262 - ], - "size": [ - 41.777, - 44.946, - 47.238 - ], - "groundY": -2.727, - "roofY": 42.218, - "wallCount": 55, - "roofCount": 21 - }, - { - "id": "sion_0685", - "uuid": "{E842474C-ED50-49DB-B86D-83617BDA36EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -472.465, - 6.052, - 885.773 - ], - "size": [ - 22.531, - 14.046, - 31.622 - ], - "groundY": -0.971, - "roofY": 13.075, - "wallCount": 45, - "roofCount": 16 - }, - { - "id": "sion_0686", - "uuid": "{EA189F86-26ED-489F-8A1C-B7988D5D9138}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -776.461, - 2.03, - 570.112 - ], - "size": [ - 18.961, - 7.024, - 19.04 - ], - "groundY": -1.482, - "roofY": 5.542, - "wallCount": 13, - "roofCount": 2 - }, - { - "id": "sion_0687", - "uuid": "{93E01D73-A655-4B66-BC5D-719377477B23}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1011.842, - 63.401, - -172.264 - ], - "size": [ - 41.441, - 16.46, - 26.06 - ], - "groundY": 55.171, - "roofY": 71.631, - "wallCount": 61, - "roofCount": 43 - }, - { - "id": "sion_0688", - "uuid": "{C3AA4B4A-017D-44B2-AC4F-EBB8DA359200}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -985.697, - 43.062, - -118.198 - ], - "size": [ - 29.371, - 11.212, - 23.088 - ], - "groundY": 37.456, - "roofY": 48.668, - "wallCount": 47, - "roofCount": 10 - }, - { - "id": "sion_0689", - "uuid": "{4AA9DE9D-624C-4AA6-8C43-D7DFFD53F093}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1338.852, - 279.509, - -1086.623 - ], - "size": [ - 19.609, - 11.3, - 20.504 - ], - "groundY": 273.859, - "roofY": 285.159, - "wallCount": 43, - "roofCount": 13 - }, - { - "id": "sion_0690", - "uuid": "{CDA6FEF3-FBC3-4C0B-A485-4A27F88F8289}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1094.842, - 218.136, - -806.487 - ], - "size": [ - 23.363, - 6.028, - 21.074 - ], - "groundY": 215.122, - "roofY": 221.15, - "wallCount": 29, - "roofCount": 9 - }, - { - "id": "sion_0691", - "uuid": "{3C54ADAA-D29D-4CBB-95CA-4EFACD45AE44}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -666.211, - 76.76, - -528.389 - ], - "size": [ - 45.602, - 15.033, - 29.69 - ], - "groundY": 69.244, - "roofY": 84.277, - "wallCount": 27, - "roofCount": 49 - }, - { - "id": "sion_0692", - "uuid": "{B99499D2-5228-4825-B88E-BBDB46B35B04}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -598.109, - 21.969, - 196.618 - ], - "size": [ - 41.117, - 25.545, - 80.191 - ], - "groundY": 9.197, - "roofY": 34.742, - "wallCount": 62, - "roofCount": 53 - }, - { - "id": "sion_0693", - "uuid": "{1F4B9C67-D91B-4161-AA2B-BC841BAD5A9F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1428.701, - 277.16, - -1214.032 - ], - "size": [ - 27.379, - 17.088, - 30.942 - ], - "groundY": 268.616, - "roofY": 285.704, - "wallCount": 72, - "roofCount": 32 - }, - { - "id": "sion_0694", - "uuid": "{2B9ECAA0-484B-4EF0-A209-C624ECAAA577}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1301.176, - 123.986, - -300.342 - ], - "size": [ - 17.562, - 9.986, - 16.458 - ], - "groundY": 118.993, - "roofY": 128.979, - "wallCount": 39, - "roofCount": 6 - }, - { - "id": "sion_0695", - "uuid": "{1A55D5E0-8E4E-4049-A40B-8FBB7CCA92A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1237.795, - 294.933, - -1413.296 - ], - "size": [ - 18.762, - 11.738, - 14.146 - ], - "groundY": 289.064, - "roofY": 300.802, - "wallCount": 37, - "roofCount": 34 - }, - { - "id": "sion_0696", - "uuid": "{CA786191-9F21-4A35-BABA-B408FD793EDD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -565.943, - 5.877, - 452.458 - ], - "size": [ - 23.035, - 12.332, - 13.809 - ], - "groundY": -0.289, - "roofY": 12.043, - "wallCount": 32, - "roofCount": 9 - }, - { - "id": "sion_0697", - "uuid": "{B92F34B7-B8D8-4C70-94C2-CB61E4E734ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1370.365, - 19.366, - 559.208 - ], - "size": [ - 47.856, - 44.862, - 47.773 - ], - "groundY": -3.065, - "roofY": 41.797, - "wallCount": 129, - "roofCount": 36 - }, - { - "id": "sion_0698", - "uuid": "{0C5D0802-7FA2-4C19-B69C-D32618D89392}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -926.473, - 62.245, - -216.533 - ], - "size": [ - 20.547, - 12.553, - 21.034 - ], - "groundY": 55.969, - "roofY": 68.522, - "wallCount": 31, - "roofCount": 11 - }, - { - "id": "sion_0699", - "uuid": "{4EA4DB14-3917-4ECA-A9D8-D8E8F53FFC64}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -662.072, - 62.099, - -472.255 - ], - "size": [ - 18.527, - 11.226, - 19.954 - ], - "groundY": 56.486, - "roofY": 67.712, - "wallCount": 31, - "roofCount": 13 - }, - { - "id": "sion_0700", - "uuid": "{E8997395-8DF2-4AD1-B842-0D0AFD6182E0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1324.537, - 0.013, - 596.08 - ], - "size": [ - 17.902, - 6.316, - 36.391 - ], - "groundY": -3.145, - "roofY": 3.171, - "wallCount": 30, - "roofCount": 15 - }, - { - "id": "sion_0701", - "uuid": "{A4A9B984-201D-432B-8665-AF5F3E69E9E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -569.81, - 34.372, - -112.733 - ], - "size": [ - 21.059, - 23.728, - 21.164 - ], - "groundY": 22.508, - "roofY": 46.236, - "wallCount": 26, - "roofCount": 14 - }, - { - "id": "sion_0702", - "uuid": "{9885A42B-7EE0-4DB8-A553-3D9BF1192266}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -746.518, - 98.825, - -594.765 - ], - "size": [ - 17.996, - 8.425, - 15.515 - ], - "groundY": 94.613, - "roofY": 103.038, - "wallCount": 33, - "roofCount": 8 - }, - { - "id": "sion_0703", - "uuid": "{2CA2003E-8444-470B-B7CB-B86DED33BEC1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1018.846, - 295.846, - -1234.961 - ], - "size": [ - 28.301, - 11.513, - 16.883 - ], - "groundY": 290.09, - "roofY": 301.602, - "wallCount": 31, - "roofCount": 14 - }, - { - "id": "sion_0704", - "uuid": "{6F7BCA88-0F48-407F-B4C2-ED60CB7ADFFF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -975.373, - 11.063, - 60.992 - ], - "size": [ - 61.199, - 8.838, - 72.227 - ], - "groundY": 6.644, - "roofY": 15.482, - "wallCount": 104, - "roofCount": 61 - }, - { - "id": "sion_0705", - "uuid": "{AEF3E96C-F0A0-4646-B7A2-F99193A09FBF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1175.729, - 266.923, - -989.367 - ], - "size": [ - 16.41, - 10.098, - 11.643 - ], - "groundY": 261.874, - "roofY": 271.972, - "wallCount": 40, - "roofCount": 32 - }, - { - "id": "sion_0706", - "uuid": "{0D94E19D-796C-4DFF-B3E7-687F45360F20}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -502.523, - 28.76, - 37.5 - ], - "size": [ - 39.906, - 23.033, - 29.504 - ], - "groundY": 17.243, - "roofY": 40.276, - "wallCount": 19, - "roofCount": 22 - }, - { - "id": "sion_0707", - "uuid": "{9110CBEC-C89F-403C-B89B-145C0A752E28}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -436.303, - 2.342, - 698.557 - ], - "size": [ - 34.371, - 6.679, - 20.642 - ], - "groundY": -0.997, - "roofY": 5.682, - "wallCount": 36, - "roofCount": 16 - }, - { - "id": "sion_0708", - "uuid": "{96B86CCF-2E87-40A4-A2F0-030EB7B62FB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -657.873, - 26.014, - 3.759 - ], - "size": [ - 16.215, - 15.306, - 16.25 - ], - "groundY": 18.361, - "roofY": 33.667, - "wallCount": 49, - "roofCount": 66 - }, - { - "id": "sion_0709", - "uuid": "{FB3A2278-E204-4604-A4A2-CA248A0E96A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -714.811, - 5.029, - 455.434 - ], - "size": [ - 95.066, - 13.429, - 95.372 - ], - "groundY": -1.685, - "roofY": 11.744, - "wallCount": 56, - "roofCount": 22 - }, - { - "id": "sion_0710", - "uuid": "{8C01A7FF-C481-48AF-A142-BECC88EAB85D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1135.328, - 105.642, - -282.602 - ], - "size": [ - 22.117, - 13.177, - 16.741 - ], - "groundY": 99.054, - "roofY": 112.231, - "wallCount": 45, - "roofCount": 16 - }, - { - "id": "sion_0711", - "uuid": "{B8209ACA-B04A-4534-8B7F-82BD3AA73B61}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -504.348, - 54.363, - -523.475 - ], - "size": [ - 44.992, - 20.761, - 34.944 - ], - "groundY": 43.983, - "roofY": 64.744, - "wallCount": 26, - "roofCount": 29 - }, - { - "id": "sion_0712", - "uuid": "{F98B7CF0-B988-4921-A6AB-4664A346B647}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1377.039, - 222.812, - -708.897 - ], - "size": [ - 20.883, - 10.632, - 19.819 - ], - "groundY": 217.496, - "roofY": 228.128, - "wallCount": 41, - "roofCount": 32 - }, - { - "id": "sion_0713", - "uuid": "{C1E8F037-6500-426D-A9F2-B8171309F89D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -495.859, - 276.394, - -1350.554 - ], - "size": [ - 8.281, - 5.736, - 8.96 - ], - "groundY": 273.526, - "roofY": 279.262, - "wallCount": 49, - "roofCount": 14 - }, - { - "id": "sion_0714", - "uuid": "{7BC294A8-1BDB-4593-A3E3-1A2FEB5EAAA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1529.33, - 221.208, - -568.334 - ], - "size": [ - 16.019, - 11.363, - 21.478 - ], - "groundY": 215.527, - "roofY": 226.889, - "wallCount": 36, - "roofCount": 11 - }, - { - "id": "sion_0715", - "uuid": "{79DA8FF3-972A-4833-B5AF-09AEF0D50B8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1381.551, - 6.574, - 264.434 - ], - "size": [ - 76.023, - 14.155, - 48.256 - ], - "groundY": -0.504, - "roofY": 13.651, - "wallCount": 131, - "roofCount": 53 - }, - { - "id": "sion_0716", - "uuid": "{18B7713B-C4BF-47E6-9DB3-FE77D24F8FFE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -444.625, - 2.306, - 884.308 - ], - "size": [ - 20.414, - 6.083, - 17.354 - ], - "groundY": -0.735, - "roofY": 5.348, - "wallCount": 32, - "roofCount": 10 - }, - { - "id": "sion_0717", - "uuid": "{FA84E205-46EB-4E09-8673-D5C66F487290}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1125.189, - 206.966, - -732.917 - ], - "size": [ - 26.442, - 4.606, - 25.818 - ], - "groundY": 204.663, - "roofY": 209.269, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_0718", - "uuid": "{F6D42720-16B3-4FAB-B4E5-822D1149A9AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -651.564, - 51.728, - -406.067 - ], - "size": [ - 18.996, - 10.416, - 19.013 - ], - "groundY": 46.52, - "roofY": 56.936, - "wallCount": 16, - "roofCount": 13 - }, - { - "id": "sion_0719", - "uuid": "{35223B8F-B666-41B1-BA5E-FA5460557248}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1338.758, - 290.017, - -1403.857 - ], - "size": [ - 17.68, - 11.336, - 15.832 - ], - "groundY": 284.349, - "roofY": 295.685, - "wallCount": 20, - "roofCount": 12 - }, - { - "id": "sion_0720", - "uuid": "{E1B12BB4-F4F2-4937-8032-9625069617AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1268.273, - 278.666, - -1069.856 - ], - "size": [ - 30.328, - 14.839, - 18.661 - ], - "groundY": 271.247, - "roofY": 286.086, - "wallCount": 40, - "roofCount": 16 - }, - { - "id": "sion_0721", - "uuid": "{1C6F6767-9A27-44C3-98C0-519F769ECBB6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1019.043, - 93.964, - -321.065 - ], - "size": [ - 21.656, - 13.809, - 20.278 - ], - "groundY": 87.06, - "roofY": 100.869, - "wallCount": 34, - "roofCount": 13 - }, - { - "id": "sion_0722", - "uuid": "{73D8AAB8-4791-4050-9345-3C579AF9FB7C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -526.625, - 76.881, - -699.438 - ], - "size": [ - 19.281, - 9.497, - 18.329 - ], - "groundY": 72.132, - "roofY": 81.629, - "wallCount": 15, - "roofCount": 11 - }, - { - "id": "sion_0723", - "uuid": "{E5220A23-87A2-44CB-8200-C8A7E8A9F92B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -968.981, - 73.242, - -239.754 - ], - "size": [ - 28.75, - 12.798, - 30.83 - ], - "groundY": 66.843, - "roofY": 79.641, - "wallCount": 99, - "roofCount": 99 - }, - { - "id": "sion_0724", - "uuid": "{D74A9571-9A2D-4696-9C40-4D2D5BABB674}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -902.537, - 33.291, - -150.977 - ], - "size": [ - 45.387, - 20.658, - 39.477 - ], - "groundY": 22.962, - "roofY": 43.62, - "wallCount": 83, - "roofCount": 26 - }, - { - "id": "sion_0725", - "uuid": "{A6026478-E80E-4BF9-AE08-168F41443A2E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1405.891, - 227.551, - -746.251 - ], - "size": [ - 16.891, - 5.546, - 17.223 - ], - "groundY": 224.778, - "roofY": 230.324, - "wallCount": 30, - "roofCount": 10 - }, - { - "id": "sion_0726", - "uuid": "{5407F250-DD3A-45CE-9269-C300AE3ADA5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -884.555, - 16.931, - 123.358 - ], - "size": [ - 30.0, - 17.403, - 16.483 - ], - "groundY": 8.23, - "roofY": 25.633, - "wallCount": 37, - "roofCount": 44 - }, - { - "id": "sion_0727", - "uuid": "{05B720C4-3297-4472-BA77-367A8BC0F7A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1029.494, - 102.072, - -404.697 - ], - "size": [ - 20.316, - 12.764, - 18.774 - ], - "groundY": 95.69, - "roofY": 108.454, - "wallCount": 36, - "roofCount": 33 - }, - { - "id": "sion_0728", - "uuid": "{E061BA6E-0ACB-4922-9395-00083DA9C073}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1163.568, - 109.819, - -318.156 - ], - "size": [ - 12.731, - 7.064, - 16.034 - ], - "groundY": 106.287, - "roofY": 113.351, - "wallCount": 46, - "roofCount": 21 - }, - { - "id": "sion_0729", - "uuid": "{33F75874-95F2-4E7F-BA72-BAB7E04C8C88}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -676.584, - 4.036, - 328.521 - ], - "size": [ - 15.652, - 11.792, - 13.294 - ], - "groundY": -1.86, - "roofY": 9.932, - "wallCount": 33, - "roofCount": 9 - }, - { - "id": "sion_0730", - "uuid": "{E5B13EB3-5E30-4D28-BB27-CF012E1B0475}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -488.188, - 2.784, - 826.426 - ], - "size": [ - 23.195, - 7.65, - 14.786 - ], - "groundY": -1.041, - "roofY": 6.609, - "wallCount": 38, - "roofCount": 20 - }, - { - "id": "sion_0731", - "uuid": "{938DB147-3B24-47B0-AE87-B7067252DEA3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1084.148, - 262.116, - -948.139 - ], - "size": [ - 23.008, - 12.171, - 20.8 - ], - "groundY": 256.03, - "roofY": 268.201, - "wallCount": 34, - "roofCount": 24 - }, - { - "id": "sion_0732", - "uuid": "{B34F8CF4-EB4E-464F-B7B9-5DCE7E3C5621}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1331.311, - 4.857, - 749.967 - ], - "size": [ - 56.699, - 16.214, - 47.238 - ], - "groundY": -3.25, - "roofY": 12.964, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_0733", - "uuid": "{B09BB013-BFF7-4C50-8390-3A5D57F9FB91}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1332.939, - 289.451, - -1446.333 - ], - "size": [ - 21.942, - 11.014, - 17.705 - ], - "groundY": 283.944, - "roofY": 294.958, - "wallCount": 41, - "roofCount": 33 - }, - { - "id": "sion_0734", - "uuid": "{94D81FBF-9FB1-452A-8A70-C0F3524E70DF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1151.246, - 0.454, - 647.958 - ], - "size": [ - 75.719, - 7.075, - 43.887 - ], - "groundY": -3.083, - "roofY": 3.992, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_0735", - "uuid": "{C7332EA6-44EA-4612-914F-68973DB18153}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -799.652, - 2.827, - 937.481 - ], - "size": [ - 46.266, - 9.365, - 30.2 - ], - "groundY": -1.855, - "roofY": 7.51, - "wallCount": 40, - "roofCount": 29 - }, - { - "id": "sion_0736", - "uuid": "{EECC6C51-9E3C-45C9-9AC3-744573AEEF10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1005.939, - 292.392, - -1322.924 - ], - "size": [ - 23.817, - 12.418, - 18.954 - ], - "groundY": 286.183, - "roofY": 298.601, - "wallCount": 40, - "roofCount": 33 - }, - { - "id": "sion_0737", - "uuid": "{F49CBE6A-2A8B-4860-B4B2-BE2CEDBEB4AD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1429.795, - 5.352, - 337.072 - ], - "size": [ - 15.309, - 13.475, - 15.144 - ], - "groundY": -1.385, - "roofY": 12.09, - "wallCount": 55, - "roofCount": 42 - }, - { - "id": "sion_0738", - "uuid": "{87BDF9E4-4CFB-4F31-ABE9-DC1CCB819ECB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1359.266, - 236.489, - -793.233 - ], - "size": [ - 16.203, - 12.562, - 18.524 - ], - "groundY": 230.208, - "roofY": 242.77, - "wallCount": 43, - "roofCount": 8 - }, - { - "id": "sion_0739", - "uuid": "{FF5F9314-FC59-47A0-887E-7C1411C68E48}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1294.797, - 273.69, - -1207.235 - ], - "size": [ - 11.086, - 10.717, - 11.49 - ], - "groundY": 268.331, - "roofY": 279.048, - "wallCount": 49, - "roofCount": 16 - }, - { - "id": "sion_0740", - "uuid": "{0862D35C-7C65-4B6E-A7EF-5EA55F98491D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -744.508, - 296.036, - -1201.011 - ], - "size": [ - 29.281, - 16.05, - 26.424 - ], - "groundY": 288.011, - "roofY": 304.061, - "wallCount": 10, - "roofCount": 7 - }, - { - "id": "sion_0741", - "uuid": "{61D2199F-69EE-41E8-AD3A-03BD4E917B84}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1495.48, - 223.056, - -607.07 - ], - "size": [ - 9.117, - 6.128, - 9.288 - ], - "groundY": 219.992, - "roofY": 226.12, - "wallCount": 60, - "roofCount": 2 - }, - { - "id": "sion_0742", - "uuid": "{E98047BA-3468-4D7E-BD12-910B5242695D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1362.814, - 219.286, - -669.851 - ], - "size": [ - 67.176, - 13.176, - 45.677 - ], - "groundY": 212.698, - "roofY": 225.874, - "wallCount": 118, - "roofCount": 76 - }, - { - "id": "sion_0743", - "uuid": "{8AD96849-3CCC-4992-9189-86F586DBDB92}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -879.787, - 295.886, - -1436.787 - ], - "size": [ - 20.395, - 9.197, - 23.672 - ], - "groundY": 291.288, - "roofY": 300.485, - "wallCount": 29, - "roofCount": 12 - }, - { - "id": "sion_0744", - "uuid": "{83566271-5169-425C-B992-F2413A1AF3A5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -664.494, - 25.9, - 63.951 - ], - "size": [ - 46.512, - 24.174, - 42.605 - ], - "groundY": 13.813, - "roofY": 37.987, - "wallCount": 92, - "roofCount": 41 - }, - { - "id": "sion_0745", - "uuid": "{509EFAD1-DBFB-4089-BCCB-2D0C3E3D6D1E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1167.756, - 247.301, - -867.597 - ], - "size": [ - 15.121, - 9.964, - 17.762 - ], - "groundY": 242.319, - "roofY": 252.283, - "wallCount": 38, - "roofCount": 19 - }, - { - "id": "sion_0746", - "uuid": "{DD2B4E42-48D4-4DFB-999A-F4F9B9DE578B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -968.846, - 292.38, - -1337.563 - ], - "size": [ - 23.816, - 12.442, - 18.962 - ], - "groundY": 286.159, - "roofY": 298.601, - "wallCount": 44, - "roofCount": 29 - }, - { - "id": "sion_0747", - "uuid": "{2AF26732-2470-4188-AFD2-ABC7DDED3D0C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1083.373, - 268.715, - -994.518 - ], - "size": [ - 12.473, - 10.62, - 16.92 - ], - "groundY": 263.405, - "roofY": 274.025, - "wallCount": 41, - "roofCount": 16 - }, - { - "id": "sion_0748", - "uuid": "{C8EF4B29-2B4D-4867-8D51-22F950D3D062}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -573.076, - 10.707, - 397.117 - ], - "size": [ - 45.684, - 22.664, - 35.189 - ], - "groundY": -0.625, - "roofY": 22.04, - "wallCount": 30, - "roofCount": 18 - }, - { - "id": "sion_0749", - "uuid": "{9449298B-9F4E-4C32-BFF3-B7DBBF72666B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1330.031, - 279.632, - -1097.304 - ], - "size": [ - 14.555, - 9.064, - 15.4 - ], - "groundY": 275.1, - "roofY": 284.164, - "wallCount": 46, - "roofCount": 14 - }, - { - "id": "sion_0750", - "uuid": "{BC70D57D-E7B2-41B9-A70A-9D405055A4A0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -926.229, - 290.919, - -1291.397 - ], - "size": [ - 16.41, - 10.852, - 14.612 - ], - "groundY": 285.493, - "roofY": 296.345, - "wallCount": 57, - "roofCount": 13 - }, - { - "id": "sion_0751", - "uuid": "{2C6583D5-BBB7-4141-B93E-625B564AAA8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1289.818, - 231.956, - -770.492 - ], - "size": [ - 21.84, - 10.912, - 16.63 - ], - "groundY": 226.5, - "roofY": 237.412, - "wallCount": 35, - "roofCount": 21 - }, - { - "id": "sion_0752", - "uuid": "{253DD958-840E-421B-A554-0A254AB29319}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -520.971, - 7.592, - 480.229 - ], - "size": [ - 16.191, - 15.28, - 18.173 - ], - "groundY": -0.048, - "roofY": 15.232, - "wallCount": 25, - "roofCount": 44 - }, - { - "id": "sion_0753", - "uuid": "{4E0B6103-D70C-4C51-ABFC-8391D16DC317}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1205.949, - 3.925, - 796.701 - ], - "size": [ - 12.234, - 10.593, - 12.391 - ], - "groundY": -1.372, - "roofY": 9.221, - "wallCount": 45, - "roofCount": 16 - }, - { - "id": "sion_0754", - "uuid": "{F397AD1E-6FE5-4598-93D2-C9F2F4C12E32}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -564.178, - 77.869, - -675.058 - ], - "size": [ - 19.363, - 12.3, - 16.929 - ], - "groundY": 71.719, - "roofY": 84.019, - "wallCount": 21, - "roofCount": 24 - }, - { - "id": "sion_0755", - "uuid": "{EB034DB5-8D6C-46D9-9042-3EDB46CE2EA7}", - "name": "", - "class": "Treibhaus", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -944.738, - 0.22, - 449.044 - ], - "size": [ - 6.969, - 5.177, - 15.08 - ], - "groundY": -2.368, - "roofY": 2.808, - "wallCount": 30, - "roofCount": 2 - }, - { - "id": "sion_0756", - "uuid": "{B4A5D3E2-AF11-4FE6-9B2D-85241ABAF9B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -709.158, - 90.439, - -549.786 - ], - "size": [ - 38.199, - 14.738, - 44.664 - ], - "groundY": 83.07, - "roofY": 97.808, - "wallCount": 65, - "roofCount": 43 - }, - { - "id": "sion_0757", - "uuid": "{DCE5E9A7-3217-4752-A1D2-8D54B873A0E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1482.646, - 153.417, - -334.074 - ], - "size": [ - 19.285, - 12.973, - 17.435 - ], - "groundY": 146.931, - "roofY": 159.904, - "wallCount": 66, - "roofCount": 26 - }, - { - "id": "sion_0758", - "uuid": "{9F43295F-8BF4-4D9E-B820-A7FFB53A5434}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -888.832, - 63.832, - -221.45 - ], - "size": [ - 21.297, - 12.81, - 20.664 - ], - "groundY": 57.427, - "roofY": 70.237, - "wallCount": 151, - "roofCount": 22 - }, - { - "id": "sion_0759", - "uuid": "{B9981D95-CE18-478B-AE1C-A01B5395EED4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -928.897, - 50.164, - -179.783 - ], - "size": [ - 48.699, - 12.202, - 41.052 - ], - "groundY": 44.063, - "roofY": 56.265, - "wallCount": 81, - "roofCount": 24 - }, - { - "id": "sion_0760", - "uuid": "{35860CF8-42DC-42F0-A6DF-96D2D2436347}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1065.98, - 219.848, - -816.608 - ], - "size": [ - 35.422, - 8.942, - 24.308 - ], - "groundY": 215.377, - "roofY": 224.319, - "wallCount": 22, - "roofCount": 6 - }, - { - "id": "sion_0761", - "uuid": "{E2C31138-AB5F-4722-8D3A-9CAD5CB6BBEF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1111.008, - 18.452, - 40.739 - ], - "size": [ - 40.18, - 22.398, - 34.986 - ], - "groundY": 7.253, - "roofY": 29.651, - "wallCount": 58, - "roofCount": 20 - }, - { - "id": "sion_0762", - "uuid": "{85F031D9-F966-4FF3-B6E4-32B618AFC869}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -827.457, - 63.142, - -246.962 - ], - "size": [ - 19.586, - 8.0, - 16.238 - ], - "groundY": 59.142, - "roofY": 67.142, - "wallCount": 34, - "roofCount": 16 - }, - { - "id": "sion_0763", - "uuid": "{33090183-F0DB-4CF6-89D9-18DFA257A827}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -403.25, - 55.935, - -660.245 - ], - "size": [ - 9.57, - 4.687, - 10.588 - ], - "groundY": 53.592, - "roofY": 58.279, - "wallCount": 25, - "roofCount": 2 - }, - { - "id": "sion_0764", - "uuid": "{A528E8F1-E199-41DF-A076-A3AEBAD61D68}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 2 - ], - "center": [ - -816.002, - 27.469, - -98.928 - ], - "size": [ - 32.309, - 19.386, - 29.66 - ], - "groundY": 17.776, - "roofY": 37.162, - "wallCount": 51, - "roofCount": 11 - }, - { - "id": "sion_0765", - "uuid": "{EC784D1E-6746-471A-8779-CB8C64733B8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -842.037, - 25.145, - -83.494 - ], - "size": [ - 19.16, - 16.728, - 18.258 - ], - "groundY": 16.781, - "roofY": 33.509, - "wallCount": 55, - "roofCount": 39 - }, - { - "id": "sion_0766", - "uuid": "{8641E37A-6A86-44BD-8503-90670BB4D9FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -594.008, - 85.634, - -683.74 - ], - "size": [ - 20.477, - 10.401, - 16.018 - ], - "groundY": 80.433, - "roofY": 90.834, - "wallCount": 34, - "roofCount": 16 - }, - { - "id": "sion_0767", - "uuid": "{BA2AE074-DD07-4F08-A85C-F6D7CEB6BFC7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -607.318, - 80.778, - -651.308 - ], - "size": [ - 18.449, - 10.002, - 21.59 - ], - "groundY": 75.777, - "roofY": 85.779, - "wallCount": 32, - "roofCount": 6 - }, - { - "id": "sion_0768", - "uuid": "{AB203FDD-8A19-42C0-A2C9-3210A55EAD61}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -754.641, - 5.345, - 317.837 - ], - "size": [ - 51.453, - 19.969, - 22.725 - ], - "groundY": -4.639, - "roofY": 15.33, - "wallCount": 68, - "roofCount": 70 - }, - { - "id": "sion_0769", - "uuid": "{9D6CCAB5-1D8B-4F70-9802-3053480D3144}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1302.877, - 204.476, - -583.592 - ], - "size": [ - 21.676, - 9.47, - 16.376 - ], - "groundY": 199.741, - "roofY": 209.211, - "wallCount": 38, - "roofCount": 32 - }, - { - "id": "sion_0770", - "uuid": "{E3402738-CAB3-4B5D-BAE2-4014EAA50D21}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1354.447, - 201.451, - -521.248 - ], - "size": [ - 28.926, - 8.57, - 15.549 - ], - "groundY": 197.166, - "roofY": 205.736, - "wallCount": 26, - "roofCount": 13 - }, - { - "id": "sion_0771", - "uuid": "{483C46FD-2253-4F40-B00A-ABCE59D4EBA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1218.178, - 282.169, - -1099.479 - ], - "size": [ - 20.848, - 12.066, - 17.882 - ], - "groundY": 276.136, - "roofY": 288.202, - "wallCount": 31, - "roofCount": 21 - }, - { - "id": "sion_0772", - "uuid": "{CC55B9C9-BE55-4D3F-8892-70EFE19251A1}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1037.16, - 292.639, - -1439.153 - ], - "size": [ - 15.703, - 8.796, - 20.392 - ], - "groundY": 288.241, - "roofY": 297.037, - "wallCount": 36, - "roofCount": 8 - }, - { - "id": "sion_0773", - "uuid": "{58B86D25-ADF8-4279-8AC3-D1257C16BAB7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -536.059, - 26.475, - -59.103 - ], - "size": [ - 11.695, - 8.074, - 14.864 - ], - "groundY": 22.438, - "roofY": 30.512, - "wallCount": 38, - "roofCount": 27 - }, - { - "id": "sion_0774", - "uuid": "{E04A8BE5-7BDA-4029-8695-444DD681CAEB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1120.693, - 297.385, - -1475.901 - ], - "size": [ - 21.082, - 15.316, - 20.256 - ], - "groundY": 289.727, - "roofY": 305.043, - "wallCount": 25, - "roofCount": 10 - }, - { - "id": "sion_0775", - "uuid": "{9BADFF12-0DA9-4E5A-9930-BAE6E4EAE270}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -496.166, - 5.531, - 406.881 - ], - "size": [ - 6.824, - 5.516, - 4.468 - ], - "groundY": 2.773, - "roofY": 8.289, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_0776", - "uuid": "{1E2DCBBB-4C5B-4392-BA2A-7D18F17DAB57}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -1001.039, - 294.828, - -1257.831 - ], - "size": [ - 25.062, - 12.372, - 18.874 - ], - "groundY": 288.642, - "roofY": 301.014, - "wallCount": 53, - "roofCount": 34 - }, - { - "id": "sion_0777", - "uuid": "{A597B819-03C2-4A97-B4ED-C2268D1F77B2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1360.512, - 278.992, - -1035.113 - ], - "size": [ - 40.172, - 17.298, - 25.624 - ], - "groundY": 270.343, - "roofY": 287.641, - "wallCount": 73, - "roofCount": 21 - }, - { - "id": "sion_0778", - "uuid": "{C0236D0C-FA43-4772-92D3-62916FE47BBC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1298.26, - 60.554, - 17.68 - ], - "size": [ - 26.981, - 13.285, - 27.438 - ], - "groundY": 53.911, - "roofY": 67.196, - "wallCount": 31, - "roofCount": 21 - }, - { - "id": "sion_0779", - "uuid": "{E93373BE-6EE9-4413-B327-37B4568289E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -622.746, - 35.624, - -211.527 - ], - "size": [ - 16.125, - 13.585, - 26.756 - ], - "groundY": 28.832, - "roofY": 42.417, - "wallCount": 34, - "roofCount": 24 - }, - { - "id": "sion_0780", - "uuid": "{376498E7-AFAC-4642-B51A-5B870CF605AB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1028.963, - 23.711, - -45.915 - ], - "size": [ - 34.332, - 19.158, - 28.5 - ], - "groundY": 14.132, - "roofY": 33.29, - "wallCount": 47, - "roofCount": 20 - }, - { - "id": "sion_0781", - "uuid": "{FA9AA1AF-50F4-4AF8-B726-545CF7E887F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1346.121, - 206.736, - -588.058 - ], - "size": [ - 16.742, - 9.498, - 17.778 - ], - "groundY": 201.987, - "roofY": 211.485, - "wallCount": 34, - "roofCount": 17 - }, - { - "id": "sion_0782", - "uuid": "{AC923DB2-DCCA-4B99-A436-88509701C9A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1230.58, - 272.563, - -1054.92 - ], - "size": [ - 15.754, - 9.852, - 23.867 - ], - "groundY": 267.637, - "roofY": 277.489, - "wallCount": 44, - "roofCount": 26 - }, - { - "id": "sion_0783", - "uuid": "{DF3C56CA-4DA6-42B9-A36F-6015FA8B8D4F}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 1, - 3 - ], - "center": [ - -1018.693, - 12.861, - 116.787 - ], - "size": [ - 38.441, - 16.497, - 33.01 - ], - "groundY": 4.613, - "roofY": 21.11, - "wallCount": 90, - "roofCount": 22 - }, - { - "id": "sion_0784", - "uuid": "{400BE460-0306-40B2-BABD-83C9B017CD44}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -851.109, - 5.49, - 319.909 - ], - "size": [ - 42.352, - 16.86, - 26.046 - ], - "groundY": -2.94, - "roofY": 13.92, - "wallCount": 30, - "roofCount": 23 - }, - { - "id": "sion_0785", - "uuid": "{E93FFE19-D080-49E1-B208-5B7A638BC12D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -762.092, - 66.868, - -334.014 - ], - "size": [ - 16.191, - 11.488, - 15.933 - ], - "groundY": 61.124, - "roofY": 72.612, - "wallCount": 32, - "roofCount": 7 - }, - { - "id": "sion_0786", - "uuid": "{9C3F8E97-4A2A-4771-9A13-BDDD3C42CAA5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1199.645, - 284.294, - -1160.42 - ], - "size": [ - 7.008, - 7.091, - 7.048 - ], - "groundY": 280.749, - "roofY": 287.839, - "wallCount": 50, - "roofCount": 12 - }, - { - "id": "sion_0787", - "uuid": "{9D6D0848-F175-4D9D-8079-50BD5BD20B3A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1481.414, - 274.027, - -990.731 - ], - "size": [ - 36.328, - 15.554, - 24.712 - ], - "groundY": 266.25, - "roofY": 281.803, - "wallCount": 79, - "roofCount": 56 - }, - { - "id": "sion_0788", - "uuid": "{102DC039-3C06-4211-B0F2-0053045E28BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -728.643, - 3.889, - 880.06 - ], - "size": [ - 35.887, - 9.865, - 41.616 - ], - "groundY": -1.043, - "roofY": 8.821, - "wallCount": 28, - "roofCount": 33 - }, - { - "id": "sion_0789", - "uuid": "{3F2FF50E-A2CF-428B-BE22-81D7393786D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1490.145, - 82.759, - 35.391 - ], - "size": [ - 30.812, - 13.452, - 22.946 - ], - "groundY": 76.033, - "roofY": 89.485, - "wallCount": 39, - "roofCount": 18 - }, - { - "id": "sion_0790", - "uuid": "{B99897F2-9F5A-4CED-9097-95A6CB2288D0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -534.758, - 25.703, - 152.094 - ], - "size": [ - 41.461, - 28.638, - 46.816 - ], - "groundY": 11.384, - "roofY": 40.022, - "wallCount": 35, - "roofCount": 14 - }, - { - "id": "sion_0791", - "uuid": "{AB47CDAF-EFA7-4942-AFA2-C88A81DD1E99}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1117.029, - 239.427, - -852.163 - ], - "size": [ - 29.574, - 5.77, - 22.54 - ], - "groundY": 236.542, - "roofY": 242.312, - "wallCount": 29, - "roofCount": 10 - }, - { - "id": "sion_0792", - "uuid": "{336F5D61-D415-42BB-9D7E-062E18F5F9B4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1344.771, - 209.025, - -614.954 - ], - "size": [ - 18.144, - 8.903, - 15.348 - ], - "groundY": 204.574, - "roofY": 213.477, - "wallCount": 45, - "roofCount": 18 - }, - { - "id": "sion_0793", - "uuid": "{616F7B84-2AAC-4F6F-801A-464A76C6E954}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1212.428, - 285.243, - -1238.995 - ], - "size": [ - 19.981, - 14.624, - 20.348 - ], - "groundY": 277.931, - "roofY": 292.555, - "wallCount": 64, - "roofCount": 47 - }, - { - "id": "sion_0794", - "uuid": "{605AC480-7227-4092-85B0-F2C1D7DCF167}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -572.01, - 44.637, - -393.143 - ], - "size": [ - 17.793, - 13.99, - 20.798 - ], - "groundY": 37.642, - "roofY": 51.632, - "wallCount": 39, - "roofCount": 50 - }, - { - "id": "sion_0795", - "uuid": "{AF423A8D-4149-4997-B201-3794EA58CB95}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1290.273, - 281.905, - -1100.28 - ], - "size": [ - 19.648, - 14.436, - 27.214 - ], - "groundY": 274.687, - "roofY": 289.123, - "wallCount": 44, - "roofCount": 26 - }, - { - "id": "sion_0796", - "uuid": "{23873222-AE66-4ECB-9918-D8835956220F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -904.391, - 113.845, - -539.771 - ], - "size": [ - 17.242, - 13.407, - 22.013 - ], - "groundY": 107.142, - "roofY": 120.549, - "wallCount": 46, - "roofCount": 18 - }, - { - "id": "sion_0797", - "uuid": "{25FE0EEE-BC73-4CF9-9004-7F0B237B42FB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -636.465, - 34.477, - -154.292 - ], - "size": [ - 26.852, - 20.432, - 24.322 - ], - "groundY": 24.261, - "roofY": 44.693, - "wallCount": 46, - "roofCount": 25 - }, - { - "id": "sion_0798", - "uuid": "{26D93C4B-DD70-45ED-8D7E-38ABA6D4FF7E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -714.037, - 25.965, - -47.575 - ], - "size": [ - 15.277, - 15.384, - 14.994 - ], - "groundY": 18.273, - "roofY": 33.657, - "wallCount": 53, - "roofCount": 20 - }, - { - "id": "sion_0799", - "uuid": "{B8399A29-95EA-434F-8C81-B96ED27A3BAF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -793.488, - 2.766, - 969.005 - ], - "size": [ - 33.508, - 8.657, - 30.605 - ], - "groundY": -1.562, - "roofY": 7.094, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_0800", - "uuid": "{57D806BD-EA4D-4181-B201-E6D8AC43E643}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1336.838, - 0.455, - 853.103 - ], - "size": [ - 27.59, - 6.566, - 23.687 - ], - "groundY": -2.828, - "roofY": 3.738, - "wallCount": 17, - "roofCount": 4 - }, - { - "id": "sion_0801", - "uuid": "{CD567B9F-1405-43E8-80CF-44E7481A5A7F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1310.953, - 47.267, - 121.278 - ], - "size": [ - 22.844, - 20.632, - 27.862 - ], - "groundY": 36.951, - "roofY": 57.583, - "wallCount": 134, - "roofCount": 28 - }, - { - "id": "sion_0802", - "uuid": "{324692FE-AFE4-4BFA-8FDB-2226F6D510FB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -729.758, - 56.222, - -325.693 - ], - "size": [ - 16.055, - 11.278, - 15.729 - ], - "groundY": 50.583, - "roofY": 61.861, - "wallCount": 42, - "roofCount": 16 - }, - { - "id": "sion_0803", - "uuid": "{42B2DAA5-404C-433F-93BB-939C35F01850}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1112.783, - 253.273, - -906.429 - ], - "size": [ - 19.902, - 16.202, - 11.731 - ], - "groundY": 245.172, - "roofY": 261.374, - "wallCount": 116, - "roofCount": 38 - }, - { - "id": "sion_0804", - "uuid": "{2BF74A23-ED07-4AEA-9F5D-B18EBB6C3F46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -577.404, - 288.534, - -1253.95 - ], - "size": [ - 26.777, - 13.117, - 20.168 - ], - "groundY": 281.976, - "roofY": 295.093, - "wallCount": 30, - "roofCount": 15 - }, - { - "id": "sion_0805", - "uuid": "{2D56A314-5580-4284-8A21-798D96463F8E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -684.326, - 61.907, - -433.045 - ], - "size": [ - 18.371, - 11.051, - 14.969 - ], - "groundY": 56.381, - "roofY": 67.432, - "wallCount": 50, - "roofCount": 27 - }, - { - "id": "sion_0806", - "uuid": "{D147F9D1-334F-42FC-82C3-28508ACC013A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1094.342, - 288.859, - -1248.772 - ], - "size": [ - 15.535, - 10.572, - 14.964 - ], - "groundY": 283.573, - "roofY": 294.145, - "wallCount": 46, - "roofCount": 18 - }, - { - "id": "sion_0807", - "uuid": "{A24A7EBE-4106-4116-825C-6ECAA4779704}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1138.025, - 3.148, - 486.151 - ], - "size": [ - 45.113, - 12.633, - 28.702 - ], - "groundY": -3.168, - "roofY": 9.465, - "wallCount": 43, - "roofCount": 27 - }, - { - "id": "sion_0808", - "uuid": "{AEC7F250-9D01-48D2-95FA-53D651A23319}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -853.512, - 294.757, - -1483.335 - ], - "size": [ - 14.062, - 9.276, - 15.0 - ], - "groundY": 290.119, - "roofY": 299.395, - "wallCount": 39, - "roofCount": 22 - }, - { - "id": "sion_0809", - "uuid": "{2A4CC4AD-2D18-4CEE-8BA7-B1B11C7E2474}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1038.98, - 296.814, - -1345.839 - ], - "size": [ - 12.891, - 10.541, - 10.96 - ], - "groundY": 291.543, - "roofY": 302.084, - "wallCount": 32, - "roofCount": 19 - }, - { - "id": "sion_0810", - "uuid": "{30207DB5-CF0B-4611-BD9D-19C182D355EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -800.783, - 3.444, - 890.586 - ], - "size": [ - 80.621, - 9.627, - 38.115 - ], - "groundY": -1.369, - "roofY": 8.258, - "wallCount": 12, - "roofCount": 29 - }, - { - "id": "sion_0811", - "uuid": "{ADBCE3A1-9C66-48AC-95D0-88359AA3AAA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1291.635, - 138.887, - -361.607 - ], - "size": [ - 14.934, - 6.548, - 14.099 - ], - "groundY": 135.613, - "roofY": 142.161, - "wallCount": 24, - "roofCount": 15 - }, - { - "id": "sion_0812", - "uuid": "{B13AB99F-99F7-4BEC-A79B-240D39113F06}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1117.461, - 263.719, - -985.764 - ], - "size": [ - 9.695, - 9.231, - 10.142 - ], - "groundY": 259.104, - "roofY": 268.335, - "wallCount": 47, - "roofCount": 35 - }, - { - "id": "sion_0813", - "uuid": "{5FD6E2D9-55F7-42B2-B4EB-66847D71D254}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1279.15, - 6.817, - 742.119 - ], - "size": [ - 27.707, - 19.712, - 20.861 - ], - "groundY": -3.039, - "roofY": 16.673, - "wallCount": 63, - "roofCount": 10 - }, - { - "id": "sion_0814", - "uuid": "{870CC0F4-19B2-4F47-BE75-3674CBF6BB6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1523.336, - 266.649, - -1025.001 - ], - "size": [ - 27.391, - 11.312, - 22.814 - ], - "groundY": 260.993, - "roofY": 272.305, - "wallCount": 40, - "roofCount": 34 - }, - { - "id": "sion_0815", - "uuid": "{A12ABD73-24E5-46FD-A385-4FEC87BC8173}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1311.022, - 216.088, - -699.912 - ], - "size": [ - 18.051, - 12.428, - 17.686 - ], - "groundY": 209.874, - "roofY": 222.302, - "wallCount": 56, - "roofCount": 45 - }, - { - "id": "sion_0816", - "uuid": "{E461D773-43AA-45A0-B033-0C177499A13B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1308.127, - 233.698, - -792.067 - ], - "size": [ - 8.48, - 6.023, - 13.802 - ], - "groundY": 230.686, - "roofY": 236.709, - "wallCount": 35, - "roofCount": 4 - }, - { - "id": "sion_0817", - "uuid": "{E523492B-4AF0-4F03-860C-7306DFB3A0F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -456.832, - 81.564, - -815.6 - ], - "size": [ - 26.117, - 10.505, - 26.513 - ], - "groundY": 76.311, - "roofY": 86.817, - "wallCount": 48, - "roofCount": 30 - }, - { - "id": "sion_0818", - "uuid": "{7F6748B0-995C-474F-AE44-CDEC70A263F8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -768.91, - 97.282, - -534.929 - ], - "size": [ - 36.828, - 11.604, - 29.6 - ], - "groundY": 91.48, - "roofY": 103.084, - "wallCount": 16, - "roofCount": 6 - }, - { - "id": "sion_0819", - "uuid": "{EBFBB1DB-75C8-4056-9584-1F2A3105C4A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -842.709, - 295.143, - -1501.941 - ], - "size": [ - 19.551, - 11.206, - 18.989 - ], - "groundY": 289.54, - "roofY": 300.746, - "wallCount": 41, - "roofCount": 50 - }, - { - "id": "sion_0820", - "uuid": "{E5C2B5D1-7480-4BEA-A079-A1FDE9484EEE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1130.562, - 291.715, - -1176.627 - ], - "size": [ - 19.391, - 13.802, - 17.292 - ], - "groundY": 284.814, - "roofY": 298.616, - "wallCount": 40, - "roofCount": 14 - }, - { - "id": "sion_0821", - "uuid": "{FE21304D-5CF4-4C6B-AC0C-B462CB06BE5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -875.127, - 3.244, - 922.189 - ], - "size": [ - 40.629, - 10.106, - 36.325 - ], - "groundY": -1.809, - "roofY": 8.297, - "wallCount": 22, - "roofCount": 2 - }, - { - "id": "sion_0822", - "uuid": "{AECDF540-2664-440B-A13C-E0FDA2D19D43}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1117.846, - 0.441, - 466.387 - ], - "size": [ - 15.285, - 6.958, - 10.762 - ], - "groundY": -3.038, - "roofY": 3.92, - "wallCount": 41, - "roofCount": 11 - }, - { - "id": "sion_0823", - "uuid": "{B442A203-AB31-4B89-8F91-8D55BAFB77BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -551.852, - 36.813, - -135.297 - ], - "size": [ - 24.844, - 22.743, - 20.672 - ], - "groundY": 25.442, - "roofY": 48.185, - "wallCount": 44, - "roofCount": 33 - }, - { - "id": "sion_0824", - "uuid": "{AB21E546-7AFF-48E0-985C-95657536ABAD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1362.822, - 242.363, - -846.939 - ], - "size": [ - 18.543, - 10.908, - 14.075 - ], - "groundY": 236.909, - "roofY": 247.817, - "wallCount": 51, - "roofCount": 23 - }, - { - "id": "sion_0825", - "uuid": "{14D7EFA1-243B-409F-BE44-4679B53F4D20}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1089.676, - 48.009, - -70.165 - ], - "size": [ - 20.109, - 10.331, - 18.617 - ], - "groundY": 42.844, - "roofY": 53.175, - "wallCount": 54, - "roofCount": 9 - }, - { - "id": "sion_0826", - "uuid": "{1985B385-240D-4DAE-861A-DC1320712C3A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1107.703, - 291.395, - -1180.851 - ], - "size": [ - 26.383, - 11.972, - 20.636 - ], - "groundY": 285.409, - "roofY": 297.381, - "wallCount": 26, - "roofCount": 26 - }, - { - "id": "sion_0827", - "uuid": "{B950AC54-B4BC-4554-9EBD-890E05A80345}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1159.131, - 56.635, - -12.711 - ], - "size": [ - 27.481, - 8.905, - 20.072 - ], - "groundY": 52.182, - "roofY": 61.087, - "wallCount": 38, - "roofCount": 10 - }, - { - "id": "sion_0828", - "uuid": "{927DEC77-83FA-4117-B3CF-5203B6C60EBF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -785.883, - 59.144, - -280.645 - ], - "size": [ - 19.117, - 11.132, - 16.261 - ], - "groundY": 53.578, - "roofY": 64.71, - "wallCount": 29, - "roofCount": 41 - }, - { - "id": "sion_0829", - "uuid": "{CD24B36B-F4AB-4B5A-B3E4-BE5F625BBE72}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1349.207, - 282.203, - -1134.426 - ], - "size": [ - 17.188, - 11.588, - 16.79 - ], - "groundY": 276.409, - "roofY": 287.997, - "wallCount": 21, - "roofCount": 10 - }, - { - "id": "sion_0830", - "uuid": "{A617FD00-279C-4BEC-A980-1ED56B17BE10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1071.521, - 19.69, - 21.592 - ], - "size": [ - 36.137, - 20.494, - 31.25 - ], - "groundY": 9.443, - "roofY": 29.937, - "wallCount": 62, - "roofCount": 34 - }, - { - "id": "sion_0831", - "uuid": "{CF9419A0-0C52-42F3-BDAF-EF57D22805E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1075.367, - 290.912, - -1187.332 - ], - "size": [ - 25.664, - 10.375, - 24.477 - ], - "groundY": 285.724, - "roofY": 296.1, - "wallCount": 34, - "roofCount": 39 - }, - { - "id": "sion_0832", - "uuid": "{794F3AB9-9040-45BA-9600-C1335BC9D8D3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -585.031, - 23.843, - 196.286 - ], - "size": [ - 11.656, - 23.596, - 13.279 - ], - "groundY": 12.045, - "roofY": 35.641, - "wallCount": 33, - "roofCount": 15 - }, - { - "id": "sion_0833", - "uuid": "{97B3CB11-8030-4FBE-90FC-B7313A6AAE56}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -472.996, - 75.327, - -724.768 - ], - "size": [ - 14.766, - 11.535, - 14.45 - ], - "groundY": 69.56, - "roofY": 81.095, - "wallCount": 22, - "roofCount": 22 - }, - { - "id": "sion_0834", - "uuid": "{ACB3BC3A-C201-44A0-8520-3E315E49C87D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1354.629, - 279.634, - -1148.975 - ], - "size": [ - 25.805, - 17.486, - 22.429 - ], - "groundY": 270.891, - "roofY": 288.377, - "wallCount": 36, - "roofCount": 17 - }, - { - "id": "sion_0835", - "uuid": "{6C2A04CB-9B47-4E60-8032-D6CDD75500BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1318.75, - 272.585, - -1230.667 - ], - "size": [ - 20.195, - 9.122, - 14.604 - ], - "groundY": 268.024, - "roofY": 277.146, - "wallCount": 44, - "roofCount": 17 - }, - { - "id": "sion_0836", - "uuid": "{8F7E2522-7981-404E-AB5C-5C897782F362}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1248.855, - 7.051, - 689.538 - ], - "size": [ - 23.82, - 19.864, - 31.521 - ], - "groundY": -2.881, - "roofY": 16.983, - "wallCount": 45, - "roofCount": 8 - }, - { - "id": "sion_0837", - "uuid": "{FDA7A1E1-F5DA-48FF-AB68-7528915BAC70}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1415.727, - 201.106, - -489.657 - ], - "size": [ - 15.648, - 6.468, - 10.603 - ], - "groundY": 197.872, - "roofY": 204.34, - "wallCount": 35, - "roofCount": 13 - }, - { - "id": "sion_0838", - "uuid": "{A168B92B-4B42-40C6-AA87-DA3227955CB2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1230.312, - 9.436, - 193.161 - ], - "size": [ - 30.195, - 18.992, - 39.966 - ], - "groundY": -0.06, - "roofY": 18.932, - "wallCount": 23, - "roofCount": 22 - }, - { - "id": "sion_0839", - "uuid": "{D18DB9D6-A697-4D12-B32D-8726F2115CDD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1276.484, - 121.75, - -312.207 - ], - "size": [ - 25.594, - 10.482, - 17.658 - ], - "groundY": 116.509, - "roofY": 126.991, - "wallCount": 44, - "roofCount": 9 - }, - { - "id": "sion_0840", - "uuid": "{6375F845-7F17-4552-A762-9250C6FDF83D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -565.998, - 42.336, - -260.258 - ], - "size": [ - 100.449, - 27.782, - 56.061 - ], - "groundY": 28.445, - "roofY": 56.227, - "wallCount": 134, - "roofCount": 15 - }, - { - "id": "sion_0841", - "uuid": "{07B4B462-B065-4B02-AA5C-0223464F3572}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -685.789, - 48.126, - -344.785 - ], - "size": [ - 32.414, - 15.167, - 22.068 - ], - "groundY": 40.543, - "roofY": 55.71, - "wallCount": 76, - "roofCount": 26 - }, - { - "id": "sion_0842", - "uuid": "{2EFAEA51-758A-4B91-95BB-4B84E4016F68}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -868.889, - 290.718, - -1278.709 - ], - "size": [ - 15.582, - 11.484, - 22.811 - ], - "groundY": 284.976, - "roofY": 296.46, - "wallCount": 28, - "roofCount": 14 - }, - { - "id": "sion_0843", - "uuid": "{0CF66EEC-5A35-4BD0-AB7C-2871A6B21610}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -799.49, - 25.926, - -71.362 - ], - "size": [ - 32.527, - 20.524, - 28.704 - ], - "groundY": 15.664, - "roofY": 36.188, - "wallCount": 59, - "roofCount": 41 - }, - { - "id": "sion_0844", - "uuid": "{F3959867-79BB-4FF3-BA1B-134888A76F97}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1076.111, - 5.911, - 243.482 - ], - "size": [ - 24.691, - 18.539, - 44.538 - ], - "groundY": -3.359, - "roofY": 15.18, - "wallCount": 13, - "roofCount": 29 - }, - { - "id": "sion_0845", - "uuid": "{CD34A23D-DB73-42B8-B4AC-E59DF70D1651}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -554.678, - 7.566, - 492.201 - ], - "size": [ - 14.824, - 14.809, - 12.662 - ], - "groundY": 0.161, - "roofY": 14.97, - "wallCount": 45, - "roofCount": 59 - }, - { - "id": "sion_0846", - "uuid": "{56E175DF-60BC-486C-BD7E-52C991A8F7F8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1198.33, - 0.797, - 872.766 - ], - "size": [ - 26.809, - 7.042, - 19.698 - ], - "groundY": -2.724, - "roofY": 4.318, - "wallCount": 26, - "roofCount": 4 - }, - { - "id": "sion_0847", - "uuid": "{1CCE7810-DE7F-4223-8021-53232B8A121F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -865.648, - 6.581, - 814.76 - ], - "size": [ - 44.523, - 17.1, - 69.498 - ], - "groundY": -1.969, - "roofY": 15.131, - "wallCount": 34, - "roofCount": 12 - }, - { - "id": "sion_0848", - "uuid": "{8206E84A-A728-4F4C-9717-3FA18C65198C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -443.041, - 11.37, - 770.176 - ], - "size": [ - 43.277, - 24.87, - 19.766 - ], - "groundY": -1.065, - "roofY": 23.805, - "wallCount": 134, - "roofCount": 30 - }, - { - "id": "sion_0849", - "uuid": "{F1E92EDE-2507-401D-8067-59372D2324AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -622.887, - 294.576, - -1291.918 - ], - "size": [ - 29.602, - 15.937, - 22.84 - ], - "groundY": 286.608, - "roofY": 302.545, - "wallCount": 22, - "roofCount": 11 - }, - { - "id": "sion_0850", - "uuid": "{703B67AD-5654-4E3D-BC3B-AE84C7091ED9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1432.119, - -0.015, - 739.371 - ], - "size": [ - 8.152, - 6.99, - 9.204 - ], - "groundY": -3.51, - "roofY": 3.48, - "wallCount": 23, - "roofCount": 0 - }, - { - "id": "sion_0851", - "uuid": "{FBBF5BE1-956B-4581-83F7-186ECFA9F1D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -1010.988, - 79.621, - -270.397 - ], - "size": [ - 16.797, - 12.408, - 16.952 - ], - "groundY": 73.417, - "roofY": 85.825, - "wallCount": 31, - "roofCount": 10 - }, - { - "id": "sion_0852", - "uuid": "{88B6AD07-ABFD-45E8-84B4-C6F098572939}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1162.584, - 6.386, - 150.033 - ], - "size": [ - 11.238, - 5.881, - 9.992 - ], - "groundY": 3.445, - "roofY": 9.326, - "wallCount": 26, - "roofCount": 2 - }, - { - "id": "sion_0853", - "uuid": "{EED671C8-0931-47AF-8886-962E8004D208}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1402.281, - 235.898, - -781.551 - ], - "size": [ - 12.578, - 12.084, - 9.874 - ], - "groundY": 229.856, - "roofY": 241.939, - "wallCount": 70, - "roofCount": 4 - }, - { - "id": "sion_0854", - "uuid": "{3EC7B223-2D2F-4935-B871-211BE0B90294}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1216.596, - 199.633, - -607.608 - ], - "size": [ - 17.41, - 9.91, - 17.319 - ], - "groundY": 194.678, - "roofY": 204.588, - "wallCount": 25, - "roofCount": 4 - }, - { - "id": "sion_0855", - "uuid": "{9225C1FE-AEAE-4EF5-B67B-64704BF142E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -547.336, - 70.06, - -621.135 - ], - "size": [ - 34.695, - 16.481, - 29.065 - ], - "groundY": 61.82, - "roofY": 78.301, - "wallCount": 10, - "roofCount": 19 - }, - { - "id": "sion_0856", - "uuid": "{14F1DE46-0B78-4D20-A8AC-ED5AF01A64ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -834.746, - 20.138, - -62.164 - ], - "size": [ - 23.82, - 8.601, - 18.292 - ], - "groundY": 15.838, - "roofY": 24.439, - "wallCount": 40, - "roofCount": 14 - }, - { - "id": "sion_0857", - "uuid": "{CA42E2B0-69A8-43E2-AB04-B923BC15D1E0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -579.041, - 73.506, - -600.639 - ], - "size": [ - 21.129, - 14.206, - 16.254 - ], - "groundY": 66.403, - "roofY": 80.609, - "wallCount": 37, - "roofCount": 20 - }, - { - "id": "sion_0858", - "uuid": "{5E9BEBF5-8CDC-4B84-BD33-BB0591961310}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -782.475, - 4.26, - 809.187 - ], - "size": [ - 99.309, - 10.338, - 79.61 - ], - "groundY": -0.909, - "roofY": 9.429, - "wallCount": 57, - "roofCount": 37 - }, - { - "id": "sion_0859", - "uuid": "{300E5AC1-5A9F-4D73-8988-86AA400A49FB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -928.514, - 2.503, - 292.253 - ], - "size": [ - 13.488, - 10.765, - 11.38 - ], - "groundY": -2.879, - "roofY": 7.885, - "wallCount": 68, - "roofCount": 39 - }, - { - "id": "sion_0860", - "uuid": "{32A4C003-4733-433C-8E37-D3819E1AFD1D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -495.301, - 26.524, - -46.776 - ], - "size": [ - 19.695, - 8.705, - 18.604 - ], - "groundY": 22.172, - "roofY": 30.877, - "wallCount": 25, - "roofCount": 7 - }, - { - "id": "sion_0861", - "uuid": "{6D3FB9F6-C005-434E-8E80-A148C685BD04}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1079.146, - 17.491, - 479.599 - ], - "size": [ - 58.988, - 42.946, - 39.67 - ], - "groundY": -3.982, - "roofY": 38.964, - "wallCount": 178, - "roofCount": 34 - }, - { - "id": "sion_0862", - "uuid": "{39226AC8-8628-49F3-9A20-6EFAF1349029}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1097.889, - 290.269, - -1302.444 - ], - "size": [ - 15.957, - 9.16, - 19.634 - ], - "groundY": 285.689, - "roofY": 294.849, - "wallCount": 66, - "roofCount": 19 - }, - { - "id": "sion_0863", - "uuid": "{D98BAB11-CDA9-41CB-9B5D-AD024A023581}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1504.314, - 229.664, - -793.939 - ], - "size": [ - 16.043, - 11.223, - 13.36 - ], - "groundY": 224.053, - "roofY": 235.276, - "wallCount": 49, - "roofCount": 33 - }, - { - "id": "sion_0864", - "uuid": "{E0CCFC97-E8A5-47DB-B435-0400E5B7DBFC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -619.978, - 31.281, - -50.501 - ], - "size": [ - 55.051, - 23.803, - 31.205 - ], - "groundY": 19.38, - "roofY": 43.183, - "wallCount": 14, - "roofCount": 16 - }, - { - "id": "sion_0865", - "uuid": "{47F23AC3-B695-49A6-A32F-73F2A17A183F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -735.195, - 12.174, - 268.356 - ], - "size": [ - 14.742, - 17.094, - 14.479 - ], - "groundY": 3.627, - "roofY": 20.721, - "wallCount": 47, - "roofCount": 20 - }, - { - "id": "sion_0866", - "uuid": "{99B9408F-EEB8-42E3-87A6-97DCE86EC086}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1301.105, - 9.119, - 213.48 - ], - "size": [ - 55.031, - 16.358, - 59.788 - ], - "groundY": 0.94, - "roofY": 17.298, - "wallCount": 148, - "roofCount": 75 - }, - { - "id": "sion_0867", - "uuid": "{30B35BFA-2505-4DAC-9680-2AC6E77CC352}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -777.428, - 72.007, - -375.53 - ], - "size": [ - 27.051, - 13.26, - 27.292 - ], - "groundY": 65.377, - "roofY": 78.637, - "wallCount": 39, - "roofCount": 13 - }, - { - "id": "sion_0868", - "uuid": "{2E7388CB-9F74-4B23-9C49-B1BA83ABF517}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -726.518, - 25.826, - -77.814 - ], - "size": [ - 13.488, - 13.724, - 13.948 - ], - "groundY": 18.964, - "roofY": 32.688, - "wallCount": 73, - "roofCount": 35 - }, - { - "id": "sion_0869", - "uuid": "{F32F1E1E-95C1-4517-B2FB-B8DC1E07E67B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -507.195, - 27.791, - 91.726 - ], - "size": [ - 26.703, - 22.759, - 23.418 - ], - "groundY": 16.412, - "roofY": 39.171, - "wallCount": 19, - "roofCount": 15 - }, - { - "id": "sion_0870", - "uuid": "{898A0A4C-2CB7-4C8D-A67C-03CCAFFED152}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1120.797, - 260.29, - -926.323 - ], - "size": [ - 16.539, - 12.39, - 14.014 - ], - "groundY": 254.095, - "roofY": 266.485, - "wallCount": 31, - "roofCount": 10 - }, - { - "id": "sion_0871", - "uuid": "{6B4B4A7C-2FB2-42D3-8E65-624C247D0EAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1247.223, - 283.204, - -1090.348 - ], - "size": [ - 18.18, - 12.724, - 16.134 - ], - "groundY": 276.842, - "roofY": 289.566, - "wallCount": 44, - "roofCount": 26 - }, - { - "id": "sion_0872", - "uuid": "{9E9166E1-E2B6-4017-A19C-0D62A9ECFC2D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1387.213, - 281.496, - -1079.876 - ], - "size": [ - 32.809, - 15.48, - 35.186 - ], - "groundY": 273.756, - "roofY": 289.236, - "wallCount": 107, - "roofCount": 34 - }, - { - "id": "sion_0873", - "uuid": "{20544018-A87A-487D-A02B-2A2DE2557A51}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1248.143, - 119.043, - -328.82 - ], - "size": [ - 18.254, - 9.072, - 16.326 - ], - "groundY": 114.507, - "roofY": 123.579, - "wallCount": 40, - "roofCount": 4 - }, - { - "id": "sion_0874", - "uuid": "{8CCE1210-3CA1-40F3-BF7C-70AF03F9666B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -608.082, - 6.034, - 460.341 - ], - "size": [ - 15.359, - 14.317, - 11.889 - ], - "groundY": -1.124, - "roofY": 13.193, - "wallCount": 57, - "roofCount": 26 - }, - { - "id": "sion_0875", - "uuid": "{B2C2F2D1-37E2-4E77-A5CF-77B805E71739}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1305.82, - 203.35, - -555.846 - ], - "size": [ - 15.453, - 10.003, - 17.274 - ], - "groundY": 198.348, - "roofY": 208.351, - "wallCount": 38, - "roofCount": 16 - }, - { - "id": "sion_0876", - "uuid": "{74F8E8D9-1F37-4D04-A777-50825FE1126D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1225.848, - 3.948, - 301.008 - ], - "size": [ - 38.156, - 16.054, - 49.312 - ], - "groundY": -4.079, - "roofY": 11.975, - "wallCount": 70, - "roofCount": 44 - }, - { - "id": "sion_0877", - "uuid": "{7B3B88DC-4FC9-4F5C-8E9A-69EC706105AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1290.318, - 212.003, - -707.225 - ], - "size": [ - 13.598, - 8.244, - 12.006 - ], - "groundY": 207.881, - "roofY": 216.125, - "wallCount": 32, - "roofCount": 2 - }, - { - "id": "sion_0878", - "uuid": "{80B4CD5F-1617-4452-BB90-CDBAFCBCBF28}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -424.416, - 54.617, - -530.357 - ], - "size": [ - 24.574, - 19.633, - 15.384 - ], - "groundY": 44.801, - "roofY": 64.434, - "wallCount": 28, - "roofCount": 36 - }, - { - "id": "sion_0879", - "uuid": "{49C506A3-6EE3-4082-816D-86ABAB62A8DD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -800.412, - 23.691, - -45.234 - ], - "size": [ - 15.207, - 15.013, - 14.292 - ], - "groundY": 16.184, - "roofY": 31.197, - "wallCount": 49, - "roofCount": 36 - }, - { - "id": "sion_0880", - "uuid": "{32684C0A-69B3-4F3F-ABB7-C0DD3EB4CE6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -625.285, - 58.575, - -484.051 - ], - "size": [ - 16.852, - 8.484, - 16.624 - ], - "groundY": 54.333, - "roofY": 62.817, - "wallCount": 65, - "roofCount": 12 - }, - { - "id": "sion_0881", - "uuid": "{15E63777-6CF6-4787-AE89-AA81AE238B63}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1032.312, - 77.176, - -200.797 - ], - "size": [ - 30.414, - 13.806, - 24.742 - ], - "groundY": 70.273, - "roofY": 84.079, - "wallCount": 24, - "roofCount": 30 - }, - { - "id": "sion_0882", - "uuid": "{A06DDD29-E0D1-4CE9-A85A-AC4DA2791C1D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1043.539, - 202.803, - -752.809 - ], - "size": [ - 23.273, - 9.918, - 18.901 - ], - "groundY": 197.844, - "roofY": 207.762, - "wallCount": 38, - "roofCount": 8 - }, - { - "id": "sion_0883", - "uuid": "{935F9C3A-EFF1-42F2-BF44-C12EB0CA5397}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1364.697, - 280.859, - -1102.181 - ], - "size": [ - 23.113, - 11.387, - 25.332 - ], - "groundY": 275.166, - "roofY": 286.553, - "wallCount": 42, - "roofCount": 18 - }, - { - "id": "sion_0884", - "uuid": "{84E7DEAF-3B2E-4567-A1CE-A241F1797DE4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1046.301, - 33.757, - -70.375 - ], - "size": [ - 19.938, - 15.756, - 21.531 - ], - "groundY": 25.879, - "roofY": 41.635, - "wallCount": 41, - "roofCount": 27 - }, - { - "id": "sion_0885", - "uuid": "{74DE19E1-C38E-4382-A2A1-144A4B71239A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -746.287, - 288.936, - -1290.617 - ], - "size": [ - 18.973, - 11.306, - 24.538 - ], - "groundY": 283.283, - "roofY": 294.589, - "wallCount": 44, - "roofCount": 20 - }, - { - "id": "sion_0886", - "uuid": "{0050AD6F-00B4-411C-B52F-9D482E7044A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -452.111, - 23.477, - 217.459 - ], - "size": [ - 32.52, - 23.216, - 38.135 - ], - "groundY": 11.869, - "roofY": 35.085, - "wallCount": 115, - "roofCount": 88 - }, - { - "id": "sion_0887", - "uuid": "{35E87D73-A232-4C44-966A-242605B098DA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -665.988, - 34.255, - -183.113 - ], - "size": [ - 24.219, - 16.347, - 18.187 - ], - "groundY": 26.082, - "roofY": 42.429, - "wallCount": 70, - "roofCount": 57 - }, - { - "id": "sion_0888", - "uuid": "{5C63808B-1B96-49FB-B2F8-28B8646FE033}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1142.061, - 7.426, - 317.085 - ], - "size": [ - 179.043, - 22.069, - 67.951 - ], - "groundY": -3.609, - "roofY": 18.46, - "wallCount": 190, - "roofCount": 102 - }, - { - "id": "sion_0889", - "uuid": "{895FB46A-7DFA-493D-9ABD-944F597FB28B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -538.852, - 33.714, - -105.276 - ], - "size": [ - 22.75, - 21.693, - 18.21 - ], - "groundY": 22.867, - "roofY": 44.56, - "wallCount": 34, - "roofCount": 14 - }, - { - "id": "sion_0890", - "uuid": "{45B1C27B-6816-4A8F-943C-6CBD46E581E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1464.143, - 12.199, - 352.451 - ], - "size": [ - 49.223, - 28.87, - 40.278 - ], - "groundY": -2.236, - "roofY": 26.634, - "wallCount": 107, - "roofCount": 28 - }, - { - "id": "sion_0891", - "uuid": "{AB069D80-48CE-41A1-8AC1-724826888E2E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1344.772, - 100.869, - -175.713 - ], - "size": [ - 6.223, - 6.666, - 6.794 - ], - "groundY": 97.536, - "roofY": 104.202, - "wallCount": 36, - "roofCount": 9 - }, - { - "id": "sion_0892", - "uuid": "{E570CE7F-68C5-43B7-815D-82FAC519A15E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -806.992, - 16.492, - 206.057 - ], - "size": [ - 33.594, - 18.73, - 28.878 - ], - "groundY": 7.127, - "roofY": 25.857, - "wallCount": 12, - "roofCount": 34 - }, - { - "id": "sion_0893", - "uuid": "{9D784E1C-3E57-46F3-9B3A-BF7179732581}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1350.797, - 258.18, - -956.176 - ], - "size": [ - 13.805, - 10.3, - 16.43 - ], - "groundY": 253.03, - "roofY": 263.33, - "wallCount": 33, - "roofCount": 16 - }, - { - "id": "sion_0894", - "uuid": "{B2275EA0-79BE-4ED3-ADCC-F4E3416F2B82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -753.785, - 2.508, - 967.218 - ], - "size": [ - 14.742, - 8.398, - 23.292 - ], - "groundY": -1.691, - "roofY": 6.707, - "wallCount": 22, - "roofCount": 24 - }, - { - "id": "sion_0895", - "uuid": "{158E320F-9EB0-43B6-95C1-0DF416B3D2CE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1126.625, - 219.878, - -794.538 - ], - "size": [ - 19.344, - 9.616, - 15.51 - ], - "groundY": 215.07, - "roofY": 224.686, - "wallCount": 49, - "roofCount": 13 - }, - { - "id": "sion_0896", - "uuid": "{D1BC8E73-F9AA-4812-9397-221E8A83DA5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1406.803, - 270.541, - -1017.017 - ], - "size": [ - 11.09, - 6.268, - 11.509 - ], - "groundY": 267.407, - "roofY": 273.675, - "wallCount": 67, - "roofCount": 12 - }, - { - "id": "sion_0897", - "uuid": "{1520CFCE-3CE8-4643-84ED-F6267D42E6DE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1275.189, - 203.824, - -595.07 - ], - "size": [ - 16.426, - 10.211, - 17.49 - ], - "groundY": 198.718, - "roofY": 208.929, - "wallCount": 25, - "roofCount": 21 - }, - { - "id": "sion_0898", - "uuid": "{CDC33A95-5A18-4CBC-BA6E-E7B94A42D495}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1243.547, - 295.101, - -1448.866 - ], - "size": [ - 19.125, - 14.893, - 35.697 - ], - "groundY": 287.655, - "roofY": 302.548, - "wallCount": 39, - "roofCount": 18 - }, - { - "id": "sion_0899", - "uuid": "{F7C3DBCD-34FE-4449-9B1C-EB89F1FEE5FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1045.795, - 11.588, - 187.279 - ], - "size": [ - 26.121, - 17.485, - 16.815 - ], - "groundY": 2.846, - "roofY": 20.331, - "wallCount": 62, - "roofCount": 35 - }, - { - "id": "sion_0900", - "uuid": "{485BD128-A3A8-4DB9-B9A7-6EE279B7540D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -693.225, - 9.336, - 280.015 - ], - "size": [ - 14.004, - 12.056, - 12.594 - ], - "groundY": 3.308, - "roofY": 15.364, - "wallCount": 43, - "roofCount": 15 - }, - { - "id": "sion_0901", - "uuid": "{67CBDD80-5111-4E38-AF44-6626741858D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1494.211, - 91.011, - 1.938 - ], - "size": [ - 37.57, - 15.234, - 44.595 - ], - "groundY": 83.394, - "roofY": 98.628, - "wallCount": 71, - "roofCount": 20 - }, - { - "id": "sion_0902", - "uuid": "{CD87FA8C-D643-495B-BA08-E614CF2C0404}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1504.072, - 221.449, - -583.656 - ], - "size": [ - 24.316, - 12.177, - 19.528 - ], - "groundY": 215.36, - "roofY": 227.537, - "wallCount": 43, - "roofCount": 47 - }, - { - "id": "sion_0903", - "uuid": "{1CE137A0-D9CA-4213-BD2E-B78867D1D0A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1246.029, - 278.409, - -1182.32 - ], - "size": [ - 8.402, - 9.427, - 11.794 - ], - "groundY": 273.696, - "roofY": 283.122, - "wallCount": 54, - "roofCount": 18 - }, - { - "id": "sion_0904", - "uuid": "{B71A1896-D075-4B0F-B349-0C0949679CF7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1205.973, - 10.885, - 158.298 - ], - "size": [ - 30.164, - 16.091, - 30.1 - ], - "groundY": 2.84, - "roofY": 18.931, - "wallCount": 34, - "roofCount": 21 - }, - { - "id": "sion_0905", - "uuid": "{E8CB2826-0354-4D19-920B-C419A4447183}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1048.098, - 246.567, - -923.992 - ], - "size": [ - 22.102, - 11.609, - 17.998 - ], - "groundY": 240.763, - "roofY": 252.372, - "wallCount": 52, - "roofCount": 12 - }, - { - "id": "sion_0906", - "uuid": "{93AF190F-75E7-426F-A020-E3EC8A3BBD3C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -738.775, - 86.205, - -492.617 - ], - "size": [ - 24.793, - 11.307, - 20.156 - ], - "groundY": 80.552, - "roofY": 91.859, - "wallCount": 31, - "roofCount": 24 - }, - { - "id": "sion_0907", - "uuid": "{70AD13A0-1B69-4AFB-955D-19B9646BEDCA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -977.596, - 9.107, - 192.076 - ], - "size": [ - 11.574, - 15.74, - 13.976 - ], - "groundY": 1.237, - "roofY": 16.977, - "wallCount": 46, - "roofCount": 40 - }, - { - "id": "sion_0908", - "uuid": "{3F7A3875-0270-46F1-BD3C-C78286DCF135}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1203.647, - 114.067, - -311.267 - ], - "size": [ - 11.949, - 9.08, - 11.276 - ], - "groundY": 109.527, - "roofY": 118.607, - "wallCount": 49, - "roofCount": 2 - }, - { - "id": "sion_0909", - "uuid": "{D7C2439A-07AD-4345-AD53-980359809AF3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -920.398, - 1.298, - 221.813 - ], - "size": [ - 8.445, - 4.816, - 12.343 - ], - "groundY": -1.11, - "roofY": 3.706, - "wallCount": 24, - "roofCount": 11 - }, - { - "id": "sion_0910", - "uuid": "{40D9A021-E591-401D-80BC-986944463665}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -664.248, - 24.016, - 146.045 - ], - "size": [ - 54.785, - 24.379, - 17.766 - ], - "groundY": 11.827, - "roofY": 36.206, - "wallCount": 22, - "roofCount": 23 - }, - { - "id": "sion_0911", - "uuid": "{A8D707D5-7156-4AD2-9C9F-37D16B67D158}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1158.578, - 206.99, - -655.568 - ], - "size": [ - 20.359, - 12.205, - 20.86 - ], - "groundY": 200.887, - "roofY": 213.093, - "wallCount": 23, - "roofCount": 10 - }, - { - "id": "sion_0912", - "uuid": "{69498604-E2A7-4454-BBE5-B26C09892396}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -401.264, - 65.65, - -702.349 - ], - "size": [ - 4.895, - 14.712, - 5.347 - ], - "groundY": 58.294, - "roofY": 73.006, - "wallCount": 36, - "roofCount": 2 - }, - { - "id": "sion_0913", - "uuid": "{C94E35C1-69B0-4D5C-B61F-5895C2AB63C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1465.145, - 259.893, - -868.586 - ], - "size": [ - 18.984, - 9.502, - 20.391 - ], - "groundY": 255.142, - "roofY": 264.644, - "wallCount": 47, - "roofCount": 17 - }, - { - "id": "sion_0914", - "uuid": "{674A8E98-E1F0-49CC-A14D-0EED26487792}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1521.256, - 5.026, - 483.03 - ], - "size": [ - 24.043, - 17.34, - 17.612 - ], - "groundY": -3.644, - "roofY": 13.696, - "wallCount": 22, - "roofCount": 2 - }, - { - "id": "sion_0915", - "uuid": "{70CBCC6B-04C9-4A9A-BA45-76EA2ADA0B75}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -568.484, - 0.876, - 536.696 - ], - "size": [ - 23.859, - 5.556, - 38.46 - ], - "groundY": -1.902, - "roofY": 3.654, - "wallCount": 39, - "roofCount": 14 - }, - { - "id": "sion_0916", - "uuid": "{D44D89BE-32B7-40D8-BE8E-B46DB6827F5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -680.094, - 19.561, - 184.444 - ], - "size": [ - 11.328, - 16.24, - 10.39 - ], - "groundY": 11.441, - "roofY": 27.681, - "wallCount": 32, - "roofCount": 31 - }, - { - "id": "sion_0917", - "uuid": "{50FFA981-67C3-4368-8595-CCB59074696F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1233.408, - 58.332, - 23.047 - ], - "size": [ - 21.129, - 12.527, - 20.738 - ], - "groundY": 52.069, - "roofY": 64.595, - "wallCount": 51, - "roofCount": 16 - }, - { - "id": "sion_0918", - "uuid": "{17B8F6D9-6365-440D-9F17-FC845B6E6566}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -950.252, - 20.95, - -59.417 - ], - "size": [ - 24.067, - 13.909, - 23.656 - ], - "groundY": 13.996, - "roofY": 27.904, - "wallCount": 10, - "roofCount": 27 - }, - { - "id": "sion_0919", - "uuid": "{8FB9E5B3-0AE6-4C66-8E43-506831D86466}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1008.432, - 2.97, - 241.481 - ], - "size": [ - 10.231, - 10.312, - 10.39 - ], - "groundY": -2.186, - "roofY": 8.126, - "wallCount": 42, - "roofCount": 22 - }, - { - "id": "sion_0920", - "uuid": "{4F9FBF49-8B21-4D98-8D00-E5B4E78AEB45}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1095.178, - -0.584, - 466.192 - ], - "size": [ - 27.941, - 6.72, - 11.79 - ], - "groundY": -3.944, - "roofY": 2.776, - "wallCount": 21, - "roofCount": 2 - }, - { - "id": "sion_0921", - "uuid": "{22AC38AD-502C-4195-A3F3-A0E580DB63B0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1187.033, - 9.591, - 182.899 - ], - "size": [ - 34.129, - 18.101, - 27.821 - ], - "groundY": 0.54, - "roofY": 18.641, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0922", - "uuid": "{A28C8F56-58B7-43D6-9B0F-F0D9A42BDFB0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1146.895, - 5.31, - 173.093 - ], - "size": [ - 31.43, - 7.308, - 24.732 - ], - "groundY": 1.656, - "roofY": 8.964, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_0923", - "uuid": "{1809B828-CA3C-4357-AA95-DD33D0054F0B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1107.254, - 10.143, - 170.844 - ], - "size": [ - 23.992, - 16.03, - 21.178 - ], - "groundY": 2.128, - "roofY": 18.158, - "wallCount": 25, - "roofCount": 12 - }, - { - "id": "sion_0924", - "uuid": "{8FED04FE-9552-447E-ACD7-879CBF8B66E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -836.17, - 105.442, - -563.943 - ], - "size": [ - 25.199, - 11.143, - 23.66 - ], - "groundY": 99.871, - "roofY": 111.014, - "wallCount": 40, - "roofCount": 66 - }, - { - "id": "sion_0925", - "uuid": "{7F55FBF6-3E71-4E45-A6A1-B1CEBCDF6999}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1324.232, - 62.138, - 46.045 - ], - "size": [ - 29.254, - 11.178, - 31.088 - ], - "groundY": 56.549, - "roofY": 67.727, - "wallCount": 28, - "roofCount": 28 - }, - { - "id": "sion_0926", - "uuid": "{E822F145-8833-4C14-9705-1A46A74C5E84}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1414.906, - 67.471, - 118.76 - ], - "size": [ - 50.984, - 15.016, - 34.441 - ], - "groundY": 59.963, - "roofY": 74.979, - "wallCount": 95, - "roofCount": 34 - }, - { - "id": "sion_0927", - "uuid": "{B04727DA-752A-4779-AA60-2FD060E0BB37}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -857.125, - 86.021, - -326.131 - ], - "size": [ - 30.734, - 16.72, - 40.884 - ], - "groundY": 77.661, - "roofY": 94.381, - "wallCount": 77, - "roofCount": 45 - }, - { - "id": "sion_0928", - "uuid": "{4974EB04-487E-43C8-8780-D448AA15D730}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -949.664, - 294.922, - -1472.534 - ], - "size": [ - 28.516, - 10.06, - 17.91 - ], - "groundY": 289.892, - "roofY": 299.952, - "wallCount": 29, - "roofCount": 18 - }, - { - "id": "sion_0929", - "uuid": "{70B2B7ED-6E4C-4CA4-A81D-525BDD482D8C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1499.271, - 206.565, - -534.758 - ], - "size": [ - 15.559, - 10.714, - 16.198 - ], - "groundY": 201.208, - "roofY": 211.922, - "wallCount": 33, - "roofCount": 18 - }, - { - "id": "sion_0930", - "uuid": "{EF0678A1-A2AC-47B0-BBF5-D1ED513C512B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1114.068, - 101.552, - -307.671 - ], - "size": [ - 21.027, - 9.498, - 17.746 - ], - "groundY": 96.803, - "roofY": 106.301, - "wallCount": 42, - "roofCount": 19 - }, - { - "id": "sion_0931", - "uuid": "{98B6DF3A-680C-493A-A79A-686A417EDF36}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1199.205, - 215.597, - -752.346 - ], - "size": [ - 17.035, - 10.637, - 16.672 - ], - "groundY": 210.278, - "roofY": 220.915, - "wallCount": 42, - "roofCount": 24 - }, - { - "id": "sion_0932", - "uuid": "{06776C85-EA01-4607-BC6A-4C907AB3FFFE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -737.803, - 28.784, - -154.255 - ], - "size": [ - 17.238, - 14.087, - 20.7 - ], - "groundY": 21.741, - "roofY": 35.828, - "wallCount": 35, - "roofCount": 25 - }, - { - "id": "sion_0933", - "uuid": "{18000350-A5F8-47C6-89C5-77C4633E73D2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1098.34, - 268.616, - -985.434 - ], - "size": [ - 17.836, - 13.469, - 14.804 - ], - "groundY": 261.882, - "roofY": 275.351, - "wallCount": 46, - "roofCount": 18 - }, - { - "id": "sion_0934", - "uuid": "{093B9CF5-7F31-44E9-85C4-D05C67E73677}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -558.377, - 30.394, - -21.113 - ], - "size": [ - 19.34, - 19.082, - 15.932 - ], - "groundY": 20.853, - "roofY": 39.935, - "wallCount": 95, - "roofCount": 50 - }, - { - "id": "sion_0935", - "uuid": "{0A20BB9E-56B2-40AE-BBB2-8D470967CECE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1050.785, - 10.105, - 223.175 - ], - "size": [ - 25.391, - 20.973, - 35.044 - ], - "groundY": -0.382, - "roofY": 20.591, - "wallCount": 53, - "roofCount": 41 - }, - { - "id": "sion_0936", - "uuid": "{7B668069-96A7-46D5-863C-8751E8F339E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1336.459, - 229.767, - -756.071 - ], - "size": [ - 22.879, - 12.207, - 24.264 - ], - "groundY": 223.663, - "roofY": 235.87, - "wallCount": 50, - "roofCount": 32 - }, - { - "id": "sion_0937", - "uuid": "{78F03CBC-B045-4DB0-AB68-AEE3B5E85DDE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1137.57, - 7.55, - 129.868 - ], - "size": [ - 12.062, - 6.421, - 10.874 - ], - "groundY": 4.34, - "roofY": 10.761, - "wallCount": 24, - "roofCount": 15 - }, - { - "id": "sion_0938", - "uuid": "{AC28A787-91E5-438C-9C40-7F781B4D8384}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1422.107, - 98.16, - -134.593 - ], - "size": [ - 11.941, - 8.617, - 13.418 - ], - "groundY": 93.852, - "roofY": 102.469, - "wallCount": 33, - "roofCount": 4 - }, - { - "id": "sion_0939", - "uuid": "{6B029969-632A-45B0-92D1-C3A8C9ADB41F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -966.758, - 93.598, - -420.023 - ], - "size": [ - 36.344, - 13.24, - 31.97 - ], - "groundY": 86.978, - "roofY": 100.218, - "wallCount": 28, - "roofCount": 8 - }, - { - "id": "sion_0940", - "uuid": "{DA89D2C6-E819-465F-BC60-5EEB0FEB4B82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -777.434, - 16.365, - 223.255 - ], - "size": [ - 24.562, - 18.473, - 23.232 - ], - "groundY": 7.129, - "roofY": 25.602, - "wallCount": 88, - "roofCount": 42 - }, - { - "id": "sion_0941", - "uuid": "{A4FC46C7-1B9A-49C1-98E4-83A537660ABE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1156.016, - 290.79, - -1202.953 - ], - "size": [ - 17.891, - 15.744, - 17.895 - ], - "groundY": 282.918, - "roofY": 298.662, - "wallCount": 52, - "roofCount": 12 - }, - { - "id": "sion_0942", - "uuid": "{A73B730C-E75E-4F06-83D5-CD2D1F0E424B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -763.695, - 3.043, - 1014.599 - ], - "size": [ - 44.352, - 8.907, - 34.485 - ], - "groundY": -1.411, - "roofY": 7.496, - "wallCount": 32, - "roofCount": 12 - }, - { - "id": "sion_0943", - "uuid": "{07D6EAC4-3649-4477-AD06-AD146F366B10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -654.361, - 294.295, - -1278.651 - ], - "size": [ - 23.574, - 15.366, - 20.026 - ], - "groundY": 286.612, - "roofY": 301.978, - "wallCount": 15, - "roofCount": 13 - }, - { - "id": "sion_0944", - "uuid": "{A7FE1D30-D1C4-46B2-BE30-9AF0D642A09E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -935.969, - 3.351, - 327.852 - ], - "size": [ - 35.438, - 13.24, - 17.825 - ], - "groundY": -3.269, - "roofY": 9.971, - "wallCount": 36, - "roofCount": 15 - }, - { - "id": "sion_0945", - "uuid": "{21ABB32D-4B9F-496A-958F-636E6753194B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 1 - ], - "center": [ - -734.969, - 107.372, - -637.738 - ], - "size": [ - 24.133, - 10.869, - 18.984 - ], - "groundY": 101.938, - "roofY": 112.807, - "wallCount": 27, - "roofCount": 10 - }, - { - "id": "sion_0946", - "uuid": "{BEC07634-18DF-4553-81E3-6B31CBD3DB9B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1504.502, - 6.358, - 461.568 - ], - "size": [ - 18.605, - 20.032, - 22.632 - ], - "groundY": -3.658, - "roofY": 16.374, - "wallCount": 43, - "roofCount": 2 - }, - { - "id": "sion_0947", - "uuid": "{8742D2A6-77FF-46F4-9B5D-329E3A3D6C66}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -602.018, - 43.429, - -400.756 - ], - "size": [ - 20.481, - 8.684, - 21.852 - ], - "groundY": 39.087, - "roofY": 47.771, - "wallCount": 13, - "roofCount": 16 - }, - { - "id": "sion_0948", - "uuid": "{37141162-3525-4FF7-AD74-D9FF3B6C5D46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1099.625, - 291.009, - -1222.93 - ], - "size": [ - 25.656, - 12.094, - 17.384 - ], - "groundY": 284.962, - "roofY": 297.056, - "wallCount": 103, - "roofCount": 54 - }, - { - "id": "sion_0949", - "uuid": "{9AD0015B-984B-4276-A33A-CB1F44BF2F66}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -791.992, - 6.741, - 303.12 - ], - "size": [ - 17.016, - 18.409, - 11.494 - ], - "groundY": -2.463, - "roofY": 15.946, - "wallCount": 31, - "roofCount": 12 - }, - { - "id": "sion_0950", - "uuid": "{773C9F75-678C-45A6-887E-C30002551965}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1362.432, - 52.967, - 149.137 - ], - "size": [ - 18.262, - 10.48, - 19.204 - ], - "groundY": 47.727, - "roofY": 58.207, - "wallCount": 62, - "roofCount": 15 - }, - { - "id": "sion_0951", - "uuid": "{7BFF05B1-228C-457A-A29A-A7B1DC0C800D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -714.834, - 65.04, - -420.499 - ], - "size": [ - 18.793, - 10.757, - 16.357 - ], - "groundY": 59.662, - "roofY": 70.419, - "wallCount": 41, - "roofCount": 6 - }, - { - "id": "sion_0952", - "uuid": "{2E665D61-335A-40FB-96EC-9663D8CB5EAA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1292.82, - 290.758, - -1372.684 - ], - "size": [ - 18.672, - 12.328, - 20.726 - ], - "groundY": 284.594, - "roofY": 296.922, - "wallCount": 37, - "roofCount": 31 - }, - { - "id": "sion_0953", - "uuid": "{9A417AAE-3F4F-4F0B-8829-758B99EC7487}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1228.668, - 287.457, - -1327.121 - ], - "size": [ - 20.414, - 10.042, - 15.5 - ], - "groundY": 282.436, - "roofY": 292.478, - "wallCount": 49, - "roofCount": 28 - }, - { - "id": "sion_0954", - "uuid": "{CC58DC28-C034-477A-9EE5-144702250604}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -533.971, - 46.055, - -356.782 - ], - "size": [ - 23.863, - 20.116, - 21.614 - ], - "groundY": 35.997, - "roofY": 56.113, - "wallCount": 17, - "roofCount": 27 - }, - { - "id": "sion_0955", - "uuid": "{CD74B4DA-6099-418F-BB84-FFF955AA030A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -646.617, - 4.252, - 767.921 - ], - "size": [ - 51.875, - 11.722, - 43.58 - ], - "groundY": -1.609, - "roofY": 10.113, - "wallCount": 35, - "roofCount": 10 - }, - { - "id": "sion_0956", - "uuid": "{FABE19C1-8AA3-4810-B2E3-561501D1C8D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1152.668, - 290.477, - -1171.727 - ], - "size": [ - 26.266, - 14.567, - 17.812 - ], - "groundY": 283.193, - "roofY": 297.76, - "wallCount": 51, - "roofCount": 24 - }, - { - "id": "sion_0957", - "uuid": "{18903E43-BAE1-4439-8BCB-D38AA40B4C40}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -930.213, - 23.172, - -80.324 - ], - "size": [ - 27.223, - 19.208, - 24.134 - ], - "groundY": 13.568, - "roofY": 32.776, - "wallCount": 23, - "roofCount": 19 - }, - { - "id": "sion_0958", - "uuid": "{FF9A9689-1A0D-4585-8CB4-E4DE0B947F30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1096.76, - 131.995, - -446.418 - ], - "size": [ - 19.168, - 12.345, - 16.424 - ], - "groundY": 125.823, - "roofY": 138.167, - "wallCount": 60, - "roofCount": 21 - }, - { - "id": "sion_0959", - "uuid": "{682D4C72-F791-4578-A127-4D3ADCDE4200}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -756.018, - 31.294, - -140.339 - ], - "size": [ - 31.441, - 20.359, - 27.42 - ], - "groundY": 21.115, - "roofY": 41.474, - "wallCount": 32, - "roofCount": 38 - }, - { - "id": "sion_0960", - "uuid": "{E593A05B-8F20-422F-80BC-61039841CB29}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1022.066, - 3.446, - 328.823 - ], - "size": [ - 13.461, - 13.376, - 13.28 - ], - "groundY": -3.242, - "roofY": 10.134, - "wallCount": 52, - "roofCount": 19 - }, - { - "id": "sion_0961", - "uuid": "{CA22D628-B156-4EB4-831F-9C42E1EDA7FF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -992.195, - 4.26, - 239.731 - ], - "size": [ - 20.508, - 13.542, - 15.362 - ], - "groundY": -2.511, - "roofY": 11.031, - "wallCount": 53, - "roofCount": 34 - }, - { - "id": "sion_0962", - "uuid": "{44F3D2BB-B791-44DF-B956-93FCCFD3F7E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1089.209, - 100.67, - -313.492 - ], - "size": [ - 15.527, - 10.23, - 15.648 - ], - "groundY": 95.555, - "roofY": 105.785, - "wallCount": 44, - "roofCount": 11 - }, - { - "id": "sion_0963", - "uuid": "{4565C09A-7CCA-4402-9CDD-F8AFA6F1D333}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -697.189, - 26.691, - -54.085 - ], - "size": [ - 19.387, - 19.007, - 18.764 - ], - "groundY": 17.188, - "roofY": 36.195, - "wallCount": 51, - "roofCount": 13 - }, - { - "id": "sion_0964", - "uuid": "{DCA53A43-BA19-44B0-97E4-B9B76AEF0D39}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1262.441, - 282.998, - -1115.202 - ], - "size": [ - 11.742, - 11.114, - 9.176 - ], - "groundY": 277.441, - "roofY": 288.555, - "wallCount": 45, - "roofCount": 24 - }, - { - "id": "sion_0965", - "uuid": "{CF9B4A6B-DC9B-4B0C-88BC-9B10D0336A74}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -603.324, - 3.811, - 724.965 - ], - "size": [ - 43.695, - 10.299, - 144.777 - ], - "groundY": -1.338, - "roofY": 8.96, - "wallCount": 238, - "roofCount": 107 - }, - { - "id": "sion_0966", - "uuid": "{B0C19748-9DE3-4A13-97D2-C6452D1474FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1445.244, - 286.108, - -1318.433 - ], - "size": [ - 20.801, - 20.108, - 27.698 - ], - "groundY": 276.054, - "roofY": 296.162, - "wallCount": 58, - "roofCount": 25 - }, - { - "id": "sion_0967", - "uuid": "{CA14FC9A-5758-4947-92C7-69D6382D06B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -579.65, - 11.584, - 430.913 - ], - "size": [ - 21.598, - 24.09, - 33.792 - ], - "groundY": -0.461, - "roofY": 23.629, - "wallCount": 21, - "roofCount": 20 - }, - { - "id": "sion_0968", - "uuid": "{8385BF24-7A98-4531-B29C-3EEFAB58B1F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -477.766, - 11.485, - 726.906 - ], - "size": [ - 22.289, - 25.1, - 41.02 - ], - "groundY": -1.065, - "roofY": 24.035, - "wallCount": 134, - "roofCount": 30 - }, - { - "id": "sion_0969", - "uuid": "{747F8284-C62F-4F28-AD46-82EDBBC4231C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1025.959, - 3.092, - 273.943 - ], - "size": [ - 14.106, - 12.216, - 11.802 - ], - "groundY": -3.016, - "roofY": 9.2, - "wallCount": 36, - "roofCount": 31 - }, - { - "id": "sion_0970", - "uuid": "{35AEA41A-AD5A-4F5B-8D6E-F55205E487E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -622.5, - 39.63, - -274.288 - ], - "size": [ - 19.727, - 16.356, - 19.332 - ], - "groundY": 31.452, - "roofY": 47.808, - "wallCount": 47, - "roofCount": 10 - }, - { - "id": "sion_0971", - "uuid": "{ABC88FF5-0B15-4B9E-B28F-67DF7C395036}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1409.533, - 273.559, - -1023.497 - ], - "size": [ - 14.285, - 11.229, - 13.603 - ], - "groundY": 267.944, - "roofY": 279.173, - "wallCount": 50, - "roofCount": 21 - }, - { - "id": "sion_0972", - "uuid": "{B9D910DA-DEF7-4F41-8590-945B04DBA83B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -754.918, - 284.797, - -1323.757 - ], - "size": [ - 26.5, - 8.693, - 21.021 - ], - "groundY": 280.451, - "roofY": 289.144, - "wallCount": 29, - "roofCount": 18 - }, - { - "id": "sion_0973", - "uuid": "{676BCF9A-6203-415D-8FE4-74A3C13CD065}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1168.539, - 17.833, - 87.424 - ], - "size": [ - 24.945, - 16.727, - 22.654 - ], - "groundY": 9.47, - "roofY": 26.197, - "wallCount": 30, - "roofCount": 16 - }, - { - "id": "sion_0974", - "uuid": "{CBF9ABF5-307C-45AF-98FE-D16491DCDAFC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -993.574, - 296.485, - -1458.409 - ], - "size": [ - 26.859, - 9.728, - 20.893 - ], - "groundY": 291.621, - "roofY": 301.349, - "wallCount": 27, - "roofCount": 18 - }, - { - "id": "sion_0975", - "uuid": "{674B36C3-A92B-45D0-86D9-7CE2651DDD8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1526.779, - 275.196, - -1234.607 - ], - "size": [ - 32.684, - 8.827, - 30.304 - ], - "groundY": 270.783, - "roofY": 279.609, - "wallCount": 17, - "roofCount": 27 - }, - { - "id": "sion_0976", - "uuid": "{CCE7809F-88B3-4896-B017-6B6EF82C79E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -731.836, - 3.688, - 998.278 - ], - "size": [ - 16.719, - 10.271, - 20.742 - ], - "groundY": -1.448, - "roofY": 8.823, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_0977", - "uuid": "{299877D6-6D68-45D0-BB25-AC5D83734644}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1400.738, - 59.593, - 155.233 - ], - "size": [ - 28.008, - 17.704, - 18.644 - ], - "groundY": 50.741, - "roofY": 68.445, - "wallCount": 95, - "roofCount": 16 - }, - { - "id": "sion_0978", - "uuid": "{1BD37A60-8AB7-4CD6-BC2D-83E1905196F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1120.633, - 287.822, - -1285.656 - ], - "size": [ - 27.039, - 6.701, - 18.42 - ], - "groundY": 284.472, - "roofY": 291.172, - "wallCount": 20, - "roofCount": 14 - }, - { - "id": "sion_0979", - "uuid": "{2CA4E056-04B3-4440-AD1F-A33870BDA6CA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 4 - ], - "center": [ - -892.072, - 4.225, - 733.748 - ], - "size": [ - 62.754, - 13.026, - 45.588 - ], - "groundY": -2.288, - "roofY": 10.738, - "wallCount": 35, - "roofCount": 69 - }, - { - "id": "sion_0980", - "uuid": "{2360047D-C3BC-4B83-BF37-F3DC4BC27A0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -773.875, - 25.274, - -53.17 - ], - "size": [ - 21.945, - 17.057, - 22.086 - ], - "groundY": 16.746, - "roofY": 33.803, - "wallCount": 89, - "roofCount": 54 - }, - { - "id": "sion_0981", - "uuid": "{E2E0FD88-4A8F-43CD-BD97-1642EB17C0FF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -754.828, - 43.779, - -243.28 - ], - "size": [ - 16.633, - 14.469, - 17.138 - ], - "groundY": 36.544, - "roofY": 51.013, - "wallCount": 36, - "roofCount": 9 - }, - { - "id": "sion_0982", - "uuid": "{13ED8D2F-631E-4E01-8B77-82D518A691B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -823.541, - 82.844, - -446.049 - ], - "size": [ - 30.582, - 16.102, - 29.342 - ], - "groundY": 74.793, - "roofY": 90.895, - "wallCount": 32, - "roofCount": 20 - }, - { - "id": "sion_0983", - "uuid": "{72A97893-1463-48FD-9AEA-35A348AA4260}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1111.268, - 107.483, - -363.563 - ], - "size": [ - 27.754, - 12.433, - 31.5 - ], - "groundY": 101.267, - "roofY": 113.7, - "wallCount": 60, - "roofCount": 35 - }, - { - "id": "sion_0984", - "uuid": "{94337E15-5D22-4BBF-A425-D6B4AAB37661}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -465.771, - 32.363, - -41.749 - ], - "size": [ - 42.137, - 28.335, - 44.121 - ], - "groundY": 18.195, - "roofY": 46.53, - "wallCount": 90, - "roofCount": 29 - }, - { - "id": "sion_0985", - "uuid": "{649339E9-4473-46BA-8716-295C05B5B245}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -806.973, - 20.636, - 122.265 - ], - "size": [ - 34.562, - 20.709, - 19.124 - ], - "groundY": 10.282, - "roofY": 30.991, - "wallCount": 34, - "roofCount": 20 - }, - { - "id": "sion_0986", - "uuid": "{C3A8851A-2538-4C08-AB7B-617234F547D2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1293.584, - 272.565, - -1172.962 - ], - "size": [ - 12.894, - 6.298, - 12.057 - ], - "groundY": 269.416, - "roofY": 275.714, - "wallCount": 34, - "roofCount": 13 - }, - { - "id": "sion_0987", - "uuid": "{76B38E7B-310C-4720-B102-F3D268E332E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1387.75, - 68.826, - 73.944 - ], - "size": [ - 26.633, - 13.334, - 24.416 - ], - "groundY": 62.159, - "roofY": 75.493, - "wallCount": 16, - "roofCount": 13 - }, - { - "id": "sion_0988", - "uuid": "{2015F0E8-BE25-4497-BAF0-F1593CAD09A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -922.074, - 17.19, - 112.698 - ], - "size": [ - 30.195, - 20.524, - 26.574 - ], - "groundY": 6.928, - "roofY": 27.452, - "wallCount": 123, - "roofCount": 57 - }, - { - "id": "sion_0989", - "uuid": "{67ECC163-FEE3-424D-9246-84916DA799DF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -505.232, - 8.401, - 471.551 - ], - "size": [ - 17.144, - 15.076, - 16.576 - ], - "groundY": 0.863, - "roofY": 15.939, - "wallCount": 24, - "roofCount": 68 - }, - { - "id": "sion_0990", - "uuid": "{4BB9B014-0D93-4E74-A27A-06B5EC22B4C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1463.412, - 209.865, - -577.173 - ], - "size": [ - 16.48, - 10.153, - 14.99 - ], - "groundY": 204.789, - "roofY": 214.942, - "wallCount": 40, - "roofCount": 4 - }, - { - "id": "sion_0991", - "uuid": "{D40A9D52-F8C4-417E-8062-3AD258FEFC43}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1325.299, - 7.129, - 466.298 - ], - "size": [ - 24.613, - 22.07, - 35.33 - ], - "groundY": -3.906, - "roofY": 18.164, - "wallCount": 45, - "roofCount": 20 - }, - { - "id": "sion_0992", - "uuid": "{72848876-F2D7-4257-A24D-3C757921F3F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1509.26, - 267.078, - -976.533 - ], - "size": [ - 15.621, - 11.062, - 15.05 - ], - "groundY": 261.547, - "roofY": 272.609, - "wallCount": 45, - "roofCount": 24 - }, - { - "id": "sion_0993", - "uuid": "{7ED7EB96-109E-42CC-888C-2025AE931389}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1313.086, - 284.451, - -1341.1 - ], - "size": [ - 11.859, - 5.742, - 17.188 - ], - "groundY": 281.58, - "roofY": 287.322, - "wallCount": 37, - "roofCount": 15 - }, - { - "id": "sion_0994", - "uuid": "{B30BF060-3B98-4597-B6D2-6AE1449041F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1090.562, - 4.494, - 637.529 - ], - "size": [ - 53.281, - 14.857, - 44.666 - ], - "groundY": -2.934, - "roofY": 11.923, - "wallCount": 14, - "roofCount": 11 - }, - { - "id": "sion_0995", - "uuid": "{D9A6FDA2-4715-4D17-842A-CF58F368CF38}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -849.367, - 31.691, - -172.95 - ], - "size": [ - 21.828, - 13.348, - 16.814 - ], - "groundY": 25.017, - "roofY": 38.365, - "wallCount": 53, - "roofCount": 18 - }, - { - "id": "sion_0996", - "uuid": "{023DBC8E-8B12-4BC7-97B7-EF08839914F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1484.924, - 233.2, - -808.197 - ], - "size": [ - 16.918, - 8.264, - 15.992 - ], - "groundY": 229.068, - "roofY": 237.332, - "wallCount": 31, - "roofCount": 2 - }, - { - "id": "sion_0997", - "uuid": "{A84F6931-9081-4F02-9E85-EF964911E7C4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1232.982, - 295.339, - -1399.598 - ], - "size": [ - 17.254, - 14.126, - 15.222 - ], - "groundY": 288.276, - "roofY": 302.402, - "wallCount": 41, - "roofCount": 30 - }, - { - "id": "sion_0998", - "uuid": "{A36891CB-0E47-4738-BF49-090D89D8FBC3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1327.879, - 259.074, - -981.157 - ], - "size": [ - 17.25, - 10.209, - 21.05 - ], - "groundY": 253.969, - "roofY": 264.178, - "wallCount": 42, - "roofCount": 10 - }, - { - "id": "sion_0999", - "uuid": "{BC121CA2-A2AC-4D01-ABE3-FF7687D9498D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1357.51, - 279.205, - -1120.733 - ], - "size": [ - 12.324, - 5.214, - 11.754 - ], - "groundY": 276.598, - "roofY": 281.812, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_1000", - "uuid": "{C94EA914-6545-41C7-9520-ADFC6BCE28E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1305.355, - 289.58, - -1364.07 - ], - "size": [ - 9.992, - 11.698, - 17.522 - ], - "groundY": 283.731, - "roofY": 295.429, - "wallCount": 44, - "roofCount": 24 - }, - { - "id": "sion_1001", - "uuid": "{6B651F06-13EC-4F15-9B56-18EADB3619FD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -713.4, - 2.891, - 577.17 - ], - "size": [ - 146.652, - 8.875, - 74.637 - ], - "groundY": -1.546, - "roofY": 7.329, - "wallCount": 105, - "roofCount": 50 - }, - { - "id": "sion_1002", - "uuid": "{CEA0BA79-896A-41AB-8030-55D258DB09D8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -537.686, - 41.367, - -201.911 - ], - "size": [ - 44.02, - 26.928, - 28.714 - ], - "groundY": 27.903, - "roofY": 54.831, - "wallCount": 72, - "roofCount": 162 - }, - { - "id": "sion_1003", - "uuid": "{52093900-F14B-4D19-A2D3-6D6F030CD25F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1434.404, - 119.28, - -186.96 - ], - "size": [ - 7.965, - 7.776, - 5.684 - ], - "groundY": 115.392, - "roofY": 123.168, - "wallCount": 37, - "roofCount": 17 - }, - { - "id": "sion_1004", - "uuid": "{3E048AAC-B23E-4F49-9762-D9B11CA3BCF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -933.889, - 298.516, - -1528.18 - ], - "size": [ - 23.996, - 9.209, - 24.306 - ], - "groundY": 293.911, - "roofY": 303.12, - "wallCount": 43, - "roofCount": 49 - }, - { - "id": "sion_1005", - "uuid": "{EB6D0244-05F5-4F25-81E8-785B0575A6DA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1410.27, - 283.984, - -1077.879 - ], - "size": [ - 20.242, - 11.568, - 26.586 - ], - "groundY": 278.2, - "roofY": 289.768, - "wallCount": 51, - "roofCount": 27 - }, - { - "id": "sion_1006", - "uuid": "{EFA6894B-9BE5-4719-B084-00FC35BE2BBC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -968.891, - 1.019, - 450.324 - ], - "size": [ - 29.289, - 6.232, - 16.924 - ], - "groundY": -2.097, - "roofY": 4.135, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_1007", - "uuid": "{D3D5F0A3-58E9-4B95-9B41-5B85C1E3BD6D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -608.416, - 53.259, - -456.743 - ], - "size": [ - 12.074, - 11.961, - 12.83 - ], - "groundY": 47.279, - "roofY": 59.24, - "wallCount": 37, - "roofCount": 18 - }, - { - "id": "sion_1008", - "uuid": "{4C1389AB-18F1-458C-9976-278537EDAE6A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1526.465, - 267.236, - -1082.195 - ], - "size": [ - 22.109, - 9.62, - 20.166 - ], - "groundY": 262.426, - "roofY": 272.046, - "wallCount": 28, - "roofCount": 18 - }, - { - "id": "sion_1009", - "uuid": "{C39163B5-09F9-44FB-ACC3-CCE3D219E05F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1323.719, - 202.382, - -571.205 - ], - "size": [ - 9.68, - 6.903, - 11.939 - ], - "groundY": 198.931, - "roofY": 205.834, - "wallCount": 26, - "roofCount": 19 - }, - { - "id": "sion_1010", - "uuid": "{847130A0-EC41-4FE8-9989-683AB16567D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1024.955, - 272.467, - -1025.995 - ], - "size": [ - 29.356, - 19.238, - 31.753 - ], - "groundY": 262.848, - "roofY": 282.086, - "wallCount": 32, - "roofCount": 10 - }, - { - "id": "sion_1011", - "uuid": "{A9FC3F33-B256-4AB6-985B-89839DCC39D5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1410.289, - 73.902, - -5.58 - ], - "size": [ - 42.727, - 16.574, - 34.189 - ], - "groundY": 65.615, - "roofY": 82.188, - "wallCount": 61, - "roofCount": 18 - }, - { - "id": "sion_1012", - "uuid": "{9447D016-D81F-4BEF-B5CF-8CBA7B5E18D8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1075.24, - 204.624, - -733.495 - ], - "size": [ - 25.004, - 9.784, - 19.622 - ], - "groundY": 199.732, - "roofY": 209.516, - "wallCount": 25, - "roofCount": 15 - }, - { - "id": "sion_1013", - "uuid": "{F8128FC4-CD39-44E6-9DEA-ACDB683C2F9B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1340.896, - 49.103, - 143.501 - ], - "size": [ - 15.262, - 13.228, - 13.85 - ], - "groundY": 42.489, - "roofY": 55.717, - "wallCount": 73, - "roofCount": 20 - }, - { - "id": "sion_1014", - "uuid": "{93D1D5A4-FD99-493E-A4C5-8AF0654B7488}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1264.713, - 294.519, - -1433.714 - ], - "size": [ - 19.27, - 13.633, - 29.506 - ], - "groundY": 287.702, - "roofY": 301.335, - "wallCount": 30, - "roofCount": 31 - }, - { - "id": "sion_1015", - "uuid": "{19F3EB6E-93E2-4957-9E67-5B8DB8DD2419}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1488.102, - 264.299, - -945.27 - ], - "size": [ - 11.945, - 16.044, - 23.995 - ], - "groundY": 256.277, - "roofY": 272.321, - "wallCount": 61, - "roofCount": 17 - }, - { - "id": "sion_1016", - "uuid": "{450E5E4B-BE6F-4862-AB7B-73575B09D18A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1322.203, - 71.175, - -43.554 - ], - "size": [ - 20.742, - 5.438, - 15.402 - ], - "groundY": 68.456, - "roofY": 73.894, - "wallCount": 23, - "roofCount": 2 - }, - { - "id": "sion_1017", - "uuid": "{573599BA-C4B2-4B99-B95A-0D9CEE1EDA26}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1470.119, - 225.047, - -617.601 - ], - "size": [ - 19.902, - 13.03, - 19.078 - ], - "groundY": 218.532, - "roofY": 231.562, - "wallCount": 81, - "roofCount": 18 - }, - { - "id": "sion_1018", - "uuid": "{C0766392-075E-4B10-8933-9FCF838C0FEB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 4 - ], - "center": [ - -1066.133, - 1.374, - 1018.833 - ], - "size": [ - 16.945, - 7.286, - 16.143 - ], - "groundY": -2.269, - "roofY": 5.017, - "wallCount": 37, - "roofCount": 6 - }, - { - "id": "sion_1019", - "uuid": "{EE409AB3-9C56-41AC-A476-295F1BF5BC9E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1146.551, - 7.034, - 240.312 - ], - "size": [ - 33.164, - 16.224, - 25.73 - ], - "groundY": -1.078, - "roofY": 15.146, - "wallCount": 47, - "roofCount": 19 - }, - { - "id": "sion_1020", - "uuid": "{F25A0FDB-973F-44A7-B7B2-1DA6704BEC8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -1021.426, - 11.622, - 180.662 - ], - "size": [ - 20.008, - 17.501, - 16.294 - ], - "groundY": 2.872, - "roofY": 20.373, - "wallCount": 32, - "roofCount": 22 - }, - { - "id": "sion_1021", - "uuid": "{028E66C8-FA61-4B72-9227-C4B6DD91B5AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -636.496, - 5.097, - 424.573 - ], - "size": [ - 12.195, - 13.689, - 18.366 - ], - "groundY": -1.747, - "roofY": 11.942, - "wallCount": 26, - "roofCount": 17 - }, - { - "id": "sion_1022", - "uuid": "{9CAF78C1-447B-4C68-B2B9-04C413401020}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 4 - ], - "center": [ - -635.94, - 9.154, - 811.417 - ], - "size": [ - 64.059, - 20.194, - 42.789 - ], - "groundY": -0.943, - "roofY": 19.251, - "wallCount": 34, - "roofCount": 8 - }, - { - "id": "sion_1023", - "uuid": "{47CE7411-B29A-4525-B986-512B16BBB71E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1354.588, - 222.494, - -718.199 - ], - "size": [ - 20.879, - 9.75, - 19.82 - ], - "groundY": 217.619, - "roofY": 227.369, - "wallCount": 37, - "roofCount": 32 - }, - { - "id": "sion_1024", - "uuid": "{1C7841C2-90C3-4D0C-AB5A-9E0C24D834E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1043.559, - 96.239, - -349.819 - ], - "size": [ - 29.844, - 16.936, - 28.666 - ], - "groundY": 87.771, - "roofY": 104.707, - "wallCount": 26, - "roofCount": 28 - }, - { - "id": "sion_1025", - "uuid": "{543D682D-2252-446D-A63D-197D5604DFFA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1528.188, - 273.001, - -1175.471 - ], - "size": [ - 35.734, - 5.029, - 21.664 - ], - "groundY": 270.487, - "roofY": 275.515, - "wallCount": 14, - "roofCount": 12 - }, - { - "id": "sion_1026", - "uuid": "{4855B8F0-F8DC-4C07-86E5-70758A967756}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -986.207, - 93.434, - -350.861 - ], - "size": [ - 29.344, - 16.752, - 28.614 - ], - "groundY": 85.058, - "roofY": 101.81, - "wallCount": 25, - "roofCount": 13 - }, - { - "id": "sion_1027", - "uuid": "{4A669F13-4E27-48E1-A106-75FD4F13CBEB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -890.127, - 17.706, - 90.613 - ], - "size": [ - 32.84, - 18.951, - 28.396 - ], - "groundY": 8.231, - "roofY": 27.182, - "wallCount": 48, - "roofCount": 32 - }, - { - "id": "sion_1028", - "uuid": "{05DCFCCF-2F81-4DED-A13A-9B1979D78159}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -558.451, - 46.109, - -418.881 - ], - "size": [ - 22.715, - 15.804, - 18.334 - ], - "groundY": 38.207, - "roofY": 54.011, - "wallCount": 53, - "roofCount": 64 - }, - { - "id": "sion_1029", - "uuid": "{4A9841CB-AEBD-40D9-882C-1DB98437F306}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -866.877, - 24.389, - -51.895 - ], - "size": [ - 32.012, - 19.468, - 39.345 - ], - "groundY": 14.655, - "roofY": 34.123, - "wallCount": 21, - "roofCount": 17 - }, - { - "id": "sion_1030", - "uuid": "{703A03F7-1CC6-496E-8C89-7522D0AB1A99}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1198.24, - 289.597, - -1342.569 - ], - "size": [ - 18.09, - 11.73, - 13.738 - ], - "groundY": 283.732, - "roofY": 295.462, - "wallCount": 50, - "roofCount": 21 - }, - { - "id": "sion_1031", - "uuid": "{8FA29081-D637-4797-A596-72FF937724F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1400.373, - 202.384, - -495.693 - ], - "size": [ - 16.426, - 8.726, - 13.89 - ], - "groundY": 198.021, - "roofY": 206.747, - "wallCount": 31, - "roofCount": 16 - }, - { - "id": "sion_1032", - "uuid": "{336037E9-DB4D-4EDA-BACB-CE7C280644B0}", - "name": "Eglise de la Sainte Famille", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 4 - ], - "center": [ - -405.951, - 4.534, - 856.064 - ], - "size": [ - 20.41, - 10.732, - 39.356 - ], - "groundY": -0.832, - "roofY": 9.9, - "wallCount": 86, - "roofCount": 71 - }, - { - "id": "sion_1033", - "uuid": "{9856E88D-4CDB-4268-9D2D-64C94F300727}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -881.307, - 289.767, - -1309.062 - ], - "size": [ - 12.777, - 13.021, - 12.647 - ], - "groundY": 283.256, - "roofY": 296.277, - "wallCount": 55, - "roofCount": 17 - }, - { - "id": "sion_1034", - "uuid": "{D3E7464B-9D37-4254-B167-51A20C85D0AB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -537.605, - 5.743, - 484.375 - ], - "size": [ - 18.297, - 11.073, - 16.498 - ], - "groundY": 0.207, - "roofY": 11.28, - "wallCount": 46, - "roofCount": 24 - }, - { - "id": "sion_1035", - "uuid": "{2C104AC0-818C-4A6D-8CBA-21073286CFE5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -531.908, - 31.06, - -37.12 - ], - "size": [ - 22.262, - 18.322, - 20.786 - ], - "groundY": 21.899, - "roofY": 40.221, - "wallCount": 32, - "roofCount": 26 - }, - { - "id": "sion_1036", - "uuid": "{33E86550-62B1-4D4A-A6BA-4C447EF4EC62}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 3 - ], - "center": [ - -1077.439, - 14.484, - 118.122 - ], - "size": [ - 27.183, - 19.182, - 29.38 - ], - "groundY": 4.893, - "roofY": 24.075, - "wallCount": 45, - "roofCount": 16 - }, - { - "id": "sion_1037", - "uuid": "{B489FFA8-F1B4-46E9-A4DA-EC34C035EE82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -684.953, - 294.479, - -1265.854 - ], - "size": [ - 29.305, - 15.754, - 22.479 - ], - "groundY": 286.602, - "roofY": 302.356, - "wallCount": 10, - "roofCount": 11 - }, - { - "id": "sion_1038", - "uuid": "{A5E5FC92-42EF-4FB2-9FDB-7F9999663F3F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1428.5, - 47.233, - 233.836 - ], - "size": [ - 20.273, - 9.332, - 17.672 - ], - "groundY": 42.567, - "roofY": 51.899, - "wallCount": 48, - "roofCount": 14 - }, - { - "id": "sion_1039", - "uuid": "{E6AB50A0-3B34-4BAA-8B32-BA62FBBF4FD8}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1511.766, - 9.508, - 747.505 - ], - "size": [ - 52.758, - 25.416, - 38.146 - ], - "groundY": -3.2, - "roofY": 22.216, - "wallCount": 95, - "roofCount": 15 - }, - { - "id": "sion_1040", - "uuid": "{F43D0412-84DC-4520-BBF7-2AC065DE6CEE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 2 - ], - "center": [ - -1160.246, - 103.071, - -273.49 - ], - "size": [ - 19.078, - 11.154, - 24.676 - ], - "groundY": 97.494, - "roofY": 108.648, - "wallCount": 42, - "roofCount": 4 - }, - { - "id": "sion_1041", - "uuid": "{DA431EFB-6743-4314-BF12-6415DC9D0817}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -613.574, - 33.859, - -185.48 - ], - "size": [ - 20.773, - 15.783, - 16.405 - ], - "groundY": 25.968, - "roofY": 41.751, - "wallCount": 38, - "roofCount": 15 - }, - { - "id": "sion_1042", - "uuid": "{9EF6DB31-BC50-4701-A9DD-1A862C2A7346}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1510.586, - 275.375, - -1142.778 - ], - "size": [ - 30.078, - 19.246, - 45.844 - ], - "groundY": 265.752, - "roofY": 284.998, - "wallCount": 44, - "roofCount": 18 - }, - { - "id": "sion_1043", - "uuid": "{F06FB788-AB95-4A7D-BD0B-A918EFBCB80F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 2 - ], - "center": [ - -949.352, - 40.773, - -133.591 - ], - "size": [ - 17.188, - 8.874, - 17.614 - ], - "groundY": 36.336, - "roofY": 45.21, - "wallCount": 28, - "roofCount": 2 - }, - { - "id": "sion_1044", - "uuid": "{A452E4C0-53F3-4B4E-AE5B-6BA15B812828}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 0 - ], - "center": [ - -1201.574, - 286.581, - -1145.672 - ], - "size": [ - 25.555, - 15.092, - 22.107 - ], - "groundY": 279.035, - "roofY": 294.127, - "wallCount": 79, - "roofCount": 24 - }, - { - "id": "sion_1045", - "uuid": "{CF2764B4-084D-4BAC-8D35-47CBBA43C717}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 0 - ], - "center": [ - -829.494, - 287.63, - -1280.66 - ], - "size": [ - 12.629, - 7.648, - 11.484 - ], - "groundY": 283.806, - "roofY": 291.454, - "wallCount": 40, - "roofCount": 10 - }, - { - "id": "sion_1046", - "uuid": "{09B83F2C-A6EF-4F1E-B5C6-71DA61A6A803}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -448.08, - 51.419, - -424.157 - ], - "size": [ - 109.152, - 26.325, - 71.344 - ], - "groundY": 38.256, - "roofY": 64.581, - "wallCount": 167, - "roofCount": 312 - }, - { - "id": "sion_1047", - "uuid": "{152D2EF3-CA5F-405B-89FC-5F23869F2296}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 3 - ], - "center": [ - -893.586, - 9.125, - 206.389 - ], - "size": [ - 37.43, - 18.942, - 24.542 - ], - "groundY": -0.346, - "roofY": 18.595, - "wallCount": 37, - "roofCount": 23 - }, - { - "id": "sion_1048", - "uuid": "{C4F5F6A4-1F03-45C9-9114-133759F23180}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1289.027, - 10.057, - 588.87 - ], - "size": [ - 21.117, - 25.728, - 28.828 - ], - "groundY": -2.807, - "roofY": 22.921, - "wallCount": 110, - "roofCount": 12 - }, - { - "id": "sion_1049", - "uuid": "{12FC2A57-4EE6-4892-ADAD-D44E35ECAB04}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1401.607, - 68.833, - 38.211 - ], - "size": [ - 41.043, - 14.114, - 32.908 - ], - "groundY": 61.776, - "roofY": 75.89, - "wallCount": 35, - "roofCount": 0 - }, - { - "id": "sion_1050", - "uuid": "{C1035395-B19D-4E07-8B76-0F7B5BF317C4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1069.137, - 3.792, - 1363.663 - ], - "size": [ - 91.406, - 13.069, - 65.197 - ], - "groundY": -2.742, - "roofY": 10.327, - "wallCount": 32, - "roofCount": 14 - }, - { - "id": "sion_1051", - "uuid": "{FB1EEDC7-6EA5-425F-BBAA-87DF2EBB234A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1373.244, - 0.104, - 1375.987 - ], - "size": [ - 20.379, - 5.814, - 15.618 - ], - "groundY": -2.803, - "roofY": 3.011, - "wallCount": 18, - "roofCount": 44 - }, - { - "id": "sion_1052", - "uuid": "{1FB4F31B-0A30-4538-AACF-7C9D739BFBE0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -778.816, - 4.326, - 1438.25 - ], - "size": [ - 37.32, - 9.782, - 51.979 - ], - "groundY": -0.565, - "roofY": 9.217, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1053", - "uuid": "{42A6BE5F-3283-4907-B9D4-A78E55B388D6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -545.295, - 6.179, - 1112.531 - ], - "size": [ - 62.738, - 13.272, - 39.56 - ], - "groundY": -0.457, - "roofY": 12.815, - "wallCount": 21, - "roofCount": 8 - }, - { - "id": "sion_1054", - "uuid": "{43122073-8C18-4C7D-AE4F-551366C6F159}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1393.287, - 1.103, - 1392.597 - ], - "size": [ - 10.199, - 8.355, - 12.61 - ], - "groundY": -3.075, - "roofY": 5.28, - "wallCount": 43, - "roofCount": 18 - }, - { - "id": "sion_1055", - "uuid": "{EE7E0C49-31B7-4DC5-BE55-89A9806DE864}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -629.023, - 5.763, - 1391.575 - ], - "size": [ - 47.961, - 11.578, - 39.812 - ], - "groundY": -0.026, - "roofY": 11.552, - "wallCount": 11, - "roofCount": 16 - }, - { - "id": "sion_1056", - "uuid": "{CEC61DB3-2304-4298-9134-5E228ABB01AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -458.033, - 7.673, - 1292.837 - ], - "size": [ - 69.613, - 15.52, - 67.584 - ], - "groundY": -0.087, - "roofY": 15.433, - "wallCount": 165, - "roofCount": 58 - }, - { - "id": "sion_1057", - "uuid": "{52F9CAD6-784C-4593-A138-3121D35AC00D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -549.934, - 3.19, - 1268.929 - ], - "size": [ - 47.312, - 7.529, - 73.236 - ], - "groundY": -0.574, - "roofY": 6.954, - "wallCount": 32, - "roofCount": 17 - }, - { - "id": "sion_1058", - "uuid": "{1D4785E4-6ED3-4208-A7C9-4AD3942ECC6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -416.334, - 3.008, - 1229.225 - ], - "size": [ - 17.371, - 6.472, - 21.888 - ], - "groundY": -0.228, - "roofY": 6.244, - "wallCount": 42, - "roofCount": 15 - }, - { - "id": "sion_1059", - "uuid": "{568C5187-3770-4BF8-A246-965E90F96DEE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1156.777, - 3.727, - 1428.225 - ], - "size": [ - 54.352, - 12.228, - 43.384 - ], - "groundY": -2.387, - "roofY": 9.841, - "wallCount": 31, - "roofCount": 6 - }, - { - "id": "sion_1060", - "uuid": "{04E5F1E1-E9EF-4CDB-A9D4-F3F8E981903E}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1189.701, - 6.222, - 1326.425 - ], - "size": [ - 3.277, - 16.509, - 3.27 - ], - "groundY": -2.032, - "roofY": 14.477, - "wallCount": 36, - "roofCount": 75 - }, - { - "id": "sion_1061", - "uuid": "{F18F500D-CFA0-4A2E-8F8B-9067EBD7DA57}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1126.641, - 2.822, - 1511.461 - ], - "size": [ - 64.594, - 9.734, - 35.312 - ], - "groundY": -2.045, - "roofY": 7.688, - "wallCount": 22, - "roofCount": 5 - }, - { - "id": "sion_1062", - "uuid": "{194A1725-80A4-444B-9F64-816A01E1D483}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -725.574, - 4.265, - 1277.046 - ], - "size": [ - 71.383, - 10.743, - 48.406 - ], - "groundY": -1.107, - "roofY": 9.636, - "wallCount": 22, - "roofCount": 4 - }, - { - "id": "sion_1063", - "uuid": "{2F85FCB7-17FF-4B39-BDA5-51AE8612B6E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1240.705, - 1.947, - 1352.202 - ], - "size": [ - 31.215, - 8.158, - 45.066 - ], - "groundY": -2.132, - "roofY": 6.026, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_1064", - "uuid": "{C966105C-BFF8-47D6-9E0E-41AB8C15DB14}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -737.986, - 6.299, - 1366.093 - ], - "size": [ - 52.418, - 14.628, - 60.446 - ], - "groundY": -1.015, - "roofY": 13.613, - "wallCount": 11, - "roofCount": 29 - }, - { - "id": "sion_1065", - "uuid": "{AE8B2295-9D0D-4E7F-81A5-0495CD135FD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1087.777, - 1.799, - 1408.063 - ], - "size": [ - 11.0, - 7.738, - 11.21 - ], - "groundY": -2.07, - "roofY": 5.668, - "wallCount": 54, - "roofCount": 16 - }, - { - "id": "sion_1066", - "uuid": "{9BFE11A0-5725-4B34-9F27-FF4529D33682}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -756.207, - 4.643, - 1181.247 - ], - "size": [ - 55.969, - 10.505, - 60.46 - ], - "groundY": -0.61, - "roofY": 9.895, - "wallCount": 19, - "roofCount": 35 - }, - { - "id": "sion_1067", - "uuid": "{80F1B2FF-D833-4269-92D3-D5DFD1F72AA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1420.262, - 3.21, - 1382.076 - ], - "size": [ - 27.961, - 12.252, - 19.893 - ], - "groundY": -2.916, - "roofY": 9.336, - "wallCount": 30, - "roofCount": 31 - }, - { - "id": "sion_1068", - "uuid": "{5F254E96-3EB4-4154-9E83-2E1819963ABD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -982.57, - 3.366, - 1498.105 - ], - "size": [ - 53.164, - 10.07, - 61.078 - ], - "groundY": -1.669, - "roofY": 8.401, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1069", - "uuid": "{D5876BE8-CD36-46AD-99EB-F2177CF7FFB6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -449.041, - 2.373, - 1103.469 - ], - "size": [ - 31.754, - 5.32, - 56.59 - ], - "groundY": -0.287, - "roofY": 5.033, - "wallCount": 15, - "roofCount": 2 - }, - { - "id": "sion_1070", - "uuid": "{6F6E667B-7FDE-4833-9FAB-530B6077B6BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1076.201, - 10.51, - 1246.504 - ], - "size": [ - 17.723, - 25.56, - 10.324 - ], - "groundY": -2.27, - "roofY": 23.29, - "wallCount": 53, - "roofCount": 2 - }, - { - "id": "sion_1071", - "uuid": "{436C5994-83ED-4655-ADD1-8C9924E98306}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -847.822, - 12.155, - 1345.904 - ], - "size": [ - 31.934, - 28.564, - 27.687 - ], - "groundY": -2.127, - "roofY": 26.437, - "wallCount": 55, - "roofCount": 6 - }, - { - "id": "sion_1072", - "uuid": "{89E45D97-6D73-49AA-A3D1-2DF6D44F34E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -629.629, - 2.757, - 1355.785 - ], - "size": [ - 10.836, - 7.184, - 13.238 - ], - "groundY": -0.835, - "roofY": 6.349, - "wallCount": 42, - "roofCount": 13 - }, - { - "id": "sion_1073", - "uuid": "{162C89B1-9AF1-44CC-A685-5A98692F2D29}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -932.15, - 3.878, - 1345.85 - ], - "size": [ - 86.645, - 12.776, - 112.399 - ], - "groundY": -2.51, - "roofY": 10.266, - "wallCount": 26, - "roofCount": 29 - }, - { - "id": "sion_1074", - "uuid": "{E9D2DB53-1B54-4830-942D-E6E45F8EA159}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -581.186, - 4.737, - 1283.826 - ], - "size": [ - 35.348, - 10.565, - 42.596 - ], - "groundY": -0.545, - "roofY": 10.02, - "wallCount": 23, - "roofCount": 15 - }, - { - "id": "sion_1075", - "uuid": "{2F147D7D-C149-4428-9898-A34B0CB28775}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1322.861, - 0.785, - 1461.1 - ], - "size": [ - 12.41, - 6.333, - 12.802 - ], - "groundY": -2.382, - "roofY": 3.951, - "wallCount": 39, - "roofCount": 22 - }, - { - "id": "sion_1076", - "uuid": "{03282822-9FB5-43E2-9FF5-011BBBE3AFA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -430.365, - 3.245, - 1231.929 - ], - "size": [ - 21.051, - 6.854, - 27.336 - ], - "groundY": -0.182, - "roofY": 6.672, - "wallCount": 46, - "roofCount": 112 - }, - { - "id": "sion_1077", - "uuid": "{C383ACFE-31B4-443B-BA26-E28A655C9EED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -777.072, - 2.722, - 1366.375 - ], - "size": [ - 19.644, - 7.653, - 23.689 - ], - "groundY": -1.104, - "roofY": 6.549, - "wallCount": 29, - "roofCount": 13 - }, - { - "id": "sion_1078", - "uuid": "{80BFDAB4-98BC-4BFB-969D-32B0F6C9A4FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1127.264, - 3.727, - 1246.141 - ], - "size": [ - 29.27, - 10.853, - 28.263 - ], - "groundY": -1.699, - "roofY": 9.154, - "wallCount": 43, - "roofCount": 4 - }, - { - "id": "sion_1079", - "uuid": "{0EE9D04C-83A2-4B97-8F77-9C8150814FB1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1521.197, - 2.334, - 1378.071 - ], - "size": [ - 36.027, - 11.108, - 39.86 - ], - "groundY": -3.22, - "roofY": 7.888, - "wallCount": 8, - "roofCount": 6 - }, - { - "id": "sion_1080", - "uuid": "{0D244DBB-C5EB-4497-B2CE-9A72ACF0E5E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -842.957, - 4.864, - 1488.472 - ], - "size": [ - 63.945, - 11.164, - 63.681 - ], - "groundY": -0.718, - "roofY": 10.446, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1081", - "uuid": "{3EB9B693-84F6-4BBF-945F-8210407B5493}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -807.492, - 4.41, - 1182.471 - ], - "size": [ - 33.234, - 10.716, - 42.97 - ], - "groundY": -0.948, - "roofY": 9.768, - "wallCount": 22, - "roofCount": 22 - }, - { - "id": "sion_1082", - "uuid": "{44EE0D72-0456-458C-B8E1-947A29E068D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1165.045, - 2.696, - 1517.944 - ], - "size": [ - 17.441, - 9.03, - 22.096 - ], - "groundY": -1.819, - "roofY": 7.211, - "wallCount": 23, - "roofCount": 22 - }, - { - "id": "sion_1083", - "uuid": "{B90570D6-ED9B-4689-AF00-076805AE73AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -821.58, - 6.025, - 1401.112 - ], - "size": [ - 83.777, - 14.012, - 65.394 - ], - "groundY": -0.981, - "roofY": 13.031, - "wallCount": 36, - "roofCount": 21 - }, - { - "id": "sion_1084", - "uuid": "{EEACE6A9-1F9C-470C-855E-B3F8B89B99BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1406.984, - 1.659, - 1399.42 - ], - "size": [ - 22.406, - 8.938, - 19.328 - ], - "groundY": -2.81, - "roofY": 6.128, - "wallCount": 22, - "roofCount": 27 - }, - { - "id": "sion_1085", - "uuid": "{7CC671EA-9F69-4C04-9912-D25E1BAA23DF}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1187.33, - 6.264, - 1331.074 - ], - "size": [ - 3.316, - 16.425, - 3.314 - ], - "groundY": -1.948, - "roofY": 14.477, - "wallCount": 21, - "roofCount": 75 - }, - { - "id": "sion_1086", - "uuid": "{5EEFEBD9-F008-4F12-81C2-9000AA1E5D19}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -815.107, - 4.74, - 1052.665 - ], - "size": [ - 34.402, - 12.701, - 57.918 - ], - "groundY": -1.61, - "roofY": 11.09, - "wallCount": 35, - "roofCount": 56 - }, - { - "id": "sion_1087", - "uuid": "{B3BD70FC-9DAD-4196-BA3B-925BB15FA203}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1388.523, - -0.18, - 1077.162 - ], - "size": [ - 7.289, - 5.804, - 11.171 - ], - "groundY": -3.082, - "roofY": 2.722, - "wallCount": 30, - "roofCount": 13 - }, - { - "id": "sion_1088", - "uuid": "{1F3C1F4D-69A6-4585-9311-72AD98A71A7B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -652.916, - 5.943, - 1307.917 - ], - "size": [ - 104.754, - 13.488, - 67.822 - ], - "groundY": -0.801, - "roofY": 12.687, - "wallCount": 50, - "roofCount": 18 - }, - { - "id": "sion_1089", - "uuid": "{9ACDE6ED-5928-424D-8207-604EE0448C08}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -840.807, - 3.601, - 1199.816 - ], - "size": [ - 59.949, - 9.518, - 57.538 - ], - "groundY": -1.158, - "roofY": 8.36, - "wallCount": 36, - "roofCount": 25 - }, - { - "id": "sion_1090", - "uuid": "{B7343B10-BF3C-4D63-AAE7-877DC9732254}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1103.033, - 2.85, - 1445.248 - ], - "size": [ - 42.082, - 10.164, - 42.062 - ], - "groundY": -2.232, - "roofY": 7.932, - "wallCount": 21, - "roofCount": 14 - }, - { - "id": "sion_1091", - "uuid": "{626E7C5D-9478-4F60-9537-ECE6B8FE3221}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1431.871, - 0.282, - 1366.488 - ], - "size": [ - 19.648, - 6.213, - 15.224 - ], - "groundY": -2.824, - "roofY": 3.389, - "wallCount": 38, - "roofCount": 19 - }, - { - "id": "sion_1092", - "uuid": "{F81BDA47-BCE4-4BC3-9790-15FFBF412230}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -473.928, - 5.868, - 1118.396 - ], - "size": [ - 51.66, - 11.712, - 78.769 - ], - "groundY": 0.012, - "roofY": 11.724, - "wallCount": 37, - "roofCount": 27 - }, - { - "id": "sion_1093", - "uuid": "{2B746C91-8653-4CCF-876B-8B0CB2820601}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1230.523, - 3.631, - 1141.936 - ], - "size": [ - 34.984, - 12.428, - 63.979 - ], - "groundY": -2.583, - "roofY": 9.845, - "wallCount": 43, - "roofCount": 17 - }, - { - "id": "sion_1094", - "uuid": "{627F18F2-3F14-4AAC-AB16-09202BB67B70}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1189.385, - 3.491, - 1354.677 - ], - "size": [ - 13.144, - 10.869, - 13.476 - ], - "groundY": -1.943, - "roofY": 8.926, - "wallCount": 41, - "roofCount": 11 - }, - { - "id": "sion_1095", - "uuid": "{12F2919C-1567-491A-AB61-64EA4E53C408}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -645.318, - 4.231, - 1355.856 - ], - "size": [ - 19.754, - 10.209, - 24.021 - ], - "groundY": -0.873, - "roofY": 9.336, - "wallCount": 26, - "roofCount": 27 - }, - { - "id": "sion_1096", - "uuid": "{526FE45A-4935-4362-A2A3-9880943430F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -663.258, - 4.216, - 1146.296 - ], - "size": [ - 42.531, - 10.138, - 44.402 - ], - "groundY": -0.853, - "roofY": 9.285, - "wallCount": 29, - "roofCount": 13 - }, - { - "id": "sion_1097", - "uuid": "{D222BADB-44DD-475C-A18F-776F9EDEFA3C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1411.242, - 4.483, - 1212.477 - ], - "size": [ - 208.828, - 15.244, - 80.418 - ], - "groundY": -3.139, - "roofY": 12.105, - "wallCount": 54, - "roofCount": 12 - }, - { - "id": "sion_1098", - "uuid": "{8A0FAA9B-CA3B-4A1F-9DA6-A34776C6CA6B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -797.422, - 2.964, - 1320.205 - ], - "size": [ - 37.773, - 8.564, - 34.533 - ], - "groundY": -1.318, - "roofY": 7.246, - "wallCount": 28, - "roofCount": 19 - }, - { - "id": "sion_1099", - "uuid": "{9BC3FAF0-4CF5-48C5-B8CA-CD03B6581419}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1529.123, - 1.592, - 1164.829 - ], - "size": [ - 74.02, - 9.753, - 44.135 - ], - "groundY": -3.284, - "roofY": 6.469, - "wallCount": 17, - "roofCount": 10 - }, - { - "id": "sion_1100", - "uuid": "{DA1DA88D-12FF-455B-AD25-C863C44A1A7A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -592.08, - 3.624, - 1379.532 - ], - "size": [ - 21.387, - 7.976, - 23.38 - ], - "groundY": -0.364, - "roofY": 7.612, - "wallCount": 16, - "roofCount": 4 - }, - { - "id": "sion_1101", - "uuid": "{EF1078C1-93E5-4D84-B64A-5A447B7C6365}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -855.041, - 3.058, - 1081.376 - ], - "size": [ - 22.184, - 8.809, - 14.279 - ], - "groundY": -1.347, - "roofY": 7.462, - "wallCount": 25, - "roofCount": 4 - }, - { - "id": "sion_1102", - "uuid": "{37F3EBD2-F17E-4351-8D58-03A3F6DB0CC1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -690.199, - 1.728, - 1179.819 - ], - "size": [ - 26.891, - 5.688, - 17.735 - ], - "groundY": -1.116, - "roofY": 4.572, - "wallCount": 16, - "roofCount": 18 - }, - { - "id": "sion_1103", - "uuid": "{5AA805F5-25A9-4582-BA02-7BAC0051EE12}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -516.334, - 6.167, - 1163.546 - ], - "size": [ - 54.832, - 14.172, - 46.016 - ], - "groundY": -0.919, - "roofY": 13.253, - "wallCount": 18, - "roofCount": 6 - }, - { - "id": "sion_1104", - "uuid": "{639C8518-FF22-4E3C-B3BC-A7CF16D91FF4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -637.484, - 2.448, - 1338.434 - ], - "size": [ - 11.727, - 6.587, - 10.901 - ], - "groundY": -0.845, - "roofY": 5.742, - "wallCount": 35, - "roofCount": 20 - }, - { - "id": "sion_1105", - "uuid": "{D4B167C7-2D9F-42B9-AC4E-6CFD357BCB0E}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1185.27, - 6.223, - 1324.273 - ], - "size": [ - 3.445, - 16.506, - 3.441 - ], - "groundY": -2.03, - "roofY": 14.476, - "wallCount": 18, - "roofCount": 75 - }, - { - "id": "sion_1106", - "uuid": "{B268CFF8-D7F9-4668-A841-3A00CE3310AE}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1182.926, - 6.275, - 1328.809 - ], - "size": [ - 3.258, - 16.403, - 3.256 - ], - "groundY": -1.926, - "roofY": 14.477, - "wallCount": 13, - "roofCount": 75 - }, - { - "id": "sion_1107", - "uuid": "{E0AD52E9-56E7-4CF2-9067-7CFE58AFFABD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1497.699, - 2.39, - 1465.934 - ], - "size": [ - 57.617, - 11.634, - 50.97 - ], - "groundY": -3.427, - "roofY": 8.207, - "wallCount": 34, - "roofCount": 44 - }, - { - "id": "sion_1108", - "uuid": "{739225C8-55D9-4F17-B114-CD27697E5CC4}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -1007.115, - 2.221, - 1420.452 - ], - "size": [ - 34.816, - 8.544, - 30.738 - ], - "groundY": -2.051, - "roofY": 6.493, - "wallCount": 18, - "roofCount": 11 - }, - { - "id": "sion_1109", - "uuid": "{4C78D56F-5658-4840-8760-AEA68E4F116D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1168.365, - 2.985, - 1392.98 - ], - "size": [ - 43.91, - 10.404, - 35.716 - ], - "groundY": -2.217, - "roofY": 8.187, - "wallCount": 23, - "roofCount": 8 - }, - { - "id": "sion_1110", - "uuid": "{0F976197-14DC-49D8-A9E7-061509F70B33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -710.766, - 2.598, - 1354.083 - ], - "size": [ - 10.422, - 6.99, - 8.246 - ], - "groundY": -0.897, - "roofY": 6.093, - "wallCount": 19, - "roofCount": 28 - }, - { - "id": "sion_1111", - "uuid": "{A76DBDBB-2B44-4C7B-920A-B607B58D4484}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -599.453, - 6.544, - 1150.353 - ], - "size": [ - 81.227, - 15.05, - 86.097 - ], - "groundY": -0.981, - "roofY": 14.069, - "wallCount": 105, - "roofCount": 61 - }, - { - "id": "sion_1112", - "uuid": "{DC563901-4050-40D1-A8A1-156AAB3D7C0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -687.65, - 4.705, - 1364.153 - ], - "size": [ - 20.23, - 10.896, - 27.104 - ], - "groundY": -0.743, - "roofY": 10.153, - "wallCount": 49, - "roofCount": 23 - }, - { - "id": "sion_1113", - "uuid": "{2187B5F4-F739-4134-AD5D-ABDF143D51A1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -873.562, - 2.768, - 1301.179 - ], - "size": [ - 57.633, - 9.828, - 48.546 - ], - "groundY": -2.146, - "roofY": 7.682, - "wallCount": 15, - "roofCount": 21 - }, - { - "id": "sion_1114", - "uuid": "{D067644A-FBA0-472D-9C8F-AE13ED0C6B6C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1040.316, - 1.024, - 1405.959 - ], - "size": [ - 10.828, - 6.318, - 16.272 - ], - "groundY": -2.135, - "roofY": 4.183, - "wallCount": 32, - "roofCount": 3 - }, - { - "id": "sion_1115", - "uuid": "{A36DB96C-C458-4908-8CE3-D1530405CFCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -900.039, - 3.711, - 1480.616 - ], - "size": [ - 54.453, - 9.958, - 98.838 - ], - "groundY": -1.268, - "roofY": 8.69, - "wallCount": 52, - "roofCount": 58 - }, - { - "id": "sion_1116", - "uuid": "{F151BA0E-55C6-44B2-BD8D-73459E963037}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -890.238, - 3.255, - 1061.937 - ], - "size": [ - 28.953, - 9.85, - 51.144 - ], - "groundY": -1.67, - "roofY": 8.18, - "wallCount": 21, - "roofCount": 30 - }, - { - "id": "sion_1117", - "uuid": "{328C1597-3BD9-4AED-A80B-BB83C9F0ED8B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 5 - ], - "center": [ - -1202.52, - 4.887, - 1323.107 - ], - "size": [ - 36.305, - 13.605, - 21.578 - ], - "groundY": -1.916, - "roofY": 11.689, - "wallCount": 38, - "roofCount": 15 - }, - { - "id": "sion_1118", - "uuid": "{7BBC79F6-7653-48CB-ABC7-B7981FE15AF5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 1, - 5 - ], - "center": [ - -764.66, - 3.835, - 1053.256 - ], - "size": [ - 15.617, - 10.569, - 18.632 - ], - "groundY": -1.449, - "roofY": 9.12, - "wallCount": 26, - "roofCount": 32 - }, - { - "id": "sion_1119", - "uuid": "{9AB21802-FBA9-4A73-A01A-2175FF1F685B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -704.139, - 1.93, - 1155.47 - ], - "size": [ - 32.379, - 6.056, - 36.096 - ], - "groundY": -1.098, - "roofY": 4.958, - "wallCount": 24, - "roofCount": 6 - }, - { - "id": "sion_1120", - "uuid": "{B57C2323-517E-46FA-A868-FDE378DA5518}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -362.309, - 157.802, - -1171.228 - ], - "size": [ - 6.141, - 5.589, - 6.128 - ], - "groundY": 155.008, - "roofY": 160.597, - "wallCount": 20, - "roofCount": 16 - }, - { - "id": "sion_1121", - "uuid": "{4017C7ED-6407-44BC-A0E3-61E1E05F427F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 46.043, - 6.515, - 744.167 - ], - "size": [ - 35.312, - 11.062, - 29.197 - ], - "groundY": 0.984, - "roofY": 12.046, - "wallCount": 41, - "roofCount": 28 - }, - { - "id": "sion_1122", - "uuid": "{66A97F4D-A03B-4AFF-8E9F-BC8133D9CECF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 609.52, - 237.422, - -1366.427 - ], - "size": [ - 10.406, - 9.898, - 10.559 - ], - "groundY": 232.473, - "roofY": 242.371, - "wallCount": 58, - "roofCount": 30 - }, - { - "id": "sion_1123", - "uuid": "{509EAB18-F0A3-48F5-96D9-6DFEED9D55F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -75.504, - 50.872, - -384.99 - ], - "size": [ - 15.18, - 13.245, - 29.4 - ], - "groundY": 44.25, - "roofY": 57.494, - "wallCount": 36, - "roofCount": 8 - }, - { - "id": "sion_1124", - "uuid": "{A5F1732E-7D67-4277-A04E-6538708EAEC9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -174.803, - 31.932, - 92.83 - ], - "size": [ - 38.894, - 23.541, - 28.658 - ], - "groundY": 20.162, - "roofY": 43.703, - "wallCount": 65, - "roofCount": 39 - }, - { - "id": "sion_1125", - "uuid": "{D3EB4B30-AA51-4F3A-AA4C-7F547893FF4F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 90.078, - 63.201, - -793.721 - ], - "size": [ - 16.703, - 10.238, - 18.532 - ], - "groundY": 58.082, - "roofY": 68.32, - "wallCount": 41, - "roofCount": 17 - }, - { - "id": "sion_1126", - "uuid": "{D7F8BDC2-3D24-4B7A-8A1B-19BE56E857F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 622.611, - 234.618, - -1364.164 - ], - "size": [ - 14.699, - 4.457, - 8.606 - ], - "groundY": 232.389, - "roofY": 236.846, - "wallCount": 16, - "roofCount": 12 - }, - { - "id": "sion_1127", - "uuid": "{E03A0B2A-0C6D-4182-9AF0-0E60D95F5857}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 724.342, - 15.628, - -29.735 - ], - "size": [ - 31.379, - 25.884, - 21.689 - ], - "groundY": 2.686, - "roofY": 28.57, - "wallCount": 92, - "roofCount": 17 - }, - { - "id": "sion_1128", - "uuid": "{719663BC-91C9-4855-81B3-37BE94540CA5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 108.461, - 67.471, - -841.515 - ], - "size": [ - 29.734, - 17.863, - 23.748 - ], - "groundY": 58.54, - "roofY": 76.402, - "wallCount": 28, - "roofCount": 14 - }, - { - "id": "sion_1129", - "uuid": "{C7CD5572-FED9-4665-855C-1495162EEAA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 343.197, - 6.212, - 843.021 - ], - "size": [ - 26.418, - 7.958, - 27.011 - ], - "groundY": 2.233, - "roofY": 10.191, - "wallCount": 29, - "roofCount": 19 - }, - { - "id": "sion_1130", - "uuid": "{05B0DAE7-95B5-414A-985B-1A8E4FB6DDA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 812.9, - 5.165, - -218.168 - ], - "size": [ - 23.441, - 5.24, - 33.223 - ], - "groundY": 2.545, - "roofY": 7.785, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1131", - "uuid": "{B4B780E8-D568-40BB-AF0E-8C855537EBB9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 796.824, - 8.424, - 534.644 - ], - "size": [ - 45.141, - 8.38, - 34.707 - ], - "groundY": 4.234, - "roofY": 12.614, - "wallCount": 16, - "roofCount": 4 - }, - { - "id": "sion_1132", - "uuid": "{93E7110A-5AC0-4DEB-AB90-FD381E7B2576}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 334.689, - 11.547, - 9.999 - ], - "size": [ - 23.09, - 7.066, - 11.424 - ], - "groundY": 8.014, - "roofY": 15.08, - "wallCount": 16, - "roofCount": 6 - }, - { - "id": "sion_1133", - "uuid": "{AA53BAD7-F783-4D48-8A5B-D24A0426A36B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 148.816, - 172.265, - -1228.516 - ], - "size": [ - 30.672, - 9.75, - 14.522 - ], - "groundY": 167.39, - "roofY": 177.14, - "wallCount": 47, - "roofCount": 29 - }, - { - "id": "sion_1134", - "uuid": "{493EB25B-A686-4BB8-8022-D22F24D572C3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -197.395, - 62.978, - -728.775 - ], - "size": [ - 12.383, - 13.95, - 15.63 - ], - "groundY": 56.003, - "roofY": 69.953, - "wallCount": 40, - "roofCount": 54 - }, - { - "id": "sion_1135", - "uuid": "{64CDB2F3-AD64-4239-8D0D-2FF316A2A805}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -240.545, - 46.407, - -317.245 - ], - "size": [ - 47.481, - 21.275, - 25.064 - ], - "groundY": 35.77, - "roofY": 57.045, - "wallCount": 87, - "roofCount": 59 - }, - { - "id": "sion_1136", - "uuid": "{B3C434BD-80A8-4C89-81AC-3FE8AC991C5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 380.998, - 9.477, - 479.888 - ], - "size": [ - 19.668, - 13.401, - 18.815 - ], - "groundY": 2.776, - "roofY": 16.177, - "wallCount": 12, - "roofCount": 6 - }, - { - "id": "sion_1137", - "uuid": "{B57ACE0F-FD27-4516-B53A-EF1E0EBB8F5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 734.037, - 8.079, - -74.358 - ], - "size": [ - 30.363, - 7.875, - 23.854 - ], - "groundY": 4.142, - "roofY": 12.017, - "wallCount": 67, - "roofCount": 26 - }, - { - "id": "sion_1138", - "uuid": "{B3C0478B-61BC-4252-B6A1-8FF31DBD99B4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -271.959, - 56.76, - -537.693 - ], - "size": [ - 50.051, - 20.796, - 16.494 - ], - "groundY": 46.362, - "roofY": 67.158, - "wallCount": 58, - "roofCount": 89 - }, - { - "id": "sion_1139", - "uuid": "{37F7BDB8-39B1-45E1-A36C-18B6F86E609C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -278.85, - 74.895, - -870.87 - ], - "size": [ - 23.473, - 14.421, - 19.559 - ], - "groundY": 67.685, - "roofY": 82.106, - "wallCount": 13, - "roofCount": 33 - }, - { - "id": "sion_1140", - "uuid": "{23C10AF2-21F8-4B7B-A671-2B406A2C07FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 189.844, - 60.457, - -797.783 - ], - "size": [ - 43.953, - 14.545, - 25.034 - ], - "groundY": 53.185, - "roofY": 67.73, - "wallCount": 16, - "roofCount": 27 - }, - { - "id": "sion_1141", - "uuid": "{E1E25407-BBB3-403C-B973-E94033ED34A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 474.48, - 79.899, - -336.005 - ], - "size": [ - 7.016, - 7.832, - 6.848 - ], - "groundY": 75.983, - "roofY": 83.815, - "wallCount": 61, - "roofCount": 12 - }, - { - "id": "sion_1142", - "uuid": "{DBE91FC9-3725-45A0-8474-2AAE7E5E5A1C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 108.83, - 71.851, - -917.619 - ], - "size": [ - 28.379, - 18.963, - 19.731 - ], - "groundY": 62.37, - "roofY": 81.333, - "wallCount": 10, - "roofCount": 14 - }, - { - "id": "sion_1143", - "uuid": "{75E6242E-8C7A-453F-A798-421F5DDFE5E6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 177.857, - 9.182, - 693.691 - ], - "size": [ - 23.918, - 13.999, - 22.968 - ], - "groundY": 2.183, - "roofY": 16.182, - "wallCount": 52, - "roofCount": 21 - }, - { - "id": "sion_1144", - "uuid": "{7347C5B4-91F7-4058-9DC9-59543B76F906}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 366.629, - 17.679, - 101.405 - ], - "size": [ - 61.211, - 24.236, - 44.552 - ], - "groundY": 5.561, - "roofY": 29.797, - "wallCount": 41, - "roofCount": 18 - }, - { - "id": "sion_1145", - "uuid": "{495D92F4-804E-4974-B6B9-AFCC1C96BD20}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 443.242, - 219.84, - -1344.402 - ], - "size": [ - 16.602, - 9.365, - 15.524 - ], - "groundY": 215.157, - "roofY": 224.522, - "wallCount": 55, - "roofCount": 26 - }, - { - "id": "sion_1146", - "uuid": "{B7E2E067-596D-4A63-8B1F-F5AB734F6DDD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 98.619, - 74.303, - -950.713 - ], - "size": [ - 28.301, - 21.351, - 19.305 - ], - "groundY": 63.628, - "roofY": 84.979, - "wallCount": 12, - "roofCount": 16 - }, - { - "id": "sion_1147", - "uuid": "{0F075D89-B5FF-4CB8-9AC2-A1C8C732B293}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 245.867, - 71.17, - -899.196 - ], - "size": [ - 16.406, - 10.052, - 15.353 - ], - "groundY": 66.144, - "roofY": 76.196, - "wallCount": 31, - "roofCount": 14 - }, - { - "id": "sion_1148", - "uuid": "{ECEC43E5-C4AC-457B-A837-15D8010102F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 817.078, - 16.001, - 76.517 - ], - "size": [ - 37.797, - 25.006, - 33.09 - ], - "groundY": 3.498, - "roofY": 28.504, - "wallCount": 104, - "roofCount": 22 - }, - { - "id": "sion_1149", - "uuid": "{A5D7489C-F09A-49E0-A220-2810F1118E13}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 512.934, - 219.256, - -1508.925 - ], - "size": [ - 14.5, - 10.362, - 14.34 - ], - "groundY": 214.075, - "roofY": 224.437, - "wallCount": 20, - "roofCount": 11 - }, - { - "id": "sion_1150", - "uuid": "{382D2A79-AB5A-4B55-8662-432D919089C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 0.623, - 58.725, - -293.713 - ], - "size": [ - 5.848, - 5.466, - 6.15 - ], - "groundY": 55.992, - "roofY": 61.458, - "wallCount": 18, - "roofCount": 8 - }, - { - "id": "sion_1151", - "uuid": "{A06B4601-6B99-4097-8FDD-35D780F9833F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -230.07, - 21.103, - 304.533 - ], - "size": [ - 68.539, - 24.826, - 39.364 - ], - "groundY": 8.69, - "roofY": 33.516, - "wallCount": 94, - "roofCount": 77 - }, - { - "id": "sion_1152", - "uuid": "{1B0122D7-397A-4828-8A74-7151F678378E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 227.629, - 14.43, - 258.172 - ], - "size": [ - 20.805, - 13.58, - 19.958 - ], - "groundY": 7.64, - "roofY": 21.22, - "wallCount": 10, - "roofCount": 7 - }, - { - "id": "sion_1153", - "uuid": "{4773E7AD-EA6F-469D-8AF3-67F9973CD304}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 646.568, - 12.997, - 94.426 - ], - "size": [ - 16.098, - 19.784, - 59.75 - ], - "groundY": 3.105, - "roofY": 22.889, - "wallCount": 45, - "roofCount": 34 - }, - { - "id": "sion_1154", - "uuid": "{2BCA7AD7-D4D2-4B0F-9B47-830282ECCB5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1347.125, - 11.399, - 426.846 - ], - "size": [ - 26.344, - 8.458, - 90.906 - ], - "groundY": 7.17, - "roofY": 15.628, - "wallCount": 42, - "roofCount": 13 - }, - { - "id": "sion_1155", - "uuid": "{6623F4F1-2811-4FA1-B510-8D1C1A95B1C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 13.918, - 78.621, - -255.211 - ], - "size": [ - 15.227, - 12.857, - 14.775 - ], - "groundY": 72.193, - "roofY": 85.049, - "wallCount": 30, - "roofCount": 8 - }, - { - "id": "sion_1156", - "uuid": "{8268FF9F-368A-4EFE-875D-5ED298146D15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 184.77, - 10.227, - 396.38 - ], - "size": [ - 25.656, - 11.322, - 21.988 - ], - "groundY": 4.566, - "roofY": 15.888, - "wallCount": 19, - "roofCount": 11 - }, - { - "id": "sion_1157", - "uuid": "{FA3BCCF2-6311-4FF0-A42A-E49B1D8675EC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -391.725, - 10.51, - 481.711 - ], - "size": [ - 53.09, - 19.33, - 81.6 - ], - "groundY": 0.845, - "roofY": 20.175, - "wallCount": 59, - "roofCount": 29 - }, - { - "id": "sion_1158", - "uuid": "{03A23E6E-E4AB-4E0B-B802-B2A76202EF05}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 770.307, - 10.732, - -235.786 - ], - "size": [ - 36.481, - 15.392, - 29.346 - ], - "groundY": 3.036, - "roofY": 18.428, - "wallCount": 58, - "roofCount": 2 - }, - { - "id": "sion_1159", - "uuid": "{C92FAF45-C137-4716-AC97-7A47C6D13B27}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 690.627, - 11.478, - 193.239 - ], - "size": [ - 22.113, - 19.353, - 21.694 - ], - "groundY": 1.802, - "roofY": 21.155, - "wallCount": 53, - "roofCount": 7 - }, - { - "id": "sion_1160", - "uuid": "{10C8ADD0-9AEB-4288-8C58-6D853F27855A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 440.902, - 218.102, - -1370.609 - ], - "size": [ - 17.742, - 5.674, - 16.065 - ], - "groundY": 215.265, - "roofY": 220.939, - "wallCount": 27, - "roofCount": 2 - }, - { - "id": "sion_1161", - "uuid": "{3C8DF548-2761-4370-8207-9F6D76A70DFD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 87.121, - 25.081, - -69.442 - ], - "size": [ - 31.766, - 13.8, - 35.774 - ], - "groundY": 18.181, - "roofY": 31.98, - "wallCount": 20, - "roofCount": 4 - }, - { - "id": "sion_1162", - "uuid": "{F0C16585-0B26-471B-B0DD-CB3863B392BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 300.785, - 6.937, - 885.322 - ], - "size": [ - 30.547, - 9.619, - 29.844 - ], - "groundY": 2.127, - "roofY": 11.746, - "wallCount": 17, - "roofCount": 8 - }, - { - "id": "sion_1163", - "uuid": "{85F80483-3AC9-4EA8-B645-2A669E32C930}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 310.055, - 208.488, - -1390.637 - ], - "size": [ - 18.797, - 10.749, - 21.674 - ], - "groundY": 203.114, - "roofY": 213.863, - "wallCount": 40, - "roofCount": 21 - }, - { - "id": "sion_1164", - "uuid": "{C91B443F-19FD-4A00-9A2D-A439B566226D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 12.877, - 7.848, - 760.584 - ], - "size": [ - 28.402, - 14.882, - 26.275 - ], - "groundY": 0.407, - "roofY": 15.289, - "wallCount": 20, - "roofCount": 2 - }, - { - "id": "sion_1165", - "uuid": "{3C48D3F7-A06A-4154-A1F4-FF6934E880BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -373.816, - 54.374, - -477.085 - ], - "size": [ - 29.336, - 21.118, - 52.649 - ], - "groundY": 43.815, - "roofY": 64.933, - "wallCount": 148, - "roofCount": 82 - }, - { - "id": "sion_1166", - "uuid": "{16FE43FC-A6DC-4AAF-9FA8-1BE131EF2F22}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -388.479, - 47.138, - -378.364 - ], - "size": [ - 20.637, - 14.448, - 17.41 - ], - "groundY": 39.914, - "roofY": 54.362, - "wallCount": 26, - "roofCount": 17 - }, - { - "id": "sion_1167", - "uuid": "{6E285A08-D8B4-48DD-8150-88EB11BD5F01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -65.754, - 78.723, - -925.478 - ], - "size": [ - 21.211, - 18.567, - 39.36 - ], - "groundY": 69.44, - "roofY": 88.007, - "wallCount": 39, - "roofCount": 29 - }, - { - "id": "sion_1168", - "uuid": "{5504E7BD-FF94-47C1-8451-C8508BC34A74}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 219.256, - 57.48, - -710.245 - ], - "size": [ - 16.027, - 9.672, - 12.714 - ], - "groundY": 52.644, - "roofY": 62.316, - "wallCount": 38, - "roofCount": 16 - }, - { - "id": "sion_1169", - "uuid": "{AD1AE676-D941-4A2C-AE90-0E1EE986881C}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 3 - ], - "center": [ - -85.625, - 25.103, - 182.207 - ], - "size": [ - 38.078, - 22.8, - 49.629 - ], - "groundY": 13.703, - "roofY": 36.503, - "wallCount": 142, - "roofCount": 58 - }, - { - "id": "sion_1170", - "uuid": "{4B00ABA3-3F49-4A50-9276-CE0E9C01210F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1266.23, - 22.171, - -1278.382 - ], - "size": [ - 6.844, - 6.418, - 6.354 - ], - "groundY": 18.962, - "roofY": 25.38, - "wallCount": 34, - "roofCount": 7 - }, - { - "id": "sion_1171", - "uuid": "{A85AFA4D-95AA-4E5E-945C-52FC6891CA19}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 873.572, - 7.942, - 725.246 - ], - "size": [ - 59.637, - 9.9, - 51.0 - ], - "groundY": 2.992, - "roofY": 12.892, - "wallCount": 65, - "roofCount": 40 - }, - { - "id": "sion_1172", - "uuid": "{A7895A58-7D0A-4E81-AE1F-E914475EF027}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 322.316, - 67.531, - -637.352 - ], - "size": [ - 19.094, - 12.12, - 19.317 - ], - "groundY": 61.471, - "roofY": 73.591, - "wallCount": 44, - "roofCount": 25 - }, - { - "id": "sion_1173", - "uuid": "{2237F3CA-2EAA-40AC-8D0E-4767F32330B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -50.209, - 54.343, - -430.976 - ], - "size": [ - 19.637, - 20.902, - 33.468 - ], - "groundY": 43.892, - "roofY": 64.794, - "wallCount": 10, - "roofCount": 24 - }, - { - "id": "sion_1174", - "uuid": "{8BC5F6D3-EE97-435E-B560-201F64F2A301}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 194.699, - 5.497, - 685.506 - ], - "size": [ - 13.414, - 6.641, - 13.775 - ], - "groundY": 2.177, - "roofY": 8.818, - "wallCount": 10, - "roofCount": 13 - }, - { - "id": "sion_1175", - "uuid": "{B33658B3-C7E6-4066-9C84-553D75BEA001}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1500.324, - 9.876, - -615.63 - ], - "size": [ - 5.031, - 5.89, - 5.042 - ], - "groundY": 6.931, - "roofY": 12.821, - "wallCount": 5, - "roofCount": 4 - }, - { - "id": "sion_1176", - "uuid": "{D787DE24-0541-4124-912B-C2C9CBD7C1C1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 179.551, - 22.961, - 74.638 - ], - "size": [ - 17.328, - 15.69, - 17.654 - ], - "groundY": 15.116, - "roofY": 30.806, - "wallCount": 8, - "roofCount": 26 - }, - { - "id": "sion_1177", - "uuid": "{B784C122-D6C5-41B1-8DC0-4E143FFBF2E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 260.227, - 19.049, - 171.341 - ], - "size": [ - 23.305, - 14.271, - 18.618 - ], - "groundY": 11.913, - "roofY": 26.184, - "wallCount": 44, - "roofCount": 21 - }, - { - "id": "sion_1178", - "uuid": "{5A26EC9D-7D3F-4EB3-8062-A090BD07D5F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 338.174, - 56.743, - -794.789 - ], - "size": [ - 33.418, - 15.088, - 24.1 - ], - "groundY": 49.199, - "roofY": 64.287, - "wallCount": 22, - "roofCount": 23 - }, - { - "id": "sion_1179", - "uuid": "{96FDB35A-8CD8-49BC-A34E-CF1449EB06F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1084.018, - 10.965, - 399.717 - ], - "size": [ - 13.668, - 10.807, - 15.204 - ], - "groundY": 5.562, - "roofY": 16.369, - "wallCount": 30, - "roofCount": 33 - }, - { - "id": "sion_1180", - "uuid": "{048C48F3-AB13-488A-8782-B207BF91DC99}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 215.719, - 187.285, - -1387.895 - ], - "size": [ - 27.203, - 11.481, - 16.743 - ], - "groundY": 181.545, - "roofY": 193.026, - "wallCount": 57, - "roofCount": 15 - }, - { - "id": "sion_1181", - "uuid": "{811C00B8-913B-4FE9-9B7C-FE5CDA514020}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 221.533, - 25.999, - 301.903 - ], - "size": [ - 29.051, - 40.621, - 31.096 - ], - "groundY": 5.688, - "roofY": 46.309, - "wallCount": 116, - "roofCount": 13 - }, - { - "id": "sion_1182", - "uuid": "{05EC83A2-8EC1-4CC0-BCA0-A296E4B78975}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 815.891, - 7.918, - 948.317 - ], - "size": [ - 13.469, - 6.149, - 13.36 - ], - "groundY": 4.843, - "roofY": 10.992, - "wallCount": 33, - "roofCount": 16 - }, - { - "id": "sion_1183", - "uuid": "{2A4F438C-C095-4141-A35D-4E9E1E556695}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 284.465, - 206.348, - -1323.588 - ], - "size": [ - 16.688, - 12.828, - 16.98 - ], - "groundY": 199.934, - "roofY": 212.762, - "wallCount": 37, - "roofCount": 9 - }, - { - "id": "sion_1184", - "uuid": "{BB849F0F-4792-49E6-B781-E05382C13EB9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1039.897, - 11.418, - 544.676 - ], - "size": [ - 13.973, - 11.87, - 40.75 - ], - "groundY": 5.483, - "roofY": 17.353, - "wallCount": 18, - "roofCount": 24 - }, - { - "id": "sion_1185", - "uuid": "{4C00A2F1-0C4A-48EF-80AC-D094B63552D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -11.219, - 71.518, - -863.02 - ], - "size": [ - 26.594, - 13.177, - 22.089 - ], - "groundY": 64.93, - "roofY": 78.107, - "wallCount": 44, - "roofCount": 24 - }, - { - "id": "sion_1186", - "uuid": "{4A5341A6-1B06-460A-9C83-A46C9FD43D4E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -291.262, - 20.176, - 312.003 - ], - "size": [ - 18.484, - 20.087, - 23.672 - ], - "groundY": 10.133, - "roofY": 30.22, - "wallCount": 44, - "roofCount": 39 - }, - { - "id": "sion_1187", - "uuid": "{E45546AD-C1A7-4CBD-9038-6C0A8E248767}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 530.287, - 224.514, - -1478.347 - ], - "size": [ - 34.785, - 17.592, - 32.742 - ], - "groundY": 215.718, - "roofY": 233.31, - "wallCount": 52, - "roofCount": 57 - }, - { - "id": "sion_1188", - "uuid": "{66F74EC4-C813-4A01-B458-B00ACD5F9273}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1103.771, - 13.758, - 311.445 - ], - "size": [ - 30.715, - 18.682, - 32.866 - ], - "groundY": 4.417, - "roofY": 23.1, - "wallCount": 106, - "roofCount": 31 - }, - { - "id": "sion_1189", - "uuid": "{FAE6BB76-C347-4B5C-A970-6F67D74280B4}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 616.148, - 14.688, - 801.64 - ], - "size": [ - 19.398, - 24.855, - 19.398 - ], - "groundY": 2.261, - "roofY": 27.116, - "wallCount": 383, - "roofCount": 104 - }, - { - "id": "sion_1190", - "uuid": "{D0908697-3164-499D-A288-4E384900EA64}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -106.127, - 65.744, - -735.447 - ], - "size": [ - 21.855, - 13.946, - 18.828 - ], - "groundY": 58.771, - "roofY": 72.717, - "wallCount": 23, - "roofCount": 12 - }, - { - "id": "sion_1191", - "uuid": "{61A7DD14-C9A7-49B8-BA64-60CBE406A0BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 931.658, - 15.75, - -33.414 - ], - "size": [ - 48.121, - 25.69, - 40.12 - ], - "groundY": 2.905, - "roofY": 28.595, - "wallCount": 69, - "roofCount": 10 - }, - { - "id": "sion_1192", - "uuid": "{1E21BBCB-B98E-4D39-AFD8-86B6868D3F35}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 217.189, - 60.435, - -646.131 - ], - "size": [ - 12.988, - 11.667, - 7.81 - ], - "groundY": 54.601, - "roofY": 66.268, - "wallCount": 32, - "roofCount": 25 - }, - { - "id": "sion_1193", - "uuid": "{21A6F0D1-39C4-4018-BA25-E131219BF3C9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -321.74, - 55.184, - -488.074 - ], - "size": [ - 30.707, - 20.434, - 13.758 - ], - "groundY": 44.967, - "roofY": 65.401, - "wallCount": 43, - "roofCount": 32 - }, - { - "id": "sion_1194", - "uuid": "{54796B90-3964-4C7F-BB33-4C08B50B1FD6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 460.592, - 10.955, - 767.072 - ], - "size": [ - 50.254, - 14.175, - 56.394 - ], - "groundY": 3.868, - "roofY": 18.043, - "wallCount": 54, - "roofCount": 48 - }, - { - "id": "sion_1195", - "uuid": "{F908A9B1-8976-4D21-8554-AAAB81BD6061}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 155.441, - 9.331, - 335.989 - ], - "size": [ - 27.234, - 7.448, - 30.065 - ], - "groundY": 5.607, - "roofY": 13.055, - "wallCount": 20, - "roofCount": 5 - }, - { - "id": "sion_1196", - "uuid": "{336E2C42-A284-49E5-8ED0-F51BFA9D5EFE}", - "name": "", - "class": "Unterirdisches Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 672.652, - 17.578, - -72.393 - ], - "size": [ - 65.586, - 30.08, - 67.573 - ], - "groundY": 2.538, - "roofY": 32.618, - "wallCount": 147, - "roofCount": 61 - }, - { - "id": "sion_1197", - "uuid": "{94EA80C7-0F70-4F15-B580-EE65FD31A921}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 313.492, - 90.421, - -1045.633 - ], - "size": [ - 36.898, - 13.614, - 21.082 - ], - "groundY": 83.614, - "roofY": 97.228, - "wallCount": 46, - "roofCount": 22 - }, - { - "id": "sion_1198", - "uuid": "{52D77A42-768C-41AB-BCCE-BF09742B9634}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -195.984, - 75.48, - -858.965 - ], - "size": [ - 20.875, - 22.088, - 22.804 - ], - "groundY": 64.436, - "roofY": 86.524, - "wallCount": 33, - "roofCount": 16 - }, - { - "id": "sion_1199", - "uuid": "{F693BAB7-CFE8-4416-A225-9634FB8E0021}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1073.877, - 10.45, - 640.331 - ], - "size": [ - 72.012, - 10.095, - 19.699 - ], - "groundY": 5.403, - "roofY": 15.498, - "wallCount": 14, - "roofCount": 25 - }, - { - "id": "sion_1200", - "uuid": "{97D1F438-AEF5-402F-845F-52C8F39D6B95}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -282.65, - 12.42, - 489.472 - ], - "size": [ - 111.691, - 15.097, - 45.09 - ], - "groundY": 4.872, - "roofY": 19.969, - "wallCount": 34, - "roofCount": 39 - }, - { - "id": "sion_1201", - "uuid": "{4EDF6B4D-71B3-42B1-8528-7D43B59DF082}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 170.637, - 24.159, - -101.942 - ], - "size": [ - 45.195, - 22.094, - 15.622 - ], - "groundY": 13.112, - "roofY": 35.206, - "wallCount": 20, - "roofCount": 29 - }, - { - "id": "sion_1202", - "uuid": "{003886CF-A6E6-4FF8-8873-0A2FCDF1BEBD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -78.287, - 34.167, - -27.22 - ], - "size": [ - 54.73, - 22.328, - 55.328 - ], - "groundY": 23.003, - "roofY": 45.331, - "wallCount": 157, - "roofCount": 90 - }, - { - "id": "sion_1203", - "uuid": "{51ED90EA-C51E-41A2-AFBE-D535E79E5ED3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 613.877, - 93.875, - -1093.276 - ], - "size": [ - 27.855, - 10.402, - 12.735 - ], - "groundY": 88.674, - "roofY": 99.076, - "wallCount": 27, - "roofCount": 17 - }, - { - "id": "sion_1204", - "uuid": "{22FBEBB3-095A-4C97-8A09-B2382097FD84}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 423.193, - 72.856, - -994.536 - ], - "size": [ - 23.113, - 8.144, - 15.742 - ], - "groundY": 68.784, - "roofY": 76.928, - "wallCount": 39, - "roofCount": 21 - }, - { - "id": "sion_1205", - "uuid": "{DC99F0D4-7F88-4F6E-8CBF-0ACA2153480B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -351.479, - 69.204, - -837.322 - ], - "size": [ - 66.465, - 8.405, - 19.806 - ], - "groundY": 65.001, - "roofY": 73.406, - "wallCount": 32, - "roofCount": 11 - }, - { - "id": "sion_1206", - "uuid": "{AC223CE7-2BEA-4C64-816E-143C32852D2E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 32.832, - 70.34, - -835.627 - ], - "size": [ - 27.648, - 19.68, - 38.746 - ], - "groundY": 60.5, - "roofY": 80.18, - "wallCount": 32, - "roofCount": 15 - }, - { - "id": "sion_1207", - "uuid": "{F7B72078-35A5-4BC4-AAB7-6BCC8271E439}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1213.668, - 9.228, - 201.393 - ], - "size": [ - 24.203, - 5.391, - 6.042 - ], - "groundY": 6.533, - "roofY": 11.924, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_1208", - "uuid": "{772BBAA1-BBA1-4DC2-B363-3AE1398275B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 129.195, - 174.611, - -1262.843 - ], - "size": [ - 12.812, - 10.908, - 15.254 - ], - "groundY": 169.157, - "roofY": 180.065, - "wallCount": 52, - "roofCount": 30 - }, - { - "id": "sion_1209", - "uuid": "{768BFEBA-9644-4377-A9F0-D5CEFD8E3FFF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1472.365, - 14.789, - 431.968 - ], - "size": [ - 50.856, - 13.424, - 57.296 - ], - "groundY": 8.077, - "roofY": 21.501, - "wallCount": 54, - "roofCount": 72 - }, - { - "id": "sion_1210", - "uuid": "{7C57EDCB-1CBE-4577-85EC-6D9F7A761F1E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 374.844, - 214.53, - -1410.275 - ], - "size": [ - 13.203, - 10.708, - 13.813 - ], - "groundY": 209.176, - "roofY": 219.884, - "wallCount": 48, - "roofCount": 12 - }, - { - "id": "sion_1211", - "uuid": "{D1A584BF-22CD-4C1B-AD74-439BACE150CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1201.717, - 10.623, - -5.261 - ], - "size": [ - 15.863, - 5.642, - 21.144 - ], - "groundY": 7.802, - "roofY": 13.444, - "wallCount": 12, - "roofCount": 14 - }, - { - "id": "sion_1212", - "uuid": "{E26F2EA9-B623-44AA-8A3B-5E6A068FA9D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 978.445, - 12.842, - 323.212 - ], - "size": [ - 65.781, - 19.342, - 24.531 - ], - "groundY": 3.171, - "roofY": 22.513, - "wallCount": 26, - "roofCount": 8 - }, - { - "id": "sion_1213", - "uuid": "{9C2CBCEA-3EA0-402F-92A1-3E10B2291FC0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 203.572, - 57.153, - -758.718 - ], - "size": [ - 15.879, - 9.604, - 13.976 - ], - "groundY": 52.351, - "roofY": 61.955, - "wallCount": 34, - "roofCount": 19 - }, - { - "id": "sion_1214", - "uuid": "{B4895B16-917C-4D72-896B-80C300289011}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 474.783, - 63.107, - -936.993 - ], - "size": [ - 20.082, - 9.645, - 18.59 - ], - "groundY": 58.285, - "roofY": 67.93, - "wallCount": 30, - "roofCount": 18 - }, - { - "id": "sion_1215", - "uuid": "{4F100319-0754-413C-9A3F-2F72F1007A97}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -199.678, - 34.091, - 29.537 - ], - "size": [ - 48.894, - 22.427, - 33.447 - ], - "groundY": 22.877, - "roofY": 45.304, - "wallCount": 115, - "roofCount": 80 - }, - { - "id": "sion_1216", - "uuid": "{D199D9E1-6261-4264-86B5-496E2A23B5FD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 801.691, - 15.53, - -32.955 - ], - "size": [ - 27.742, - 25.676, - 25.219 - ], - "groundY": 2.692, - "roofY": 28.368, - "wallCount": 87, - "roofCount": 15 - }, - { - "id": "sion_1217", - "uuid": "{7B5C74B3-B608-49B1-ADE5-4C5DE104AB83}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -54.814, - 20.833, - 146.299 - ], - "size": [ - 44.637, - 10.507, - 33.352 - ], - "groundY": 15.58, - "roofY": 26.087, - "wallCount": 36, - "roofCount": 18 - }, - { - "id": "sion_1218", - "uuid": "{E6873DC6-516F-4D0C-ABAF-D7D1A277C82B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 611.135, - 227.971, - -1520.954 - ], - "size": [ - 43.184, - 21.514, - 31.71 - ], - "groundY": 217.214, - "roofY": 238.728, - "wallCount": 106, - "roofCount": 73 - }, - { - "id": "sion_1219", - "uuid": "{EE4CE93C-E7D3-4F1D-96B6-3A0C56282B06}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -71.02, - 98.319, - -1243.2 - ], - "size": [ - 30.688, - 11.448, - 44.264 - ], - "groundY": 92.595, - "roofY": 104.043, - "wallCount": 26, - "roofCount": 4 - }, - { - "id": "sion_1220", - "uuid": "{90ABD45C-9205-4CE5-B88C-423EB2B1A1D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1322.408, - 16.71, - 945.95 - ], - "size": [ - 10.16, - 6.515, - 7.062 - ], - "groundY": 13.452, - "roofY": 19.967, - "wallCount": 35, - "roofCount": 16 - }, - { - "id": "sion_1221", - "uuid": "{4F37D57E-D673-48F8-BC97-5E65261831B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -345.066, - 15.09, - 350.575 - ], - "size": [ - 16.672, - 13.448, - 16.952 - ], - "groundY": 8.366, - "roofY": 21.814, - "wallCount": 44, - "roofCount": 25 - }, - { - "id": "sion_1222", - "uuid": "{79FA05DD-CA56-494F-9F8C-CB0B6080CE4A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 743.777, - 9.241, - 909.455 - ], - "size": [ - 56.516, - 10.564, - 54.281 - ], - "groundY": 3.959, - "roofY": 14.523, - "wallCount": 29, - "roofCount": 22 - }, - { - "id": "sion_1223", - "uuid": "{C367926E-58F3-4C55-9663-1044E288B4B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1268.408, - 10.961, - 300.816 - ], - "size": [ - 11.996, - 7.154, - 16.792 - ], - "groundY": 7.384, - "roofY": 14.538, - "wallCount": 31, - "roofCount": 32 - }, - { - "id": "sion_1224", - "uuid": "{5B37BCCA-A087-43DA-95A6-E1BF3127ABF8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 21.455, - 19.501, - 341.348 - ], - "size": [ - 47.012, - 26.402, - 52.238 - ], - "groundY": 6.3, - "roofY": 32.702, - "wallCount": 140, - "roofCount": 107 - }, - { - "id": "sion_1225", - "uuid": "{8E2F2D76-647B-46DE-9205-96E03F74B396}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -381.668, - 8.764, - 640.31 - ], - "size": [ - 17.492, - 17.812, - 15.899 - ], - "groundY": -0.142, - "roofY": 17.67, - "wallCount": 41, - "roofCount": 28 - }, - { - "id": "sion_1226", - "uuid": "{D3BDF4E5-0D11-49CE-A227-47B581CB2715}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -55.506, - 52.115, - -470.717 - ], - "size": [ - 17.168, - 10.499, - 22.632 - ], - "groundY": 46.866, - "roofY": 57.365, - "wallCount": 37, - "roofCount": 26 - }, - { - "id": "sion_1227", - "uuid": "{76B5E332-4950-4EE7-9518-80EF949D2E25}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 845.998, - 15.532, - 33.969 - ], - "size": [ - 36.692, - 24.325, - 31.086 - ], - "groundY": 3.37, - "roofY": 27.695, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_1228", - "uuid": "{788EA279-4673-4E0F-B699-0A7464698B39}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 33.772, - 64.635, - -799.562 - ], - "size": [ - 11.949, - 9.767, - 11.427 - ], - "groundY": 59.752, - "roofY": 69.518, - "wallCount": 36, - "roofCount": 11 - }, - { - "id": "sion_1229", - "uuid": "{1D02DB09-2D9B-4838-AECB-953EF8944081}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -41.566, - 76.551, - -891.017 - ], - "size": [ - 60.484, - 19.5, - 34.674 - ], - "groundY": 66.801, - "roofY": 86.301, - "wallCount": 32, - "roofCount": 33 - }, - { - "id": "sion_1230", - "uuid": "{44A1ADD4-8C47-4373-B2EF-12E734ACD117}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -253.092, - 68.142, - -746.144 - ], - "size": [ - 21.832, - 16.307, - 17.168 - ], - "groundY": 59.989, - "roofY": 76.296, - "wallCount": 57, - "roofCount": 47 - }, - { - "id": "sion_1231", - "uuid": "{10FE9974-6C4A-4D97-912C-CCF44E140CD1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -172.814, - 29.443, - 136.171 - ], - "size": [ - 54.652, - 25.091, - 55.838 - ], - "groundY": 16.898, - "roofY": 41.989, - "wallCount": 40, - "roofCount": 56 - }, - { - "id": "sion_1232", - "uuid": "{A37E651F-E04B-4F69-BDDC-BC8AB9922BA6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1164.527, - 11.886, - 317.243 - ], - "size": [ - 11.75, - 11.186, - 10.378 - ], - "groundY": 6.293, - "roofY": 17.479, - "wallCount": 57, - "roofCount": 35 - }, - { - "id": "sion_1233", - "uuid": "{27873B08-6DE4-4140-83C9-2ABEC5546EE1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -33.914, - 49.027, - -393.098 - ], - "size": [ - 18.859, - 11.564, - 19.214 - ], - "groundY": 43.245, - "roofY": 54.809, - "wallCount": 22, - "roofCount": 13 - }, - { - "id": "sion_1234", - "uuid": "{FA264CA9-0CC5-4773-B2DA-4478B3EB3DAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 239.062, - 201.289, - -1364.377 - ], - "size": [ - 13.711, - 11.87, - 13.805 - ], - "groundY": 195.354, - "roofY": 207.224, - "wallCount": 45, - "roofCount": 24 - }, - { - "id": "sion_1235", - "uuid": "{E371EF28-EC3B-451C-B909-606AD2DFED23}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -284.215, - 34.541, - -6.052 - ], - "size": [ - 26.031, - 24.529, - 30.256 - ], - "groundY": 22.277, - "roofY": 46.806, - "wallCount": 51, - "roofCount": 42 - }, - { - "id": "sion_1236", - "uuid": "{C98F6EC2-371B-4A4B-BA13-EF7A40F3D294}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 595.297, - 8.26, - 42.564 - ], - "size": [ - 9.078, - 7.526, - 6.106 - ], - "groundY": 4.497, - "roofY": 12.023, - "wallCount": 10, - "roofCount": 19 - }, - { - "id": "sion_1237", - "uuid": "{1B90A8FC-32AB-412B-9559-752920CB006E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 941.869, - 9.87, - 418.959 - ], - "size": [ - 20.231, - 11.899, - 18.506 - ], - "groundY": 3.921, - "roofY": 15.82, - "wallCount": 45, - "roofCount": 37 - }, - { - "id": "sion_1238", - "uuid": "{05E2BAF1-9E8B-4107-B425-43BD1EC4CFA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -14.381, - 65.975, - -820.299 - ], - "size": [ - 10.606, - 5.966, - 10.229 - ], - "groundY": 62.992, - "roofY": 68.958, - "wallCount": 21, - "roofCount": 2 - }, - { - "id": "sion_1239", - "uuid": "{24A080E6-3419-4522-A474-1F00C34F8BBE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -190.213, - 62.252, - -713.517 - ], - "size": [ - 13.676, - 12.654, - 14.022 - ], - "groundY": 55.925, - "roofY": 68.579, - "wallCount": 67, - "roofCount": 35 - }, - { - "id": "sion_1240", - "uuid": "{BA4765E1-E6DD-4C62-8CE7-52F0DFCEE14E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 202.549, - 10.412, - 409.006 - ], - "size": [ - 46.223, - 11.908, - 32.062 - ], - "groundY": 4.458, - "roofY": 16.366, - "wallCount": 18, - "roofCount": 21 - }, - { - "id": "sion_1241", - "uuid": "{C9DEF82A-A7FE-4257-AD65-AD0DA9DD8C01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 29.428, - 60.879, - -663.051 - ], - "size": [ - 35.277, - 17.476, - 30.316 - ], - "groundY": 52.141, - "roofY": 69.617, - "wallCount": 13, - "roofCount": 9 - }, - { - "id": "sion_1242", - "uuid": "{B8AE8F59-CB8E-4295-B244-A26FCF0C0DBA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 13.463, - 24.512, - -72.66 - ], - "size": [ - 12.285, - 6.542, - 10.412 - ], - "groundY": 21.241, - "roofY": 27.783, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1243", - "uuid": "{25431A80-ED48-4AA3-866B-F9F9223D4BAD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 394.717, - 15.314, - -132.569 - ], - "size": [ - 32.059, - 22.536, - 50.882 - ], - "groundY": 4.046, - "roofY": 26.582, - "wallCount": 34, - "roofCount": 8 - }, - { - "id": "sion_1244", - "uuid": "{A932E067-295B-4E1B-9F72-08711B908F30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -272.656, - 5.067, - 1034.787 - ], - "size": [ - 36.149, - 10.17, - 22.072 - ], - "groundY": -0.018, - "roofY": 10.152, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_1245", - "uuid": "{73514E4C-6DEE-4EA6-A3D7-387C2FB6B83A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 318.924, - 77.561, - -968.543 - ], - "size": [ - 26.324, - 13.755, - 16.738 - ], - "groundY": 70.684, - "roofY": 84.438, - "wallCount": 50, - "roofCount": 60 - }, - { - "id": "sion_1246", - "uuid": "{E95F88C1-CE9A-405F-82AA-BF4F2F436220}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1147.168, - 14.929, - 421.063 - ], - "size": [ - 26.859, - 16.663, - 16.895 - ], - "groundY": 6.598, - "roofY": 23.26, - "wallCount": 98, - "roofCount": 16 - }, - { - "id": "sion_1247", - "uuid": "{86C7382D-1415-4F37-B914-80F946671192}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -273.562, - 57.308, - -243.34 - ], - "size": [ - 70.102, - 48.779, - 50.594 - ], - "groundY": 32.919, - "roofY": 81.698, - "wallCount": 164, - "roofCount": 114 - }, - { - "id": "sion_1248", - "uuid": "{F536E131-8278-4D97-840C-E254DBB7C8CC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1148.824, - 14.582, - 381.301 - ], - "size": [ - 26.859, - 16.692, - 16.9 - ], - "groundY": 6.236, - "roofY": 22.928, - "wallCount": 100, - "roofCount": 12 - }, - { - "id": "sion_1249", - "uuid": "{9185354C-42E0-4BEE-BF68-A180BBBD441E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -70.525, - 68.486, - -762.446 - ], - "size": [ - 13.27, - 15.421, - 10.616 - ], - "groundY": 60.775, - "roofY": 76.196, - "wallCount": 37, - "roofCount": 46 - }, - { - "id": "sion_1250", - "uuid": "{97710136-F35E-4E6E-A11C-51DAF8C71EA5}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 313.9, - 170.89, - -508.518 - ], - "size": [ - 85.746, - 36.924, - 48.94 - ], - "groundY": 152.428, - "roofY": 189.352, - "wallCount": 498, - "roofCount": 179 - }, - { - "id": "sion_1251", - "uuid": "{44E9C0CE-2970-4265-A887-8831523AAA64}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 968.277, - 7.954, - -317.133 - ], - "size": [ - 42.078, - 10.014, - 39.32 - ], - "groundY": 2.947, - "roofY": 12.961, - "wallCount": 32, - "roofCount": 28 - }, - { - "id": "sion_1252", - "uuid": "{666ED04A-A9D7-40B1-8765-5C917E91EEC8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1319.129, - 11.258, - -43.349 - ], - "size": [ - 11.68, - 6.828, - 11.746 - ], - "groundY": 7.844, - "roofY": 14.672, - "wallCount": 26, - "roofCount": 11 - }, - { - "id": "sion_1253", - "uuid": "{D3D71739-437A-4446-8209-E2E4885732E1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1200.77, - 13.714, - 104.51 - ], - "size": [ - 35.727, - 15.604, - 38.628 - ], - "groundY": 5.912, - "roofY": 21.516, - "wallCount": 27, - "roofCount": 43 - }, - { - "id": "sion_1254", - "uuid": "{2E34EFB6-468A-4214-85A5-C34EFE825B33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 633.461, - 12.81, - 466.188 - ], - "size": [ - 45.391, - 21.114, - 40.004 - ], - "groundY": 2.253, - "roofY": 23.367, - "wallCount": 40, - "roofCount": 12 - }, - { - "id": "sion_1255", - "uuid": "{99E1CAA5-1B02-4913-9307-3E9D73E4A668}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -206.354, - 40.701, - -151.458 - ], - "size": [ - 59.137, - 25.359, - 65.623 - ], - "groundY": 28.021, - "roofY": 53.38, - "wallCount": 248, - "roofCount": 206 - }, - { - "id": "sion_1256", - "uuid": "{13F65D35-E5DC-4D88-AC3A-7B1FB400EFC6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 920.072, - 15.31, - 85.978 - ], - "size": [ - 30.441, - 25.17, - 27.847 - ], - "groundY": 2.725, - "roofY": 27.895, - "wallCount": 111, - "roofCount": 16 - }, - { - "id": "sion_1257", - "uuid": "{C7B15074-9261-48F5-8E57-2A61C32B550A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 112.527, - 27.566, - 96.475 - ], - "size": [ - 128.25, - 29.133, - 102.138 - ], - "groundY": 12.999, - "roofY": 42.132, - "wallCount": 219, - "roofCount": 153 - }, - { - "id": "sion_1258", - "uuid": "{AEF5814C-6816-4C3D-A099-6EB396FEFD44}", - "name": "Gu\u00e9rite Br\u00fblefer", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 752.686, - 167.836, - -1237.505 - ], - "size": [ - 10.754, - 10.375, - 10.678 - ], - "groundY": 162.649, - "roofY": 173.024, - "wallCount": 50, - "roofCount": 12 - }, - { - "id": "sion_1259", - "uuid": "{91835479-BBC8-449A-91AA-1B8671C06905}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1511.65, - 17.211, - 266.336 - ], - "size": [ - 46.488, - 18.907, - 18.704 - ], - "groundY": 7.758, - "roofY": 26.665, - "wallCount": 97, - "roofCount": 39 - }, - { - "id": "sion_1260", - "uuid": "{66358F62-F532-41EB-A109-9145CC23AFB4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 831.771, - 9.481, - 965.449 - ], - "size": [ - 16.137, - 9.254, - 17.622 - ], - "groundY": 4.854, - "roofY": 14.108, - "wallCount": 34, - "roofCount": 23 - }, - { - "id": "sion_1261", - "uuid": "{D1BD4E39-B2B0-401D-986B-904A05A0F2AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1287.557, - 11.536, - 411.074 - ], - "size": [ - 48.738, - 9.04, - 73.726 - ], - "groundY": 7.016, - "roofY": 16.056, - "wallCount": 16, - "roofCount": 6 - }, - { - "id": "sion_1262", - "uuid": "{164B7701-8A94-424D-9C53-83D0B69726A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -216.869, - 53.505, - -525.891 - ], - "size": [ - 11.934, - 11.386, - 14.378 - ], - "groundY": 47.812, - "roofY": 59.198, - "wallCount": 28, - "roofCount": 8 - }, - { - "id": "sion_1263", - "uuid": "{C5619C87-204C-4DC9-A172-52B9DBA7F5A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 433.568, - 16.844, - 299.057 - ], - "size": [ - 69.738, - 20.806, - 49.933 - ], - "groundY": 6.441, - "roofY": 27.247, - "wallCount": 66, - "roofCount": 48 - }, - { - "id": "sion_1264", - "uuid": "{08A8547D-5233-4A89-8CB1-C2FE97D8ADBB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 855.539, - 6.554, - -321.524 - ], - "size": [ - 9.047, - 7.016, - 8.858 - ], - "groundY": 3.046, - "roofY": 10.062, - "wallCount": 45, - "roofCount": 11 - }, - { - "id": "sion_1265", - "uuid": "{027AA308-1E14-4005-80A5-EC02063892BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1468.728, - 14.337, - -124.653 - ], - "size": [ - 20.707, - 13.931, - 26.941 - ], - "groundY": 7.371, - "roofY": 21.302, - "wallCount": 49, - "roofCount": 8 - }, - { - "id": "sion_1266", - "uuid": "{37E86DFC-7EAE-4EDC-ADF4-5E4C7EFE3FE7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 314.037, - 6.164, - 821.265 - ], - "size": [ - 32.082, - 8.052, - 31.038 - ], - "groundY": 2.138, - "roofY": 10.19, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1267", - "uuid": "{71AB4C2A-F2FE-4639-B60A-215E7B92DE56}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -38.707, - 61.235, - -609.914 - ], - "size": [ - 35.211, - 22.6, - 31.883 - ], - "groundY": 49.935, - "roofY": 72.535, - "wallCount": 122, - "roofCount": 45 - }, - { - "id": "sion_1268", - "uuid": "{7C53E56F-AEB4-47F5-9E23-EE6B542735DF}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -299.715, - 44.817, - -185.031 - ], - "size": [ - 42.18, - 26.464, - 27.874 - ], - "groundY": 31.585, - "roofY": 58.049, - "wallCount": 127, - "roofCount": 113 - }, - { - "id": "sion_1269", - "uuid": "{999B05A7-1BFA-4EF1-8580-82897DDC56E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -123.014, - 70.315, - -800.35 - ], - "size": [ - 13.457, - 13.607, - 11.97 - ], - "groundY": 63.511, - "roofY": 77.118, - "wallCount": 36, - "roofCount": 55 - }, - { - "id": "sion_1270", - "uuid": "{95B59AC2-2B75-418D-94D9-34614109F425}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 293.947, - 11.812, - 4.274 - ], - "size": [ - 9.856, - 6.732, - 22.821 - ], - "groundY": 8.446, - "roofY": 15.178, - "wallCount": 20, - "roofCount": 2 - }, - { - "id": "sion_1271", - "uuid": "{647B07D2-5E10-40D7-9217-BCAEA1F8ACAB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -82.342, - 68.979, - -795.696 - ], - "size": [ - 11.293, - 12.247, - 13.97 - ], - "groundY": 62.856, - "roofY": 75.103, - "wallCount": 43, - "roofCount": 29 - }, - { - "id": "sion_1272", - "uuid": "{E405E2EA-D51A-4B4F-82E3-F017D6F677ED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 735.824, - 11.639, - 529.793 - ], - "size": [ - 31.961, - 15.951, - 30.672 - ], - "groundY": 3.664, - "roofY": 19.615, - "wallCount": 39, - "roofCount": 12 - }, - { - "id": "sion_1273", - "uuid": "{FAE01D2C-A999-4C5A-8300-EE2A010CC62E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1300.105, - 11.643, - -1053.428 - ], - "size": [ - 47.234, - 12.962, - 54.27 - ], - "groundY": 5.162, - "roofY": 18.124, - "wallCount": 30, - "roofCount": 20 - }, - { - "id": "sion_1274", - "uuid": "{EDAC417F-2017-414F-8DB6-82687DB6C9F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 917.176, - 9.24, - 407.505 - ], - "size": [ - 13.203, - 10.773, - 9.79 - ], - "groundY": 3.854, - "roofY": 14.627, - "wallCount": 43, - "roofCount": 15 - }, - { - "id": "sion_1275", - "uuid": "{E341C36D-8C62-4B70-9EF4-486B3A7F0265}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 194.154, - 56.369, - -696.826 - ], - "size": [ - 15.051, - 6.002, - 10.572 - ], - "groundY": 53.368, - "roofY": 59.37, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_1276", - "uuid": "{C920BA11-660C-424A-8B40-C79CFCD32E3A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 173.553, - 180.862, - -1425.126 - ], - "size": [ - 16.066, - 8.698, - 19.732 - ], - "groundY": 176.513, - "roofY": 185.211, - "wallCount": 33, - "roofCount": 23 - }, - { - "id": "sion_1277", - "uuid": "{3A3C5659-29AA-4538-8FE4-D2428D17E250}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 201.969, - 8.736, - 429.652 - ], - "size": [ - 12.484, - 9.098, - 11.788 - ], - "groundY": 4.187, - "roofY": 13.285, - "wallCount": 30, - "roofCount": 28 - }, - { - "id": "sion_1278", - "uuid": "{711B940A-E816-480E-83D2-FA47BF08BDF9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 877.225, - 9.695, - 554.665 - ], - "size": [ - 43.941, - 10.588, - 63.812 - ], - "groundY": 4.401, - "roofY": 14.989, - "wallCount": 30, - "roofCount": 40 - }, - { - "id": "sion_1279", - "uuid": "{0605CCB1-71C3-428D-9FAC-334E676EF223}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 40.043, - 97.05, - -1064.675 - ], - "size": [ - 30.977, - 7.102, - 10.198 - ], - "groundY": 93.499, - "roofY": 100.601, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1280", - "uuid": "{D7E33C42-56A2-40FE-9BDD-A6B1399901F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -162.691, - 85.676, - -992.591 - ], - "size": [ - 55.094, - 23.269, - 63.021 - ], - "groundY": 74.042, - "roofY": 97.311, - "wallCount": 122, - "roofCount": 130 - }, - { - "id": "sion_1281", - "uuid": "{FBAB9A12-B852-4D50-B280-BA5C61395BB9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -18.967, - 7.824, - 852.696 - ], - "size": [ - 85.449, - 14.808, - 77.772 - ], - "groundY": 0.42, - "roofY": 15.228, - "wallCount": 14, - "roofCount": 44 - }, - { - "id": "sion_1282", - "uuid": "{153F32B5-F660-43EB-AE75-513C4D7DB135}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 263.678, - 20.782, - -2.97 - ], - "size": [ - 14.269, - 21.341, - 38.474 - ], - "groundY": 10.111, - "roofY": 31.452, - "wallCount": 10, - "roofCount": 20 - }, - { - "id": "sion_1283", - "uuid": "{5E4291DD-CFE2-480E-864F-000B44452C2A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -304.207, - 65.715, - -644.013 - ], - "size": [ - 57.156, - 26.693, - 54.178 - ], - "groundY": 52.369, - "roofY": 79.062, - "wallCount": 398, - "roofCount": 187 - }, - { - "id": "sion_1284", - "uuid": "{003CB6FD-2DC1-4891-94D8-9E98D570889E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1058.193, - 9.776, - 397.035 - ], - "size": [ - 11.309, - 10.266, - 9.128 - ], - "groundY": 4.643, - "roofY": 14.909, - "wallCount": 47, - "roofCount": 29 - }, - { - "id": "sion_1285", - "uuid": "{A7A88A2E-1DCB-4806-9BD2-D5A68301085D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -93.098, - 36.851, - -125.482 - ], - "size": [ - 29.68, - 21.604, - 26.042 - ], - "groundY": 26.049, - "roofY": 47.653, - "wallCount": 92, - "roofCount": 28 - }, - { - "id": "sion_1286", - "uuid": "{515D26EF-722C-47F0-99FB-025CA8A1FF42}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -272.035, - 50.993, - -374.022 - ], - "size": [ - 18.539, - 22.028, - 15.063 - ], - "groundY": 39.979, - "roofY": 62.007, - "wallCount": 60, - "roofCount": 40 - }, - { - "id": "sion_1287", - "uuid": "{89A6CE3E-5AAF-4B08-9885-721D9770415C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -81.639, - 97.751, - -1208.95 - ], - "size": [ - 19.285, - 14.755, - 20.914 - ], - "groundY": 90.373, - "roofY": 105.128, - "wallCount": 38, - "roofCount": 15 - }, - { - "id": "sion_1288", - "uuid": "{952CF754-A8B1-4378-A409-83559F494F87}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 1018.779, - 12.389, - 358.954 - ], - "size": [ - 23.082, - 16.109, - 17.004 - ], - "groundY": 4.335, - "roofY": 20.444, - "wallCount": 88, - "roofCount": 23 - }, - { - "id": "sion_1289", - "uuid": "{7125F4AD-ED74-478D-978D-9281E2C36554}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 278.781, - 21.227, - 107.665 - ], - "size": [ - 49.0, - 21.969, - 45.479 - ], - "groundY": 10.243, - "roofY": 32.212, - "wallCount": 14, - "roofCount": 12 - }, - { - "id": "sion_1290", - "uuid": "{95771A8B-D7BF-49E1-94B3-AC0656E38653}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1218.072, - 12.162, - 291.281 - ], - "size": [ - 30.285, - 10.807, - 11.618 - ], - "groundY": 6.759, - "roofY": 17.566, - "wallCount": 25, - "roofCount": 22 - }, - { - "id": "sion_1291", - "uuid": "{72A8C5CB-33A7-4619-ADF6-24B466909D68}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -315.551, - 12.794, - 708.176 - ], - "size": [ - 57.406, - 27.168, - 17.326 - ], - "groundY": -0.79, - "roofY": 26.378, - "wallCount": 86, - "roofCount": 22 - }, - { - "id": "sion_1292", - "uuid": "{8E58DC17-92D2-4CA6-9484-EAC1AC7D77CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 155.645, - 10.381, - 654.182 - ], - "size": [ - 20.547, - 17.819, - 19.878 - ], - "groundY": 1.471, - "roofY": 19.29, - "wallCount": 29, - "roofCount": 25 - }, - { - "id": "sion_1293", - "uuid": "{A1BD8F1B-DA1D-47D9-9A7D-1146CDF12533}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 116.016, - 19.972, - 285.3 - ], - "size": [ - 51.195, - 25.463, - 35.598 - ], - "groundY": 7.241, - "roofY": 32.704, - "wallCount": 98, - "roofCount": 25 - }, - { - "id": "sion_1294", - "uuid": "{1971CC05-D3DE-4FAE-94FD-271E60F44089}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 90.148, - 7.296, - 589.382 - ], - "size": [ - 45.984, - 10.807, - 46.279 - ], - "groundY": 1.892, - "roofY": 12.699, - "wallCount": 8, - "roofCount": 5 - }, - { - "id": "sion_1295", - "uuid": "{47CBBFDA-3130-439A-BEFE-983DF24D4FA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 237.846, - 76.943, - -955.949 - ], - "size": [ - 56.551, - 18.704, - 26.7 - ], - "groundY": 67.591, - "roofY": 86.295, - "wallCount": 29, - "roofCount": 19 - }, - { - "id": "sion_1296", - "uuid": "{B5FB8EAC-55DA-4674-9DA2-8D0B91491178}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 424.881, - 8.446, - 446.858 - ], - "size": [ - 17.887, - 10.608, - 17.284 - ], - "groundY": 3.142, - "roofY": 13.75, - "wallCount": 16, - "roofCount": 14 - }, - { - "id": "sion_1297", - "uuid": "{4503694E-FB0A-4DB2-A01D-F65360A4BA5C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 111.344, - 25.316, - -44.213 - ], - "size": [ - 24.469, - 16.684, - 18.764 - ], - "groundY": 16.974, - "roofY": 33.658, - "wallCount": 23, - "roofCount": 10 - }, - { - "id": "sion_1298", - "uuid": "{02B3CAE2-9339-4A8A-9762-345B9A6241E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -361.402, - 54.829, - -518.294 - ], - "size": [ - 26.766, - 19.635, - 20.538 - ], - "groundY": 45.012, - "roofY": 64.647, - "wallCount": 17, - "roofCount": 20 - }, - { - "id": "sion_1299", - "uuid": "{FFC6A1FC-F46B-409C-8EC8-F6C2FF94BCFB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1242.754, - 12.466, - 268.656 - ], - "size": [ - 30.281, - 10.551, - 11.62 - ], - "groundY": 7.191, - "roofY": 17.742, - "wallCount": 25, - "roofCount": 24 - }, - { - "id": "sion_1300", - "uuid": "{8BE68F4B-2A71-4D0E-8C8C-45A43643B61B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 23.527, - 69.932, - -321.695 - ], - "size": [ - 21.445, - 21.787, - 20.11 - ], - "groundY": 59.038, - "roofY": 80.825, - "wallCount": 24, - "roofCount": 12 - }, - { - "id": "sion_1301", - "uuid": "{0E9E24D5-F43F-4B41-B13B-D53C5271D2D7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1165.529, - 12.064, - 341.494 - ], - "size": [ - 15.059, - 10.438, - 12.116 - ], - "groundY": 6.845, - "roofY": 17.283, - "wallCount": 27, - "roofCount": 32 - }, - { - "id": "sion_1302", - "uuid": "{DA536C7A-2F98-41B4-93BA-F0DCBABBE896}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 197.035, - 64.463, - -842.772 - ], - "size": [ - 16.078, - 12.974, - 15.884 - ], - "groundY": 57.976, - "roofY": 70.95, - "wallCount": 43, - "roofCount": 24 - }, - { - "id": "sion_1303", - "uuid": "{84B357B3-AFB2-4B74-94AC-59698DFE1F5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -142.309, - 69.42, - -801.276 - ], - "size": [ - 12.773, - 11.456, - 10.187 - ], - "groundY": 63.692, - "roofY": 75.148, - "wallCount": 57, - "roofCount": 27 - }, - { - "id": "sion_1304", - "uuid": "{9399060B-06A3-47FA-9B7D-EF04A4698CBE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 457.557, - 219.599, - -1432.193 - ], - "size": [ - 13.082, - 10.9, - 13.5 - ], - "groundY": 214.149, - "roofY": 225.049, - "wallCount": 22, - "roofCount": 32 - }, - { - "id": "sion_1305", - "uuid": "{033A9579-18AF-405B-97D3-2504AF7C024B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 30.965, - 62.192, - -755.871 - ], - "size": [ - 12.781, - 10.635, - 12.508 - ], - "groundY": 56.874, - "roofY": 67.509, - "wallCount": 48, - "roofCount": 7 - }, - { - "id": "sion_1306", - "uuid": "{BD975460-C515-4594-82EF-7B74DE48C88B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -370.955, - 10.313, - 689.94 - ], - "size": [ - 15.566, - 22.987, - 27.414 - ], - "groundY": -1.18, - "roofY": 21.807, - "wallCount": 43, - "roofCount": 4 - }, - { - "id": "sion_1307", - "uuid": "{84344A67-D7FE-4DC1-B812-2554C35F5B01}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -346.51, - 70.783, - -864.831 - ], - "size": [ - 9.348, - 5.726, - 10.438 - ], - "groundY": 67.92, - "roofY": 73.646, - "wallCount": 24, - "roofCount": 17 - }, - { - "id": "sion_1308", - "uuid": "{DEE051AF-1E40-4572-ADB2-F824BC0E5157}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 49.881, - 142.549, - -1190.576 - ], - "size": [ - 4.551, - 5.261, - 6.326 - ], - "groundY": 139.918, - "roofY": 145.179, - "wallCount": 31, - "roofCount": 6 - }, - { - "id": "sion_1309", - "uuid": "{AD36DF39-1227-46FD-A324-E2DEFB2568BB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 613.398, - 13.037, - 22.092 - ], - "size": [ - 16.094, - 17.802, - 29.996 - ], - "groundY": 4.136, - "roofY": 21.938, - "wallCount": 10, - "roofCount": 40 - }, - { - "id": "sion_1310", - "uuid": "{4BD6C061-F429-4FF6-92F8-B992EB30F3B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 76.375, - 7.415, - 548.484 - ], - "size": [ - 52.516, - 10.276, - 28.694 - ], - "groundY": 2.277, - "roofY": 12.553, - "wallCount": 41, - "roofCount": 14 - }, - { - "id": "sion_1311", - "uuid": "{1BF3C8B0-CD01-421F-8BD7-D911AD3457C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 169.211, - 22.232, - 7.735 - ], - "size": [ - 14.781, - 15.674, - 13.403 - ], - "groundY": 14.395, - "roofY": 30.069, - "wallCount": 17, - "roofCount": 27 - }, - { - "id": "sion_1312", - "uuid": "{C4607174-59C3-4C48-9144-C7FF12661601}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 238.828, - 21.002, - 121.617 - ], - "size": [ - 19.5, - 17.855, - 19.254 - ], - "groundY": 12.075, - "roofY": 29.93, - "wallCount": 23, - "roofCount": 9 - }, - { - "id": "sion_1313", - "uuid": "{1957CFFC-7073-4A75-BDEF-C9328F1F7F99}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 137.812, - 6.437, - 608.062 - ], - "size": [ - 17.242, - 12.174, - 16.892 - ], - "groundY": 0.35, - "roofY": 12.524, - "wallCount": 38, - "roofCount": 18 - }, - { - "id": "sion_1314", - "uuid": "{5AB77217-7C9F-4C06-A100-7320FE24D4F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 958.93, - 11.51, - 377.362 - ], - "size": [ - 19.93, - 17.204, - 35.13 - ], - "groundY": 2.908, - "roofY": 20.112, - "wallCount": 130, - "roofCount": 28 - }, - { - "id": "sion_1315", - "uuid": "{686AEF0F-C187-42BD-ACEE-257ED7E1E88C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -10.422, - 71.033, - -244.433 - ], - "size": [ - 16.438, - 15.59, - 18.952 - ], - "groundY": 63.238, - "roofY": 78.828, - "wallCount": 21, - "roofCount": 13 - }, - { - "id": "sion_1316", - "uuid": "{53984E0D-F1D1-4566-8624-EE1459AAA7CD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 177.031, - 64.686, - -834.816 - ], - "size": [ - 17.164, - 15.75, - 16.944 - ], - "groundY": 56.811, - "roofY": 72.561, - "wallCount": 45, - "roofCount": 25 - }, - { - "id": "sion_1317", - "uuid": "{3E30AEEE-21C0-45C2-9DE9-33F497F43D5C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 458.852, - 177.78, - -1259.786 - ], - "size": [ - 6.914, - 6.474, - 5.178 - ], - "groundY": 174.543, - "roofY": 181.017, - "wallCount": 34, - "roofCount": 9 - }, - { - "id": "sion_1318", - "uuid": "{275105F2-5E34-4CF9-840E-F167334F058B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -4.793, - 65.115, - -751.554 - ], - "size": [ - 23.047, - 13.15, - 18.15 - ], - "groundY": 58.54, - "roofY": 71.69, - "wallCount": 33, - "roofCount": 44 - }, - { - "id": "sion_1319", - "uuid": "{1D748D30-5147-4721-AC97-F0BCD4AA8A07}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 152.865, - 20.222, - 65.841 - ], - "size": [ - 18.941, - 10.266, - 18.076 - ], - "groundY": 15.089, - "roofY": 25.355, - "wallCount": 8, - "roofCount": 26 - }, - { - "id": "sion_1320", - "uuid": "{91C1DF80-2A43-4670-A20D-AE28D12D3BC9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 466.818, - 7.078, - 571.2 - ], - "size": [ - 49.254, - 10.769, - 57.322 - ], - "groundY": 1.694, - "roofY": 12.463, - "wallCount": 35, - "roofCount": 21 - }, - { - "id": "sion_1321", - "uuid": "{043F6B6E-8D43-479F-A27A-A6991FDAFC65}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 200.293, - 187.064, - -1447.923 - ], - "size": [ - 13.297, - 8.444, - 12.014 - ], - "groundY": 182.842, - "roofY": 191.286, - "wallCount": 37, - "roofCount": 12 - }, - { - "id": "sion_1322", - "uuid": "{7E5A54A0-2EF7-4E69-8D72-2F25F0C9AEED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 291.945, - 71.13, - -624.266 - ], - "size": [ - 15.93, - 12.618, - 16.416 - ], - "groundY": 64.821, - "roofY": 77.439, - "wallCount": 45, - "roofCount": 21 - }, - { - "id": "sion_1323", - "uuid": "{F1F723A5-E572-4F9F-851A-D2A5A4E25B21}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 640.455, - 14.618, - 791.925 - ], - "size": [ - 19.535, - 24.995, - 19.534 - ], - "groundY": 2.121, - "roofY": 27.116, - "wallCount": 409, - "roofCount": 94 - }, - { - "id": "sion_1324", - "uuid": "{05B75BB3-742B-4836-9B33-9D216D94F3BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 422.625, - 214.854, - -1431.715 - ], - "size": [ - 18.438, - 7.449, - 16.068 - ], - "groundY": 211.13, - "roofY": 218.579, - "wallCount": 34, - "roofCount": 26 - }, - { - "id": "sion_1325", - "uuid": "{3ECEE38F-F216-4C89-828D-5E6A78699ADA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 775.023, - 10.545, - 452.43 - ], - "size": [ - 16.219, - 15.052, - 17.147 - ], - "groundY": 3.019, - "roofY": 18.071, - "wallCount": 68, - "roofCount": 19 - }, - { - "id": "sion_1326", - "uuid": "{472281E2-2581-42F6-BC74-228E2EB783BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 797.352, - 12.353, - -88.092 - ], - "size": [ - 70.891, - 18.957, - 52.64 - ], - "groundY": 2.875, - "roofY": 21.832, - "wallCount": 82, - "roofCount": 32 - }, - { - "id": "sion_1327", - "uuid": "{C10EE620-BC81-4BD3-A9B4-09E0711D0B68}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 305.004, - 7.279, - 495.851 - ], - "size": [ - 31.93, - 12.243, - 23.418 - ], - "groundY": 1.157, - "roofY": 13.4, - "wallCount": 27, - "roofCount": 4 - }, - { - "id": "sion_1328", - "uuid": "{89B8A8F1-EAE6-429A-8536-9C9FF901425F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 756.266, - 8.942, - 552.698 - ], - "size": [ - 19.602, - 9.362, - 22.204 - ], - "groundY": 4.261, - "roofY": 13.623, - "wallCount": 25, - "roofCount": 12 - }, - { - "id": "sion_1329", - "uuid": "{4D230BF4-FF05-471A-839D-5457533DBBDE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 111.852, - 10.061, - 995.933 - ], - "size": [ - 39.945, - 13.118, - 36.796 - ], - "groundY": 3.502, - "roofY": 16.62, - "wallCount": 37, - "roofCount": 14 - }, - { - "id": "sion_1330", - "uuid": "{25917771-87CF-4B00-BFDD-8109BB68ADFB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 798.195, - 16.23, - -424.733 - ], - "size": [ - 19.609, - 25.178, - 15.108 - ], - "groundY": 3.641, - "roofY": 28.819, - "wallCount": 101, - "roofCount": 16 - }, - { - "id": "sion_1331", - "uuid": "{08119BB1-A6FB-4D3E-B138-0942D3C70DB8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 947.342, - 13.927, - 457.551 - ], - "size": [ - 26.676, - 18.517, - 19.71 - ], - "groundY": 4.668, - "roofY": 23.185, - "wallCount": 41, - "roofCount": 30 - }, - { - "id": "sion_1332", - "uuid": "{15DD0831-790F-4347-A0A5-43D0602CF032}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -132.895, - 68.93, - -765.651 - ], - "size": [ - 14.453, - 14.477, - 11.813 - ], - "groundY": 61.692, - "roofY": 76.169, - "wallCount": 52, - "roofCount": 58 - }, - { - "id": "sion_1333", - "uuid": "{1706D08D-0543-4317-A3C6-F9D18E483F72}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 488.096, - 9.477, - 702.084 - ], - "size": [ - 35.559, - 13.085, - 48.305 - ], - "groundY": 2.935, - "roofY": 16.02, - "wallCount": 11, - "roofCount": 15 - }, - { - "id": "sion_1334", - "uuid": "{75A9B5AA-C29F-4E1D-BF13-78D8A615A7B0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 158.113, - 60.981, - -787.318 - ], - "size": [ - 15.75, - 11.616, - 14.948 - ], - "groundY": 55.173, - "roofY": 66.789, - "wallCount": 46, - "roofCount": 48 - }, - { - "id": "sion_1335", - "uuid": "{5F4199AB-2A51-41EB-8E07-9F058C1F4F44}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 215.283, - 23.733, - 160.7 - ], - "size": [ - 45.746, - 22.51, - 39.482 - ], - "groundY": 12.478, - "roofY": 34.988, - "wallCount": 22, - "roofCount": 36 - }, - { - "id": "sion_1336", - "uuid": "{F73EB63C-1BC5-46BA-8462-9AB19D10892D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 402.635, - 7.194, - 902.28 - ], - "size": [ - 43.59, - 9.727, - 74.256 - ], - "groundY": 2.33, - "roofY": 12.057, - "wallCount": 14, - "roofCount": 58 - }, - { - "id": "sion_1337", - "uuid": "{9CC88C6C-11C0-4E69-A91C-C17E12840938}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 647.396, - 15.784, - 158.88 - ], - "size": [ - 24.613, - 27.018, - 16.168 - ], - "groundY": 2.275, - "roofY": 29.293, - "wallCount": 177, - "roofCount": 20 - }, - { - "id": "sion_1338", - "uuid": "{82444C57-2FE9-412D-8749-C7AEA4115143}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -234.271, - 74.614, - -901.167 - ], - "size": [ - 15.715, - 14.263, - 22.49 - ], - "groundY": 67.482, - "roofY": 81.745, - "wallCount": 29, - "roofCount": 31 - }, - { - "id": "sion_1339", - "uuid": "{10084B26-A99B-4560-93D1-2403B7562B1C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 306.979, - 17.964, - 132.316 - ], - "size": [ - 23.129, - 16.087, - 22.19 - ], - "groundY": 9.921, - "roofY": 26.008, - "wallCount": 19, - "roofCount": 12 - }, - { - "id": "sion_1340", - "uuid": "{D3198120-D7D2-4A2F-8602-AD1932D93DA5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -18.768, - 13.059, - 292.63 - ], - "size": [ - 17.027, - 7.007, - 24.124 - ], - "groundY": 9.556, - "roofY": 16.562, - "wallCount": 10, - "roofCount": 4 - }, - { - "id": "sion_1341", - "uuid": "{5EDF66AE-2C58-4451-A245-8BFEA6E4A929}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -45.869, - 31.328, - -117.071 - ], - "size": [ - 12.051, - 15.736, - 19.481 - ], - "groundY": 23.46, - "roofY": 39.196, - "wallCount": 72, - "roofCount": 25 - }, - { - "id": "sion_1342", - "uuid": "{DC6AF291-537C-4888-87F2-9C4301A15FE8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -82.205, - 36.864, - -134.94 - ], - "size": [ - 20.441, - 13.765, - 16.341 - ], - "groundY": 29.981, - "roofY": 43.746, - "wallCount": 14, - "roofCount": 7 - }, - { - "id": "sion_1343", - "uuid": "{7AE3FE74-6F49-4C6B-B9D3-93394D2E1653}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 4, - 3 - ], - "center": [ - 876.293, - 10.688, - 225.858 - ], - "size": [ - 25.297, - 13.33, - 24.192 - ], - "groundY": 4.023, - "roofY": 17.353, - "wallCount": 185, - "roofCount": 94 - }, - { - "id": "sion_1344", - "uuid": "{D0607AB0-E0E7-462A-AAA7-EFE3C4DB2498}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 414.479, - 8.043, - 469.391 - ], - "size": [ - 22.715, - 11.804, - 30.252 - ], - "groundY": 2.141, - "roofY": 13.945, - "wallCount": 37, - "roofCount": 24 - }, - { - "id": "sion_1345", - "uuid": "{B5F3F5B9-C723-4750-9E78-5BBE97820453}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 324.236, - 210.849, - -1412.35 - ], - "size": [ - 18.41, - 10.62, - 18.416 - ], - "groundY": 205.539, - "roofY": 216.159, - "wallCount": 31, - "roofCount": 8 - }, - { - "id": "sion_1346", - "uuid": "{5DC4DED6-800A-46FD-8433-3A993B20E013}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 434.668, - 61.617, - -688.779 - ], - "size": [ - 58.367, - 10.431, - 26.526 - ], - "groundY": 56.401, - "roofY": 66.832, - "wallCount": 51, - "roofCount": 20 - }, - { - "id": "sion_1347", - "uuid": "{19A8916D-0C1D-40DA-9087-97ACC2854F9A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1290.719, - 13.963, - -67.074 - ], - "size": [ - 54.969, - 13.126, - 47.756 - ], - "groundY": 7.4, - "roofY": 20.526, - "wallCount": 63, - "roofCount": 31 - }, - { - "id": "sion_1348", - "uuid": "{C4BF0F34-71FC-4BEF-989D-555F6F2DEFB7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -227.066, - 56.209, - -514.969 - ], - "size": [ - 13.984, - 17.046, - 17.596 - ], - "groundY": 47.686, - "roofY": 64.732, - "wallCount": 64, - "roofCount": 49 - }, - { - "id": "sion_1349", - "uuid": "{0B9DBB61-B6D9-42A8-9E9E-B3C95E51471A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 597.078, - 236.865, - -1369.78 - ], - "size": [ - 5.602, - 7.018, - 4.774 - ], - "groundY": 233.356, - "roofY": 240.374, - "wallCount": 25, - "roofCount": 3 - }, - { - "id": "sion_1350", - "uuid": "{02CD52D4-3C5D-4107-AE0B-22FF28A76986}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 862.803, - 11.35, - 1020.578 - ], - "size": [ - 42.629, - 11.944, - 30.922 - ], - "groundY": 5.378, - "roofY": 17.322, - "wallCount": 22, - "roofCount": 4 - }, - { - "id": "sion_1351", - "uuid": "{97935E98-AC18-4C70-8728-B0026DB2393F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 86.105, - 53.893, - -681.967 - ], - "size": [ - 41.883, - 5.532, - 32.16 - ], - "groundY": 51.127, - "roofY": 56.659, - "wallCount": 12, - "roofCount": 9 - }, - { - "id": "sion_1352", - "uuid": "{CA9F52B2-7C1A-4237-B393-F7C8EC48A437}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 9.086, - 59.055, - -294.717 - ], - "size": [ - 7.633, - 5.263, - 6.977 - ], - "groundY": 56.424, - "roofY": 61.687, - "wallCount": 24, - "roofCount": 12 - }, - { - "id": "sion_1353", - "uuid": "{B6D8CA09-EC34-48B9-8D36-BE5B0E5E9D9B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 475.486, - 15.505, - 258.258 - ], - "size": [ - 25.793, - 19.942, - 66.474 - ], - "groundY": 5.534, - "roofY": 25.476, - "wallCount": 63, - "roofCount": 19 - }, - { - "id": "sion_1354", - "uuid": "{52BBB18E-3252-417B-ADF1-E17A91E345F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 944.945, - 13.148, - 490.594 - ], - "size": [ - 23.586, - 17.551, - 15.004 - ], - "groundY": 4.373, - "roofY": 21.924, - "wallCount": 37, - "roofCount": 71 - }, - { - "id": "sion_1355", - "uuid": "{8C6BD0DB-C57E-4E7B-AC82-169780CA309C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -133.611, - 44.995, - -159.478 - ], - "size": [ - 61.066, - 33.65, - 36.216 - ], - "groundY": 28.17, - "roofY": 61.82, - "wallCount": 250, - "roofCount": 160 - }, - { - "id": "sion_1356", - "uuid": "{815C6A9D-2E8B-4527-A031-6E8A1BC7EF61}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -317.75, - 51.058, - -412.242 - ], - "size": [ - 39.727, - 20.738, - 35.196 - ], - "groundY": 40.689, - "roofY": 61.427, - "wallCount": 25, - "roofCount": 44 - }, - { - "id": "sion_1357", - "uuid": "{62304780-C913-4AEB-AC43-54CD4374CDFB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -391.283, - 51.311, - -418.074 - ], - "size": [ - 29.871, - 26.059, - 40.856 - ], - "groundY": 38.282, - "roofY": 64.341, - "wallCount": 66, - "roofCount": 22 - }, - { - "id": "sion_1358", - "uuid": "{AA10BB08-60DC-43DA-BE78-39AE70FFCEF9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 201.768, - 6.475, - 902.771 - ], - "size": [ - 25.418, - 7.36, - 25.392 - ], - "groundY": 2.795, - "roofY": 10.155, - "wallCount": 18, - "roofCount": 12 - }, - { - "id": "sion_1359", - "uuid": "{8726A433-AB61-434D-8246-83C66A7A297D}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 1 - ], - "center": [ - 511.092, - 160.077, - -561.525 - ], - "size": [ - 18.762, - 6.434, - 7.202 - ], - "groundY": 156.86, - "roofY": 163.294, - "wallCount": 90, - "roofCount": 35 - }, - { - "id": "sion_1360", - "uuid": "{A214FBDC-AD8D-4C77-AE62-B2F45E45EC82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -266.703, - 18.566, - 373.228 - ], - "size": [ - 37.734, - 26.526, - 55.407 - ], - "groundY": 5.303, - "roofY": 31.829, - "wallCount": 88, - "roofCount": 60 - }, - { - "id": "sion_1361", - "uuid": "{92BF4AA6-DCA8-4637-B33A-0B234ADD5B04}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -247.463, - 42.642, - -293.423 - ], - "size": [ - 28.691, - 14.624, - 19.147 - ], - "groundY": 35.33, - "roofY": 49.954, - "wallCount": 80, - "roofCount": 45 - }, - { - "id": "sion_1362", - "uuid": "{1B76F221-3C57-4696-AD40-AD53C51753D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -325.715, - 47.36, - -448.581 - ], - "size": [ - 33.414, - 10.317, - 32.792 - ], - "groundY": 42.202, - "roofY": 52.519, - "wallCount": 40, - "roofCount": 38 - }, - { - "id": "sion_1363", - "uuid": "{615E15CD-F965-4D1D-86C8-C57B671AE995}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 187.471, - 25.292, - 141.279 - ], - "size": [ - 46.871, - 23.888, - 38.244 - ], - "groundY": 13.348, - "roofY": 37.236, - "wallCount": 72, - "roofCount": 16 - }, - { - "id": "sion_1364", - "uuid": "{9ECD326E-04E6-4DCB-AA0B-B1F93F3FE011}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 365.561, - 17.184, - 203.933 - ], - "size": [ - 31.629, - 22.297, - 30.786 - ], - "groundY": 6.036, - "roofY": 28.333, - "wallCount": 59, - "roofCount": 21 - }, - { - "id": "sion_1365", - "uuid": "{31B6313D-CF84-4D36-868E-FA292B71308A}", - "name": "Basilique de Val\u00e8re", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 113.117, - 127.612, - -210.714 - ], - "size": [ - 148.617, - 69.03, - 115.92 - ], - "groundY": 93.097, - "roofY": 162.127, - "wallCount": 1339, - "roofCount": 501 - }, - { - "id": "sion_1366", - "uuid": "{97ECC9D6-9EA1-4B2F-99CF-304E04155367}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -90.424, - 47.571, - -158.134 - ], - "size": [ - 22.285, - 18.24, - 19.792 - ], - "groundY": 38.451, - "roofY": 56.691, - "wallCount": 79, - "roofCount": 36 - }, - { - "id": "sion_1367", - "uuid": "{E2482005-81AB-4445-889A-6C33FB36C0A0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1407.141, - 10.854, - 379.861 - ], - "size": [ - 7.414, - 6.334, - 12.408 - ], - "groundY": 7.687, - "roofY": 14.021, - "wallCount": 16, - "roofCount": 2 - }, - { - "id": "sion_1368", - "uuid": "{7ACE96ED-332E-4AA3-A7E0-9858E629050F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 698.84, - 45.208, - -867.183 - ], - "size": [ - 7.469, - 11.572, - 10.817 - ], - "groundY": 39.422, - "roofY": 50.994, - "wallCount": 66, - "roofCount": 15 - }, - { - "id": "sion_1369", - "uuid": "{45B776E0-97C5-40D9-B776-E55FB19FA98C}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 43.629, - 89.202, - -373.002 - ], - "size": [ - 68.242, - 9.715, - 11.746 - ], - "groundY": 84.345, - "roofY": 94.06, - "wallCount": 125, - "roofCount": 50 - }, - { - "id": "sion_1370", - "uuid": "{D9484F9A-8A0B-413E-8D28-31127AC12DC7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 92.193, - 60.76, - -749.854 - ], - "size": [ - 14.957, - 10.916, - 14.382 - ], - "groundY": 55.302, - "roofY": 66.218, - "wallCount": 39, - "roofCount": 7 - }, - { - "id": "sion_1371", - "uuid": "{A01445E6-262B-4B2E-9419-8E0798CF8F18}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 892.326, - 8.914, - 756.253 - ], - "size": [ - 55.395, - 8.884, - 50.572 - ], - "groundY": 4.472, - "roofY": 13.356, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1372", - "uuid": "{37BC563B-64C1-4671-957A-06021814AD10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1532.559, - 16.248, - 386.571 - ], - "size": [ - 21.023, - 16.99, - 12.572 - ], - "groundY": 7.753, - "roofY": 24.743, - "wallCount": 18, - "roofCount": 26 - }, - { - "id": "sion_1373", - "uuid": "{03753997-F474-4E7F-9599-30A1D8FB2643}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -367.416, - 24.917, - 230.157 - ], - "size": [ - 23.816, - 23.16, - 25.769 - ], - "groundY": 13.337, - "roofY": 36.497, - "wallCount": 20, - "roofCount": 43 - }, - { - "id": "sion_1374", - "uuid": "{FA2188AF-8313-4B36-8676-6B3F7FF1D88E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 169.703, - 71.538, - -934.172 - ], - "size": [ - 37.758, - 17.692, - 20.902 - ], - "groundY": 62.692, - "roofY": 80.384, - "wallCount": 48, - "roofCount": 29 - }, - { - "id": "sion_1375", - "uuid": "{866AC5D1-E1C3-4332-BB9E-2D77D8BBD297}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -230.293, - 35.26, - -89.677 - ], - "size": [ - 46.992, - 17.823, - 33.372 - ], - "groundY": 26.349, - "roofY": 44.172, - "wallCount": 49, - "roofCount": 25 - }, - { - "id": "sion_1376", - "uuid": "{35AA14F2-162B-4E66-AB41-1F0F5FFF4737}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -220.752, - 18.182, - 281.689 - ], - "size": [ - 16.965, - 10.248, - 13.772 - ], - "groundY": 13.058, - "roofY": 23.306, - "wallCount": 36, - "roofCount": 23 - }, - { - "id": "sion_1377", - "uuid": "{87C372EB-C45C-4C4D-A4FF-96F7FCDBA53E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 851.408, - 12.363, - -249.089 - ], - "size": [ - 20.012, - 19.462, - 39.893 - ], - "groundY": 2.632, - "roofY": 22.094, - "wallCount": 110, - "roofCount": 20 - }, - { - "id": "sion_1378", - "uuid": "{DC2CBA79-BABF-49A0-9461-FE52D86260B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 305.033, - 17.129, - 64.889 - ], - "size": [ - 22.871, - 16.747, - 13.414 - ], - "groundY": 8.756, - "roofY": 25.503, - "wallCount": 32, - "roofCount": 9 - }, - { - "id": "sion_1379", - "uuid": "{6D90B091-681A-45E2-8E93-3DCC70E816C5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -247.227, - 42.142, - -324.736 - ], - "size": [ - 15.734, - 11.01, - 12.718 - ], - "groundY": 36.637, - "roofY": 47.647, - "wallCount": 10, - "roofCount": 15 - }, - { - "id": "sion_1380", - "uuid": "{B670AD0D-FA24-44F5-86B0-02C0440EC8B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 692.127, - 14.473, - 969.532 - ], - "size": [ - 20.488, - 15.684, - 21.55 - ], - "groundY": 6.631, - "roofY": 22.315, - "wallCount": 48, - "roofCount": 12 - }, - { - "id": "sion_1381", - "uuid": "{87EF1DF3-6D2A-4C9F-A232-83E535D7C3A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1035.205, - 11.498, - 272.063 - ], - "size": [ - 12.465, - 14.228, - 17.093 - ], - "groundY": 4.384, - "roofY": 18.612, - "wallCount": 53, - "roofCount": 20 - }, - { - "id": "sion_1382", - "uuid": "{8FA31D67-2A6F-4539-8387-2A8AF692B05D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -240.604, - 39.32, - -131.45 - ], - "size": [ - 32.246, - 23.546, - 43.752 - ], - "groundY": 27.547, - "roofY": 51.093, - "wallCount": 76, - "roofCount": 108 - }, - { - "id": "sion_1383", - "uuid": "{291434C2-26EC-4B41-9117-40A3ECC124FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -130.641, - 49.205, - -374.911 - ], - "size": [ - 75.016, - 25.78, - 118.795 - ], - "groundY": 36.315, - "roofY": 62.095, - "wallCount": 243, - "roofCount": 220 - }, - { - "id": "sion_1384", - "uuid": "{7C13F8EF-7ECD-421A-B1EB-9E6AADB77280}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 898.662, - 8.268, - 493.406 - ], - "size": [ - 46.004, - 8.046, - 58.042 - ], - "groundY": 4.245, - "roofY": 12.291, - "wallCount": 57, - "roofCount": 24 - }, - { - "id": "sion_1385", - "uuid": "{C098363C-AFB7-4C64-A078-5FF51AC9BDDE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 180.334, - 7.775, - 932.092 - ], - "size": [ - 29.09, - 8.536, - 29.75 - ], - "groundY": 3.507, - "roofY": 12.043, - "wallCount": 27, - "roofCount": 28 - }, - { - "id": "sion_1386", - "uuid": "{CE9F78AD-54DB-4C47-A7BC-92CC420B129F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 6.279, - 66.856, - -338.025 - ], - "size": [ - 12.402, - 16.144, - 17.664 - ], - "groundY": 58.784, - "roofY": 74.928, - "wallCount": 43, - "roofCount": 13 - }, - { - "id": "sion_1387", - "uuid": "{458F5285-DF8E-4CA9-999A-F683B9C990E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 640.277, - 8.354, - 589.079 - ], - "size": [ - 59.031, - 11.039, - 44.736 - ], - "groundY": 2.835, - "roofY": 13.874, - "wallCount": 28, - "roofCount": 14 - }, - { - "id": "sion_1388", - "uuid": "{6E04E76F-BEA0-4512-9169-CEF55DBA447E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -58.85, - 56.825, - -253.977 - ], - "size": [ - 59.566, - 27.65, - 68.405 - ], - "groundY": 43.0, - "roofY": 70.65, - "wallCount": 134, - "roofCount": 137 - }, - { - "id": "sion_1389", - "uuid": "{1A2914A5-17A1-4033-8202-5AB917A3CB81}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 60.846, - 132.855, - -1141.907 - ], - "size": [ - 4.551, - 6.728, - 3.967 - ], - "groundY": 129.491, - "roofY": 136.219, - "wallCount": 36, - "roofCount": 4 - }, - { - "id": "sion_1390", - "uuid": "{2FBEDE60-3794-4DDA-AA31-B194E1FB4300}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -228.516, - 15.49, - 640.906 - ], - "size": [ - 37.836, - 30.642, - 52.4 - ], - "groundY": 0.169, - "roofY": 30.811, - "wallCount": 94, - "roofCount": 30 - }, - { - "id": "sion_1391", - "uuid": "{1B367FBE-C959-4014-AC61-4976BAFE6DB3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -26.559, - 61.95, - -759.929 - ], - "size": [ - 11.852, - 5.232, - 11.229 - ], - "groundY": 59.334, - "roofY": 64.566, - "wallCount": 39, - "roofCount": 17 - }, - { - "id": "sion_1392", - "uuid": "{2611F3E9-003E-4C9C-8160-FD77E3E154BB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 131.674, - 59.584, - -682.991 - ], - "size": [ - 16.301, - 12.776, - 19.268 - ], - "groundY": 53.196, - "roofY": 65.972, - "wallCount": 23, - "roofCount": 8 - }, - { - "id": "sion_1393", - "uuid": "{C354BB7E-311C-48E1-95BD-EB7D8E8670E9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1466.414, - 11.642, - -33.462 - ], - "size": [ - 12.023, - 9.959, - 16.964 - ], - "groundY": 6.663, - "roofY": 16.622, - "wallCount": 54, - "roofCount": 24 - }, - { - "id": "sion_1394", - "uuid": "{BB7263AB-81A4-4F50-96C3-8B61904D0043}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 0.258, - 85.2, - -370.261 - ], - "size": [ - 33.422, - 9.334, - 31.24 - ], - "groundY": 80.533, - "roofY": 89.867, - "wallCount": 37, - "roofCount": 14 - }, - { - "id": "sion_1395", - "uuid": "{79E0D712-0AF5-437C-98C8-35B3F5EB09FD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 536.199, - 6.632, - 471.571 - ], - "size": [ - 28.188, - 8.306, - 41.95 - ], - "groundY": 2.479, - "roofY": 10.785, - "wallCount": 43, - "roofCount": 20 - }, - { - "id": "sion_1396", - "uuid": "{4DC7A988-3A99-4E74-8ADF-64C3B6453022}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -111.035, - 195.026, - -1485.697 - ], - "size": [ - 19.555, - 13.576, - 28.472 - ], - "groundY": 188.238, - "roofY": 201.814, - "wallCount": 78, - "roofCount": 26 - }, - { - "id": "sion_1397", - "uuid": "{7AE4BEB0-13A8-4338-B5CE-CD68C14191B2}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -126.574, - 10.013, - 603.272 - ], - "size": [ - 28.484, - 0.101, - 18.813 - ], - "groundY": 9.963, - "roofY": 10.063, - "wallCount": 2, - "roofCount": 2 - }, - { - "id": "sion_1398", - "uuid": "{C20010E1-7B99-4CED-853F-CA711756E40B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 487.227, - 7.61, - 913.411 - ], - "size": [ - 10.461, - 7.374, - 14.468 - ], - "groundY": 3.923, - "roofY": 11.297, - "wallCount": 35, - "roofCount": 4 - }, - { - "id": "sion_1399", - "uuid": "{32419A30-F7C6-4E46-AEEF-5D67F9ED1345}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -274.729, - 76.32, - -931.477 - ], - "size": [ - 45.606, - 10.169, - 41.832 - ], - "groundY": 71.236, - "roofY": 81.405, - "wallCount": 20, - "roofCount": 31 - }, - { - "id": "sion_1400", - "uuid": "{4E9052ED-0473-4CA7-A0A6-42EB068A2253}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 129.176, - 64.823, - -887.086 - ], - "size": [ - 33.078, - 7.843, - 17.897 - ], - "groundY": 60.902, - "roofY": 68.745, - "wallCount": 10, - "roofCount": 26 - }, - { - "id": "sion_1401", - "uuid": "{73FD8DA1-50B9-4CDD-896D-8A9F3974DFCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1497.082, - 12.276, - -23.431 - ], - "size": [ - 11.234, - 9.706, - 11.924 - ], - "groundY": 7.423, - "roofY": 17.129, - "wallCount": 60, - "roofCount": 25 - }, - { - "id": "sion_1402", - "uuid": "{A0118980-4FDF-4F4C-BCED-74E010D8A77C}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 947.266, - 9.551, - 583.958 - ], - "size": [ - 34.102, - 11.619, - 51.549 - ], - "groundY": 3.741, - "roofY": 15.36, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1403", - "uuid": "{F7E019B1-D1D8-4CAB-855D-2ADDD6923966}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 244.256, - 56.06, - -722.618 - ], - "size": [ - 18.082, - 8.397, - 16.176 - ], - "groundY": 51.862, - "roofY": 60.259, - "wallCount": 23, - "roofCount": 14 - }, - { - "id": "sion_1404", - "uuid": "{5B89650A-836C-4036-8181-E2E8153D425B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 828.225, - 10.866, - 818.005 - ], - "size": [ - 58.582, - 12.283, - 75.928 - ], - "groundY": 4.725, - "roofY": 17.007, - "wallCount": 29, - "roofCount": 18 - }, - { - "id": "sion_1405", - "uuid": "{C1529F0A-163F-4388-B26F-6A1D710C4B4B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 223.717, - 9.765, - 1028.028 - ], - "size": [ - 87.527, - 14.512, - 81.328 - ], - "groundY": 2.509, - "roofY": 17.021, - "wallCount": 35, - "roofCount": 15 - }, - { - "id": "sion_1406", - "uuid": "{77414659-4ABD-4486-BF9B-F7B0A0014D85}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 647.227, - 14.502, - -8.461 - ], - "size": [ - 20.469, - 22.768, - 21.484 - ], - "groundY": 3.118, - "roofY": 25.886, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1407", - "uuid": "{11E3BE0F-9018-42C6-A4A8-5FBA46339BD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 588.949, - 98.8, - -1114.822 - ], - "size": [ - 4.93, - 5.412, - 4.466 - ], - "groundY": 96.094, - "roofY": 101.506, - "wallCount": 16, - "roofCount": 8 - }, - { - "id": "sion_1408", - "uuid": "{1EB683B1-1519-4941-9FCE-F763612D340B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 304.805, - 13.594, - 378.379 - ], - "size": [ - 81.078, - 22.372, - 54.273 - ], - "groundY": 2.408, - "roofY": 24.78, - "wallCount": 43, - "roofCount": 13 - }, - { - "id": "sion_1409", - "uuid": "{FE9D4039-35EE-4014-BDA6-A4AF6B458DA4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 359.529, - 7.651, - 785.858 - ], - "size": [ - 48.91, - 10.859, - 37.882 - ], - "groundY": 2.222, - "roofY": 13.081, - "wallCount": 10, - "roofCount": 9 - }, - { - "id": "sion_1410", - "uuid": "{B51A65D3-6F41-4067-93C4-813192C3602B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 273.615, - 13.946, - 186.109 - ], - "size": [ - 19.574, - 6.67, - 22.263 - ], - "groundY": 10.611, - "roofY": 17.281, - "wallCount": 15, - "roofCount": 4 - }, - { - "id": "sion_1411", - "uuid": "{A2254719-9E41-4F43-9B26-3DDE2675D1F8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 429.74, - 8.312, - 1038.155 - ], - "size": [ - 44.496, - 10.096, - 40.738 - ], - "groundY": 3.264, - "roofY": 13.36, - "wallCount": 44, - "roofCount": 16 - }, - { - "id": "sion_1412", - "uuid": "{54A64E36-D0A9-4340-8820-95ACE764194D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -210.844, - 76.007, - -988.57 - ], - "size": [ - 14.906, - 5.542, - 17.128 - ], - "groundY": 73.236, - "roofY": 78.778, - "wallCount": 18, - "roofCount": 3 - }, - { - "id": "sion_1413", - "uuid": "{90B03667-C36E-4813-BA1D-493881C2221B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 180.434, - 19.501, - 279.26 - ], - "size": [ - 71.617, - 27.592, - 101.302 - ], - "groundY": 5.705, - "roofY": 33.297, - "wallCount": 87, - "roofCount": 45 - }, - { - "id": "sion_1414", - "uuid": "{F0D128EA-10E8-433A-92A8-17F486DA3BB9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 463.818, - 11.576, - 392.17 - ], - "size": [ - 42.606, - 13.483, - 51.848 - ], - "groundY": 4.835, - "roofY": 18.318, - "wallCount": 23, - "roofCount": 26 - }, - { - "id": "sion_1415", - "uuid": "{4D2B6D53-48EB-443A-99BF-4874A541E067}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1442.023, - 25.276, - 189.925 - ], - "size": [ - 14.641, - 34.324, - 20.698 - ], - "groundY": 8.114, - "roofY": 42.438, - "wallCount": 119, - "roofCount": 32 - }, - { - "id": "sion_1416", - "uuid": "{5EFDBEA1-1990-4E31-82AB-AF2BFD418081}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 613.018, - 228.585, - -1482.908 - ], - "size": [ - 50.887, - 18.113, - 28.864 - ], - "groundY": 219.529, - "roofY": 237.642, - "wallCount": 69, - "roofCount": 59 - }, - { - "id": "sion_1417", - "uuid": "{F3BD8EF3-AC0B-4034-AFF0-C4DEBE3B4C5B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 248.145, - 62.462, - -840.269 - ], - "size": [ - 24.445, - 9.987, - 13.128 - ], - "groundY": 57.469, - "roofY": 67.456, - "wallCount": 27, - "roofCount": 32 - }, - { - "id": "sion_1418", - "uuid": "{15387AD5-FE81-4D82-A21F-C3903F53FDF3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 249.658, - 19.47, - 194.575 - ], - "size": [ - 17.027, - 15.692, - 17.988 - ], - "groundY": 11.624, - "roofY": 27.316, - "wallCount": 20, - "roofCount": 11 - }, - { - "id": "sion_1419", - "uuid": "{FCC1FE1D-872E-4CDC-9517-43B747FCF41B}", - "name": "", - "class": "Unterirdisches Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 824.357, - 17.675, - -454.813 - ], - "size": [ - 32.301, - 27.949, - 24.286 - ], - "groundY": 3.7, - "roofY": 31.649, - "wallCount": 109, - "roofCount": 29 - }, - { - "id": "sion_1420", - "uuid": "{3762A0F3-1F8F-4452-A1E1-1F548F91859F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 535.674, - 106.845, - -1118.521 - ], - "size": [ - 5.965, - 8.31, - 5.513 - ], - "groundY": 102.69, - "roofY": 110.999, - "wallCount": 49, - "roofCount": 6 - }, - { - "id": "sion_1421", - "uuid": "{DAB4C98F-3A8F-4145-B36D-1E5C89717CDC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -201.68, - 45.54, - -310.102 - ], - "size": [ - 28.281, - 23.646, - 51.448 - ], - "groundY": 33.717, - "roofY": 57.363, - "wallCount": 122, - "roofCount": 86 - }, - { - "id": "sion_1422", - "uuid": "{47CCB510-8B10-4C5C-8C7F-5A51C9212B24}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 448.016, - 56.248, - -882.812 - ], - "size": [ - 11.461, - 11.209, - 13.628 - ], - "groundY": 50.644, - "roofY": 61.853, - "wallCount": 28, - "roofCount": 12 - }, - { - "id": "sion_1423", - "uuid": "{213314B4-9AC7-4275-BBB9-9B735BD12CD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -217.853, - 41.529, - -326.805 - ], - "size": [ - 13.824, - 11.293, - 20.492 - ], - "groundY": 35.883, - "roofY": 47.176, - "wallCount": 44, - "roofCount": 19 - }, - { - "id": "sion_1424", - "uuid": "{E36A1C8D-27B2-44B3-BF96-6561DD1BEAE1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 174.193, - 11.864, - 576.446 - ], - "size": [ - 51.809, - 22.67, - 70.438 - ], - "groundY": 0.529, - "roofY": 23.199, - "wallCount": 64, - "roofCount": 36 - }, - { - "id": "sion_1425", - "uuid": "{8AF3FFD5-4ED6-4014-A42C-11DD54471B8A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 330.918, - 213.463, - -1319.296 - ], - "size": [ - 19.156, - 11.314, - 12.154 - ], - "groundY": 207.806, - "roofY": 219.12, - "wallCount": 34, - "roofCount": 26 - }, - { - "id": "sion_1426", - "uuid": "{82F5F61D-8F13-4EC7-978B-910BB7F9B4B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -299.816, - 43.643, - -289.654 - ], - "size": [ - 20.242, - 17.047, - 18.348 - ], - "groundY": 35.12, - "roofY": 52.167, - "wallCount": 21, - "roofCount": 25 - }, - { - "id": "sion_1427", - "uuid": "{4F044913-6246-4270-BBF7-47155C504136}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 503.746, - 150.565, - -1206.089 - ], - "size": [ - 3.945, - 6.923, - 4.102 - ], - "groundY": 147.103, - "roofY": 154.026, - "wallCount": 24, - "roofCount": 3 - }, - { - "id": "sion_1428", - "uuid": "{75EE7C64-4669-4BC4-B25B-2716D891E42F}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -16.164, - 76.202, - -348.612 - ], - "size": [ - 5.398, - 3.822, - 2.773 - ], - "groundY": 74.291, - "roofY": 78.113, - "wallCount": 26, - "roofCount": 10 - }, - { - "id": "sion_1429", - "uuid": "{C4FE8319-C533-4177-B4E5-5BEF0E1B579D}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 3, - 0 - ], - "center": [ - 312.029, - 208.887, - -1335.239 - ], - "size": [ - 22.215, - 7.179, - 14.776 - ], - "groundY": 205.298, - "roofY": 212.477, - "wallCount": 24, - "roofCount": 8 - }, - { - "id": "sion_1430", - "uuid": "{1B7DD818-E83D-46FF-A655-3548B117FF2D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 250.795, - 81.736, - -987.728 - ], - "size": [ - 58.652, - 17.943, - 22.007 - ], - "groundY": 72.764, - "roofY": 90.707, - "wallCount": 37, - "roofCount": 29 - }, - { - "id": "sion_1431", - "uuid": "{DA0DA9B5-9427-46A2-8C8E-6080B544D4A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1396.701, - 19.135, - 889.835 - ], - "size": [ - 45.738, - 14.304, - 30.863 - ], - "groundY": 11.983, - "roofY": 26.287, - "wallCount": 25, - "roofCount": 31 - }, - { - "id": "sion_1432", - "uuid": "{7C72E624-2356-4106-B60C-68E0C634995F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -284.373, - 67.22, - -728.909 - ], - "size": [ - 40.199, - 16.278, - 35.55 - ], - "groundY": 59.081, - "roofY": 75.359, - "wallCount": 25, - "roofCount": 53 - }, - { - "id": "sion_1433", - "uuid": "{226F2CC9-D1C2-4986-9F25-0F55A38415BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 169.33, - 23.822, - 38.06 - ], - "size": [ - 16.426, - 18.804, - 12.935 - ], - "groundY": 14.42, - "roofY": 33.223, - "wallCount": 29, - "roofCount": 34 - }, - { - "id": "sion_1434", - "uuid": "{85036972-9173-4508-9B22-1F20534C196A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 428.701, - 69.841, - -759.824 - ], - "size": [ - 20.543, - 13.832, - 18.916 - ], - "groundY": 62.925, - "roofY": 76.757, - "wallCount": 32, - "roofCount": 11 - }, - { - "id": "sion_1435", - "uuid": "{79C73373-92B9-48D9-ACE6-7F5C772FECFF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -364.836, - 48.204, - -388.484 - ], - "size": [ - 18.023, - 19.013, - 17.162 - ], - "groundY": 38.697, - "roofY": 57.71, - "wallCount": 25, - "roofCount": 15 - }, - { - "id": "sion_1436", - "uuid": "{3C33FC3B-9B16-4FB0-AC88-1A636CAE5DCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 273.713, - 95.059, - -1052.164 - ], - "size": [ - 24.184, - 16.344, - 25.969 - ], - "groundY": 86.887, - "roofY": 103.231, - "wallCount": 53, - "roofCount": 28 - }, - { - "id": "sion_1437", - "uuid": "{B14AE262-7295-4415-8B10-988D40246873}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 258.129, - 59.083, - -640.902 - ], - "size": [ - 18.742, - 12.301, - 13.292 - ], - "groundY": 52.933, - "roofY": 65.234, - "wallCount": 39, - "roofCount": 19 - }, - { - "id": "sion_1438", - "uuid": "{3B0272E3-BFF3-43BB-B23B-E8CC24F4FF0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 249.291, - 21.092, - 35.94 - ], - "size": [ - 47.551, - 20.203, - 15.757 - ], - "groundY": 10.991, - "roofY": 31.194, - "wallCount": 14, - "roofCount": 7 - }, - { - "id": "sion_1439", - "uuid": "{3364E7F9-02C0-470F-9C75-10CEA4224A24}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -95.881, - 49.676, - -345.558 - ], - "size": [ - 27.856, - 17.115, - 24.1 - ], - "groundY": 41.119, - "roofY": 58.234, - "wallCount": 62, - "roofCount": 33 - }, - { - "id": "sion_1440", - "uuid": "{3891C628-70F7-47CF-89AF-85FBD831E116}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1201.934, - 12.124, - 377.125 - ], - "size": [ - 30.594, - 10.492, - 12.803 - ], - "groundY": 6.878, - "roofY": 17.37, - "wallCount": 25, - "roofCount": 22 - }, - { - "id": "sion_1441", - "uuid": "{6018C750-2B19-4CFF-BE28-497E731C813D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 909.504, - 9.154, - -347.787 - ], - "size": [ - 15.922, - 11.078, - 15.445 - ], - "groundY": 3.615, - "roofY": 14.693, - "wallCount": 25, - "roofCount": 10 - }, - { - "id": "sion_1442", - "uuid": "{5FF85C99-BE9D-41D5-B50F-454C5C4D561C}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 609.291, - 21.084, - 340.237 - ], - "size": [ - 16.731, - 31.752, - 20.99 - ], - "groundY": 5.208, - "roofY": 36.96, - "wallCount": 100, - "roofCount": 16 - }, - { - "id": "sion_1443", - "uuid": "{0F3CD28E-ABBC-491E-BFD9-72451D5046EF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 362.617, - 13.669, - 131.811 - ], - "size": [ - 17.445, - 14.736, - 18.517 - ], - "groundY": 6.301, - "roofY": 21.037, - "wallCount": 37, - "roofCount": 37 - }, - { - "id": "sion_1444", - "uuid": "{E413E9A2-472A-4A57-8A0A-E156559D0826}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1313.484, - 14.725, - 934.963 - ], - "size": [ - 23.68, - 6.368, - 11.704 - ], - "groundY": 11.541, - "roofY": 17.909, - "wallCount": 31, - "roofCount": 14 - }, - { - "id": "sion_1445", - "uuid": "{2152A75A-67E9-4260-B89C-0B213BEC0A49}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 490.105, - 213.535, - -1530.61 - ], - "size": [ - 24.211, - 12.23, - 38.167 - ], - "groundY": 207.42, - "roofY": 219.65, - "wallCount": 26, - "roofCount": 10 - }, - { - "id": "sion_1446", - "uuid": "{2E99BC3E-86F0-44A1-92E3-CB9487CC6FD0}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 494.732, - 75.164, - -367.407 - ], - "size": [ - 16.457, - 13.674, - 91.506 - ], - "groundY": 68.327, - "roofY": 82.001, - "wallCount": 68, - "roofCount": 24 - }, - { - "id": "sion_1447", - "uuid": "{E5588E05-3819-4AF4-A95E-C36FB84B5BD5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1287.316, - 12.612, - 267.091 - ], - "size": [ - 30.281, - 10.615, - 11.618 - ], - "groundY": 7.305, - "roofY": 17.92, - "wallCount": 29, - "roofCount": 29 - }, - { - "id": "sion_1448", - "uuid": "{23309891-7482-4FBD-B929-92BEFB9CB37C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -265.201, - 54.564, - -512.156 - ], - "size": [ - 15.543, - 14.889, - 12.86 - ], - "groundY": 47.12, - "roofY": 62.008, - "wallCount": 38, - "roofCount": 81 - }, - { - "id": "sion_1449", - "uuid": "{6E5267F3-C0EC-46BF-84AE-CDB1634246B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1141.807, - 10.791, - 344.123 - ], - "size": [ - 13.418, - 9.273, - 11.803 - ], - "groundY": 6.155, - "roofY": 15.427, - "wallCount": 27, - "roofCount": 41 - }, - { - "id": "sion_1450", - "uuid": "{38596A7E-6022-4F81-80C6-660D15109412}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 250.713, - 7.445, - 991.114 - ], - "size": [ - 77.121, - 10.042, - 71.822 - ], - "groundY": 2.424, - "roofY": 12.466, - "wallCount": 10, - "roofCount": 17 - }, - { - "id": "sion_1451", - "uuid": "{79664448-F3F6-4C5E-9381-E6433ACE522D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 37.889, - 19.547, - 508.317 - ], - "size": [ - 40.613, - 34.148, - 32.787 - ], - "groundY": 2.473, - "roofY": 36.621, - "wallCount": 29, - "roofCount": 6 - }, - { - "id": "sion_1452", - "uuid": "{672E7B2A-1806-483C-98F7-F06A78E14728}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1417.127, - 18.398, - 316.414 - ], - "size": [ - 20.324, - 21.424, - 55.727 - ], - "groundY": 7.686, - "roofY": 29.11, - "wallCount": 61, - "roofCount": 30 - }, - { - "id": "sion_1453", - "uuid": "{9672E47F-2B6B-44A0-8FF8-F71706756617}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 457.139, - 70.299, - -990.987 - ], - "size": [ - 24.191, - 17.8, - 36.602 - ], - "groundY": 61.399, - "roofY": 79.199, - "wallCount": 72, - "roofCount": 40 - }, - { - "id": "sion_1454", - "uuid": "{43DDC23C-142D-461C-9B6C-FBB1F096D318}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 586.299, - 6.307, - 613.615 - ], - "size": [ - 32.598, - 7.056, - 30.556 - ], - "groundY": 2.779, - "roofY": 9.835, - "wallCount": 32, - "roofCount": 29 - }, - { - "id": "sion_1455", - "uuid": "{8CA58EDD-94BF-4150-953A-38CFCB96FAF0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -264.393, - 36.897, - -70.855 - ], - "size": [ - 53.566, - 23.262, - 39.849 - ], - "groundY": 25.266, - "roofY": 48.528, - "wallCount": 68, - "roofCount": 77 - }, - { - "id": "sion_1456", - "uuid": "{D122B4CA-2959-43E0-8933-3BA5A01672BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 610.168, - 14.901, - 100.694 - ], - "size": [ - 23.664, - 23.633, - 66.94 - ], - "groundY": 3.085, - "roofY": 26.718, - "wallCount": 146, - "roofCount": 24 - }, - { - "id": "sion_1457", - "uuid": "{85EC80DF-1E1A-46CB-8A8B-E3936AE1A233}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1392.035, - 19.314, - 53.07 - ], - "size": [ - 40.18, - 26.108, - 12.242 - ], - "groundY": 6.26, - "roofY": 32.368, - "wallCount": 30, - "roofCount": 4 - }, - { - "id": "sion_1458", - "uuid": "{9E1A3761-FC25-47C0-AED4-DD6942281322}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1502.361, - 12.118, - -49.329 - ], - "size": [ - 15.676, - 10.158, - 21.912 - ], - "groundY": 7.039, - "roofY": 17.197, - "wallCount": 30, - "roofCount": 12 - }, - { - "id": "sion_1459", - "uuid": "{D2726F0A-E2C6-494A-ACBD-3A6A9467C82D}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1440.908, - 24.211, - 266.294 - ], - "size": [ - 18.824, - 33.578, - 20.697 - ], - "groundY": 7.422, - "roofY": 41.0, - "wallCount": 170, - "roofCount": 19 - }, - { - "id": "sion_1460", - "uuid": "{012999DB-AF9E-4EA7-A9D2-3DC3FD836511}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 19.018, - 19.959, - 280.265 - ], - "size": [ - 99.707, - 23.058, - 87.705 - ], - "groundY": 8.43, - "roofY": 31.488, - "wallCount": 150, - "roofCount": 118 - }, - { - "id": "sion_1461", - "uuid": "{2BF1B004-6DD5-4425-817D-EDC0C9283352}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1481.34, - 12.625, - -54.893 - ], - "size": [ - 21.312, - 11.025, - 18.538 - ], - "groundY": 7.113, - "roofY": 18.138, - "wallCount": 63, - "roofCount": 31 - }, - { - "id": "sion_1462", - "uuid": "{934CEB5D-1123-48B2-81DB-DBA79B3753B8}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 786.748, - 19.439, - 147.003 - ], - "size": [ - 25.301, - 32.394, - 24.422 - ], - "groundY": 3.242, - "roofY": 35.636, - "wallCount": 141, - "roofCount": 12 - }, - { - "id": "sion_1463", - "uuid": "{1C4A069D-5F68-4DE5-A0D1-5C66CED5AAE6}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -26.045, - 44.739, - -134.802 - ], - "size": [ - 49.301, - 11.464, - 6.794 - ], - "groundY": 39.007, - "roofY": 50.471, - "wallCount": 62, - "roofCount": 26 - }, - { - "id": "sion_1464", - "uuid": "{6B4F087E-B690-4DD3-8074-2E9164B8FE62}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -245.785, - 34.091, - 47.396 - ], - "size": [ - 80.484, - 27.85, - 87.485 - ], - "groundY": 20.166, - "roofY": 48.016, - "wallCount": 156, - "roofCount": 118 - }, - { - "id": "sion_1465", - "uuid": "{E4F7E4BD-DB8C-402D-96A7-F831C1B4E6C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 200.869, - 6.466, - 558.893 - ], - "size": [ - 28.637, - 11.599, - 37.662 - ], - "groundY": 0.667, - "roofY": 12.266, - "wallCount": 12, - "roofCount": 12 - }, - { - "id": "sion_1466", - "uuid": "{AB2EABED-9B14-46A9-B578-1A918CF5720B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 56.951, - 62.954, - -782.187 - ], - "size": [ - 10.059, - 9.926, - 9.696 - ], - "groundY": 57.991, - "roofY": 67.917, - "wallCount": 27, - "roofCount": 26 - }, - { - "id": "sion_1467", - "uuid": "{A363926C-74CB-4135-9774-3A3E0599EAFE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 319.057, - 65.771, - -855.603 - ], - "size": [ - 18.731, - 10.567, - 14.89 - ], - "groundY": 60.487, - "roofY": 71.054, - "wallCount": 28, - "roofCount": 41 - }, - { - "id": "sion_1468", - "uuid": "{385C96D1-F74C-4614-A79E-2AC9DEF2AD3E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -115.781, - 85.381, - -989.968 - ], - "size": [ - 15.101, - 15.34, - 11.03 - ], - "groundY": 77.711, - "roofY": 93.05, - "wallCount": 50, - "roofCount": 32 - }, - { - "id": "sion_1469", - "uuid": "{C7675116-1724-4FED-B172-7B5F8EDB3CA3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 378.77, - 206.335, - -1504.45 - ], - "size": [ - 18.18, - 12.443, - 23.836 - ], - "groundY": 200.114, - "roofY": 212.557, - "wallCount": 56, - "roofCount": 25 - }, - { - "id": "sion_1470", - "uuid": "{0CF39C01-716C-4AEA-B653-712FA36091A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 244.637, - 20.425, - -34.209 - ], - "size": [ - 45.938, - 21.193, - 28.168 - ], - "groundY": 9.829, - "roofY": 31.022, - "wallCount": 17, - "roofCount": 45 - }, - { - "id": "sion_1471", - "uuid": "{A0DDFAE6-1221-4483-BBA3-36FE1AEDEEB1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1439.471, - 21.182, - 152.975 - ], - "size": [ - 14.332, - 24.925, - 21.548 - ], - "groundY": 8.72, - "roofY": 33.645, - "wallCount": 132, - "roofCount": 21 - }, - { - "id": "sion_1472", - "uuid": "{AAD1C63D-6F96-4CB2-8EC5-AC6987A820BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 676.283, - 12.631, - 105.678 - ], - "size": [ - 14.746, - 20.253, - 50.186 - ], - "groundY": 2.505, - "roofY": 22.758, - "wallCount": 105, - "roofCount": 13 - }, - { - "id": "sion_1473", - "uuid": "{E4CBAEE2-4F3E-44B0-88FE-C8667D4A8E2A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1399.936, - 14.298, - 421.197 - ], - "size": [ - 60.559, - 13.657, - 109.977 - ], - "groundY": 7.47, - "roofY": 21.127, - "wallCount": 75, - "roofCount": 69 - }, - { - "id": "sion_1474", - "uuid": "{6456C51F-7D1A-40D9-A431-5108CFC0EC06}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1127.061, - 13.792, - 261.967 - ], - "size": [ - 30.176, - 18.744, - 32.864 - ], - "groundY": 4.42, - "roofY": 23.164, - "wallCount": 86, - "roofCount": 26 - }, - { - "id": "sion_1475", - "uuid": "{CA5A4095-402C-4580-AD57-9FEB790829B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -65.865, - 50.869, - -342.448 - ], - "size": [ - 12.981, - 12.809, - 15.776 - ], - "groundY": 44.465, - "roofY": 57.274, - "wallCount": 19, - "roofCount": 15 - }, - { - "id": "sion_1476", - "uuid": "{8165B912-A2E3-47CE-8EF2-C8899B4DD9BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 188.566, - 68.513, - -872.376 - ], - "size": [ - 40.094, - 18.932, - 23.477 - ], - "groundY": 59.047, - "roofY": 77.979, - "wallCount": 20, - "roofCount": 25 - }, - { - "id": "sion_1477", - "uuid": "{76DFBE44-0733-4840-BC84-C3C982D5FA14}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 238.969, - 19.607, - 183.471 - ], - "size": [ - 18.266, - 15.413, - 17.584 - ], - "groundY": 11.901, - "roofY": 27.314, - "wallCount": 25, - "roofCount": 8 - }, - { - "id": "sion_1478", - "uuid": "{2BA144EC-753C-4110-A582-762570F7B941}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -256.791, - 43.0, - -345.028 - ], - "size": [ - 16.207, - 12.33, - 19.412 - ], - "groundY": 36.835, - "roofY": 49.165, - "wallCount": 35, - "roofCount": 10 - }, - { - "id": "sion_1479", - "uuid": "{F62F90D5-7D72-4AA2-B990-AF19E7366697}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -253.162, - 74.863, - -869.268 - ], - "size": [ - 15.145, - 11.412, - 13.836 - ], - "groundY": 69.157, - "roofY": 80.569, - "wallCount": 49, - "roofCount": 22 - }, - { - "id": "sion_1480", - "uuid": "{F482CD9C-CA98-4E9D-9CA9-FF295D5A86E4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 613.701, - 9.248, - -23.685 - ], - "size": [ - 14.887, - 10.928, - 34.8 - ], - "groundY": 3.784, - "roofY": 14.712, - "wallCount": 14, - "roofCount": 20 - }, - { - "id": "sion_1481", - "uuid": "{17FB3350-AFE1-457F-918A-9C69A3B108BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 158.748, - 58.834, - -664.159 - ], - "size": [ - 23.246, - 9.149, - 15.696 - ], - "groundY": 54.26, - "roofY": 63.408, - "wallCount": 32, - "roofCount": 8 - }, - { - "id": "sion_1482", - "uuid": "{D78CB542-5B80-46A0-82D0-39B93D0723BC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 231.053, - 58.872, - -807.954 - ], - "size": [ - 22.449, - 12.884, - 17.637 - ], - "groundY": 52.43, - "roofY": 65.314, - "wallCount": 31, - "roofCount": 16 - }, - { - "id": "sion_1483", - "uuid": "{F3802D7B-165F-414A-BCF2-4C12314C3402}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 588.25, - 9.556, - 517.314 - ], - "size": [ - 88.344, - 13.986, - 92.007 - ], - "groundY": 2.563, - "roofY": 16.549, - "wallCount": 16, - "roofCount": 15 - }, - { - "id": "sion_1484", - "uuid": "{DC16CC61-6191-4D4A-B812-AEB50EEBF870}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 711.252, - 6.899, - 266.086 - ], - "size": [ - 14.387, - 9.667, - 13.932 - ], - "groundY": 2.066, - "roofY": 11.733, - "wallCount": 20, - "roofCount": 10 - }, - { - "id": "sion_1485", - "uuid": "{D86448D0-C4D2-4EEC-8A51-CCFEC21BA5DA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 336.268, - 204.992, - -1521.652 - ], - "size": [ - 27.77, - 9.78, - 12.569 - ], - "groundY": 200.102, - "roofY": 209.882, - "wallCount": 33, - "roofCount": 33 - }, - { - "id": "sion_1486", - "uuid": "{6C69E93E-AE29-4544-9CF3-946C6D6E5C7B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 331.105, - 214.419, - -1357.434 - ], - "size": [ - 18.18, - 12.822, - 19.644 - ], - "groundY": 208.008, - "roofY": 220.83, - "wallCount": 38, - "roofCount": 20 - }, - { - "id": "sion_1487", - "uuid": "{004861AD-AE97-4105-A405-C10C4D23E963}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -323.883, - 33.285, - 12.93 - ], - "size": [ - 51.836, - 24.778, - 39.94 - ], - "groundY": 20.896, - "roofY": 45.674, - "wallCount": 36, - "roofCount": 48 - }, - { - "id": "sion_1488", - "uuid": "{74D54D48-3FF5-4863-BC43-93240988755C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -95.768, - 48.341, - -321.595 - ], - "size": [ - 23.871, - 12.4, - 20.54 - ], - "groundY": 42.141, - "roofY": 54.541, - "wallCount": 25, - "roofCount": 7 - }, - { - "id": "sion_1489", - "uuid": "{23A34EFB-AB32-40E6-AC14-3EE275F38E72}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1483.625, - 12.293, - -27.263 - ], - "size": [ - 10.984, - 9.668, - 12.731 - ], - "groundY": 7.459, - "roofY": 17.127, - "wallCount": 43, - "roofCount": 16 - }, - { - "id": "sion_1490", - "uuid": "{8D5BAB38-255D-426A-940F-EA327CF9C18C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 1 - ], - "center": [ - 956.098, - 16.535, - -585.41 - ], - "size": [ - 41.148, - 23.946, - 30.854 - ], - "groundY": 4.562, - "roofY": 28.508, - "wallCount": 132, - "roofCount": 25 - }, - { - "id": "sion_1491", - "uuid": "{AE95EEAA-40B7-4909-9A5B-51774A6B43FB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -216.201, - 79.509, - -974.271 - ], - "size": [ - 14.246, - 14.019, - 16.733 - ], - "groundY": 72.5, - "roofY": 86.519, - "wallCount": 58, - "roofCount": 34 - }, - { - "id": "sion_1492", - "uuid": "{D188BFFB-6060-4B59-AF81-AAC83C1E0490}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -169.703, - 59.248, - -606.571 - ], - "size": [ - 30.531, - 21.875, - 46.23 - ], - "groundY": 48.311, - "roofY": 70.185, - "wallCount": 76, - "roofCount": 39 - }, - { - "id": "sion_1493", - "uuid": "{7029AD5A-027E-4961-9221-FA9149CC5870}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -206.4, - 46.452, - -383.401 - ], - "size": [ - 50.488, - 19.777, - 19.731 - ], - "groundY": 36.564, - "roofY": 56.341, - "wallCount": 110, - "roofCount": 60 - }, - { - "id": "sion_1494", - "uuid": "{AA133F8E-FB2F-4A79-AB45-59B061DC2359}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 4.473, - 62.733, - -310.83 - ], - "size": [ - 25.0, - 14.103, - 27.992 - ], - "groundY": 55.682, - "roofY": 69.785, - "wallCount": 69, - "roofCount": 33 - }, - { - "id": "sion_1495", - "uuid": "{13A82603-F75B-41E2-9655-4721078EE19E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 670.25, - 14.276, - 235.882 - ], - "size": [ - 20.672, - 24.768, - 20.565 - ], - "groundY": 1.892, - "roofY": 26.66, - "wallCount": 60, - "roofCount": 8 - }, - { - "id": "sion_1496", - "uuid": "{1E980E19-C3B6-4A43-B89A-96CD03D8DE18}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1065.729, - 9.023, - 271.413 - ], - "size": [ - 22.316, - 11.521, - 17.868 - ], - "groundY": 3.263, - "roofY": 14.784, - "wallCount": 71, - "roofCount": 32 - }, - { - "id": "sion_1497", - "uuid": "{22347373-7953-467C-A9A2-9F8D686A7032}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 83.055, - 19.111, - 261.365 - ], - "size": [ - 18.789, - 19.174, - 17.85 - ], - "groundY": 9.524, - "roofY": 28.698, - "wallCount": 54, - "roofCount": 56 - }, - { - "id": "sion_1498", - "uuid": "{7F1F74EE-1DC4-4FF7-8283-0F5158CAD122}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -275.391, - 4.467, - 885.428 - ], - "size": [ - 22.984, - 8.82, - 42.622 - ], - "groundY": 0.057, - "roofY": 8.877, - "wallCount": 35, - "roofCount": 20 - }, - { - "id": "sion_1499", - "uuid": "{A60519A4-3B9C-4418-80CB-B65A4C65F57B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -366.826, - 4.327, - 712.955 - ], - "size": [ - 20.637, - 10.988, - 14.635 - ], - "groundY": -1.167, - "roofY": 9.821, - "wallCount": 23, - "roofCount": 16 - }, - { - "id": "sion_1500", - "uuid": "{D0356BE8-CA59-42D0-BABC-7C95FFDC0E5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -347.113, - 18.869, - 387.625 - ], - "size": [ - 95.297, - 29.372, - 52.645 - ], - "groundY": 4.183, - "roofY": 33.555, - "wallCount": 154, - "roofCount": 183 - }, - { - "id": "sion_1501", - "uuid": "{BF5746AA-34D3-4675-A880-017213D963C1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 482.145, - 223.196, - -1456.011 - ], - "size": [ - 47.07, - 16.534, - 34.584 - ], - "groundY": 214.929, - "roofY": 231.463, - "wallCount": 30, - "roofCount": 23 - }, - { - "id": "sion_1502", - "uuid": "{C8027298-1DF8-4106-9556-AA7D4490511C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 689.367, - 44.198, - -873.336 - ], - "size": [ - 11.695, - 8.116, - 23.574 - ], - "groundY": 40.14, - "roofY": 48.256, - "wallCount": 42, - "roofCount": 9 - }, - { - "id": "sion_1503", - "uuid": "{54D1BDD1-5A47-4FC3-95D4-21AB4FF3DF39}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -35.377, - 78.108, - -934.463 - ], - "size": [ - 18.902, - 18.851, - 32.91 - ], - "groundY": 68.683, - "roofY": 87.534, - "wallCount": 20, - "roofCount": 25 - }, - { - "id": "sion_1504", - "uuid": "{4645CE4E-9145-48BC-AEFD-BBB03E37DA3F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 821.506, - 7.781, - 421.12 - ], - "size": [ - 10.426, - 9.246, - 9.221 - ], - "groundY": 3.158, - "roofY": 12.404, - "wallCount": 57, - "roofCount": 2 - }, - { - "id": "sion_1505", - "uuid": "{27916786-6A8D-43C7-90B7-30B3F6FFE86D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1065.232, - 11.611, - 234.136 - ], - "size": [ - 34.832, - 15.109, - 34.138 - ], - "groundY": 4.057, - "roofY": 19.166, - "wallCount": 63, - "roofCount": 24 - }, - { - "id": "sion_1506", - "uuid": "{AE9E1D85-B797-4685-A43B-1B63B8C345BF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 0 - ], - "center": [ - 1074.875, - 10.294, - -1093.668 - ], - "size": [ - 57.422, - 10.381, - 55.771 - ], - "groundY": 5.103, - "roofY": 15.484, - "wallCount": 38, - "roofCount": 16 - }, - { - "id": "sion_1507", - "uuid": "{A9185167-0F99-49D7-92D7-8737EAA3703C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 64.895, - 61.983, - -748.663 - ], - "size": [ - 28.805, - 13.41, - 26.248 - ], - "groundY": 55.278, - "roofY": 68.688, - "wallCount": 31, - "roofCount": 15 - }, - { - "id": "sion_1508", - "uuid": "{A585213C-0701-47BA-BAE7-10DE02B64314}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -358.955, - 7.437, - 512.377 - ], - "size": [ - 15.754, - 5.15, - 9.154 - ], - "groundY": 4.862, - "roofY": 10.012, - "wallCount": 20, - "roofCount": 2 - }, - { - "id": "sion_1509", - "uuid": "{8CCF369F-0992-42F3-833E-5B8AE9D9D5B4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -87.951, - 71.117, - -758.806 - ], - "size": [ - 16.02, - 19.684, - 14.156 - ], - "groundY": 61.275, - "roofY": 80.959, - "wallCount": 67, - "roofCount": 81 - }, - { - "id": "sion_1510", - "uuid": "{0BDE05D8-BBBB-4728-961A-D2926D5779F3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 332.535, - 19.925, - 121.216 - ], - "size": [ - 35.703, - 24.21, - 30.768 - ], - "groundY": 7.82, - "roofY": 32.03, - "wallCount": 42, - "roofCount": 13 - }, - { - "id": "sion_1511", - "uuid": "{2333E4F7-7F06-4F58-B25F-F63AAD2191BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 411.223, - 93.956, - -1076.316 - ], - "size": [ - 22.742, - 7.86, - 11.679 - ], - "groundY": 90.026, - "roofY": 97.886, - "wallCount": 46, - "roofCount": 14 - }, - { - "id": "sion_1512", - "uuid": "{74DC5BAA-2970-4A29-9E77-E136A5649226}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 836.662, - 14.404, - -347.814 - ], - "size": [ - 21.676, - 22.268, - 15.923 - ], - "groundY": 3.27, - "roofY": 25.538, - "wallCount": 104, - "roofCount": 31 - }, - { - "id": "sion_1513", - "uuid": "{CF43E5C1-A235-419B-B5D2-F0A9E4FB7285}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1481.18, - 16.112, - 29.308 - ], - "size": [ - 23.383, - 15.61, - 41.172 - ], - "groundY": 8.307, - "roofY": 23.916, - "wallCount": 26, - "roofCount": 30 - }, - { - "id": "sion_1514", - "uuid": "{3396500E-35A3-488B-8BC9-D91237545849}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 938.08, - 7.528, - 188.243 - ], - "size": [ - 18.418, - 6.644, - 19.668 - ], - "groundY": 4.206, - "roofY": 10.85, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_1515", - "uuid": "{BE4E76CB-FE03-4CB2-9E02-471BD7F7C9D7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -181.213, - 79.29, - -954.702 - ], - "size": [ - 11.941, - 15.144, - 14.49 - ], - "groundY": 71.718, - "roofY": 86.862, - "wallCount": 45, - "roofCount": 46 - }, - { - "id": "sion_1516", - "uuid": "{11210E62-3F65-47EA-8E2C-CAC6EA86178B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -253.619, - 26.962, - 214.357 - ], - "size": [ - 23.035, - 24.156, - 19.61 - ], - "groundY": 14.884, - "roofY": 39.04, - "wallCount": 66, - "roofCount": 73 - }, - { - "id": "sion_1517", - "uuid": "{FB181C8A-A456-4C59-9EAB-0AEB242674A5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 345.945, - 14.225, - 162.217 - ], - "size": [ - 17.18, - 13.093, - 17.29 - ], - "groundY": 7.679, - "roofY": 20.772, - "wallCount": 13, - "roofCount": 18 - }, - { - "id": "sion_1518", - "uuid": "{A1EB1532-B9D3-4C40-BD00-19571856BBFE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 803.736, - 8.998, - 572.032 - ], - "size": [ - 23.84, - 8.986, - 24.196 - ], - "groundY": 4.505, - "roofY": 13.491, - "wallCount": 30, - "roofCount": 7 - }, - { - "id": "sion_1519", - "uuid": "{DAFD0B6F-2A15-4CC2-8A5E-8FBB738BA76F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -65.389, - 60.026, - -579.584 - ], - "size": [ - 29.957, - 20.91, - 34.393 - ], - "groundY": 49.571, - "roofY": 70.481, - "wallCount": 32, - "roofCount": 17 - }, - { - "id": "sion_1520", - "uuid": "{DE824821-50B2-4283-B8E4-CB17F73B8F1D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -104.357, - 34.588, - -63.588 - ], - "size": [ - 51.23, - 23.037, - 58.08 - ], - "groundY": 23.07, - "roofY": 46.106, - "wallCount": 206, - "roofCount": 128 - }, - { - "id": "sion_1521", - "uuid": "{D91B59AB-3DD9-44E0-A5D9-A7EFED8C230E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 477.779, - 218.507, - -1329.62 - ], - "size": [ - 19.949, - 12.021, - 18.113 - ], - "groundY": 212.497, - "roofY": 224.518, - "wallCount": 44, - "roofCount": 23 - }, - { - "id": "sion_1522", - "uuid": "{9759B46C-9782-4A38-8F7D-D7BBD5260B15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 221.861, - 185.418, - -1490.767 - ], - "size": [ - 23.02, - 7.678, - 16.886 - ], - "groundY": 181.579, - "roofY": 189.257, - "wallCount": 36, - "roofCount": 22 - }, - { - "id": "sion_1523", - "uuid": "{17AA068B-61B9-499B-9B61-AC1A1FAC8B3C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -27.049, - 65.994, - -243.751 - ], - "size": [ - 25.113, - 18.285, - 32.104 - ], - "groundY": 56.852, - "roofY": 75.137, - "wallCount": 96, - "roofCount": 46 - }, - { - "id": "sion_1524", - "uuid": "{B9A925B1-0173-4471-8B5F-A43EB7ACE157}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 67.283, - 26.342, - 124.124 - ], - "size": [ - 69.199, - 23.919, - 70.356 - ], - "groundY": 14.383, - "roofY": 38.302, - "wallCount": 72, - "roofCount": 61 - }, - { - "id": "sion_1525", - "uuid": "{30C5A5F5-F199-4DA1-8370-4EB236DC0656}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -323.018, - 75.887, - -816.681 - ], - "size": [ - 73.418, - 25.271, - 52.576 - ], - "groundY": 63.251, - "roofY": 88.522, - "wallCount": 197, - "roofCount": 140 - }, - { - "id": "sion_1526", - "uuid": "{961082D9-444B-4312-B056-5D1D1AAF3F0C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 268.791, - 9.953, - 458.693 - ], - "size": [ - 44.863, - 11.774, - 28.013 - ], - "groundY": 4.066, - "roofY": 15.84, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1527", - "uuid": "{22F19D2A-5C63-42EC-963B-82F520B1B1BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -215.434, - 58.13, - -603.182 - ], - "size": [ - 14.102, - 15.837, - 14.151 - ], - "groundY": 50.212, - "roofY": 66.048, - "wallCount": 35, - "roofCount": 32 - }, - { - "id": "sion_1528", - "uuid": "{CF6059BE-D230-4A71-8A96-8AAD51BBCB0A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1346.221, - 15.62, - 257.601 - ], - "size": [ - 48.012, - 14.866, - 15.79 - ], - "groundY": 8.187, - "roofY": 23.053, - "wallCount": 18, - "roofCount": 32 - }, - { - "id": "sion_1529", - "uuid": "{57D900BD-A280-4829-AD9D-B2760D6D91F7}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1434.303, - 15.58, - -127.959 - ], - "size": [ - 24.207, - 18.098, - 29.492 - ], - "groundY": 6.531, - "roofY": 24.629, - "wallCount": 36, - "roofCount": 6 - }, - { - "id": "sion_1530", - "uuid": "{405364F7-CBA0-444E-A5C2-10783EE81297}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 74.654, - 63.278, - -788.813 - ], - "size": [ - 14.191, - 10.263, - 13.308 - ], - "groundY": 58.147, - "roofY": 68.41, - "wallCount": 17, - "roofCount": 9 - }, - { - "id": "sion_1531", - "uuid": "{C76C7B24-1C6B-477B-82D7-AF0076ED14D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 350.479, - 94.321, - -1064.66 - ], - "size": [ - 13.269, - 9.338, - 8.75 - ], - "groundY": 89.652, - "roofY": 98.99, - "wallCount": 43, - "roofCount": 10 - }, - { - "id": "sion_1532", - "uuid": "{A4CE49EB-FFB1-4783-BA9A-367A62962DF2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -348.111, - 34.548, - -176.635 - ], - "size": [ - 26.285, - 9.977, - 14.662 - ], - "groundY": 29.559, - "roofY": 39.536, - "wallCount": 18, - "roofCount": 18 - }, - { - "id": "sion_1533", - "uuid": "{473104FF-6C48-4FE4-9348-B0412BD4B272}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -174.545, - 66.585, - -763.994 - ], - "size": [ - 15.738, - 13.51, - 12.63 - ], - "groundY": 59.83, - "roofY": 73.34, - "wallCount": 47, - "roofCount": 23 - }, - { - "id": "sion_1534", - "uuid": "{CBCE1BEC-8DC7-4B65-9AAB-AA894B4D8AC5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -68.291, - 70.371, - -328.651 - ], - "size": [ - 82.238, - 23.733, - 63.373 - ], - "groundY": 58.504, - "roofY": 82.237, - "wallCount": 115, - "roofCount": 26 - }, - { - "id": "sion_1535", - "uuid": "{5A663B7B-6D96-484D-A8E4-9B187BC885A0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 1 - ], - "center": [ - 936.855, - 21.314, - -530.763 - ], - "size": [ - 56.695, - 35.22, - 53.452 - ], - "groundY": 3.704, - "roofY": 38.924, - "wallCount": 52, - "roofCount": 14 - }, - { - "id": "sion_1536", - "uuid": "{6A6DC013-F993-4C77-B552-0DE24D412AD1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1106.92, - 9.235, - 195.826 - ], - "size": [ - 15.801, - 8.589, - 14.5 - ], - "groundY": 4.94, - "roofY": 13.529, - "wallCount": 39, - "roofCount": 21 - }, - { - "id": "sion_1537", - "uuid": "{2587D2D3-117C-4CBD-B4F3-331ADAB20A03}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1336.908, - 8.529, - -684.818 - ], - "size": [ - 25.746, - 7.724, - 22.364 - ], - "groundY": 4.667, - "roofY": 12.391, - "wallCount": 27, - "roofCount": 12 - }, - { - "id": "sion_1538", - "uuid": "{43814612-A5F4-4A2F-9F55-1F8810D8FE22}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -217.109, - 56.564, - -552.574 - ], - "size": [ - 17.727, - 21.214, - 13.802 - ], - "groundY": 45.957, - "roofY": 67.171, - "wallCount": 70, - "roofCount": 24 - }, - { - "id": "sion_1539", - "uuid": "{F87E18FD-E28F-46AF-9A4B-7BA5B5DDADA0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 968.061, - 13.031, - 419.073 - ], - "size": [ - 21.629, - 19.629, - 21.826 - ], - "groundY": 3.217, - "roofY": 22.846, - "wallCount": 50, - "roofCount": 32 - }, - { - "id": "sion_1540", - "uuid": "{CA13A583-21F7-4087-A329-E3D9B18930DE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 985.682, - 13.696, - 470.249 - ], - "size": [ - 36.66, - 17.965, - 30.537 - ], - "groundY": 4.713, - "roofY": 22.678, - "wallCount": 46, - "roofCount": 21 - }, - { - "id": "sion_1541", - "uuid": "{55A46B6D-BDA6-45FF-8C45-B40A65AC875D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 995.529, - 11.965, - 421.981 - ], - "size": [ - 19.621, - 16.701, - 18.036 - ], - "groundY": 3.614, - "roofY": 20.315, - "wallCount": 45, - "roofCount": 18 - }, - { - "id": "sion_1542", - "uuid": "{9578D88C-5A39-46E4-98C6-A2E52AABB5E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1288.23, - 12.723, - 318.308 - ], - "size": [ - 30.984, - 10.436, - 11.618 - ], - "groundY": 7.505, - "roofY": 17.941, - "wallCount": 24, - "roofCount": 21 - }, - { - "id": "sion_1543", - "uuid": "{94F6B88E-7BEE-4A8D-A4C0-C3E402AC4E78}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -239.738, - 17.894, - 381.184 - ], - "size": [ - 26.852, - 22.752, - 21.694 - ], - "groundY": 6.518, - "roofY": 29.27, - "wallCount": 25, - "roofCount": 17 - }, - { - "id": "sion_1544", - "uuid": "{B231ED03-F5E1-4917-9563-9BABDF06BAFA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 427.988, - 8.311, - 384.898 - ], - "size": [ - 14.141, - 8.017, - 37.126 - ], - "groundY": 4.302, - "roofY": 12.319, - "wallCount": 30, - "roofCount": 8 - }, - { - "id": "sion_1545", - "uuid": "{FA813B37-8D9C-4DBC-AE07-D3CBC28F1520}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 666.916, - 4.556, - 200.247 - ], - "size": [ - 11.715, - 4.86, - 15.135 - ], - "groundY": 2.126, - "roofY": 6.986, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_1546", - "uuid": "{B5C9CBF1-2127-459F-8677-259B76C6EF1D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1489.645, - 15.951, - 385.115 - ], - "size": [ - 45.461, - 20.294, - 17.868 - ], - "groundY": 5.804, - "roofY": 26.098, - "wallCount": 69, - "roofCount": 28 - }, - { - "id": "sion_1547", - "uuid": "{9A9DBFC1-5398-4335-AB9F-B7B7B5B1098A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -153.705, - 37.352, - -88.698 - ], - "size": [ - 50.871, - 22.96, - 80.33 - ], - "groundY": 25.872, - "roofY": 48.832, - "wallCount": 226, - "roofCount": 166 - }, - { - "id": "sion_1548", - "uuid": "{2A7D5925-1872-48C4-8289-EAF3BF3E57E1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1033.336, - 9.267, - 783.671 - ], - "size": [ - 23.812, - 8.536, - 17.092 - ], - "groundY": 4.999, - "roofY": 13.535, - "wallCount": 31, - "roofCount": 19 - }, - { - "id": "sion_1549", - "uuid": "{3C9AAEF1-6130-4D1C-A868-A4EEC128805C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -279.268, - 21.287, - 331.372 - ], - "size": [ - 28.699, - 23.401, - 19.04 - ], - "groundY": 9.586, - "roofY": 32.987, - "wallCount": 32, - "roofCount": 18 - }, - { - "id": "sion_1550", - "uuid": "{75E40156-F0E7-46AB-A8E3-00CC7EB71B57}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -307.32, - 57.993, - -561.202 - ], - "size": [ - 18.109, - 14.309, - 18.393 - ], - "groundY": 50.839, - "roofY": 65.148, - "wallCount": 10, - "roofCount": 18 - }, - { - "id": "sion_1551", - "uuid": "{0E949BDF-84CF-4EB8-ABE9-2EDBE5362666}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 150.668, - 78.152, - -382.799 - ], - "size": [ - 3.602, - 5.208, - 4.422 - ], - "groundY": 75.548, - "roofY": 80.756, - "wallCount": 62, - "roofCount": 20 - }, - { - "id": "sion_1552", - "uuid": "{26E913F0-DC3D-42BA-9809-9391B73BDAFB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 132.699, - 6.656, - 532.197 - ], - "size": [ - 36.859, - 8.092, - 19.356 - ], - "groundY": 2.61, - "roofY": 10.702, - "wallCount": 28, - "roofCount": 33 - }, - { - "id": "sion_1553", - "uuid": "{877DBB1D-A1EA-45AF-8446-5EB7F23BF78E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -26.992, - 4.685, - 796.254 - ], - "size": [ - 51.219, - 8.736, - 44.21 - ], - "groundY": 0.317, - "roofY": 9.053, - "wallCount": 24, - "roofCount": 8 - }, - { - "id": "sion_1554", - "uuid": "{B4CD2AEA-54A6-48D2-A57B-FFEB48874723}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 443.932, - 215.71, - -1491.923 - ], - "size": [ - 13.512, - 7.258, - 21.458 - ], - "groundY": 212.081, - "roofY": 219.339, - "wallCount": 37, - "roofCount": 31 - }, - { - "id": "sion_1555", - "uuid": "{1F610BBA-A9C5-4632-AF20-124B43F83984}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -190.166, - 38.846, - -114.984 - ], - "size": [ - 17.684, - 21.673, - 19.397 - ], - "groundY": 28.009, - "roofY": 49.682, - "wallCount": 16, - "roofCount": 16 - }, - { - "id": "sion_1556", - "uuid": "{85DE49EB-8550-4A3F-9ED3-44901D2507CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 350.146, - 72.418, - -925.019 - ], - "size": [ - 25.816, - 13.929, - 16.124 - ], - "groundY": 65.454, - "roofY": 79.383, - "wallCount": 66, - "roofCount": 27 - }, - { - "id": "sion_1557", - "uuid": "{C1F317D4-4CCF-44FE-905B-0B374E1FD8C1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -224.85, - 10.261, - 808.896 - ], - "size": [ - 68.418, - 22.796, - 57.513 - ], - "groundY": -1.137, - "roofY": 21.659, - "wallCount": 64, - "roofCount": 67 - }, - { - "id": "sion_1558", - "uuid": "{3A538E26-856C-48CE-ABB4-4EAA38A3EF5A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 103.822, - 6.054, - 693.226 - ], - "size": [ - 16.152, - 9.505, - 22.561 - ], - "groundY": 1.301, - "roofY": 10.806, - "wallCount": 32, - "roofCount": 5 - }, - { - "id": "sion_1559", - "uuid": "{CE05B55F-7470-4D81-A54C-37C6C49DBC51}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 155.248, - 63.833, - -829.922 - ], - "size": [ - 16.91, - 11.81, - 14.355 - ], - "groundY": 57.928, - "roofY": 69.738, - "wallCount": 21, - "roofCount": 11 - }, - { - "id": "sion_1560", - "uuid": "{C2EE2C37-7629-417E-A876-E1AA9C648DE8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -15.275, - 20.276, - 190.326 - ], - "size": [ - 107.332, - 14.699, - 72.338 - ], - "groundY": 12.927, - "roofY": 27.626, - "wallCount": 159, - "roofCount": 82 - }, - { - "id": "sion_1561", - "uuid": "{57DE203A-FD3C-4B80-ABCD-F7D26B7A5D9E}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 854.252, - 8.642, - 406.713 - ], - "size": [ - 32.777, - 8.174, - 29.23 - ], - "groundY": 4.555, - "roofY": 12.729, - "wallCount": 11, - "roofCount": 8 - }, - { - "id": "sion_1562", - "uuid": "{9836D1ED-2B36-4F05-90E0-AF89427DAC09}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 717.75, - 22.521, - -275.526 - ], - "size": [ - 27.805, - 36.257, - 23.888 - ], - "groundY": 4.393, - "roofY": 40.65, - "wallCount": 253, - "roofCount": 20 - }, - { - "id": "sion_1563", - "uuid": "{4E64E220-4C5F-4C65-BA40-871A8C115F45}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -95.098, - 92.103, - -1172.61 - ], - "size": [ - 18.359, - 11.286, - 14.644 - ], - "groundY": 86.46, - "roofY": 97.746, - "wallCount": 50, - "roofCount": 44 - }, - { - "id": "sion_1564", - "uuid": "{D20C3B49-7221-4C02-902A-C880AB961D1A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 265.352, - 56.951, - -772.674 - ], - "size": [ - 16.602, - 10.871, - 22.816 - ], - "groundY": 51.516, - "roofY": 62.387, - "wallCount": 40, - "roofCount": 37 - }, - { - "id": "sion_1565", - "uuid": "{ED418114-2E68-4149-A866-5F3CA14FE81D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 729.959, - 14.881, - 1012.305 - ], - "size": [ - 10.27, - 6.361, - 10.3 - ], - "groundY": 11.7, - "roofY": 18.061, - "wallCount": 51, - "roofCount": 20 - }, - { - "id": "sion_1566", - "uuid": "{2BB62266-CEEE-4CBC-9538-10B5437B512B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 316.381, - 5.692, - 1033.279 - ], - "size": [ - 18.527, - 7.103, - 18.976 - ], - "groundY": 2.14, - "roofY": 9.243, - "wallCount": 19, - "roofCount": 29 - }, - { - "id": "sion_1567", - "uuid": "{334B3B17-DBA6-4F94-A183-348558E4361A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 664.062, - 9.92, - 933.261 - ], - "size": [ - 44.781, - 11.8, - 87.869 - ], - "groundY": 4.02, - "roofY": 15.82, - "wallCount": 61, - "roofCount": 38 - }, - { - "id": "sion_1568", - "uuid": "{724F3E24-BF9F-45B4-BE4C-C5B4BC6FFC3E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 32.566, - 72.815, - -885.992 - ], - "size": [ - 38.039, - 20.124, - 29.362 - ], - "groundY": 62.753, - "roofY": 82.877, - "wallCount": 79, - "roofCount": 29 - }, - { - "id": "sion_1569", - "uuid": "{6A7E8CE1-D2BA-4A9A-A3E4-F670B98DFF41}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1148.582, - 14.029, - 295.524 - ], - "size": [ - 30.711, - 18.274, - 32.864 - ], - "groundY": 4.892, - "roofY": 23.166, - "wallCount": 91, - "roofCount": 26 - }, - { - "id": "sion_1570", - "uuid": "{405AD8E0-4FA4-469F-A3FA-30A892B97218}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -131.621, - 65.026, - -723.431 - ], - "size": [ - 22.625, - 16.316, - 19.811 - ], - "groundY": 56.868, - "roofY": 73.184, - "wallCount": 12, - "roofCount": 35 - }, - { - "id": "sion_1571", - "uuid": "{8E444B06-CB36-4F6F-A3FE-22D9B0B91E43}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 274.562, - 205.044, - -1376.443 - ], - "size": [ - 20.859, - 9.756, - 21.727 - ], - "groundY": 200.166, - "roofY": 209.922, - "wallCount": 34, - "roofCount": 25 - }, - { - "id": "sion_1572", - "uuid": "{5B8E054D-F6A9-4CAC-BED9-8C2EE90C6F24}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -16.721, - 61.603, - -707.129 - ], - "size": [ - 33.98, - 13.426, - 39.639 - ], - "groundY": 54.89, - "roofY": 68.316, - "wallCount": 38, - "roofCount": 37 - }, - { - "id": "sion_1573", - "uuid": "{BDAD647F-78B7-4E49-88B6-2EAE2E0EC98D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1401.688, - 21.854, - 923.718 - ], - "size": [ - 14.359, - 10.614, - 12.622 - ], - "groundY": 16.547, - "roofY": 27.161, - "wallCount": 56, - "roofCount": 27 - }, - { - "id": "sion_1574", - "uuid": "{80B024C3-5F1A-4E0D-B0FE-1DC843C4B236}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -202.471, - 47.394, - -405.241 - ], - "size": [ - 45.348, - 20.56, - 23.044 - ], - "groundY": 37.114, - "roofY": 57.674, - "wallCount": 77, - "roofCount": 94 - }, - { - "id": "sion_1575", - "uuid": "{7231C256-7AE1-401E-B866-85DBBDD31C83}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1435.875, - 16.887, - 892.391 - ], - "size": [ - 3.492, - 8.602, - 3.485 - ], - "groundY": 12.586, - "roofY": 21.188, - "wallCount": 1, - "roofCount": 3 - }, - { - "id": "sion_1576", - "uuid": "{4BF957BD-7E60-4FDA-9295-96990704D340}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 75.934, - 61.328, - -695.723 - ], - "size": [ - 48.93, - 19.97, - 39.168 - ], - "groundY": 51.343, - "roofY": 71.313, - "wallCount": 14, - "roofCount": 20 - }, - { - "id": "sion_1577", - "uuid": "{00A56440-BB6A-46C7-9ABC-7EEB3E9A2562}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -285.414, - 5.339, - 849.703 - ], - "size": [ - 17.461, - 10.198, - 13.193 - ], - "groundY": 0.24, - "roofY": 10.438, - "wallCount": 20, - "roofCount": 18 - }, - { - "id": "sion_1578", - "uuid": "{BAF1DE84-8961-47E0-8C80-AD514CA89998}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 157.508, - 10.048, - 1026.975 - ], - "size": [ - 52.156, - 13.42, - 49.754 - ], - "groundY": 3.338, - "roofY": 16.758, - "wallCount": 10, - "roofCount": 20 - }, - { - "id": "sion_1579", - "uuid": "{29FED1AE-4E7E-43A4-A5A1-A164B9D12A9D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -48.477, - 7.319, - 758.934 - ], - "size": [ - 24.234, - 15.495, - 21.124 - ], - "groundY": -0.428, - "roofY": 15.066, - "wallCount": 29, - "roofCount": 7 - }, - { - "id": "sion_1580", - "uuid": "{E259E211-8F85-4365-B1A7-7CC973DEE540}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -83.801, - 53.654, - -537.699 - ], - "size": [ - 32.383, - 14.241, - 45.736 - ], - "groundY": 46.534, - "roofY": 60.775, - "wallCount": 64, - "roofCount": 65 - }, - { - "id": "sion_1581", - "uuid": "{68C59F4A-EE4B-48E4-B5A8-51D0BD9A2C15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1363.994, - 7.757, - -664.947 - ], - "size": [ - 5.887, - 5.912, - 5.894 - ], - "groundY": 4.801, - "roofY": 10.713, - "wallCount": 16, - "roofCount": 6 - }, - { - "id": "sion_1582", - "uuid": "{78F138E5-ADD5-415C-8109-0E491949E272}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 224.461, - 60.482, - -832.414 - ], - "size": [ - 17.891, - 9.806, - 12.592 - ], - "groundY": 55.579, - "roofY": 65.385, - "wallCount": 35, - "roofCount": 6 - }, - { - "id": "sion_1583", - "uuid": "{67B1F16B-C3A0-40D3-9C48-F08904678E26}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 472.436, - 15.367, - 198.459 - ], - "size": [ - 18.527, - 21.94, - 31.268 - ], - "groundY": 4.397, - "roofY": 26.337, - "wallCount": 54, - "roofCount": 6 - }, - { - "id": "sion_1584", - "uuid": "{E7FF7D19-CB27-437B-910C-D87D92E1496F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -88.135, - 14.573, - 655.895 - ], - "size": [ - 167.379, - 28.734, - 181.452 - ], - "groundY": 0.206, - "roofY": 28.94, - "wallCount": 131, - "roofCount": 63 - }, - { - "id": "sion_1585", - "uuid": "{2F86D91A-E28D-4421-9CE6-1C3B4BCD7B83}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 359.943, - 10.921, - 283.179 - ], - "size": [ - 56.332, - 8.567, - 46.908 - ], - "groundY": 6.638, - "roofY": 15.204, - "wallCount": 22, - "roofCount": 9 - }, - { - "id": "sion_1586", - "uuid": "{D50DE1B8-B7F1-422D-8919-A9811803E1B0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -323.15, - 20.737, - 341.863 - ], - "size": [ - 24.504, - 23.085, - 38.922 - ], - "groundY": 9.194, - "roofY": 32.279, - "wallCount": 67, - "roofCount": 22 - }, - { - "id": "sion_1587", - "uuid": "{3CEAC42E-1AD3-40C6-9C4E-2D499F478EB7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -16.137, - 33.88, - -15.015 - ], - "size": [ - 68.047, - 26.407, - 58.61 - ], - "groundY": 20.677, - "roofY": 47.084, - "wallCount": 109, - "roofCount": 109 - }, - { - "id": "sion_1588", - "uuid": "{87FA8524-7717-46CD-84F5-A83D5FBB575A}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 1 - ], - "center": [ - 323.463, - 144.72, - -523.954 - ], - "size": [ - 7.02, - 50.001, - 4.958 - ], - "groundY": 119.72, - "roofY": 169.721, - "wallCount": 63, - "roofCount": 41 - }, - { - "id": "sion_1589", - "uuid": "{74737D53-8FBB-4CE5-9DDF-3F0D0D9DE733}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -113.455, - 88.602, - -1019.489 - ], - "size": [ - 14.293, - 11.765, - 11.012 - ], - "groundY": 82.719, - "roofY": 94.484, - "wallCount": 26, - "roofCount": 26 - }, - { - "id": "sion_1590", - "uuid": "{54CBE97B-95CD-41F7-88CF-58B4F207925B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 872.688, - 8.476, - -311.407 - ], - "size": [ - 22.32, - 10.833, - 18.292 - ], - "groundY": 3.059, - "roofY": 13.892, - "wallCount": 39, - "roofCount": 18 - }, - { - "id": "sion_1591", - "uuid": "{54438023-2B72-46BF-8194-95344D580529}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 851.539, - 11.885, - -380.91 - ], - "size": [ - 22.188, - 16.906, - 18.641 - ], - "groundY": 3.432, - "roofY": 20.338, - "wallCount": 114, - "roofCount": 35 - }, - { - "id": "sion_1592", - "uuid": "{F20D7CA8-3661-4171-8F75-B58E928AECEF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 336.432, - 80.051, - -994.628 - ], - "size": [ - 26.356, - 11.757, - 18.529 - ], - "groundY": 74.173, - "roofY": 85.93, - "wallCount": 36, - "roofCount": 14 - }, - { - "id": "sion_1593", - "uuid": "{F05EC607-BAC2-4EEE-A848-B166E473F148}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -134.686, - 37.422, - -118.515 - ], - "size": [ - 50.699, - 22.103, - 50.483 - ], - "groundY": 26.371, - "roofY": 48.474, - "wallCount": 221, - "roofCount": 148 - }, - { - "id": "sion_1594", - "uuid": "{8F70E6AF-5A5E-4906-93DC-BF1072BCA1AD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 199.475, - 8.265, - 951.543 - ], - "size": [ - 13.387, - 9.904, - 13.111 - ], - "groundY": 3.313, - "roofY": 13.217, - "wallCount": 40, - "roofCount": 27 - }, - { - "id": "sion_1595", - "uuid": "{A35E7376-7A7D-4CF3-824E-CACC47BBB79C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 430.311, - 8.126, - 884.233 - ], - "size": [ - 28.895, - 11.382, - 53.534 - ], - "groundY": 2.435, - "roofY": 13.817, - "wallCount": 38, - "roofCount": 21 - }, - { - "id": "sion_1596", - "uuid": "{1B0D4AB9-2F2F-4CB4-AD00-425B7F0EAADE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 393.272, - 10.257, - 371.976 - ], - "size": [ - 48.723, - 13.4, - 64.407 - ], - "groundY": 3.557, - "roofY": 16.957, - "wallCount": 68, - "roofCount": 67 - }, - { - "id": "sion_1597", - "uuid": "{68BDFE47-F033-4057-B997-22644698B420}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -102.689, - 47.914, - -445.047 - ], - "size": [ - 13.887, - 7.957, - 17.846 - ], - "groundY": 43.935, - "roofY": 51.892, - "wallCount": 65, - "roofCount": 32 - }, - { - "id": "sion_1598", - "uuid": "{FEDD0988-80F2-449D-AA31-CF0EBB106E7C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 869.438, - 15.426, - 82.238 - ], - "size": [ - 48.664, - 24.82, - 62.126 - ], - "groundY": 3.016, - "roofY": 27.836, - "wallCount": 8, - "roofCount": 7 - }, - { - "id": "sion_1599", - "uuid": "{984BCF8F-D23E-4ECC-B8AC-6CCE644C7C2B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 16.09, - 36.119, - 46.774 - ], - "size": [ - 103.773, - 36.826, - 96.896 - ], - "groundY": 17.706, - "roofY": 54.532, - "wallCount": 108, - "roofCount": 35 - }, - { - "id": "sion_1600", - "uuid": "{33BC99E7-AC8D-4FB1-87F5-AD7ABE36CF1E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 431.051, - 16.853, - 28.807 - ], - "size": [ - 106.883, - 28.002, - 126.235 - ], - "groundY": 2.852, - "roofY": 30.854, - "wallCount": 84, - "roofCount": 34 - }, - { - "id": "sion_1601", - "uuid": "{0A7B6DB8-BB1C-4885-8ECE-A7FCB0DDDF9A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 494.768, - 126.991, - -1154.776 - ], - "size": [ - 8.746, - 8.75, - 7.326 - ], - "groundY": 122.616, - "roofY": 131.366, - "wallCount": 40, - "roofCount": 18 - }, - { - "id": "sion_1602", - "uuid": "{87E1E412-96FA-4498-9B4D-5AFC15361E4C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -391.129, - 19.722, - 336.61 - ], - "size": [ - 120.742, - 27.882, - 71.168 - ], - "groundY": 5.781, - "roofY": 33.663, - "wallCount": 205, - "roofCount": 173 - }, - { - "id": "sion_1603", - "uuid": "{A25A001F-501A-4CF5-8A24-377819A23EC8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 192.98, - 60.41, - -650.229 - ], - "size": [ - 24.898, - 10.03, - 15.315 - ], - "groundY": 55.395, - "roofY": 65.425, - "wallCount": 30, - "roofCount": 19 - }, - { - "id": "sion_1604", - "uuid": "{47B11935-CA6F-4AE7-A217-3E352310C9B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 353.728, - 19.239, - -142.851 - ], - "size": [ - 18.293, - 24.148, - 18.244 - ], - "groundY": 7.165, - "roofY": 31.313, - "wallCount": 20, - "roofCount": 14 - }, - { - "id": "sion_1605", - "uuid": "{2DE60B06-5DFF-4C82-9DD0-FEAA5B77251A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1346.902, - 24.538, - -1334.704 - ], - "size": [ - 5.484, - 8.443, - 5.7 - ], - "groundY": 20.317, - "roofY": 28.76, - "wallCount": 31, - "roofCount": 16 - }, - { - "id": "sion_1606", - "uuid": "{F5726269-D3C2-4A49-BEC0-0408F3E67D48}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1391.484, - 16.042, - 223.536 - ], - "size": [ - 61.586, - 14.988, - 17.052 - ], - "groundY": 8.548, - "roofY": 23.536, - "wallCount": 12, - "roofCount": 33 - }, - { - "id": "sion_1607", - "uuid": "{BE2A59E5-B28C-4CA7-B1E8-C09619FDE5EB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 237.025, - 194.293, - -1508.876 - ], - "size": [ - 14.09, - 12.2, - 16.121 - ], - "groundY": 188.193, - "roofY": 200.393, - "wallCount": 81, - "roofCount": 20 - }, - { - "id": "sion_1608", - "uuid": "{99616B5A-E78A-4271-85EC-4E413E95A67F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -42.156, - 18.203, - 295.234 - ], - "size": [ - 16.016, - 14.846, - 13.483 - ], - "groundY": 10.78, - "roofY": 25.626, - "wallCount": 53, - "roofCount": 30 - }, - { - "id": "sion_1609", - "uuid": "{09578D72-A494-4674-A84D-6EBD50EA46FC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 479.273, - 15.7, - 146.237 - ], - "size": [ - 26.492, - 22.106, - 53.017 - ], - "groundY": 4.647, - "roofY": 26.753, - "wallCount": 109, - "roofCount": 24 - }, - { - "id": "sion_1610", - "uuid": "{265C05FF-4F2D-4580-8D6E-750D4B1D6084}", - "name": "", - "class": "Unterirdisches Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 819.1, - 11.071, - -272.483 - ], - "size": [ - 44.41, - 17.13, - 54.179 - ], - "groundY": 2.506, - "roofY": 19.636, - "wallCount": 60, - "roofCount": 24 - }, - { - "id": "sion_1611", - "uuid": "{0AF002E7-9E42-49D1-AE58-FFEDAF967BF9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 347.326, - 67.8, - -880.814 - ], - "size": [ - 22.402, - 10.079, - 21.368 - ], - "groundY": 62.76, - "roofY": 72.839, - "wallCount": 41, - "roofCount": 25 - }, - { - "id": "sion_1612", - "uuid": "{42D53C0D-949D-4A95-9E9C-3657A25D497C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 353.033, - 215.601, - -1380.165 - ], - "size": [ - 16.191, - 12.359, - 17.262 - ], - "groundY": 209.422, - "roofY": 221.781, - "wallCount": 31, - "roofCount": 12 - }, - { - "id": "sion_1613", - "uuid": "{D91944B8-D4B5-45CD-BF3A-3D9CF2344632}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 847.621, - 9.059, - 681.371 - ], - "size": [ - 49.883, - 9.13, - 48.984 - ], - "groundY": 4.494, - "roofY": 13.624, - "wallCount": 21, - "roofCount": 4 - }, - { - "id": "sion_1614", - "uuid": "{B380CEE3-AEAA-4D58-B610-73DD8C7A8782}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 392.857, - 16.872, - 168.111 - ], - "size": [ - 31.652, - 22.264, - 30.492 - ], - "groundY": 5.74, - "roofY": 28.004, - "wallCount": 71, - "roofCount": 28 - }, - { - "id": "sion_1615", - "uuid": "{DBA6B12C-DB20-47F1-B289-007BCC2C1922}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1212.961, - 13.796, - 226.132 - ], - "size": [ - 20.578, - 16.896, - 37.038 - ], - "groundY": 5.348, - "roofY": 22.244, - "wallCount": 32, - "roofCount": 39 - }, - { - "id": "sion_1616", - "uuid": "{58D01AB7-DAB8-46DB-A97A-7EA7B144182D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 481.629, - 225.066, - -1419.401 - ], - "size": [ - 23.75, - 17.369, - 21.983 - ], - "groundY": 216.382, - "roofY": 233.751, - "wallCount": 49, - "roofCount": 17 - }, - { - "id": "sion_1617", - "uuid": "{1277D6E3-F735-4DF8-97AF-C32E6D4F63E8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -177.016, - 60.511, - -651.367 - ], - "size": [ - 24.297, - 20.083, - 28.316 - ], - "groundY": 50.47, - "roofY": 70.553, - "wallCount": 41, - "roofCount": 20 - }, - { - "id": "sion_1618", - "uuid": "{93DD3605-4A8D-4F6A-A49E-EA7390166159}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 996.139, - 13.241, - 283.897 - ], - "size": [ - 29.887, - 19.204, - 33.063 - ], - "groundY": 3.639, - "roofY": 22.842, - "wallCount": 36, - "roofCount": 7 - }, - { - "id": "sion_1619", - "uuid": "{C326F39A-1231-479C-ADC2-B1E85FB12A3B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1063.852, - 14.405, - 492.948 - ], - "size": [ - 53.391, - 18.524, - 36.924 - ], - "groundY": 5.143, - "roofY": 23.666, - "wallCount": 64, - "roofCount": 27 - }, - { - "id": "sion_1620", - "uuid": "{C94C5B26-0A89-407A-B796-1F0F072813AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 187.232, - 7.011, - 1048.726 - ], - "size": [ - 11.465, - 8.671, - 10.058 - ], - "groundY": 2.675, - "roofY": 11.346, - "wallCount": 37, - "roofCount": 12 - }, - { - "id": "sion_1621", - "uuid": "{11A44272-5447-4691-8EF8-2B0B3C3CBE96}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 991.229, - 12.263, - 798.155 - ], - "size": [ - 26.629, - 12.618, - 56.136 - ], - "groundY": 5.954, - "roofY": 18.572, - "wallCount": 18, - "roofCount": 19 - }, - { - "id": "sion_1622", - "uuid": "{5C25EFB1-BE87-4980-BC0C-F213C4AB665F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -300.68, - 5.385, - 958.965 - ], - "size": [ - 111.398, - 11.101, - 48.422 - ], - "groundY": -0.165, - "roofY": 10.936, - "wallCount": 26, - "roofCount": 29 - }, - { - "id": "sion_1623", - "uuid": "{50F5CF65-2F31-4657-901C-E50D8BD82BBE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 882.428, - 15.687, - -67.501 - ], - "size": [ - 30.16, - 25.856, - 27.783 - ], - "groundY": 2.759, - "roofY": 28.615, - "wallCount": 46, - "roofCount": 6 - }, - { - "id": "sion_1624", - "uuid": "{36326B67-B6B5-4A85-BE35-B873D66F5075}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1413.947, - 19.385, - 89.475 - ], - "size": [ - 16.191, - 25.859, - 30.397 - ], - "groundY": 6.456, - "roofY": 32.315, - "wallCount": 55, - "roofCount": 10 - }, - { - "id": "sion_1625", - "uuid": "{1A75B455-1CEC-4254-9A5C-89FE642B84B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -355.576, - 23.092, - 262.22 - ], - "size": [ - 24.48, - 23.103, - 32.218 - ], - "groundY": 11.54, - "roofY": 34.643, - "wallCount": 8, - "roofCount": 15 - }, - { - "id": "sion_1626", - "uuid": "{103C0FAE-6E17-47D2-B311-77E42068FDDB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 118.857, - 66.375, - -813.0 - ], - "size": [ - 25.801, - 17.114, - 22.066 - ], - "groundY": 57.818, - "roofY": 74.931, - "wallCount": 14, - "roofCount": 17 - }, - { - "id": "sion_1627", - "uuid": "{EE4F99BA-5F04-4242-8918-326D6D97C25E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 988.186, - 12.148, - 362.102 - ], - "size": [ - 23.332, - 16.328, - 17.204 - ], - "groundY": 3.984, - "roofY": 20.312, - "wallCount": 71, - "roofCount": 24 - }, - { - "id": "sion_1628", - "uuid": "{0DB992E4-7A0F-4FA8-8E6F-51A87196E450}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1276.07, - 16.742, - 87.755 - ], - "size": [ - 32.867, - 22.758, - 25.382 - ], - "groundY": 5.363, - "roofY": 28.121, - "wallCount": 85, - "roofCount": 23 - }, - { - "id": "sion_1629", - "uuid": "{29764B9D-F6C5-4EEB-88D1-1734554691D7}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 128.645, - 129.411, - -222.362 - ], - "size": [ - 15.227, - 8.417, - 4.742 - ], - "groundY": 125.202, - "roofY": 133.619, - "wallCount": 71, - "roofCount": 12 - }, - { - "id": "sion_1630", - "uuid": "{A9617A2D-C27B-43AA-82BE-AE2735355011}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 275.135, - 54.967, - -730.24 - ], - "size": [ - 14.199, - 7.002, - 14.29 - ], - "groundY": 51.466, - "roofY": 58.468, - "wallCount": 55, - "roofCount": 22 - }, - { - "id": "sion_1631", - "uuid": "{A4909F55-4EA4-42F3-8769-6121F1940C9C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 29.352, - 107.088, - -1334.389 - ], - "size": [ - 16.078, - 10.889, - 20.202 - ], - "groundY": 101.644, - "roofY": 112.533, - "wallCount": 31, - "roofCount": 11 - }, - { - "id": "sion_1632", - "uuid": "{8D0DD86D-0DE7-493E-B196-00B7B8641A67}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 106.834, - 30.286, - 14.737 - ], - "size": [ - 36.816, - 26.72, - 37.231 - ], - "groundY": 16.926, - "roofY": 43.646, - "wallCount": 61, - "roofCount": 66 - }, - { - "id": "sion_1633", - "uuid": "{EBC51DBD-F128-465C-81E0-3BFBF3422D26}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 46.566, - 55.554, - -659.211 - ], - "size": [ - 9.453, - 3.708, - 9.615 - ], - "groundY": 53.7, - "roofY": 57.408, - "wallCount": 13, - "roofCount": 2 - }, - { - "id": "sion_1634", - "uuid": "{E1A3F4F7-E926-4C18-AA1D-A2550BA074AE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 198.139, - 76.095, - -974.876 - ], - "size": [ - 40.465, - 21.838, - 25.926 - ], - "groundY": 65.176, - "roofY": 87.014, - "wallCount": 56, - "roofCount": 23 - }, - { - "id": "sion_1635", - "uuid": "{978B5249-EB98-4529-9BA4-37F39CF99CD6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -292.652, - 68.141, - -771.029 - ], - "size": [ - 13.508, - 10.966, - 11.762 - ], - "groundY": 62.658, - "roofY": 73.624, - "wallCount": 49, - "roofCount": 19 - }, - { - "id": "sion_1636", - "uuid": "{95D10E23-03BB-4A31-AA8F-0EBBC4C62040}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 760.01, - 9.385, - 584.928 - ], - "size": [ - 17.473, - 10.818, - 17.592 - ], - "groundY": 3.976, - "roofY": 14.794, - "wallCount": 23, - "roofCount": 10 - }, - { - "id": "sion_1637", - "uuid": "{50935F62-C359-404E-A588-FB38AC5DEB44}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 62.9, - 73.989, - -935.085 - ], - "size": [ - 30.332, - 19.017, - 23.199 - ], - "groundY": 64.48, - "roofY": 83.497, - "wallCount": 27, - "roofCount": 13 - }, - { - "id": "sion_1638", - "uuid": "{35E06D91-FCBC-4F4A-BC9D-C64E0A67AB5B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -104.557, - 34.578, - 4.893 - ], - "size": [ - 35.762, - 23.095, - 34.976 - ], - "groundY": 23.031, - "roofY": 46.126, - "wallCount": 85, - "roofCount": 89 - }, - { - "id": "sion_1639", - "uuid": "{1418E62B-12DA-4B74-8191-58B688907ED9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1084.574, - 8.932, - 208.173 - ], - "size": [ - 24.008, - 10.348, - 20.852 - ], - "groundY": 3.758, - "roofY": 14.106, - "wallCount": 61, - "roofCount": 35 - }, - { - "id": "sion_1640", - "uuid": "{30AF093C-0924-47AF-BEA0-A48833FBC724}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -183.379, - 77.501, - -932.381 - ], - "size": [ - 12.109, - 15.228, - 14.477 - ], - "groundY": 69.887, - "roofY": 85.116, - "wallCount": 77, - "roofCount": 46 - }, - { - "id": "sion_1641", - "uuid": "{279A7757-A834-461A-97B4-4EB58BDF3E5D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 373.986, - 58.663, - -848.603 - ], - "size": [ - 15.051, - 12.019, - 13.418 - ], - "groundY": 52.653, - "roofY": 64.672, - "wallCount": 42, - "roofCount": 18 - }, - { - "id": "sion_1642", - "uuid": "{85ACD3F1-5B3D-4CDB-BDDF-4CAEB616C71D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 652.299, - 53.977, - -539.516 - ], - "size": [ - 7.254, - 6.156, - 7.494 - ], - "groundY": 50.899, - "roofY": 57.055, - "wallCount": 26, - "roofCount": 8 - }, - { - "id": "sion_1643", - "uuid": "{A25ACC80-9239-45F2-B660-D86A133D2FA6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -173.496, - 51.927, - -523.094 - ], - "size": [ - 21.383, - 20.572, - 57.706 - ], - "groundY": 41.641, - "roofY": 62.213, - "wallCount": 100, - "roofCount": 138 - }, - { - "id": "sion_1644", - "uuid": "{BB2B5559-A376-4013-AC44-AD79E9241C1A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -62.678, - 69.883, - -796.031 - ], - "size": [ - 16.441, - 14.292, - 11.676 - ], - "groundY": 62.737, - "roofY": 77.029, - "wallCount": 40, - "roofCount": 46 - }, - { - "id": "sion_1645", - "uuid": "{1571E2E2-EFA1-4A46-B3FC-34158361F1C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 252.436, - 6.874, - 530.59 - ], - "size": [ - 26.793, - 10.029, - 30.12 - ], - "groundY": 1.86, - "roofY": 11.889, - "wallCount": 23, - "roofCount": 17 - }, - { - "id": "sion_1646", - "uuid": "{0C8E954E-C2EA-411B-A97B-A5F78FC3C3D9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 238.572, - 9.036, - 417.972 - ], - "size": [ - 34.613, - 9.268, - 19.974 - ], - "groundY": 4.402, - "roofY": 13.67, - "wallCount": 18, - "roofCount": 4 - }, - { - "id": "sion_1647", - "uuid": "{03040486-8259-4CEF-A651-B6E71A0F85D3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 250.379, - 5.836, - 617.244 - ], - "size": [ - 15.391, - 8.51, - 13.734 - ], - "groundY": 1.581, - "roofY": 10.091, - "wallCount": 32, - "roofCount": 19 - }, - { - "id": "sion_1648", - "uuid": "{11F594B7-606E-4B5B-801D-987766F634F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -332.766, - 50.347, - -462.373 - ], - "size": [ - 14.719, - 13.143, - 15.949 - ], - "groundY": 43.775, - "roofY": 56.918, - "wallCount": 44, - "roofCount": 40 - }, - { - "id": "sion_1649", - "uuid": "{857315A0-6E98-4326-8A4D-7FC0D3860908}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 862.561, - 8.345, - 618.338 - ], - "size": [ - 58.051, - 8.183, - 63.104 - ], - "groundY": 4.254, - "roofY": 12.437, - "wallCount": 22, - "roofCount": 8 - }, - { - "id": "sion_1650", - "uuid": "{54B35928-2EEA-4C93-8C0D-E3AF0E4283B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 42.877, - 71.725, - -987.089 - ], - "size": [ - 34.957, - 6.706, - 8.688 - ], - "groundY": 68.372, - "roofY": 75.078, - "wallCount": 60, - "roofCount": 26 - }, - { - "id": "sion_1651", - "uuid": "{6FFECB41-0102-4187-9FF2-DE54CC1E4F97}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 778.711, - 5.639, - 116.879 - ], - "size": [ - 10.68, - 4.844, - 13.414 - ], - "groundY": 3.217, - "roofY": 8.061, - "wallCount": 22, - "roofCount": 2 - }, - { - "id": "sion_1652", - "uuid": "{A0D1D410-4BFC-4D23-94B7-7AD1629845F9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1497.639, - 44.713, - -1466.13 - ], - "size": [ - 9.48, - 9.324, - 9.496 - ], - "groundY": 40.051, - "roofY": 49.375, - "wallCount": 30, - "roofCount": 12 - }, - { - "id": "sion_1653", - "uuid": "{632B7CF6-1A09-4B5C-B1E9-03025744E151}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 402.022, - 5.879, - 648.151 - ], - "size": [ - 12.223, - 6.71, - 13.106 - ], - "groundY": 2.524, - "roofY": 9.234, - "wallCount": 33, - "roofCount": 4 - }, - { - "id": "sion_1654", - "uuid": "{6C1FA16D-1366-40FE-8154-B08C7DB7B889}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -106.219, - 64.686, - -762.197 - ], - "size": [ - 14.656, - 6.316, - 6.664 - ], - "groundY": 61.528, - "roofY": 67.844, - "wallCount": 10, - "roofCount": 16 - }, - { - "id": "sion_1655", - "uuid": "{836D3348-AD29-4C90-96ED-CB0095DDB8C5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 424.74, - 65.129, - -910.031 - ], - "size": [ - 20.871, - 10.339, - 17.882 - ], - "groundY": 59.96, - "roofY": 70.298, - "wallCount": 29, - "roofCount": 33 - }, - { - "id": "sion_1656", - "uuid": "{820AD434-E9C4-418B-A82A-74D835E39265}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -325.518, - 18.009, - 182.483 - ], - "size": [ - 8.746, - 7.374, - 8.752 - ], - "groundY": 14.322, - "roofY": 21.696, - "wallCount": 29, - "roofCount": 2 - }, - { - "id": "sion_1657", - "uuid": "{F75E8668-1D63-40C3-BB3C-9994C81625E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -74.992, - 16.85, - 236.273 - ], - "size": [ - 31.531, - 7.95, - 27.288 - ], - "groundY": 12.875, - "roofY": 20.825, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1658", - "uuid": "{5793E4FD-A9B4-47B8-BD32-3D5A3F95E0E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 439.824, - 65.913, - -952.987 - ], - "size": [ - 26.641, - 10.164, - 16.136 - ], - "groundY": 60.831, - "roofY": 70.995, - "wallCount": 35, - "roofCount": 33 - }, - { - "id": "sion_1659", - "uuid": "{40E011F3-0B19-4221-8D99-CB32F3D430F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 696.031, - 43.706, - -889.195 - ], - "size": [ - 36.726, - 10.618, - 22.828 - ], - "groundY": 38.397, - "roofY": 49.015, - "wallCount": 56, - "roofCount": 15 - }, - { - "id": "sion_1660", - "uuid": "{3D393953-983D-491C-91AD-1C982342EC5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -305.549, - 40.072, - -321.012 - ], - "size": [ - 17.426, - 6.257, - 16.848 - ], - "groundY": 36.944, - "roofY": 43.201, - "wallCount": 12, - "roofCount": 4 - }, - { - "id": "sion_1661", - "uuid": "{885B4CB8-487C-4D38-AD77-08E7AFD181C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 263.199, - 6.477, - 910.415 - ], - "size": [ - 45.531, - 11.002, - 41.238 - ], - "groundY": 0.976, - "roofY": 11.978, - "wallCount": 16, - "roofCount": 9 - }, - { - "id": "sion_1662", - "uuid": "{3A36C039-1CCF-4FD0-A1B6-A8F6B5473D4F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 190.309, - 24.07, - -72.535 - ], - "size": [ - 21.695, - 22.201, - 14.428 - ], - "groundY": 12.97, - "roofY": 35.171, - "wallCount": 11, - "roofCount": 36 - }, - { - "id": "sion_1663", - "uuid": "{8B46DA6D-F633-46F2-BF8E-C2EB7FA9F3F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -16.727, - 30.326, - 1.68 - ], - "size": [ - 17.711, - 18.334, - 16.848 - ], - "groundY": 21.159, - "roofY": 39.493, - "wallCount": 24, - "roofCount": 12 - }, - { - "id": "sion_1664", - "uuid": "{E4187588-6530-46A8-AD8E-53436D313AFE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -169.176, - 22.954, - 321.287 - ], - "size": [ - 22.594, - 27.718, - 27.688 - ], - "groundY": 9.095, - "roofY": 36.813, - "wallCount": 88, - "roofCount": 58 - }, - { - "id": "sion_1665", - "uuid": "{569122E5-F856-4F88-B57C-299E371856C1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 316.344, - 12.216, - -9.579 - ], - "size": [ - 27.57, - 8.466, - 9.861 - ], - "groundY": 7.983, - "roofY": 16.449, - "wallCount": 18, - "roofCount": 10 - }, - { - "id": "sion_1666", - "uuid": "{7D7CC42E-84AB-414C-A6AA-966F507DD3CB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1119.465, - 9.893, - -828.231 - ], - "size": [ - 14.078, - 10.25, - 14.086 - ], - "groundY": 4.768, - "roofY": 15.018, - "wallCount": 26, - "roofCount": 11 - }, - { - "id": "sion_1667", - "uuid": "{A70ABFCD-D6DD-4A1C-8306-BD5B2B83F249}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 318.936, - 7.844, - 546.133 - ], - "size": [ - 36.02, - 11.141, - 40.873 - ], - "groundY": 2.274, - "roofY": 13.415, - "wallCount": 18, - "roofCount": 20 - }, - { - "id": "sion_1668", - "uuid": "{A29FDD4C-C4C6-445E-B3B4-C0AB4A2337A5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 642.129, - 9.636, - 38.626 - ], - "size": [ - 15.219, - 13.889, - 30.943 - ], - "groundY": 2.691, - "roofY": 16.58, - "wallCount": 18, - "roofCount": 20 - }, - { - "id": "sion_1669", - "uuid": "{44E462D2-0FD6-4B51-BDEF-1CE23B06D7C5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1171.436, - 17.378, - 516.419 - ], - "size": [ - 113.566, - 24.772, - 31.805 - ], - "groundY": 4.992, - "roofY": 29.764, - "wallCount": 63, - "roofCount": 74 - }, - { - "id": "sion_1670", - "uuid": "{ED87C6A9-326C-4E24-9EA6-1F0F9782A13C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 737.107, - 70.761, - -1092.366 - ], - "size": [ - 5.848, - 7.064, - 6.114 - ], - "groundY": 67.229, - "roofY": 74.293, - "wallCount": 36, - "roofCount": 4 - }, - { - "id": "sion_1671", - "uuid": "{EEC63C63-5340-46ED-9881-B16B3648C315}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 295.844, - 80.575, - -987.917 - ], - "size": [ - 30.141, - 15.547, - 34.982 - ], - "groundY": 72.802, - "roofY": 88.349, - "wallCount": 52, - "roofCount": 16 - }, - { - "id": "sion_1672", - "uuid": "{553DA645-1639-46BE-8D3D-A98E87BEB7D6}", - "name": "", - "class": "Unterirdisches Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 716.906, - 17.768, - -168.963 - ], - "size": [ - 121.547, - 29.773, - 115.324 - ], - "groundY": 2.881, - "roofY": 32.654, - "wallCount": 248, - "roofCount": 106 - }, - { - "id": "sion_1673", - "uuid": "{0F98270C-1240-450B-81D2-FC4754AA4969}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -227.812, - 12.284, - 574.338 - ], - "size": [ - 59.062, - 20.98, - 30.225 - ], - "groundY": 1.794, - "roofY": 22.774, - "wallCount": 55, - "roofCount": 21 - }, - { - "id": "sion_1674", - "uuid": "{F672CC29-08C5-4678-BDC9-1795DE46B0E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -133.83, - 196.458, - -1471.507 - ], - "size": [ - 17.934, - 12.332, - 20.376 - ], - "groundY": 190.292, - "roofY": 202.624, - "wallCount": 61, - "roofCount": 23 - }, - { - "id": "sion_1675", - "uuid": "{ACDAEAEB-C5F4-431F-95D8-E0602C036865}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -79.889, - 13.592, - 316.522 - ], - "size": [ - 8.957, - 7.559, - 6.29 - ], - "groundY": 9.813, - "roofY": 17.372, - "wallCount": 16, - "roofCount": 16 - }, - { - "id": "sion_1676", - "uuid": "{64C5C007-AF95-4EC3-BC37-38B447979988}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -304.225, - 56.726, - -513.811 - ], - "size": [ - 48.84, - 21.133, - 15.966 - ], - "groundY": 46.159, - "roofY": 67.292, - "wallCount": 34, - "roofCount": 49 - }, - { - "id": "sion_1677", - "uuid": "{129EF01B-E8A2-4DAA-A46D-587AE263E0F7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 364.596, - 214.192, - -1400.148 - ], - "size": [ - 13.457, - 9.805, - 13.85 - ], - "groundY": 209.289, - "roofY": 219.094, - "wallCount": 30, - "roofCount": 10 - }, - { - "id": "sion_1678", - "uuid": "{B7B6A290-A6FA-434B-ADA1-CF9235629259}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 170.832, - 66.497, - -716.916 - ], - "size": [ - 49.477, - 24.994, - 53.215 - ], - "groundY": 54.0, - "roofY": 78.994, - "wallCount": 30, - "roofCount": 8 - }, - { - "id": "sion_1679", - "uuid": "{470BF7A0-D36C-4F0C-B026-147D002BDA15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1472.152, - 18.635, - 75.148 - ], - "size": [ - 20.453, - 20.764, - 22.265 - ], - "groundY": 8.253, - "roofY": 29.017, - "wallCount": 73, - "roofCount": 54 - }, - { - "id": "sion_1680", - "uuid": "{966A3095-C3A2-4545-8B9A-F61295DC6519}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -10.494, - 86.306, - -363.691 - ], - "size": [ - 7.129, - 4.634, - 4.898 - ], - "groundY": 83.989, - "roofY": 88.623, - "wallCount": 41, - "roofCount": 12 - }, - { - "id": "sion_1681", - "uuid": "{B14B92B1-3777-4AFA-AE4E-3632A7CE6AA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -288.805, - 52.53, - -441.104 - ], - "size": [ - 39.586, - 20.825, - 65.05 - ], - "groundY": 42.118, - "roofY": 62.942, - "wallCount": 78, - "roofCount": 46 - }, - { - "id": "sion_1682", - "uuid": "{FEFA26C8-2BBA-45CE-A3E4-3DB48DC3180F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -140.592, - 80.757, - -951.248 - ], - "size": [ - 28.262, - 10.797, - 14.98 - ], - "groundY": 75.359, - "roofY": 86.156, - "wallCount": 34, - "roofCount": 37 - }, - { - "id": "sion_1683", - "uuid": "{BBA74670-C725-48EA-AC0A-8CE23B83F18F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -271.586, - 44.596, - -279.619 - ], - "size": [ - 21.328, - 20.541, - 27.22 - ], - "groundY": 34.325, - "roofY": 54.866, - "wallCount": 34, - "roofCount": 22 - }, - { - "id": "sion_1684", - "uuid": "{A1D1C694-842B-4C2F-94E5-B77154891ED3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 706.732, - 34.313, - -976.066 - ], - "size": [ - 4.644, - 5.544, - 4.663 - ], - "groundY": 31.541, - "roofY": 37.085, - "wallCount": 15, - "roofCount": 16 - }, - { - "id": "sion_1685", - "uuid": "{0C55A9A7-E31D-4CCD-BE48-8F4A94C4A30F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 388.863, - 66.284, - -895.191 - ], - "size": [ - 21.898, - 10.426, - 19.403 - ], - "groundY": 61.071, - "roofY": 71.497, - "wallCount": 54, - "roofCount": 29 - }, - { - "id": "sion_1686", - "uuid": "{34EC420E-82D2-4592-A50D-2C67736D8964}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1338.914, - 19.143, - 48.079 - ], - "size": [ - 18.391, - 26.597, - 31.43 - ], - "groundY": 5.845, - "roofY": 32.442, - "wallCount": 87, - "roofCount": 20 - }, - { - "id": "sion_1687", - "uuid": "{CD58FEEE-735D-4087-A25A-F2F8B661D686}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 530.266, - 7.704, - 577.879 - ], - "size": [ - 16.539, - 10.81, - 15.691 - ], - "groundY": 2.299, - "roofY": 13.109, - "wallCount": 47, - "roofCount": 30 - }, - { - "id": "sion_1688", - "uuid": "{4312DECE-B3E8-4969-AE4F-F6471AC3BCDD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 59.645, - 74.723, - -973.414 - ], - "size": [ - 54.211, - 17.367, - 34.416 - ], - "groundY": 66.04, - "roofY": 83.407, - "wallCount": 29, - "roofCount": 26 - }, - { - "id": "sion_1689", - "uuid": "{91E776ED-977F-4962-BE39-D7B0783E374D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1291.07, - 10.096, - 293.521 - ], - "size": [ - 10.078, - 5.038, - 11.005 - ], - "groundY": 7.577, - "roofY": 12.615, - "wallCount": 51, - "roofCount": 8 - }, - { - "id": "sion_1690", - "uuid": "{AFE897E1-4367-4103-AC8B-BF0FA01C9AE6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 478.598, - 14.26, - -52.371 - ], - "size": [ - 36.875, - 23.574, - 53.145 - ], - "groundY": 2.473, - "roofY": 26.047, - "wallCount": 72, - "roofCount": 24 - }, - { - "id": "sion_1691", - "uuid": "{C35FF25A-0B40-4F51-8FFA-0E934C1ABB92}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 462.777, - 55.512, - -890.416 - ], - "size": [ - 11.68, - 11.564, - 13.772 - ], - "groundY": 49.73, - "roofY": 61.294, - "wallCount": 35, - "roofCount": 15 - }, - { - "id": "sion_1692", - "uuid": "{E9990C6F-C755-4C3F-BE31-8B9E1FC8E9BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 349.75, - 58.748, - -841.105 - ], - "size": [ - 17.359, - 11.044, - 13.276 - ], - "groundY": 53.226, - "roofY": 64.27, - "wallCount": 40, - "roofCount": 17 - }, - { - "id": "sion_1693", - "uuid": "{84B9A8E2-1EBD-446D-A4EA-A3ABEAB01BF4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 19.895, - 64.223, - -783.888 - ], - "size": [ - 9.711, - 10.208, - 9.388 - ], - "groundY": 59.119, - "roofY": 69.327, - "wallCount": 20, - "roofCount": 30 - }, - { - "id": "sion_1694", - "uuid": "{E33B3CB5-F36C-42D9-A805-6F5A2B6B0D42}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -237.225, - 64.655, - -707.427 - ], - "size": [ - 17.02, - 16.058, - 15.742 - ], - "groundY": 56.626, - "roofY": 72.684, - "wallCount": 39, - "roofCount": 21 - }, - { - "id": "sion_1695", - "uuid": "{BFEAE78F-ACDB-40DA-947E-F22AA909AFCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 55.475, - 71.573, - -348.981 - ], - "size": [ - 61.824, - 19.742, - 24.354 - ], - "groundY": 61.702, - "roofY": 81.444, - "wallCount": 160, - "roofCount": 80 - }, - { - "id": "sion_1696", - "uuid": "{6B03A258-4341-41DA-99F6-F2EAC7DD7B4D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -24.373, - 60.805, - -295.707 - ], - "size": [ - 24.59, - 20.268, - 25.336 - ], - "groundY": 50.671, - "roofY": 70.939, - "wallCount": 52, - "roofCount": 22 - }, - { - "id": "sion_1697", - "uuid": "{2F31A64A-C9A9-45F2-8BF6-0CA3552F7E8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 340.848, - 17.929, - -97.187 - ], - "size": [ - 70.539, - 26.424, - 34.103 - ], - "groundY": 4.717, - "roofY": 31.141, - "wallCount": 26, - "roofCount": 20 - }, - { - "id": "sion_1698", - "uuid": "{8B85E773-D464-4C3D-9E03-CF28E4E5CBB0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -155.799, - 8.113, - 639.709 - ], - "size": [ - 58.902, - 12.718, - 92.187 - ], - "groundY": 1.754, - "roofY": 14.472, - "wallCount": 14, - "roofCount": 28 - }, - { - "id": "sion_1699", - "uuid": "{0CC9E1A5-B0D7-4F4F-8500-5FD17522F7C2}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -54.853, - 66.438, - -168.347 - ], - "size": [ - 59.855, - 48.792, - 73.933 - ], - "groundY": 42.042, - "roofY": 90.834, - "wallCount": 465, - "roofCount": 355 - }, - { - "id": "sion_1700", - "uuid": "{823FCBF0-F517-4A30-B4FB-38E6B20E7DF8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1050.996, - 10.018, - 373.157 - ], - "size": [ - 12.727, - 10.434, - 11.184 - ], - "groundY": 4.801, - "roofY": 15.235, - "wallCount": 48, - "roofCount": 31 - }, - { - "id": "sion_1701", - "uuid": "{3DD03334-362E-4F86-BA70-5485C7E7E112}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1390.045, - 19.439, - 7.798 - ], - "size": [ - 31.098, - 26.3, - 35.982 - ], - "groundY": 6.289, - "roofY": 32.589, - "wallCount": 100, - "roofCount": 24 - }, - { - "id": "sion_1702", - "uuid": "{87ECBF11-EA02-4871-9099-ED3CFB073944}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -130.871, - 45.932, - -311.343 - ], - "size": [ - 36.07, - 19.803, - 27.96 - ], - "groundY": 36.031, - "roofY": 55.834, - "wallCount": 68, - "roofCount": 40 - }, - { - "id": "sion_1703", - "uuid": "{2DC301E5-E458-40B3-85CC-AD068C4A6992}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1377.834, - 16.253, - 183.389 - ], - "size": [ - 13.738, - 14.811, - 25.466 - ], - "groundY": 8.848, - "roofY": 23.659, - "wallCount": 38, - "roofCount": 34 - }, - { - "id": "sion_1704", - "uuid": "{431CEB6B-4765-42C0-8489-099AD2B63A87}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -161.539, - 44.937, - -319.924 - ], - "size": [ - 23.594, - 20.844, - 23.41 - ], - "groundY": 34.515, - "roofY": 55.359, - "wallCount": 75, - "roofCount": 46 - }, - { - "id": "sion_1705", - "uuid": "{304FFB92-DC72-4A3E-B031-AC66824B3F96}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 960.254, - 15.561, - 18.829 - ], - "size": [ - 52.992, - 24.38, - 66.456 - ], - "groundY": 3.371, - "roofY": 27.751, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1706", - "uuid": "{5C97675A-8F4D-4364-AB74-9AAB15513C2D}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 639.918, - 17.053, - 280.717 - ], - "size": [ - 24.719, - 28.032, - 31.78 - ], - "groundY": 3.037, - "roofY": 31.069, - "wallCount": 25, - "roofCount": 2 - }, - { - "id": "sion_1707", - "uuid": "{B4DA4597-30E1-41E3-B427-FC0CDA183A02}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 213.709, - 58.409, - -726.946 - ], - "size": [ - 17.316, - 13.389, - 15.67 - ], - "groundY": 51.715, - "roofY": 65.104, - "wallCount": 40, - "roofCount": 12 - }, - { - "id": "sion_1708", - "uuid": "{7460E20C-5DB5-47F1-A588-29F8CA0CD2D2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 179.619, - 69.548, - -902.997 - ], - "size": [ - 44.824, - 16.975, - 25.932 - ], - "groundY": 61.061, - "roofY": 78.036, - "wallCount": 26, - "roofCount": 28 - }, - { - "id": "sion_1709", - "uuid": "{54C40375-8CF8-4409-B4D4-97BA5AA486B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -206.574, - 44.919, - -351.323 - ], - "size": [ - 40.398, - 19.102, - 45.652 - ], - "groundY": 35.368, - "roofY": 54.47, - "wallCount": 95, - "roofCount": 62 - }, - { - "id": "sion_1710", - "uuid": "{837A2C45-1913-456B-A621-3F08D998DFAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 468.619, - 60.582, - -699.607 - ], - "size": [ - 10.699, - 7.101, - 5.597 - ], - "groundY": 57.031, - "roofY": 64.132, - "wallCount": 36, - "roofCount": 23 - }, - { - "id": "sion_1711", - "uuid": "{02D69022-6DC4-4A66-A797-6788D5989AF0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1258.852, - 12.52, - 245.86 - ], - "size": [ - 30.281, - 10.622, - 11.618 - ], - "groundY": 7.209, - "roofY": 17.831, - "wallCount": 28, - "roofCount": 28 - }, - { - "id": "sion_1712", - "uuid": "{72CD113C-DD02-480C-B2B1-058F3B8A906D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 201.391, - 7.994, - 519.203 - ], - "size": [ - 64.375, - 12.153, - 32.884 - ], - "groundY": 1.918, - "roofY": 14.071, - "wallCount": 53, - "roofCount": 26 - }, - { - "id": "sion_1713", - "uuid": "{FEEA4FEA-CE36-4E02-B0FC-E152A28BAFD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -70.529, - 50.673, - -362.468 - ], - "size": [ - 15.559, - 12.873, - 17.344 - ], - "groundY": 44.236, - "roofY": 57.109, - "wallCount": 48, - "roofCount": 27 - }, - { - "id": "sion_1714", - "uuid": "{285036DC-98E8-45FE-8E3C-45DB24948D18}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1435.688, - 15.409, - -32.769 - ], - "size": [ - 29.227, - 16.415, - 24.536 - ], - "groundY": 7.201, - "roofY": 23.616, - "wallCount": 88, - "roofCount": 18 - }, - { - "id": "sion_1715", - "uuid": "{3F0255F1-6F28-4303-85D4-F12C019E45FD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1314.949, - 12.879, - 287.688 - ], - "size": [ - 30.281, - 10.612, - 11.616 - ], - "groundY": 7.573, - "roofY": 18.185, - "wallCount": 22, - "roofCount": 22 - }, - { - "id": "sion_1716", - "uuid": "{7513A248-E3B3-41F9-8BB4-5935D701071C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -280.33, - 52.531, - -487.038 - ], - "size": [ - 25.894, - 18.503, - 19.486 - ], - "groundY": 43.279, - "roofY": 61.782, - "wallCount": 13, - "roofCount": 16 - }, - { - "id": "sion_1717", - "uuid": "{5C04409E-EACE-4899-AC89-8B763FC0D44E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 161.0, - 24.524, - -69.128 - ], - "size": [ - 24.812, - 21.411, - 19.414 - ], - "groundY": 13.818, - "roofY": 35.229, - "wallCount": 8, - "roofCount": 29 - }, - { - "id": "sion_1718", - "uuid": "{A23A7DBC-5FC6-45C3-A3CA-0F42AD098C06}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 636.619, - 80.429, - -580.692 - ], - "size": [ - 5.301, - 6.222, - 5.544 - ], - "groundY": 77.318, - "roofY": 83.54, - "wallCount": 12, - "roofCount": 8 - }, - { - "id": "sion_1719", - "uuid": "{0ADB15E0-BFE8-4533-999B-85C705D37E69}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 303.91, - 13.675, - 170.132 - ], - "size": [ - 31.352, - 7.454, - 24.268 - ], - "groundY": 9.948, - "roofY": 17.402, - "wallCount": 15, - "roofCount": 9 - }, - { - "id": "sion_1720", - "uuid": "{7558AA5F-4FED-4DAC-8B0A-279ECCE8E1B2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 248.035, - 4.459, - 593.493 - ], - "size": [ - 17.273, - 5.072, - 20.065 - ], - "groundY": 1.923, - "roofY": 6.995, - "wallCount": 15, - "roofCount": 2 - }, - { - "id": "sion_1721", - "uuid": "{E02457F7-9C74-49E6-AC33-B71B9F9D5524}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 240.279, - 73.252, - -912.235 - ], - "size": [ - 59.746, - 20.49, - 57.153 - ], - "groundY": 63.007, - "roofY": 83.497, - "wallCount": 55, - "roofCount": 16 - }, - { - "id": "sion_1722", - "uuid": "{0192894D-C7A1-4134-B139-FAAC131AB892}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1282.436, - 13.617, - 611.511 - ], - "size": [ - 51.957, - 12.79, - 30.442 - ], - "groundY": 7.222, - "roofY": 20.012, - "wallCount": 12, - "roofCount": 22 - }, - { - "id": "sion_1723", - "uuid": "{B548338C-B590-4E82-9587-C4772A48A173}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -297.213, - 48.568, - -348.917 - ], - "size": [ - 43.066, - 23.142, - 41.672 - ], - "groundY": 36.997, - "roofY": 60.139, - "wallCount": 102, - "roofCount": 64 - }, - { - "id": "sion_1724", - "uuid": "{D8B671B5-0DDA-4E1F-A2C7-1B5BF51A6FA1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 396.445, - 219.787, - -1372.774 - ], - "size": [ - 23.641, - 10.229, - 23.146 - ], - "groundY": 214.673, - "roofY": 224.901, - "wallCount": 38, - "roofCount": 26 - }, - { - "id": "sion_1725", - "uuid": "{EB75E232-468A-4ED5-A880-B50375765875}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 398.353, - 58.2, - -717.867 - ], - "size": [ - 20.918, - 6.066, - 11.738 - ], - "groundY": 55.167, - "roofY": 61.233, - "wallCount": 21, - "roofCount": 29 - }, - { - "id": "sion_1726", - "uuid": "{2611CC66-4F5F-4D99-BB10-75732ACF9172}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 615.615, - 8.46, - 875.956 - ], - "size": [ - 43.41, - 10.105, - 34.275 - ], - "groundY": 3.408, - "roofY": 13.513, - "wallCount": 10, - "roofCount": 23 - }, - { - "id": "sion_1727", - "uuid": "{13DBA8E4-1DEA-4CAC-8F36-81ED46710A30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 910.434, - 15.599, - 16.996 - ], - "size": [ - 30.43, - 25.97, - 27.939 - ], - "groundY": 2.614, - "roofY": 28.584, - "wallCount": 50, - "roofCount": 6 - }, - { - "id": "sion_1728", - "uuid": "{C9EB0AB5-1E8B-44E3-A89A-679298EBC319}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1528.744, - 14.029, - 406.92 - ], - "size": [ - 13.816, - 9.918, - 13.736 - ], - "groundY": 9.07, - "roofY": 18.988, - "wallCount": 29, - "roofCount": 18 - }, - { - "id": "sion_1729", - "uuid": "{238B6CB3-E0DA-407E-86F8-436960A2271A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 229.125, - 57.002, - -766.9 - ], - "size": [ - 20.273, - 9.836, - 14.987 - ], - "groundY": 52.084, - "roofY": 61.92, - "wallCount": 28, - "roofCount": 11 - }, - { - "id": "sion_1730", - "uuid": "{101B7BDC-7235-4B7A-B9C0-EE5C70ED03F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1259.592, - 12.429, - 337.88 - ], - "size": [ - 30.41, - 10.49, - 11.784 - ], - "groundY": 7.184, - "roofY": 17.674, - "wallCount": 24, - "roofCount": 21 - }, - { - "id": "sion_1731", - "uuid": "{24D11C28-88F6-4FFE-9532-C4AB7E0DDC9F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 333.533, - 19.33, - 188.136 - ], - "size": [ - 29.488, - 22.24, - 24.608 - ], - "groundY": 8.21, - "roofY": 30.45, - "wallCount": 14, - "roofCount": 17 - }, - { - "id": "sion_1732", - "uuid": "{284CB4B6-4CB8-4713-BFF7-77D453F6E653}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -123.648, - 89.661, - -1045.903 - ], - "size": [ - 12.203, - 9.917, - 18.826 - ], - "groundY": 84.703, - "roofY": 94.62, - "wallCount": 32, - "roofCount": 36 - }, - { - "id": "sion_1733", - "uuid": "{9B95E703-DF62-4740-BCFE-5D5C633023AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 561.113, - 10.193, - 425.145 - ], - "size": [ - 30.758, - 14.692, - 26.013 - ], - "groundY": 2.847, - "roofY": 17.539, - "wallCount": 38, - "roofCount": 21 - }, - { - "id": "sion_1734", - "uuid": "{8885341C-7760-453F-B1E8-E90A71CBEE2D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1258.65, - 12.708, - -41.995 - ], - "size": [ - 43.918, - 9.986, - 43.934 - ], - "groundY": 7.715, - "roofY": 17.7, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1735", - "uuid": "{D7A8BE4F-D269-4778-8C89-EB7344417F9F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 721.904, - 15.706, - 133.813 - ], - "size": [ - 29.848, - 26.779, - 21.632 - ], - "groundY": 2.317, - "roofY": 29.095, - "wallCount": 98, - "roofCount": 21 - }, - { - "id": "sion_1736", - "uuid": "{959E07B5-C9D1-4558-9D41-EB43FC5F2424}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -228.027, - 32.797, - 122.987 - ], - "size": [ - 35.156, - 27.529, - 54.114 - ], - "groundY": 19.032, - "roofY": 46.561, - "wallCount": 39, - "roofCount": 28 - }, - { - "id": "sion_1737", - "uuid": "{B916510A-C96B-47DC-842E-2B81FC231EAE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 783.869, - 9.239, - 617.252 - ], - "size": [ - 27.527, - 9.681, - 29.951 - ], - "groundY": 4.398, - "roofY": 14.079, - "wallCount": 20, - "roofCount": 10 - }, - { - "id": "sion_1738", - "uuid": "{06B61ACF-F7EA-46C7-AFB6-580260AC2429}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -70.451, - 8.322, - 995.725 - ], - "size": [ - 26.379, - 8.476, - 27.494 - ], - "groundY": 4.084, - "roofY": 12.56, - "wallCount": 30, - "roofCount": 26 - }, - { - "id": "sion_1739", - "uuid": "{B1E659EA-A0A1-411D-A455-DBA788649B75}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1050.799, - 11.994, - 605.102 - ], - "size": [ - 41.637, - 13.236, - 22.04 - ], - "groundY": 5.376, - "roofY": 18.612, - "wallCount": 37, - "roofCount": 18 - }, - { - "id": "sion_1740", - "uuid": "{B2098EA1-D5C2-4424-A6C7-B55F0808BB04}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 132.062, - 61.383, - -648.84 - ], - "size": [ - 23.805, - 9.982, - 15.574 - ], - "groundY": 56.392, - "roofY": 66.374, - "wallCount": 40, - "roofCount": 12 - }, - { - "id": "sion_1741", - "uuid": "{C60CC4C9-AE69-4766-900E-4C0C75C35EF1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 0.766, - 30.671, - 130.079 - ], - "size": [ - 67.125, - 29.22, - 65.475 - ], - "groundY": 16.061, - "roofY": 45.281, - "wallCount": 71, - "roofCount": 161 - }, - { - "id": "sion_1742", - "uuid": "{33CB4745-9C39-4064-99E6-5B96FB05157F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -13.803, - 61.556, - -322.847 - ], - "size": [ - 23.543, - 14.546, - 14.78 - ], - "groundY": 54.283, - "roofY": 68.829, - "wallCount": 52, - "roofCount": 23 - }, - { - "id": "sion_1743", - "uuid": "{380BFBAB-A554-4AB3-A708-A9DF6C80D424}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -143.781, - 82.413, - -1042.93 - ], - "size": [ - 12.609, - 8.167, - 21.704 - ], - "groundY": 78.33, - "roofY": 86.497, - "wallCount": 30, - "roofCount": 5 - }, - { - "id": "sion_1744", - "uuid": "{D70AA9BC-C236-4622-B9B5-4DA85A125748}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1494.039, - 12.558, - 336.169 - ], - "size": [ - 19.93, - 10.582, - 21.906 - ], - "groundY": 7.267, - "roofY": 17.849, - "wallCount": 48, - "roofCount": 4 - }, - { - "id": "sion_1745", - "uuid": "{DD9289EE-27CC-4E81-A34A-3B903A430812}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 465.641, - 215.933, - -1516.344 - ], - "size": [ - 21.875, - 12.792, - 16.468 - ], - "groundY": 209.537, - "roofY": 222.329, - "wallCount": 68, - "roofCount": 32 - }, - { - "id": "sion_1746", - "uuid": "{9CEDA920-89A6-426F-9328-2B79D5A9D986}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 736.447, - 13.325, - 103.515 - ], - "size": [ - 35.793, - 22.077, - 29.382 - ], - "groundY": 2.287, - "roofY": 24.364, - "wallCount": 74, - "roofCount": 20 - }, - { - "id": "sion_1747", - "uuid": "{989E993F-992B-4195-B69D-12184452C29C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 849.98, - 155.398, - -1250.641 - ], - "size": [ - 8.008, - 8.964, - 8.742 - ], - "groundY": 150.916, - "roofY": 159.88, - "wallCount": 55, - "roofCount": 2 - }, - { - "id": "sion_1748", - "uuid": "{CCBC4529-B48A-4552-A33B-8855362A8F0D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -157.57, - 65.183, - -711.385 - ], - "size": [ - 17.992, - 16.133, - 16.882 - ], - "groundY": 57.116, - "roofY": 73.249, - "wallCount": 41, - "roofCount": 59 - }, - { - "id": "sion_1749", - "uuid": "{DF092E47-D9D8-4361-AABC-07D14E506E12}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1092.022, - 11.234, - 347.671 - ], - "size": [ - 21.324, - 11.832, - 11.418 - ], - "groundY": 5.318, - "roofY": 17.15, - "wallCount": 27, - "roofCount": 27 - }, - { - "id": "sion_1750", - "uuid": "{E359F952-082C-4021-8852-C78CB64F057C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 312.978, - 73.06, - -912.763 - ], - "size": [ - 23.824, - 8.46, - 13.188 - ], - "groundY": 68.83, - "roofY": 77.29, - "wallCount": 35, - "roofCount": 16 - }, - { - "id": "sion_1751", - "uuid": "{A4361D91-B957-4B70-9781-A1967FD7F1E5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 191.199, - 21.563, - 8.641 - ], - "size": [ - 15.141, - 15.633, - 12.628 - ], - "groundY": 13.747, - "roofY": 29.38, - "wallCount": 19, - "roofCount": 30 - }, - { - "id": "sion_1752", - "uuid": "{D5F6432B-801C-4CEB-8721-0ADC46F8EAD8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1113.041, - 9.599, - 227.278 - ], - "size": [ - 36.481, - 8.902, - 28.206 - ], - "groundY": 5.148, - "roofY": 14.05, - "wallCount": 59, - "roofCount": 36 - }, - { - "id": "sion_1753", - "uuid": "{68C1F590-C90E-4DBA-ADD8-18A8C35CF6C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 364.313, - 211.991, - -1441.437 - ], - "size": [ - 11.688, - 8.597, - 16.933 - ], - "groundY": 207.693, - "roofY": 216.29, - "wallCount": 11, - "roofCount": 41 - }, - { - "id": "sion_1754", - "uuid": "{105A31B4-DE59-4861-9E4E-D6C69DB81895}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 967.807, - 9.491, - 872.213 - ], - "size": [ - 57.91, - 9.476, - 27.502 - ], - "groundY": 4.753, - "roofY": 14.229, - "wallCount": 20, - "roofCount": 15 - }, - { - "id": "sion_1755", - "uuid": "{0EC21C04-58FB-4296-9CC0-512C208D42C9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 807.123, - 13.036, - -367.003 - ], - "size": [ - 19.793, - 19.446, - 15.178 - ], - "groundY": 3.313, - "roofY": 22.758, - "wallCount": 116, - "roofCount": 31 - }, - { - "id": "sion_1756", - "uuid": "{081016C9-A7B7-4468-859F-64662E0E864B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 672.953, - 8.78, - 521.828 - ], - "size": [ - 33.336, - 10.23, - 35.395 - ], - "groundY": 3.665, - "roofY": 13.895, - "wallCount": 10, - "roofCount": 0 - }, - { - "id": "sion_1757", - "uuid": "{3D1270CF-4B1E-4CD9-9426-D82DB45CCFAC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1531.475, - 17.909, - 193.31 - ], - "size": [ - 48.605, - 20.14, - 65.091 - ], - "groundY": 7.839, - "roofY": 27.979, - "wallCount": 55, - "roofCount": 63 - }, - { - "id": "sion_1758", - "uuid": "{93C23476-31A4-4DB5-A88E-27AF58163B9C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 226.834, - 88.563, - -1030.627 - ], - "size": [ - 26.957, - 14.081, - 17.344 - ], - "groundY": 81.523, - "roofY": 95.604, - "wallCount": 69, - "roofCount": 25 - }, - { - "id": "sion_1759", - "uuid": "{AD211BA7-353A-4BFA-B107-96CE158CD443}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -270.486, - 76.15, - -899.819 - ], - "size": [ - 15.363, - 12.226, - 13.899 - ], - "groundY": 70.037, - "roofY": 82.263, - "wallCount": 37, - "roofCount": 22 - }, - { - "id": "sion_1760", - "uuid": "{3761B5EC-9DF0-47CE-9F3A-8CE494195DE0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -372.801, - 67.815, - -756.23 - ], - "size": [ - 13.258, - 13.303, - 14.485 - ], - "groundY": 61.164, - "roofY": 74.467, - "wallCount": 32, - "roofCount": 35 - }, - { - "id": "sion_1761", - "uuid": "{3DE372D3-02BC-4181-A58C-18A049DEB2FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -246.717, - 58.968, - -605.603 - ], - "size": [ - 4.973, - 6.088, - 4.962 - ], - "groundY": 55.924, - "roofY": 62.012, - "wallCount": 25, - "roofCount": 8 - }, - { - "id": "sion_1762", - "uuid": "{3B3B9CCA-5AD1-4C39-9D8E-5F0DD20AF912}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -343.441, - 13.394, - 361.44 - ], - "size": [ - 7.516, - 10.01, - 8.227 - ], - "groundY": 8.389, - "roofY": 18.399, - "wallCount": 59, - "roofCount": 19 - }, - { - "id": "sion_1763", - "uuid": "{098DF08B-635D-4FD8-9C4F-26F5CCA94644}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 324.936, - 17.979, - -44.375 - ], - "size": [ - 89.895, - 23.08, - 17.359 - ], - "groundY": 6.439, - "roofY": 29.518, - "wallCount": 28, - "roofCount": 47 - }, - { - "id": "sion_1764", - "uuid": "{D17B9A00-217F-4996-BC88-BE4FF54633F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -85.35, - 54.856, - -501.198 - ], - "size": [ - 17.996, - 20.156, - 21.288 - ], - "groundY": 44.778, - "roofY": 64.934, - "wallCount": 50, - "roofCount": 55 - }, - { - "id": "sion_1765", - "uuid": "{75CA65F6-9C05-4A21-A516-AB08D9E8CF63}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 424.676, - 6.749, - 825.054 - ], - "size": [ - 30.547, - 8.674, - 28.4 - ], - "groundY": 2.412, - "roofY": 11.086, - "wallCount": 34, - "roofCount": 45 - }, - { - "id": "sion_1766", - "uuid": "{441802C9-CE3C-40EE-9F37-5A09A1B261A3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -265.736, - 30.906, - -50.669 - ], - "size": [ - 27.043, - 12.07, - 25.451 - ], - "groundY": 24.871, - "roofY": 36.941, - "wallCount": 42, - "roofCount": 47 - }, - { - "id": "sion_1767", - "uuid": "{71A190EC-D826-4F83-92CB-878A3D13A81F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 354.211, - 219.25, - -1343.016 - ], - "size": [ - 18.445, - 11.64, - 15.998 - ], - "groundY": 213.43, - "roofY": 225.07, - "wallCount": 38, - "roofCount": 20 - }, - { - "id": "sion_1768", - "uuid": "{859D6BDE-6F5D-4AAF-A116-D21B413C7F87}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1362.957, - 132.06, - -1520.947 - ], - "size": [ - 7.562, - 9.986, - 7.355 - ], - "groundY": 127.067, - "roofY": 137.053, - "wallCount": 50, - "roofCount": 13 - }, - { - "id": "sion_1769", - "uuid": "{EA21774E-CFCF-42E2-AB47-EE57DBE27B0E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -47.478, - 62.304, - -212.063 - ], - "size": [ - 34.645, - 23.591, - 31.769 - ], - "groundY": 50.509, - "roofY": 74.1, - "wallCount": 66, - "roofCount": 31 - }, - { - "id": "sion_1770", - "uuid": "{73D09D86-8C47-44EC-B03C-59638CC6D5F0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -165.834, - 79.065, - -911.587 - ], - "size": [ - 12.199, - 15.08, - 11.562 - ], - "groundY": 71.525, - "roofY": 86.605, - "wallCount": 57, - "roofCount": 28 - }, - { - "id": "sion_1771", - "uuid": "{7C420A26-B33B-473E-A4BD-94C886FD210A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1025.863, - 8.501, - -706.734 - ], - "size": [ - 25.086, - 7.95, - 20.558 - ], - "groundY": 4.526, - "roofY": 12.476, - "wallCount": 23, - "roofCount": 15 - }, - { - "id": "sion_1772", - "uuid": "{B2487815-AFF3-4850-BDCF-609E6F1825CA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -274.691, - 20.286, - 290.672 - ], - "size": [ - 26.992, - 17.615, - 27.027 - ], - "groundY": 11.478, - "roofY": 29.093, - "wallCount": 52, - "roofCount": 28 - }, - { - "id": "sion_1773", - "uuid": "{7C2AA1F7-6E91-4A09-A0E9-0BDF71DE4410}", - "name": "Tous les Saints", - "class": "Kapelle", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 184.65, - 99.716, - -310.617 - ], - "size": [ - 12.855, - 22.212, - 10.424 - ], - "groundY": 88.61, - "roofY": 110.822, - "wallCount": 95, - "roofCount": 36 - }, - { - "id": "sion_1774", - "uuid": "{933D2225-8E19-4DA1-B97B-9721A74D1EDF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 460.943, - 8.463, - 896.956 - ], - "size": [ - 34.684, - 10.923, - 63.051 - ], - "groundY": 3.002, - "roofY": 13.924, - "wallCount": 20, - "roofCount": 34 - }, - { - "id": "sion_1775", - "uuid": "{795299A1-9129-4966-AB50-204CC5EDDDB3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 280.912, - 74.275, - -902.801 - ], - "size": [ - 14.613, - 11.448, - 14.94 - ], - "groundY": 68.551, - "roofY": 79.999, - "wallCount": 59, - "roofCount": 25 - }, - { - "id": "sion_1776", - "uuid": "{FEA709D9-6CCC-4255-A398-8DC13AEDA264}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -381.82, - 2.487, - 658.801 - ], - "size": [ - 9.578, - 5.95, - 10.912 - ], - "groundY": -0.488, - "roofY": 5.462, - "wallCount": 28, - "roofCount": 2 - }, - { - "id": "sion_1777", - "uuid": "{A42195F7-F3A5-4466-B608-C85D97FAEBEA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1530.674, - 11.086, - -145.719 - ], - "size": [ - 28.848, - 8.836, - 35.25 - ], - "groundY": 6.668, - "roofY": 15.504, - "wallCount": 23, - "roofCount": 13 - }, - { - "id": "sion_1778", - "uuid": "{C155966E-A685-4FF1-B135-D4951217F389}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 969.336, - 11.275, - 911.38 - ], - "size": [ - 24.578, - 10.749, - 25.975 - ], - "groundY": 5.9, - "roofY": 16.649, - "wallCount": 37, - "roofCount": 26 - }, - { - "id": "sion_1779", - "uuid": "{95905DAA-CF85-4D7D-8C65-5BFD9378958D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 363.053, - 87.728, - -1028.839 - ], - "size": [ - 51.512, - 15.056, - 30.268 - ], - "groundY": 80.2, - "roofY": 95.256, - "wallCount": 106, - "roofCount": 51 - }, - { - "id": "sion_1780", - "uuid": "{38BE2AA6-3BAA-4609-AAC9-B3F9ACF0E00A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 707.635, - 10.905, - 168.73 - ], - "size": [ - 17.059, - 16.835, - 19.476 - ], - "groundY": 2.488, - "roofY": 19.323, - "wallCount": 53, - "roofCount": 6 - }, - { - "id": "sion_1781", - "uuid": "{8FC744BC-C0BC-405A-80B8-1D006B260F30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -248.297, - 18.064, - 340.845 - ], - "size": [ - 18.055, - 16.11, - 18.772 - ], - "groundY": 10.009, - "roofY": 26.119, - "wallCount": 24, - "roofCount": 13 - }, - { - "id": "sion_1782", - "uuid": "{0A88AB36-AC6C-473B-B8CD-0B6B6EFCF636}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 443.91, - 94.111, - -1082.816 - ], - "size": [ - 23.031, - 10.168, - 16.886 - ], - "groundY": 89.027, - "roofY": 99.195, - "wallCount": 56, - "roofCount": 28 - }, - { - "id": "sion_1783", - "uuid": "{233D7EE5-0A6F-4D05-9D5A-C27792105D4A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 477.562, - 54.775, - -897.822 - ], - "size": [ - 11.797, - 11.153, - 13.696 - ], - "groundY": 49.198, - "roofY": 60.351, - "wallCount": 36, - "roofCount": 21 - }, - { - "id": "sion_1784", - "uuid": "{90CE9D8F-18B7-4951-A77A-D5B2BC87FE09}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 286.117, - 58.985, - -823.747 - ], - "size": [ - 43.617, - 20.0, - 19.482 - ], - "groundY": 48.985, - "roofY": 68.985, - "wallCount": 94, - "roofCount": 39 - }, - { - "id": "sion_1785", - "uuid": "{81C8DE74-2DF6-476F-92B6-89D0DB31E31F}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 603.228, - 14.666, - 778.849 - ], - "size": [ - 18.973, - 24.895, - 18.974 - ], - "groundY": 2.219, - "roofY": 27.114, - "wallCount": 372, - "roofCount": 117 - }, - { - "id": "sion_1786", - "uuid": "{937F14FC-6B3B-4096-84D7-112F5018187E}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 4, - 1 - ], - "center": [ - 524.133, - 154.548, - -559.721 - ], - "size": [ - 11.789, - 5.795, - 15.392 - ], - "groundY": 151.651, - "roofY": 157.446, - "wallCount": 60, - "roofCount": 26 - }, - { - "id": "sion_1787", - "uuid": "{394F7E34-282B-481E-A6B6-1CBCA53B0E3F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -303.258, - 23.18, - 250.754 - ], - "size": [ - 48.234, - 24.557, - 69.697 - ], - "groundY": 10.902, - "roofY": 35.459, - "wallCount": 68, - "roofCount": 63 - }, - { - "id": "sion_1788", - "uuid": "{04188005-FBA2-4409-8701-CE9BB39D4BED}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -285.791, - 28.082, - 161.303 - ], - "size": [ - 104.527, - 28.554, - 100.768 - ], - "groundY": 13.805, - "roofY": 42.359, - "wallCount": 199, - "roofCount": 132 - }, - { - "id": "sion_1789", - "uuid": "{F4B8BD39-3E3D-4DAA-BF04-AADA6D977AD0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 654.258, - 8.096, - 853.457 - ], - "size": [ - 29.062, - 9.484, - 23.607 - ], - "groundY": 3.354, - "roofY": 12.838, - "wallCount": 19, - "roofCount": 24 - }, - { - "id": "sion_1790", - "uuid": "{83B01A1F-D20A-4FC2-B123-714E90F06CC5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1455.768, - 11.808, - 16.287 - ], - "size": [ - 13.473, - 9.75, - 13.529 - ], - "groundY": 6.933, - "roofY": 16.683, - "wallCount": 46, - "roofCount": 22 - }, - { - "id": "sion_1791", - "uuid": "{04AF6F35-F52C-4546-9513-ED5D9CBDC9AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 425.652, - 90.921, - -315.175 - ], - "size": [ - 10.844, - 12.894, - 10.304 - ], - "groundY": 84.474, - "roofY": 97.368, - "wallCount": 47, - "roofCount": 14 - }, - { - "id": "sion_1792", - "uuid": "{0B7ABEB4-EC9B-40AF-8BD0-936B2CD96CD9}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 82.16, - 95.154, - -393.199 - ], - "size": [ - 12.555, - 14.919, - 29.67 - ], - "groundY": 87.695, - "roofY": 102.614, - "wallCount": 106, - "roofCount": 20 - }, - { - "id": "sion_1793", - "uuid": "{276F25D3-3262-4A88-A86A-3C7CA9A37CDB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -203.879, - 53.669, - -497.873 - ], - "size": [ - 16.422, - 16.286, - 22.193 - ], - "groundY": 45.526, - "roofY": 61.812, - "wallCount": 62, - "roofCount": 109 - }, - { - "id": "sion_1794", - "uuid": "{D70043E8-66B3-42A9-807A-DB53CCD1D713}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 949.484, - 15.759, - 1011.76 - ], - "size": [ - 84.844, - 21.634, - 90.05 - ], - "groundY": 4.942, - "roofY": 26.576, - "wallCount": 101, - "roofCount": 31 - }, - { - "id": "sion_1795", - "uuid": "{37FAE508-84A2-4995-907C-4FB57531CA6C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 47.961, - 64.792, - -806.737 - ], - "size": [ - 12.492, - 10.348, - 12.132 - ], - "groundY": 59.618, - "roofY": 69.966, - "wallCount": 31, - "roofCount": 10 - }, - { - "id": "sion_1796", - "uuid": "{693CC8C0-D2EE-4C6A-9142-95A7B1C4775E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 275.434, - 64.568, - -850.859 - ], - "size": [ - 17.219, - 8.497, - 15.452 - ], - "groundY": 60.319, - "roofY": 68.816, - "wallCount": 34, - "roofCount": 17 - }, - { - "id": "sion_1797", - "uuid": "{2E769E3C-18A4-4B28-AD79-D50DEFAA42A4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -169.285, - 70.449, - -802.054 - ], - "size": [ - 14.258, - 14.589, - 12.272 - ], - "groundY": 63.155, - "roofY": 77.744, - "wallCount": 56, - "roofCount": 72 - }, - { - "id": "sion_1798", - "uuid": "{15E1459C-71E8-4BBD-BED3-9EB89B37C776}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 300.064, - 69.033, - -872.461 - ], - "size": [ - 18.277, - 10.57, - 16.486 - ], - "groundY": 63.748, - "roofY": 74.318, - "wallCount": 30, - "roofCount": 33 - }, - { - "id": "sion_1799", - "uuid": "{8813BC4A-D901-45E6-9DFE-30DFCE57C2BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 360.744, - 6.595, - 509.404 - ], - "size": [ - 31.207, - 8.016, - 33.224 - ], - "groundY": 2.587, - "roofY": 10.603, - "wallCount": 31, - "roofCount": 27 - }, - { - "id": "sion_1800", - "uuid": "{571306BF-5642-40CA-B0B8-1B4ECF3FAB8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -227.02, - 78.791, - -935.172 - ], - "size": [ - 15.883, - 17.009, - 16.586 - ], - "groundY": 70.287, - "roofY": 87.296, - "wallCount": 50, - "roofCount": 53 - }, - { - "id": "sion_1801", - "uuid": "{A593064F-09F6-459F-9BC7-B7400D98D968}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 192.699, - 25.127, - 37.141 - ], - "size": [ - 25.703, - 23.735, - 21.922 - ], - "groundY": 13.259, - "roofY": 36.994, - "wallCount": 21, - "roofCount": 26 - }, - { - "id": "sion_1802", - "uuid": "{B377B430-356D-49DD-B844-1270106795CE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 457.172, - 132.725, - -1163.717 - ], - "size": [ - 4.266, - 8.2, - 5.466 - ], - "groundY": 128.625, - "roofY": 136.825, - "wallCount": 41, - "roofCount": 5 - }, - { - "id": "sion_1803", - "uuid": "{70F11EC1-05AA-4815-A439-912EDAAB3947}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 757.52, - 16.845, - -361.363 - ], - "size": [ - 23.359, - 27.044, - 24.61 - ], - "groundY": 3.323, - "roofY": 30.367, - "wallCount": 162, - "roofCount": 16 - }, - { - "id": "sion_1804", - "uuid": "{CDB51B3C-F6A6-461F-9A22-4D193C89F024}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 167.061, - 8.287, - 743.031 - ], - "size": [ - 88.098, - 14.476, - 82.9 - ], - "groundY": 1.049, - "roofY": 15.525, - "wallCount": 80, - "roofCount": 37 - }, - { - "id": "sion_1805", - "uuid": "{B299CEAF-3C72-40F4-8F11-5F3DBBE33CC0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 703.652, - 9.048, - 814.89 - ], - "size": [ - 24.078, - 10.521, - 22.019 - ], - "groundY": 3.787, - "roofY": 14.308, - "wallCount": 48, - "roofCount": 8 - }, - { - "id": "sion_1806", - "uuid": "{97EAF4FB-3D8A-4693-8934-863A2AB4C6D0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 597.957, - 235.792, - -1361.634 - ], - "size": [ - 5.57, - 7.023, - 6.16 - ], - "groundY": 232.281, - "roofY": 239.304, - "wallCount": 47, - "roofCount": 10 - }, - { - "id": "sion_1807", - "uuid": "{C4E7A973-395A-4578-8AD7-C9355CD91566}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 712.641, - 212.369, - -1322.604 - ], - "size": [ - 4.375, - 8.185, - 4.129 - ], - "groundY": 208.276, - "roofY": 216.461, - "wallCount": 43, - "roofCount": 4 - }, - { - "id": "sion_1808", - "uuid": "{CAF206A9-AFEF-49F3-ACB0-0C98F2EA825C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 370.471, - 57.568, - -666.639 - ], - "size": [ - 17.832, - 6.068, - 10.479 - ], - "groundY": 54.534, - "roofY": 60.602, - "wallCount": 29, - "roofCount": 6 - }, - { - "id": "sion_1809", - "uuid": "{43FB2FC5-90C2-4E31-9179-FF1FB02F8D33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -185.869, - 34.654, - 51.251 - ], - "size": [ - 27.731, - 23.688, - 15.197 - ], - "groundY": 22.81, - "roofY": 46.498, - "wallCount": 97, - "roofCount": 68 - }, - { - "id": "sion_1810", - "uuid": "{962C69B4-6081-4BB0-8B06-CA1B98ECE7B9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 196.691, - 10.363, - 621.961 - ], - "size": [ - 61.328, - 17.632, - 45.67 - ], - "groundY": 1.547, - "roofY": 19.179, - "wallCount": 35, - "roofCount": 43 - }, - { - "id": "sion_1811", - "uuid": "{18777F59-61B9-427E-A264-3BD2C434E159}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 934.555, - 8.883, - -393.767 - ], - "size": [ - 52.195, - 13.149, - 65.56 - ], - "groundY": 2.308, - "roofY": 15.457, - "wallCount": 72, - "roofCount": 65 - }, - { - "id": "sion_1812", - "uuid": "{67A2D5CB-1808-49ED-BF5F-F528FC84981F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -204.805, - 64.998, - -751.483 - ], - "size": [ - 13.43, - 15.073, - 21.648 - ], - "groundY": 57.462, - "roofY": 72.535, - "wallCount": 43, - "roofCount": 33 - }, - { - "id": "sion_1813", - "uuid": "{266F7C97-35F9-418C-9805-E31A2884B80D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 433.264, - 57.371, - -875.373 - ], - "size": [ - 11.762, - 11.647, - 13.876 - ], - "groundY": 51.547, - "roofY": 63.194, - "wallCount": 45, - "roofCount": 13 - }, - { - "id": "sion_1814", - "uuid": "{1880FA04-7E89-44BE-9C63-956B7E67CA99}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 21.104, - 5.959, - 564.391 - ], - "size": [ - 17.863, - 7.531, - 15.66 - ], - "groundY": 2.193, - "roofY": 9.724, - "wallCount": 11, - "roofCount": 2 - }, - { - "id": "sion_1815", - "uuid": "{D4949926-C23B-4F3E-932F-ECD086E8AFFD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 146.541, - 27.857, - 33.318 - ], - "size": [ - 25.371, - 24.838, - 14.796 - ], - "groundY": 15.438, - "roofY": 40.276, - "wallCount": 13, - "roofCount": 15 - }, - { - "id": "sion_1816", - "uuid": "{BDCC4F98-EE3D-463C-8BE5-9F5191F77FCB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -247.951, - 54.032, - -512.816 - ], - "size": [ - 15.16, - 14.241, - 13.196 - ], - "groundY": 46.912, - "roofY": 61.153, - "wallCount": 58, - "roofCount": 55 - }, - { - "id": "sion_1817", - "uuid": "{0ED9B746-D9B5-4D61-8346-68DC7175F87B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1351.129, - 17.68, - 92.83 - ], - "size": [ - 41.102, - 23.71, - 13.867 - ], - "groundY": 5.825, - "roofY": 29.535, - "wallCount": 37, - "roofCount": 10 - }, - { - "id": "sion_1818", - "uuid": "{01BD7D28-CA6A-4164-B97B-07FE7BF91D82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -88.498, - 32.998, - -96.321 - ], - "size": [ - 61.754, - 18.537, - 34.66 - ], - "groundY": 23.73, - "roofY": 42.267, - "wallCount": 110, - "roofCount": 71 - }, - { - "id": "sion_1819", - "uuid": "{AEFAC067-929C-4C84-B699-A2DE1B9B88B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -350.561, - 9.155, - 599.715 - ], - "size": [ - 33.027, - 17.314, - 14.646 - ], - "groundY": 0.498, - "roofY": 17.812, - "wallCount": 49, - "roofCount": 12 - }, - { - "id": "sion_1820", - "uuid": "{90A636D2-83CA-4624-81DD-702B0AD9EEE7}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -9.463, - 86.736, - -360.359 - ], - "size": [ - 8.785, - 5.588, - 4.89 - ], - "groundY": 83.942, - "roofY": 89.53, - "wallCount": 53, - "roofCount": 6 - }, - { - "id": "sion_1821", - "uuid": "{49A497DC-FAFF-46E8-A2C8-7FB9EB920A9E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1031.09, - 7.383, - 255.678 - ], - "size": [ - 6.539, - 5.418, - 10.561 - ], - "groundY": 4.674, - "roofY": 10.092, - "wallCount": 43, - "roofCount": 30 - }, - { - "id": "sion_1822", - "uuid": "{7361957A-26D0-4FEF-BAFC-9F796159D8FD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 510.256, - 7.888, - 517.893 - ], - "size": [ - 55.059, - 10.804, - 61.347 - ], - "groundY": 2.486, - "roofY": 13.29, - "wallCount": 31, - "roofCount": 12 - }, - { - "id": "sion_1823", - "uuid": "{B2FB40B3-A160-481A-ADC0-D9774E1433B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -289.756, - 37.672, - -109.225 - ], - "size": [ - 85.16, - 24.034, - 67.05 - ], - "groundY": 25.655, - "roofY": 49.689, - "wallCount": 240, - "roofCount": 177 - }, - { - "id": "sion_1824", - "uuid": "{63557910-3845-42DA-9F47-3E69B34CF32C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -394.826, - 65.31, - -703.56 - ], - "size": [ - 19.473, - 16.617, - 21.034 - ], - "groundY": 57.001, - "roofY": 73.618, - "wallCount": 74, - "roofCount": 35 - }, - { - "id": "sion_1825", - "uuid": "{C9F172AD-471D-4C57-85DE-B2651747748B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 136.637, - 130.659, - -231.921 - ], - "size": [ - 9.617, - 12.279, - 11.385 - ], - "groundY": 124.52, - "roofY": 136.799, - "wallCount": 37, - "roofCount": 23 - }, - { - "id": "sion_1826", - "uuid": "{5D6D20C6-547C-435A-B39F-2938FFE59D5D}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -314.383, - 13.868, - 639.566 - ], - "size": [ - 90.625, - 30.216, - 33.858 - ], - "groundY": -1.24, - "roofY": 28.976, - "wallCount": 106, - "roofCount": 36 - }, - { - "id": "sion_1827", - "uuid": "{D9EC9BFD-50CE-4D01-B66C-4A93A2314950}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 142.051, - 78.196, - -335.422 - ], - "size": [ - 12.055, - 8.679, - 11.874 - ], - "groundY": 73.856, - "roofY": 82.535, - "wallCount": 32, - "roofCount": 15 - }, - { - "id": "sion_1828", - "uuid": "{41FBBD9F-07B9-48A7-A282-A7B0232CA9C9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 355.156, - 10.151, - 365.626 - ], - "size": [ - 16.594, - 14.564, - 26.17 - ], - "groundY": 2.869, - "roofY": 17.433, - "wallCount": 26, - "roofCount": 23 - }, - { - "id": "sion_1829", - "uuid": "{981D9D26-3472-4F20-BA74-CD22BFF94827}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -210.705, - 65.84, - -787.474 - ], - "size": [ - 14.582, - 11.777, - 16.458 - ], - "groundY": 59.952, - "roofY": 71.729, - "wallCount": 51, - "roofCount": 20 - }, - { - "id": "sion_1830", - "uuid": "{F0B14ECB-E8D5-453E-8E4B-AB8129E599CE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 405.691, - 57.896, - -861.788 - ], - "size": [ - 30.992, - 11.989, - 21.07 - ], - "groundY": 51.901, - "roofY": 63.89, - "wallCount": 20, - "roofCount": 18 - }, - { - "id": "sion_1831", - "uuid": "{1870DED5-43E1-48D4-98D9-923D8946862E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 357.0, - 209.147, - -1472.217 - ], - "size": [ - 8.438, - 7.273, - 6.974 - ], - "groundY": 205.511, - "roofY": 212.784, - "wallCount": 53, - "roofCount": 2 - }, - { - "id": "sion_1832", - "uuid": "{66FB7AE5-2A01-47AE-94FA-AE0E6107634F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 221.523, - 56.659, - -668.84 - ], - "size": [ - 22.0, - 9.491, - 35.332 - ], - "groundY": 51.914, - "roofY": 61.405, - "wallCount": 37, - "roofCount": 33 - }, - { - "id": "sion_1833", - "uuid": "{A0A2BF28-84B9-4056-BD56-040E0799161A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 82.211, - 8.72, - 1027.369 - ], - "size": [ - 31.43, - 10.588, - 28.548 - ], - "groundY": 3.426, - "roofY": 14.014, - "wallCount": 37, - "roofCount": 23 - }, - { - "id": "sion_1834", - "uuid": "{47DD4104-02E3-4F92-8938-EA1F7E1D8CF1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -189.24, - 76.283, - -881.819 - ], - "size": [ - 13.535, - 18.246, - 14.769 - ], - "groundY": 67.16, - "roofY": 85.406, - "wallCount": 54, - "roofCount": 52 - }, - { - "id": "sion_1835", - "uuid": "{019F32F5-2C35-4D09-9F59-AE81F18D3A27}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -31.465, - 85.688, - -348.636 - ], - "size": [ - 10.836, - 22.051, - 9.906 - ], - "groundY": 74.663, - "roofY": 96.714, - "wallCount": 49, - "roofCount": 4 - }, - { - "id": "sion_1836", - "uuid": "{8A9D1E91-9852-4C6A-8F36-6067538C8957}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 388.068, - 81.358, - -1016.764 - ], - "size": [ - 6.738, - 8.198, - 5.706 - ], - "groundY": 77.259, - "roofY": 85.457, - "wallCount": 38, - "roofCount": 18 - }, - { - "id": "sion_1837", - "uuid": "{7777C6A3-71AE-43DF-A6E7-478B6C1137A9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -87.098, - 58.337, - -222.318 - ], - "size": [ - 26.18, - 23.158, - 19.112 - ], - "groundY": 46.758, - "roofY": 69.916, - "wallCount": 22, - "roofCount": 28 - }, - { - "id": "sion_1838", - "uuid": "{7F2BF8B3-1E84-4DA7-B70A-AE67806899CF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -230.949, - 51.813, - -451.054 - ], - "size": [ - 83.633, - 24.358, - 54.262 - ], - "groundY": 39.634, - "roofY": 63.992, - "wallCount": 108, - "roofCount": 119 - }, - { - "id": "sion_1839", - "uuid": "{96232927-A4B4-4478-ABAB-779BFCD2E28D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 264.949, - 22.186, - 264.745 - ], - "size": [ - 44.477, - 32.95, - 56.055 - ], - "groundY": 5.711, - "roofY": 38.661, - "wallCount": 83, - "roofCount": 57 - }, - { - "id": "sion_1840", - "uuid": "{C938FACD-8646-4D7E-B070-8F1C4EEB1729}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -290.482, - 39.122, - -165.845 - ], - "size": [ - 23.199, - 16.311, - 17.636 - ], - "groundY": 30.967, - "roofY": 47.278, - "wallCount": 36, - "roofCount": 14 - }, - { - "id": "sion_1841", - "uuid": "{8674A569-BE29-41C8-BAFC-9D48890F2901}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 1019.713, - 16.039, - 27.166 - ], - "size": [ - 43.559, - 23.196, - 36.406 - ], - "groundY": 4.441, - "roofY": 27.637, - "wallCount": 26, - "roofCount": 2 - }, - { - "id": "sion_1842", - "uuid": "{77B76909-930A-49FC-A739-2AF6A337B137}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -295.32, - 44.634, - -369.152 - ], - "size": [ - 16.977, - 10.382, - 15.061 - ], - "groundY": 39.443, - "roofY": 49.824, - "wallCount": 30, - "roofCount": 9 - }, - { - "id": "sion_1843", - "uuid": "{154F176A-2853-4E1F-86E4-168C9D9666E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 817.168, - 11.885, - 993.743 - ], - "size": [ - 14.117, - 11.006, - 14.93 - ], - "groundY": 6.382, - "roofY": 17.388, - "wallCount": 25, - "roofCount": 11 - }, - { - "id": "sion_1844", - "uuid": "{6E0FDD16-FA37-45C1-BE0E-50A96386B22D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1116.24, - 11.336, - -852.513 - ], - "size": [ - 21.074, - 8.045, - 26.76 - ], - "groundY": 7.314, - "roofY": 15.359, - "wallCount": 18, - "roofCount": 26 - }, - { - "id": "sion_1845", - "uuid": "{D6F80474-826D-411F-9941-3AD80D1CD16A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 278.359, - 7.319, - 501.581 - ], - "size": [ - 30.609, - 11.994, - 22.841 - ], - "groundY": 1.322, - "roofY": 13.316, - "wallCount": 32, - "roofCount": 16 - }, - { - "id": "sion_1846", - "uuid": "{E4A5906D-18E1-45C0-9E48-0C7682957A7C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 119.865, - 8.091, - 1041.402 - ], - "size": [ - 24.066, - 8.722, - 28.174 - ], - "groundY": 3.73, - "roofY": 12.452, - "wallCount": 14, - "roofCount": 2 - }, - { - "id": "sion_1847", - "uuid": "{34DAE8EA-016C-4132-95A4-959B1C6679D3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1197.27, - 12.205, - 313.944 - ], - "size": [ - 29.969, - 10.369, - 11.614 - ], - "groundY": 7.021, - "roofY": 17.389, - "wallCount": 31, - "roofCount": 28 - }, - { - "id": "sion_1848", - "uuid": "{5F0D543E-0D96-48D5-87D3-3B067BDA7618}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -236.561, - 62.053, - -635.858 - ], - "size": [ - 16.77, - 17.355, - 15.292 - ], - "groundY": 53.375, - "roofY": 70.73, - "wallCount": 53, - "roofCount": 57 - }, - { - "id": "sion_1849", - "uuid": "{A258F022-32AD-4A3E-BE4F-92BED2FEDB20}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 270.709, - 56.355, - -748.494 - ], - "size": [ - 16.27, - 10.734, - 14.473 - ], - "groundY": 50.988, - "roofY": 61.722, - "wallCount": 22, - "roofCount": 12 - }, - { - "id": "sion_1850", - "uuid": "{137AC709-7E44-4827-A08C-2D3AE71B84AC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -56.223, - 30.812, - -84.939 - ], - "size": [ - 31.898, - 15.573, - 40.343 - ], - "groundY": 23.025, - "roofY": 38.598, - "wallCount": 101, - "roofCount": 32 - }, - { - "id": "sion_1851", - "uuid": "{186D3953-3B6E-4DFB-9260-0478B9D7DB33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1058.83, - 10.999, - 350.308 - ], - "size": [ - 15.184, - 10.364, - 12.198 - ], - "groundY": 5.817, - "roofY": 16.181, - "wallCount": 18, - "roofCount": 15 - }, - { - "id": "sion_1852", - "uuid": "{56904E4D-9710-4BF0-A87F-F395345C0B10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 221.289, - 188.758, - -1463.221 - ], - "size": [ - 23.031, - 13.504, - 19.226 - ], - "groundY": 182.006, - "roofY": 195.51, - "wallCount": 42, - "roofCount": 15 - }, - { - "id": "sion_1853", - "uuid": "{776D2F45-169E-4AC0-BC52-95AB79EECD3B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 635.549, - 6.899, - 772.231 - ], - "size": [ - 9.098, - 9.25, - 8.356 - ], - "groundY": 2.274, - "roofY": 11.524, - "wallCount": 64, - "roofCount": 6 - }, - { - "id": "sion_1854", - "uuid": "{2FF13B8B-3AEB-45E1-9CE8-469CCAE82610}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 1 - ], - "center": [ - 1213.279, - 11.858, - -905.597 - ], - "size": [ - 98.434, - 13.158, - 82.056 - ], - "groundY": 5.279, - "roofY": 18.437, - "wallCount": 126, - "roofCount": 83 - }, - { - "id": "sion_1855", - "uuid": "{842534AA-6E52-43A4-9B28-B5A7B940CE08}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 351.475, - 6.913, - 815.336 - ], - "size": [ - 64.777, - 9.944, - 57.12 - ], - "groundY": 1.941, - "roofY": 11.885, - "wallCount": 60, - "roofCount": 22 - }, - { - "id": "sion_1856", - "uuid": "{31DF100C-9ED6-44E3-AA72-5ED42828C77C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -186.303, - 76.258, - -906.88 - ], - "size": [ - 12.934, - 14.714, - 15.468 - ], - "groundY": 68.901, - "roofY": 83.615, - "wallCount": 58, - "roofCount": 54 - }, - { - "id": "sion_1857", - "uuid": "{BC63E732-2FC4-495A-9602-3481769661B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 323.602, - 21.614, - -127.585 - ], - "size": [ - 19.867, - 27.705, - 27.615 - ], - "groundY": 7.762, - "roofY": 35.467, - "wallCount": 59, - "roofCount": 6 - }, - { - "id": "sion_1858", - "uuid": "{02B3DCC2-48B6-468D-B721-F9D539523EB2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1041.637, - 13.492, - 306.838 - ], - "size": [ - 51.211, - 18.898, - 28.102 - ], - "groundY": 4.043, - "roofY": 22.941, - "wallCount": 37, - "roofCount": 17 - }, - { - "id": "sion_1859", - "uuid": "{ACE82AEB-68EE-4699-9268-54CBED9C9731}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 175.518, - 15.683, - -120.43 - ], - "size": [ - 7.762, - 5.284, - 9.798 - ], - "groundY": 13.041, - "roofY": 18.325, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1860", - "uuid": "{49C840A0-F392-456E-8F93-5402B718FC76}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 383.986, - 213.262, - -1477.853 - ], - "size": [ - 19.98, - 9.026, - 20.827 - ], - "groundY": 208.749, - "roofY": 217.775, - "wallCount": 42, - "roofCount": 27 - }, - { - "id": "sion_1861", - "uuid": "{23DBD7EC-4DEE-4B6C-A224-337A4C689724}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 395.15, - 63.48, - -667.427 - ], - "size": [ - 16.238, - 5.668, - 10.304 - ], - "groundY": 60.646, - "roofY": 66.314, - "wallCount": 29, - "roofCount": 10 - }, - { - "id": "sion_1862", - "uuid": "{C5E5118D-B365-42C2-ACB9-5D2B3968D5BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -304.295, - 39.604, - -143.129 - ], - "size": [ - 83.84, - 23.205, - 36.566 - ], - "groundY": 28.002, - "roofY": 51.207, - "wallCount": 70, - "roofCount": 78 - }, - { - "id": "sion_1863", - "uuid": "{65409139-BA7C-4238-8C44-25323097C142}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 233.641, - 15.005, - 223.745 - ], - "size": [ - 17.266, - 11.394, - 15.454 - ], - "groundY": 9.308, - "roofY": 20.702, - "wallCount": 14, - "roofCount": 4 - }, - { - "id": "sion_1864", - "uuid": "{41F1CBDC-CBF3-47BD-87B3-14738B86F59B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 132.176, - 63.29, - -785.037 - ], - "size": [ - 30.836, - 16.94, - 31.531 - ], - "groundY": 54.82, - "roofY": 71.76, - "wallCount": 79, - "roofCount": 47 - }, - { - "id": "sion_1865", - "uuid": "{8136091F-4073-49C5-B969-3EE5129B7EBC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -383.664, - 247.844, - -1521.707 - ], - "size": [ - 2.953, - 4.535, - 2.896 - ], - "groundY": 245.577, - "roofY": 250.112, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1866", - "uuid": "{C5CB2DB8-9C43-4EA7-980F-F468D43E1B58}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 4, - 2 - ], - "center": [ - 528.148, - 82.8, - -451.849 - ], - "size": [ - 57.641, - 13.296, - 77.962 - ], - "groundY": 76.152, - "roofY": 89.448, - "wallCount": 60, - "roofCount": 27 - }, - { - "id": "sion_1867", - "uuid": "{9FD8C2E6-E921-43E9-AEA0-E68A1B14EE60}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -393.314, - 27.094, - 152.301 - ], - "size": [ - 25.817, - 22.547, - 31.858 - ], - "groundY": 15.821, - "roofY": 38.368, - "wallCount": 20, - "roofCount": 26 - }, - { - "id": "sion_1868", - "uuid": "{28DBCAC6-64D8-4CF8-9326-BC0813924104}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -393.219, - 68.536, - -757.878 - ], - "size": [ - 14.625, - 14.076, - 13.828 - ], - "groundY": 61.498, - "roofY": 75.574, - "wallCount": 31, - "roofCount": 41 - }, - { - "id": "sion_1869", - "uuid": "{90442474-8869-41CB-8700-18AE9DDE06A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 71.166, - 70.764, - -816.58 - ], - "size": [ - 33.238, - 22.205, - 32.109 - ], - "groundY": 59.662, - "roofY": 81.867, - "wallCount": 45, - "roofCount": 23 - }, - { - "id": "sion_1870", - "uuid": "{9D02E08D-EB36-41D8-B507-596D41964A19}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1222.73, - 15.764, - 415.213 - ], - "size": [ - 61.281, - 19.308, - 77.632 - ], - "groundY": 6.11, - "roofY": 25.418, - "wallCount": 136, - "roofCount": 65 - }, - { - "id": "sion_1871", - "uuid": "{8241824B-5912-4343-9BEC-B518BE823B54}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -116.969, - 59.215, - -273.727 - ], - "size": [ - 124.172, - 53.996, - 101.683 - ], - "groundY": 32.216, - "roofY": 86.213, - "wallCount": 689, - "roofCount": 330 - }, - { - "id": "sion_1872", - "uuid": "{CFF85E70-D1D7-432F-AC64-3F6B2198AC82}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 390.617, - 215.274, - -1421.612 - ], - "size": [ - 17.969, - 9.542, - 16.815 - ], - "groundY": 210.503, - "roofY": 220.045, - "wallCount": 46, - "roofCount": 24 - }, - { - "id": "sion_1873", - "uuid": "{93000D43-E2A3-4ACF-93BE-0010FA5EC385}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -397.75, - 47.811, - -477.718 - ], - "size": [ - 25.562, - 8.69, - 30.952 - ], - "groundY": 43.466, - "roofY": 52.156, - "wallCount": 19, - "roofCount": 24 - }, - { - "id": "sion_1874", - "uuid": "{3A7E59BF-395B-4CD3-B535-E506B550C47C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 148.725, - 82.483, - -1016.584 - ], - "size": [ - 21.223, - 22.138, - 21.092 - ], - "groundY": 71.414, - "roofY": 93.552, - "wallCount": 32, - "roofCount": 21 - }, - { - "id": "sion_1875", - "uuid": "{2DBECF33-3795-4A9C-B6A5-F01BECE8BB15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 174.115, - 4.634, - 672.326 - ], - "size": [ - 13.223, - 5.571, - 11.607 - ], - "groundY": 1.848, - "roofY": 7.419, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1876", - "uuid": "{70A15B2D-BA79-4E73-8859-EC15085F099D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 318.49, - 6.283, - 940.952 - ], - "size": [ - 42.129, - 11.2, - 40.1 - ], - "groundY": 0.683, - "roofY": 11.883, - "wallCount": 18, - "roofCount": 28 - }, - { - "id": "sion_1877", - "uuid": "{27F03AFC-E099-4925-AC4C-DC281352BB5C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -127.311, - 22.134, - 302.373 - ], - "size": [ - 56.652, - 21.433, - 30.145 - ], - "groundY": 11.417, - "roofY": 32.85, - "wallCount": 14, - "roofCount": 22 - }, - { - "id": "sion_1878", - "uuid": "{A2EC7D87-CFF3-465C-8EB5-137F6184A902}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 532.316, - 59.629, - -954.933 - ], - "size": [ - 74.578, - 24.79, - 31.582 - ], - "groundY": 47.234, - "roofY": 72.024, - "wallCount": 68, - "roofCount": 22 - }, - { - "id": "sion_1879", - "uuid": "{2EDACA40-F9A2-4140-A36A-93030322015A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 215.004, - 15.217, - -128.614 - ], - "size": [ - 57.266, - 5.094, - 15.521 - ], - "groundY": 12.67, - "roofY": 17.764, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1880", - "uuid": "{C560AD54-1ADD-41D3-9EC6-CBAC43A0AE72}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 13.264, - 74.747, - -914.928 - ], - "size": [ - 43.285, - 18.646, - 30.598 - ], - "groundY": 65.424, - "roofY": 84.07, - "wallCount": 14, - "roofCount": 42 - }, - { - "id": "sion_1881", - "uuid": "{3DEA6156-0889-4FCF-AA83-EA9CEBB523F6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 116.424, - 17.164, - 496.31 - ], - "size": [ - 101.121, - 30.152, - 42.571 - ], - "groundY": 2.088, - "roofY": 32.24, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1882", - "uuid": "{358232B3-9F04-4CA0-B4AC-CC901204DBCF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -227.582, - 44.621, - -222.145 - ], - "size": [ - 92.367, - 24.836, - 147.958 - ], - "groundY": 32.203, - "roofY": 57.039, - "wallCount": 121, - "roofCount": 579 - }, - { - "id": "sion_1883", - "uuid": "{327FDE3B-440C-40A4-B133-9AE188C9B9C0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -169.285, - 65.422, - -736.243 - ], - "size": [ - 21.531, - 15.57, - 24.258 - ], - "groundY": 57.637, - "roofY": 73.207, - "wallCount": 34, - "roofCount": 10 - }, - { - "id": "sion_1884", - "uuid": "{978091D1-4976-4BB8-8F31-EFC2056BB859}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 194.998, - 187.847, - -1435.358 - ], - "size": [ - 15.676, - 9.996, - 17.989 - ], - "groundY": 182.849, - "roofY": 192.845, - "wallCount": 27, - "roofCount": 18 - }, - { - "id": "sion_1885", - "uuid": "{6DA4E2E9-8502-4A7E-9192-5E78469E622A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -202.471, - 21.599, - 351.118 - ], - "size": [ - 52.387, - 28.142, - 66.018 - ], - "groundY": 7.528, - "roofY": 35.67, - "wallCount": 62, - "roofCount": 80 - }, - { - "id": "sion_1886", - "uuid": "{76A7B6ED-316D-481A-817C-BA2C45323A33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1461.518, - 10.021, - 4.283 - ], - "size": [ - 8.691, - 5.159, - 13.092 - ], - "groundY": 7.442, - "roofY": 12.601, - "wallCount": 17, - "roofCount": 31 - }, - { - "id": "sion_1887", - "uuid": "{309738DF-3704-4EE3-9E36-A5C80AB57A49}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 300.52, - 57.713, - -761.958 - ], - "size": [ - 33.664, - 17.579, - 62.984 - ], - "groundY": 48.924, - "roofY": 66.503, - "wallCount": 69, - "roofCount": 43 - }, - { - "id": "sion_1888", - "uuid": "{7679A78E-7122-4EDB-8E77-27F234BBE374}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -104.475, - 5.201, - 873.146 - ], - "size": [ - 92.973, - 9.724, - 72.579 - ], - "groundY": 0.339, - "roofY": 10.063, - "wallCount": 42, - "roofCount": 15 - }, - { - "id": "sion_1889", - "uuid": "{2A3E5E00-3A72-46EA-8020-A9E81109802A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 238.371, - 56.336, - -746.066 - ], - "size": [ - 13.094, - 9.313, - 16.22 - ], - "groundY": 51.68, - "roofY": 60.993, - "wallCount": 26, - "roofCount": 11 - }, - { - "id": "sion_1890", - "uuid": "{A1F0FA6B-9ECA-41B8-87BE-2E9D7D6856F7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 805.373, - 9.493, - 927.708 - ], - "size": [ - 16.512, - 9.339, - 17.936 - ], - "groundY": 4.824, - "roofY": 14.163, - "wallCount": 32, - "roofCount": 20 - }, - { - "id": "sion_1891", - "uuid": "{33B44B2D-8E17-4132-A191-6579A8C8E965}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 5.762, - 61.465, - -644.525 - ], - "size": [ - 16.82, - 18.024, - 18.998 - ], - "groundY": 52.453, - "roofY": 70.477, - "wallCount": 41, - "roofCount": 18 - }, - { - "id": "sion_1892", - "uuid": "{A2C376AD-E4DB-4579-9441-5AD0F1551BF5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 760.615, - 7.6, - 869.542 - ], - "size": [ - 11.691, - 5.906, - 15.287 - ], - "groundY": 4.647, - "roofY": 10.553, - "wallCount": 24, - "roofCount": 2 - }, - { - "id": "sion_1893", - "uuid": "{645B8A97-DE44-4541-9737-55F307A4CE91}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1223.988, - 12.349, - 345.338 - ], - "size": [ - 29.969, - 10.611, - 11.613 - ], - "groundY": 7.043, - "roofY": 17.654, - "wallCount": 30, - "roofCount": 21 - }, - { - "id": "sion_1894", - "uuid": "{68D3244B-268F-4CD3-AE27-1C1D4E383150}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -398.662, - 50.198, - -336.674 - ], - "size": [ - 12.051, - 27.062, - 12.632 - ], - "groundY": 36.667, - "roofY": 63.729, - "wallCount": 186, - "roofCount": 43 - }, - { - "id": "sion_1895", - "uuid": "{52F8AF5F-098B-483A-BD8D-160BC4CF2F24}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 566.484, - 221.926, - -1502.348 - ], - "size": [ - 32.641, - 10.265, - 39.431 - ], - "groundY": 216.793, - "roofY": 227.058, - "wallCount": 31, - "roofCount": 12 - }, - { - "id": "sion_1896", - "uuid": "{8279A159-5B05-4332-A5B9-1D78A85885C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -18.531, - 101.573, - -1240.39 - ], - "size": [ - 51.601, - 22.83, - 102.454 - ], - "groundY": 90.158, - "roofY": 112.988, - "wallCount": 38, - "roofCount": 24 - }, - { - "id": "sion_1897", - "uuid": "{70F4882D-A374-4653-9E9C-1201CB762B83}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 126.582, - 77.759, - -332.088 - ], - "size": [ - 10.555, - 5.634, - 7.62 - ], - "groundY": 74.942, - "roofY": 80.576, - "wallCount": 25, - "roofCount": 31 - }, - { - "id": "sion_1898", - "uuid": "{41D0107C-4E32-4161-B0BD-8124010762DB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -185.01, - 63.664, - -686.886 - ], - "size": [ - 24.129, - 22.667, - 27.874 - ], - "groundY": 52.331, - "roofY": 74.998, - "wallCount": 32, - "roofCount": 8 - }, - { - "id": "sion_1899", - "uuid": "{898E18A6-BC60-4BE0-B8F1-3F0EAFDC60CD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -306.553, - 17.482, - 447.329 - ], - "size": [ - 44.856, - 25.532, - 38.006 - ], - "groundY": 4.716, - "roofY": 30.248, - "wallCount": 19, - "roofCount": 4 - }, - { - "id": "sion_1900", - "uuid": "{33D31220-0678-47A0-8522-366506815A43}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 822.959, - 10.488, - -400.818 - ], - "size": [ - 26.285, - 13.556, - 24.75 - ], - "groundY": 3.71, - "roofY": 17.266, - "wallCount": 28, - "roofCount": 8 - }, - { - "id": "sion_1901", - "uuid": "{2C90D0E9-134B-44EC-A8E5-279A6EB095AB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -325.506, - 29.648, - 76.567 - ], - "size": [ - 115.66, - 26.474, - 113.14 - ], - "groundY": 16.411, - "roofY": 42.885, - "wallCount": 257, - "roofCount": 235 - }, - { - "id": "sion_1902", - "uuid": "{70E4743C-5A50-485D-A1C3-E3E3661DF046}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 438.652, - 214.779, - -1467.205 - ], - "size": [ - 9.227, - 5.791, - 8.533 - ], - "groundY": 211.883, - "roofY": 217.674, - "wallCount": 58, - "roofCount": 11 - }, - { - "id": "sion_1903", - "uuid": "{EEF518E1-D81F-4D80-B77C-B3581E79A127}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 751.291, - 9.983, - 237.485 - ], - "size": [ - 71.699, - 14.934, - 68.444 - ], - "groundY": 2.516, - "roofY": 17.45, - "wallCount": 39, - "roofCount": 21 - }, - { - "id": "sion_1904", - "uuid": "{BC9B9FC7-D363-4305-9A8C-14035D69B5FB}", - "name": "", - "class": "Sakrales Gebaeude", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -146.412, - 52.747, - -478.588 - ], - "size": [ - 23.715, - 24.51, - 32.398 - ], - "groundY": 40.492, - "roofY": 65.002, - "wallCount": 81, - "roofCount": 43 - }, - { - "id": "sion_1905", - "uuid": "{5CBC9BEE-71AD-437C-867E-017F6A922DA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -281.1, - 58.476, - -582.338 - ], - "size": [ - 24.566, - 9.117, - 15.529 - ], - "groundY": 53.918, - "roofY": 63.034, - "wallCount": 18, - "roofCount": 31 - }, - { - "id": "sion_1906", - "uuid": "{E4FDEAF7-EF67-4986-A051-039578A9F6E5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 447.744, - 63.654, - -921.506 - ], - "size": [ - 21.715, - 9.988, - 20.496 - ], - "groundY": 58.66, - "roofY": 68.648, - "wallCount": 42, - "roofCount": 27 - }, - { - "id": "sion_1907", - "uuid": "{1EA20069-220D-48F1-8A69-FD162A2864E7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 206.057, - 8.992, - 383.753 - ], - "size": [ - 24.316, - 7.143, - 15.88 - ], - "groundY": 5.42, - "roofY": 12.563, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1908", - "uuid": "{653F73E1-7140-4F7F-8697-B4747DC1295C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -55.678, - 59.513, - -653.847 - ], - "size": [ - 24.473, - 19.098, - 27.236 - ], - "groundY": 49.964, - "roofY": 69.062, - "wallCount": 41, - "roofCount": 55 - }, - { - "id": "sion_1909", - "uuid": "{5D8C69C5-AB10-43AD-9A0E-F20B2C99008C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 146.383, - 72.393, - -960.009 - ], - "size": [ - 56.25, - 18.051, - 25.26 - ], - "groundY": 63.368, - "roofY": 81.419, - "wallCount": 27, - "roofCount": 27 - }, - { - "id": "sion_1910", - "uuid": "{620A53A1-86AD-42E1-BC46-B9151BCDD10F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1301.646, - 15.43, - 238.918 - ], - "size": [ - 13.738, - 14.731, - 25.297 - ], - "groundY": 8.065, - "roofY": 22.796, - "wallCount": 37, - "roofCount": 36 - }, - { - "id": "sion_1911", - "uuid": "{DD928247-CE45-44E7-9492-AE0619A5435F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -229.152, - 62.045, - -663.712 - ], - "size": [ - 14.148, - 14.883, - 12.542 - ], - "groundY": 54.604, - "roofY": 69.487, - "wallCount": 54, - "roofCount": 55 - }, - { - "id": "sion_1912", - "uuid": "{ADD6EE31-1D9C-4A92-AC36-B757ECB7901E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 441.771, - 6.629, - 970.291 - ], - "size": [ - 25.113, - 7.114, - 20.51 - ], - "groundY": 3.072, - "roofY": 10.185, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_1913", - "uuid": "{E69044D0-2322-4D74-965B-4B68929F349A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 372.582, - 73.017, - -944.029 - ], - "size": [ - 20.586, - 13.51, - 18.561 - ], - "groundY": 66.262, - "roofY": 79.772, - "wallCount": 25, - "roofCount": 29 - }, - { - "id": "sion_1914", - "uuid": "{75AC8F7B-4203-461E-BE55-C46C96B0BFD3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -141.982, - 22.542, - 557.111 - ], - "size": [ - 108.262, - 42.758, - 46.218 - ], - "groundY": 1.163, - "roofY": 43.921, - "wallCount": 110, - "roofCount": 53 - }, - { - "id": "sion_1915", - "uuid": "{9C3ED28F-4737-430D-898A-F31411E3EF00}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -364.064, - 7.515, - 618.802 - ], - "size": [ - 14.652, - 14.484, - 11.914 - ], - "groundY": 0.273, - "roofY": 14.757, - "wallCount": 59, - "roofCount": 25 - }, - { - "id": "sion_1916", - "uuid": "{DA2A2B02-881C-40E3-9032-6075F351A76D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 384.035, - 7.383, - 500.863 - ], - "size": [ - 20.453, - 9.297, - 21.882 - ], - "groundY": 2.735, - "roofY": 12.032, - "wallCount": 22, - "roofCount": 30 - }, - { - "id": "sion_1917", - "uuid": "{3587C5F5-45E2-47F9-A8D8-9E8E11E274AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -120.443, - 50.805, - -483.604 - ], - "size": [ - 41.41, - 17.209, - 46.663 - ], - "groundY": 42.201, - "roofY": 59.409, - "wallCount": 38, - "roofCount": 30 - }, - { - "id": "sion_1918", - "uuid": "{23D37DD7-8240-4E2C-9BDC-FD5BDF1A6B65}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 671.633, - 5.134, - 151.144 - ], - "size": [ - 13.547, - 5.222, - 16.708 - ], - "groundY": 2.523, - "roofY": 7.745, - "wallCount": 50, - "roofCount": 20 - }, - { - "id": "sion_1919", - "uuid": "{8DB818B1-E1EB-4902-9ED6-2D54D88248E1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 56.467, - 71.525, - -320.588 - ], - "size": [ - 29.418, - 19.27, - 23.174 - ], - "groundY": 61.89, - "roofY": 81.159, - "wallCount": 51, - "roofCount": 21 - }, - { - "id": "sion_1920", - "uuid": "{543248F5-6DF3-4E63-B071-7C3D4D56C983}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 834.283, - 14.08, - -197.646 - ], - "size": [ - 39.566, - 22.334, - 19.935 - ], - "groundY": 2.913, - "roofY": 25.247, - "wallCount": 113, - "roofCount": 24 - }, - { - "id": "sion_1921", - "uuid": "{F7486D12-9819-4715-BCC3-EF2CB17703DC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1193.535, - 12.527, - 47.642 - ], - "size": [ - 68.977, - 11.922, - 64.188 - ], - "groundY": 6.566, - "roofY": 18.488, - "wallCount": 16, - "roofCount": 26 - }, - { - "id": "sion_1922", - "uuid": "{348A7D9A-22EB-4515-A1A2-CF372A937881}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 642.92, - 9.119, - 828.501 - ], - "size": [ - 32.418, - 10.866, - 27.44 - ], - "groundY": 3.686, - "roofY": 14.552, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_1923", - "uuid": "{337C0340-A041-42BC-A637-4C6E434C5466}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 467.156, - 6.407, - 714.329 - ], - "size": [ - 14.383, - 6.964, - 11.37 - ], - "groundY": 2.925, - "roofY": 9.889, - "wallCount": 23, - "roofCount": 29 - }, - { - "id": "sion_1924", - "uuid": "{4AC12F30-E1AC-478B-919F-30D269E5AF22}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1243.367, - 13.053, - 62.07 - ], - "size": [ - 25.797, - 15.404, - 23.08 - ], - "groundY": 5.351, - "roofY": 20.755, - "wallCount": 26, - "roofCount": 28 - }, - { - "id": "sion_1925", - "uuid": "{B5699D26-E8DE-459E-82A9-CF8CCC962B9D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 779.096, - 15.613, - -391.987 - ], - "size": [ - 22.012, - 24.759, - 14.642 - ], - "groundY": 3.234, - "roofY": 27.993, - "wallCount": 111, - "roofCount": 14 - }, - { - "id": "sion_1926", - "uuid": "{EAC03E9B-3220-45AA-8E3B-56ADD7C7A52A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 881.203, - 11.972, - -363.802 - ], - "size": [ - 22.188, - 19.504, - 18.642 - ], - "groundY": 2.22, - "roofY": 21.724, - "wallCount": 104, - "roofCount": 26 - }, - { - "id": "sion_1927", - "uuid": "{BF83A74A-BA38-44F9-861A-B5B9C95290F2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -366.887, - 35.297, - -233.085 - ], - "size": [ - 26.766, - 8.602, - 15.094 - ], - "groundY": 30.996, - "roofY": 39.598, - "wallCount": 13, - "roofCount": 25 - }, - { - "id": "sion_1928", - "uuid": "{C231B86C-1F81-4EE3-B17B-F7E6B6B372C6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 57.596, - 70.367, - -855.303 - ], - "size": [ - 27.613, - 19.36, - 38.678 - ], - "groundY": 60.687, - "roofY": 80.047, - "wallCount": 44, - "roofCount": 17 - }, - { - "id": "sion_1929", - "uuid": "{C5D94C33-B8AF-45F6-9D73-7DFB3BF6C0AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 752.934, - 13.268, - 952.191 - ], - "size": [ - 74.641, - 16.569, - 42.741 - ], - "groundY": 4.983, - "roofY": 21.552, - "wallCount": 18, - "roofCount": 40 - }, - { - "id": "sion_1930", - "uuid": "{702758E9-86B7-46BB-B0FC-459A494CBA84}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 595.844, - 8.934, - 847.745 - ], - "size": [ - 34.203, - 11.56, - 28.812 - ], - "groundY": 3.154, - "roofY": 14.714, - "wallCount": 12, - "roofCount": 2 - }, - { - "id": "sion_1931", - "uuid": "{F11D3289-13A7-4CEC-B3E9-879E26454899}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 79.988, - 3.836, - 718.163 - ], - "size": [ - 19.258, - 6.266, - 18.977 - ], - "groundY": 0.703, - "roofY": 6.969, - "wallCount": 22, - "roofCount": 19 - }, - { - "id": "sion_1932", - "uuid": "{808E0BC8-AC1B-41C2-8C2F-3A390C41AF89}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -120.613, - 60.646, - -651.484 - ], - "size": [ - 65.727, - 20.535, - 90.569 - ], - "groundY": 50.378, - "roofY": 70.913, - "wallCount": 22, - "roofCount": 24 - }, - { - "id": "sion_1933", - "uuid": "{42662535-71F7-41DD-ACCF-68CF1D713091}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1043.105, - 10.21, - 244.543 - ], - "size": [ - 11.758, - 11.414, - 14.502 - ], - "groundY": 4.503, - "roofY": 15.917, - "wallCount": 26, - "roofCount": 24 - }, - { - "id": "sion_1934", - "uuid": "{B0EBB3E9-E1AF-41A1-BEDA-68F860F3A266}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 724.316, - 13.147, - 63.543 - ], - "size": [ - 40.602, - 24.016, - 20.338 - ], - "groundY": 1.139, - "roofY": 25.155, - "wallCount": 123, - "roofCount": 36 - }, - { - "id": "sion_1935", - "uuid": "{8B3BF6BF-3672-4848-89BB-3E2A0A4593B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -5.092, - 76.791, - -943.706 - ], - "size": [ - 18.676, - 18.508, - 25.246 - ], - "groundY": 67.537, - "roofY": 86.045, - "wallCount": 40, - "roofCount": 31 - }, - { - "id": "sion_1936", - "uuid": "{E80A2749-E750-4010-8F59-07C968C275B7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -341.854, - 26.136, - 161.106 - ], - "size": [ - 27.934, - 22.146, - 37.63 - ], - "groundY": 15.063, - "roofY": 37.209, - "wallCount": 24, - "roofCount": 36 - }, - { - "id": "sion_1937", - "uuid": "{54052681-EAFE-403D-B5C6-91E58B1FCD50}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 229.723, - 65.155, - -857.881 - ], - "size": [ - 15.93, - 11.28, - 13.647 - ], - "groundY": 59.515, - "roofY": 70.795, - "wallCount": 42, - "roofCount": 36 - }, - { - "id": "sion_1938", - "uuid": "{D353490B-C451-4227-AD1F-BD14A788F286}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 141.902, - 23.813, - 197.916 - ], - "size": [ - 92.352, - 27.921, - 73.697 - ], - "groundY": 9.853, - "roofY": 37.774, - "wallCount": 130, - "roofCount": 63 - }, - { - "id": "sion_1939", - "uuid": "{1228E97F-4B4D-44E2-95C7-D2A3E96EA457}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 68.262, - 19.666, - 310.203 - ], - "size": [ - 51.766, - 24.86, - 43.456 - ], - "groundY": 7.236, - "roofY": 32.096, - "wallCount": 102, - "roofCount": 32 - }, - { - "id": "sion_1940", - "uuid": "{0EC370A8-8F7A-4D31-B52A-BFCA55E3AE8F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 445.022, - 6.991, - 805.965 - ], - "size": [ - 38.574, - 8.713, - 21.322 - ], - "groundY": 2.634, - "roofY": 11.347, - "wallCount": 41, - "roofCount": 16 - }, - { - "id": "sion_1941", - "uuid": "{71912629-7C6D-4D68-B278-2676FEA6351F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 93.016, - 26.56, - -12.98 - ], - "size": [ - 21.516, - 16.626, - 21.267 - ], - "groundY": 18.247, - "roofY": 34.873, - "wallCount": 19, - "roofCount": 15 - }, - { - "id": "sion_1942", - "uuid": "{B5E7FC11-1506-4D95-AAD0-C3D8CCBF0846}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -137.447, - 54.06, - -523.185 - ], - "size": [ - 30.16, - 23.948, - 57.153 - ], - "groundY": 42.086, - "roofY": 66.034, - "wallCount": 69, - "roofCount": 47 - }, - { - "id": "sion_1943", - "uuid": "{FB57DE28-36CA-4DFC-A2DD-0739C56265D6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1493.982, - 11.064, - -111.586 - ], - "size": [ - 32.731, - 8.566, - 50.523 - ], - "groundY": 6.781, - "roofY": 15.347, - "wallCount": 35, - "roofCount": 14 - }, - { - "id": "sion_1944", - "uuid": "{A48B434A-94DA-4A14-A18C-CA9192C48E37}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -103.084, - 81.15, - -932.866 - ], - "size": [ - 32.496, - 17.235, - 16.316 - ], - "groundY": 72.532, - "roofY": 89.767, - "wallCount": 37, - "roofCount": 47 - }, - { - "id": "sion_1945", - "uuid": "{14A0B6B1-4C90-4FA3-9C8C-0F426B8147A4}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 126.096, - 122.862, - -236.178 - ], - "size": [ - 20.113, - 5.962, - 12.416 - ], - "groundY": 119.881, - "roofY": 125.843, - "wallCount": 30, - "roofCount": 8 - }, - { - "id": "sion_1946", - "uuid": "{3677962F-9FFE-4B92-AC1C-0FEEDC464605}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -140.102, - 34.781, - 25.506 - ], - "size": [ - 49.602, - 23.752, - 43.848 - ], - "groundY": 22.905, - "roofY": 46.657, - "wallCount": 79, - "roofCount": 61 - }, - { - "id": "sion_1947", - "uuid": "{54D99972-AAE7-4CA7-9C4B-023CE9328498}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 766.648, - 17.349, - 4.772 - ], - "size": [ - 28.742, - 29.088, - 22.073 - ], - "groundY": 2.805, - "roofY": 31.893, - "wallCount": 142, - "roofCount": 19 - }, - { - "id": "sion_1948", - "uuid": "{9349D0AC-05A8-4476-8847-FA802F2DDD14}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 252.816, - 58.25, - -814.58 - ], - "size": [ - 16.867, - 12.779, - 15.878 - ], - "groundY": 51.861, - "roofY": 64.64, - "wallCount": 44, - "roofCount": 8 - }, - { - "id": "sion_1949", - "uuid": "{A97A4665-058D-421E-B806-3E42E045AF06}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -224.164, - 19.212, - 335.165 - ], - "size": [ - 18.477, - 16.584, - 17.484 - ], - "groundY": 10.92, - "roofY": 27.504, - "wallCount": 21, - "roofCount": 65 - }, - { - "id": "sion_1950", - "uuid": "{42508E99-B594-4425-98F4-423A2C7C17B1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1450.902, - 14.832, - -80.22 - ], - "size": [ - 22.984, - 16.897, - 28.544 - ], - "groundY": 6.384, - "roofY": 23.28, - "wallCount": 92, - "roofCount": 21 - }, - { - "id": "sion_1951", - "uuid": "{721859D4-7F7B-4BD4-9D1C-4F1D812CE469}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 1 - ], - "center": [ - 489.699, - 161.132, - -556.637 - ], - "size": [ - 17.781, - 6.584, - 5.048 - ], - "groundY": 157.84, - "roofY": 164.424, - "wallCount": 72, - "roofCount": 18 - }, - { - "id": "sion_1952", - "uuid": "{A739737F-71CD-48C3-8892-13C730066FE0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 288.932, - 14.143, - 974.641 - ], - "size": [ - 85.488, - 23.358, - 91.378 - ], - "groundY": 2.464, - "roofY": 25.821, - "wallCount": 61, - "roofCount": 68 - }, - { - "id": "sion_1953", - "uuid": "{A57219A4-013F-4931-B894-8EF8FDABB4F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 0 - ], - "center": [ - 1260.443, - 23.916, - -1276.905 - ], - "size": [ - 6.394, - 7.889, - 6.26 - ], - "groundY": 19.971, - "roofY": 27.86, - "wallCount": 46, - "roofCount": 4 - }, - { - "id": "sion_1954", - "uuid": "{14F0658A-0AB0-4F3D-A911-E945952B7918}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 772.906, - 10.807, - -281.785 - ], - "size": [ - 38.508, - 16.426, - 23.981 - ], - "groundY": 2.594, - "roofY": 19.02, - "wallCount": 86, - "roofCount": 12 - }, - { - "id": "sion_1955", - "uuid": "{8EB95BB3-8323-4161-AA9C-507FED6897A9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 379.74, - 6.617, - 1043.975 - ], - "size": [ - 41.684, - 7.696, - 25.21 - ], - "groundY": 2.769, - "roofY": 10.465, - "wallCount": 18, - "roofCount": 29 - }, - { - "id": "sion_1956", - "uuid": "{0E1A2B6F-12AB-43CE-A192-3EB8C6CE8045}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 2 - ], - "center": [ - 1211.949, - 9.516, - -291.063 - ], - "size": [ - 88.734, - 13.694, - 72.431 - ], - "groundY": 2.669, - "roofY": 16.363, - "wallCount": 64, - "roofCount": 34 - }, - { - "id": "sion_1957", - "uuid": "{F7775B06-A34C-4A11-8B7E-1DD920FF36F8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 58.418, - 25.203, - 226.948 - ], - "size": [ - 106.258, - 27.614, - 66.838 - ], - "groundY": 11.396, - "roofY": 39.01, - "wallCount": 63, - "roofCount": 55 - }, - { - "id": "sion_1958", - "uuid": "{5BBFE66B-C365-4A6C-8067-BBC6F9518C95}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 889.643, - 15.239, - 129.973 - ], - "size": [ - 30.441, - 25.298, - 27.847 - ], - "groundY": 2.59, - "roofY": 27.888, - "wallCount": 96, - "roofCount": 10 - }, - { - "id": "sion_1959", - "uuid": "{5096FC99-6AA3-4072-9363-6125F30ACCB4}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 8.611, - 83.432, - -359.852 - ], - "size": [ - 48.598, - 9.104, - 12.974 - ], - "groundY": 78.88, - "roofY": 87.984, - "wallCount": 75, - "roofCount": 29 - }, - { - "id": "sion_1960", - "uuid": "{60131913-5F52-49B3-BE17-A733BF680F2F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 37.824, - 107.223, - -1368.709 - ], - "size": [ - 93.859, - 18.847, - 138.178 - ], - "groundY": 97.799, - "roofY": 116.646, - "wallCount": 109, - "roofCount": 63 - }, - { - "id": "sion_1961", - "uuid": "{5D781D52-B64D-43F9-AB63-E89DA61CC43A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 440.811, - 219.88, - -1409.546 - ], - "size": [ - 19.121, - 11.74, - 21.014 - ], - "groundY": 214.01, - "roofY": 225.75, - "wallCount": 67, - "roofCount": 25 - }, - { - "id": "sion_1962", - "uuid": "{BFA80E2D-72D1-437D-B6D4-D160E1E28C63}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -261.439, - 69.111, - -782.263 - ], - "size": [ - 41.699, - 19.578, - 27.904 - ], - "groundY": 59.322, - "roofY": 78.9, - "wallCount": 34, - "roofCount": 65 - }, - { - "id": "sion_1963", - "uuid": "{C16ECC60-56FF-49AD-B4B7-E4D9F6E4A69E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 230.299, - 195.976, - -1531.662 - ], - "size": [ - 18.762, - 12.888, - 13.607 - ], - "groundY": 189.532, - "roofY": 202.42, - "wallCount": 47, - "roofCount": 22 - }, - { - "id": "sion_1964", - "uuid": "{313D4FBD-4950-489D-A50F-5348966A8D76}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 366.258, - 212.61, - -1413.149 - ], - "size": [ - 6.359, - 7.326, - 6.442 - ], - "groundY": 208.947, - "roofY": 216.273, - "wallCount": 16, - "roofCount": 8 - }, - { - "id": "sion_1965", - "uuid": "{CE1F9A7F-2C3B-4DEA-ACB4-32528FAC7226}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 866.926, - 9.397, - -282.186 - ], - "size": [ - 14.258, - 12.742, - 14.351 - ], - "groundY": 3.026, - "roofY": 15.768, - "wallCount": 45, - "roofCount": 10 - }, - { - "id": "sion_1966", - "uuid": "{E0AE3620-76CA-4559-BC05-85F09EE9B144}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -358.947, - 23.306, - 291.159 - ], - "size": [ - 46.442, - 25.449, - 26.39 - ], - "groundY": 10.582, - "roofY": 36.031, - "wallCount": 47, - "roofCount": 21 - }, - { - "id": "sion_1967", - "uuid": "{1B26BD52-E12A-4788-9EE2-98B8582BE537}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 524.93, - 8.57, - 906.455 - ], - "size": [ - 39.141, - 16.27, - 56.178 - ], - "groundY": 0.435, - "roofY": 16.705, - "wallCount": 41, - "roofCount": 14 - }, - { - "id": "sion_1968", - "uuid": "{2F06A2AF-2CA0-450F-BFCD-BB5EE36EFBA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1118.43, - 11.737, - 346.766 - ], - "size": [ - 12.594, - 12.152, - 10.34 - ], - "groundY": 5.661, - "roofY": 17.813, - "wallCount": 49, - "roofCount": 30 - }, - { - "id": "sion_1969", - "uuid": "{C27EC73E-3747-4D9D-A434-CD8F10E61797}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -255.896, - 19.467, - 269.159 - ], - "size": [ - 13.191, - 13.638, - 17.086 - ], - "groundY": 12.648, - "roofY": 26.286, - "wallCount": 59, - "roofCount": 36 - }, - { - "id": "sion_1970", - "uuid": "{E574867B-606B-4AA3-9028-740A9181CD30}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 199.498, - 21.09, - 216.573 - ], - "size": [ - 44.27, - 20.815, - 38.742 - ], - "groundY": 10.682, - "roofY": 31.497, - "wallCount": 12, - "roofCount": 37 - }, - { - "id": "sion_1971", - "uuid": "{778158D0-4884-4870-AF5D-D3BC02E68AA1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -200.914, - 72.054, - -818.204 - ], - "size": [ - 37.266, - 22.024, - 49.727 - ], - "groundY": 61.042, - "roofY": 83.066, - "wallCount": 90, - "roofCount": 28 - }, - { - "id": "sion_1972", - "uuid": "{CF99713B-AF8B-4181-A243-9271EA97C7FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 397.398, - 5.726, - 955.487 - ], - "size": [ - 13.555, - 6.151, - 15.34 - ], - "groundY": 2.651, - "roofY": 8.802, - "wallCount": 28, - "roofCount": 4 - }, - { - "id": "sion_1973", - "uuid": "{178E094C-C9B9-4F7F-97FA-F97033B0BEC9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 1013.619, - 9.922, - 465.454 - ], - "size": [ - 18.668, - 7.491, - 15.844 - ], - "groundY": 6.176, - "roofY": 13.667, - "wallCount": 29, - "roofCount": 4 - }, - { - "id": "sion_1974", - "uuid": "{67D51070-125B-4EFA-A966-B72594909DF4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 1009.748, - 8.947, - -305.151 - ], - "size": [ - 48.442, - 12.278, - 53.716 - ], - "groundY": 2.808, - "roofY": 15.086, - "wallCount": 32, - "roofCount": 41 - }, - { - "id": "sion_1975", - "uuid": "{9F7E94E4-D242-4E31-BFA5-CA742AB1A0E1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 679.727, - 4.544, - 209.9 - ], - "size": [ - 8.609, - 5.006, - 9.794 - ], - "groundY": 2.041, - "roofY": 7.047, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_1976", - "uuid": "{24117C78-FDFD-4609-B675-2F205AC7025F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 797.086, - 12.491, - -324.905 - ], - "size": [ - 38.031, - 19.642, - 23.764 - ], - "groundY": 2.67, - "roofY": 22.312, - "wallCount": 81, - "roofCount": 14 - }, - { - "id": "sion_1977", - "uuid": "{8AA09CC1-E609-4E00-83AE-A52687C3A414}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -40.174, - 16.826, - 533.798 - ], - "size": [ - 78.676, - 30.219, - 37.102 - ], - "groundY": 1.716, - "roofY": 31.935, - "wallCount": 8, - "roofCount": 2 - }, - { - "id": "sion_1978", - "uuid": "{E6167B5E-05EA-4CA3-BFEE-781774C7804C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -113.809, - 42.106, - -183.235 - ], - "size": [ - 10.602, - 11.324, - 9.431 - ], - "groundY": 36.444, - "roofY": 47.768, - "wallCount": 38, - "roofCount": 17 - }, - { - "id": "sion_1979", - "uuid": "{AAB38644-A330-49B0-86DE-95512724A452}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -39.787, - 54.995, - -373.242 - ], - "size": [ - 22.379, - 19.935, - 20.46 - ], - "groundY": 45.027, - "roofY": 64.962, - "wallCount": 57, - "roofCount": 16 - }, - { - "id": "sion_1980", - "uuid": "{4FADC621-1ED5-4C56-9863-575F397D689A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 512.822, - 7.991, - 1003.604 - ], - "size": [ - 72.004, - 13.672, - 71.962 - ], - "groundY": 1.155, - "roofY": 14.826, - "wallCount": 71, - "roofCount": 41 - }, - { - "id": "sion_1981", - "uuid": "{6BC5A2C1-4859-43C1-B8B3-B10B8BAACC63}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 429.785, - 88.488, - -1049.646 - ], - "size": [ - 64.93, - 9.13, - 21.87 - ], - "groundY": 83.923, - "roofY": 93.052, - "wallCount": 76, - "roofCount": 29 - }, - { - "id": "sion_1982", - "uuid": "{CBBC4A97-5149-4DF0-90F9-B5CF4C0E14A7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -353.742, - 43.197, - -206.065 - ], - "size": [ - 30.961, - 21.69, - 44.31 - ], - "groundY": 32.352, - "roofY": 54.042, - "wallCount": 36, - "roofCount": 64 - }, - { - "id": "sion_1983", - "uuid": "{43173533-CDF7-4AB7-8EDE-6823799E0C16}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1137.193, - 9.273, - 45.585 - ], - "size": [ - 28.41, - 9.912, - 25.322 - ], - "groundY": 4.317, - "roofY": 14.229, - "wallCount": 18, - "roofCount": 10 - }, - { - "id": "sion_1984", - "uuid": "{001D4FC2-9D88-4C49-B30B-FA11D809F8BB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1446.182, - 16.966, - 877.746 - ], - "size": [ - 21.301, - 12.032, - 20.891 - ], - "groundY": 10.95, - "roofY": 22.982, - "wallCount": 38, - "roofCount": 23 - }, - { - "id": "sion_1985", - "uuid": "{12124017-2227-461F-9C82-42AB23CF85A9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 74.783, - 17.264, - 348.458 - ], - "size": [ - 112.48, - 24.906, - 79.385 - ], - "groundY": 4.811, - "roofY": 29.717, - "wallCount": 148, - "roofCount": 83 - }, - { - "id": "sion_1986", - "uuid": "{8786D399-B630-4A00-957F-23440C7406F3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -222.146, - 35.812, - -47.093 - ], - "size": [ - 84.012, - 23.594, - 110.722 - ], - "groundY": 24.015, - "roofY": 47.609, - "wallCount": 311, - "roofCount": 328 - }, - { - "id": "sion_1987", - "uuid": "{15F86722-B75A-431E-98DA-DF616D2DE94C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -50.527, - 59.82, - -301.243 - ], - "size": [ - 24.398, - 21.612, - 24.038 - ], - "groundY": 49.014, - "roofY": 70.626, - "wallCount": 61, - "roofCount": 41 - }, - { - "id": "sion_1988", - "uuid": "{43ED597D-E516-4F46-8FBB-8DE30A8D976D}", - "name": "", - "class": "Unterirdisches Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 807.635, - 13.381, - -135.087 - ], - "size": [ - 75.277, - 22.394, - 68.904 - ], - "groundY": 2.184, - "roofY": 24.578, - "wallCount": 72, - "roofCount": 33 - }, - { - "id": "sion_1989", - "uuid": "{AE4AA09C-C05D-46A4-A45B-DD0A64D65D73}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 176.52, - 173.95, - -1232.274 - ], - "size": [ - 17.641, - 9.822, - 8.136 - ], - "groundY": 169.039, - "roofY": 178.861, - "wallCount": 39, - "roofCount": 17 - }, - { - "id": "sion_1990", - "uuid": "{916ACC88-E05A-48D8-8B57-567DDC313962}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 364.496, - 5.995, - 859.547 - ], - "size": [ - 13.969, - 7.742, - 22.152 - ], - "groundY": 2.124, - "roofY": 9.866, - "wallCount": 24, - "roofCount": 33 - }, - { - "id": "sion_1991", - "uuid": "{91EE520D-0124-4117-B6C6-307B49A57DE0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -358.158, - 33.284, - -3.394 - ], - "size": [ - 98.98, - 27.122, - 102.636 - ], - "groundY": 19.723, - "roofY": 46.845, - "wallCount": 199, - "roofCount": 154 - }, - { - "id": "sion_1992", - "uuid": "{AB89DF95-3AC7-41DA-92EF-29894D75B789}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 114.168, - 80.197, - -1006.086 - ], - "size": [ - 29.086, - 18.997, - 21.984 - ], - "groundY": 70.699, - "roofY": 89.696, - "wallCount": 38, - "roofCount": 25 - }, - { - "id": "sion_1993", - "uuid": "{9AA84D69-6D75-4AEB-9B04-9094A40EFD8F}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 2, - 2 - ], - "center": [ - -21.602, - 75.377, - -347.441 - ], - "size": [ - 5.992, - 5.468, - 4.912 - ], - "groundY": 72.643, - "roofY": 78.111, - "wallCount": 55, - "roofCount": 4 - }, - { - "id": "sion_1994", - "uuid": "{956B3F6F-4B13-4B45-B55C-534D0E8BA4D4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 150.268, - 180.574, - -1253.742 - ], - "size": [ - 5.769, - 10.0, - 6.395 - ], - "groundY": 175.574, - "roofY": 185.574, - "wallCount": 66, - "roofCount": 12 - }, - { - "id": "sion_1995", - "uuid": "{D4EE0420-9B82-4D5C-AA31-C8DDB1E6849A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -303.43, - 37.333, - -57.289 - ], - "size": [ - 31.289, - 25.776, - 30.359 - ], - "groundY": 24.445, - "roofY": 50.221, - "wallCount": 31, - "roofCount": 18 - }, - { - "id": "sion_1996", - "uuid": "{486C4C8A-13CD-495D-935A-008571F01D2F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 332.637, - 197.029, - -1501.067 - ], - "size": [ - 26.18, - 9.696, - 15.246 - ], - "groundY": 192.181, - "roofY": 201.877, - "wallCount": 29, - "roofCount": 8 - }, - { - "id": "sion_1997", - "uuid": "{1690A534-3E01-40B3-9613-4AEC58D4C2CA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -6.371, - 62.515, - -631.463 - ], - "size": [ - 24.672, - 20.436, - 26.498 - ], - "groundY": 52.297, - "roofY": 72.733, - "wallCount": 81, - "roofCount": 32 - }, - { - "id": "sion_1998", - "uuid": "{7A0F83CF-63A5-437E-8088-DD359C7CBFFA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 311.826, - 14.514, - 230.517 - ], - "size": [ - 92.246, - 16.606, - 91.038 - ], - "groundY": 6.211, - "roofY": 22.817, - "wallCount": 153, - "roofCount": 178 - }, - { - "id": "sion_1999", - "uuid": "{56E8D619-4240-47EE-832F-60AE5D2ACC33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 379.051, - 94.226, - -1072.389 - ], - "size": [ - 20.938, - 6.961, - 10.492 - ], - "groundY": 90.746, - "roofY": 97.706, - "wallCount": 22, - "roofCount": 4 - }, - { - "id": "sion_2000", - "uuid": "{4D33D054-E9D1-4816-8BB8-A1DB4120E444}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 237.49, - 6.828, - 881.069 - ], - "size": [ - 51.809, - 9.522, - 40.156 - ], - "groundY": 2.067, - "roofY": 11.589, - "wallCount": 15, - "roofCount": 21 - }, - { - "id": "sion_2001", - "uuid": "{F81A4FE1-AE6A-46C8-8AF9-803E6D75E2F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -389.045, - 25.544, - 184.678 - ], - "size": [ - 33.488, - 23.018, - 22.106 - ], - "groundY": 14.035, - "roofY": 37.052, - "wallCount": 69, - "roofCount": 117 - }, - { - "id": "sion_2002", - "uuid": "{20A7B36F-A491-4789-8DFF-45833FE4700F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 346.863, - 8.299, - 527.664 - ], - "size": [ - 40.688, - 11.55, - 37.32 - ], - "groundY": 2.524, - "roofY": 14.074, - "wallCount": 8, - "roofCount": 5 - }, - { - "id": "sion_2003", - "uuid": "{255A1E46-6A68-45AF-A3F4-E59DA9FB8D60}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1075.397, - 12.628, - 817.296 - ], - "size": [ - 46.949, - 12.418, - 30.939 - ], - "groundY": 6.419, - "roofY": 18.837, - "wallCount": 23, - "roofCount": 42 - }, - { - "id": "sion_2004", - "uuid": "{0BC605EA-C5AB-4987-A4E2-1B58E77C604C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -196.689, - 27.404, - 221.389 - ], - "size": [ - 69.223, - 26.311, - 77.334 - ], - "groundY": 14.249, - "roofY": 40.559, - "wallCount": 43, - "roofCount": 31 - }, - { - "id": "sion_2005", - "uuid": "{3457E9CD-BAF3-4AE2-BC04-1D16F0B9029F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 737.996, - 10.063, - 740.372 - ], - "size": [ - 54.781, - 11.15, - 97.857 - ], - "groundY": 4.488, - "roofY": 15.638, - "wallCount": 41, - "roofCount": 23 - }, - { - "id": "sion_2006", - "uuid": "{40BD895E-825F-4F8D-8024-38716E87E78C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 230.592, - 21.17, - 2.252 - ], - "size": [ - 14.473, - 20.219, - 32.492 - ], - "groundY": 11.061, - "roofY": 31.28, - "wallCount": 8, - "roofCount": 25 - }, - { - "id": "sion_2007", - "uuid": "{2A20AB08-B63C-41E2-8322-6484023DD13B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 428.693, - 15.403, - 226.706 - ], - "size": [ - 51.231, - 21.656, - 62.001 - ], - "groundY": 4.575, - "roofY": 26.231, - "wallCount": 84, - "roofCount": 24 - }, - { - "id": "sion_2008", - "uuid": "{EABCD282-3085-455A-9568-DB1BF230488E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 37.146, - 63.749, - -782.908 - ], - "size": [ - 9.684, - 10.082, - 8.854 - ], - "groundY": 58.708, - "roofY": 68.79, - "wallCount": 22, - "roofCount": 28 - }, - { - "id": "sion_2009", - "uuid": "{8D70DDDA-B9BE-4A12-B5CF-7521D8E6ABDC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 314.67, - 56.574, - -653.238 - ], - "size": [ - 54.293, - 6.486, - 18.55 - ], - "groundY": 53.331, - "roofY": 59.817, - "wallCount": 36, - "roofCount": 15 - }, - { - "id": "sion_2010", - "uuid": "{32E05008-ADC1-4F5B-A42B-73F65850686D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 285.094, - 17.572, - 147.742 - ], - "size": [ - 19.82, - 12.627, - 18.894 - ], - "groundY": 11.258, - "roofY": 23.885, - "wallCount": 11, - "roofCount": 10 - }, - { - "id": "sion_2011", - "uuid": "{4F58F6AF-3DC7-45EA-80C0-203375189CAB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -11.988, - 21.608, - 248.465 - ], - "size": [ - 40.227, - 19.781, - 30.218 - ], - "groundY": 11.717, - "roofY": 31.498, - "wallCount": 13, - "roofCount": 12 - }, - { - "id": "sion_2012", - "uuid": "{C65C12C2-35D1-4C1A-9B2F-4A3196C8B524}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 4 - ], - "center": [ - 1044.422, - 11.793, - 701.577 - ], - "size": [ - 27.414, - 12.776, - 86.22 - ], - "groundY": 5.405, - "roofY": 18.181, - "wallCount": 25, - "roofCount": 38 - }, - { - "id": "sion_2013", - "uuid": "{97308E46-CADC-4918-B7C1-FB19CB932653}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -349.531, - 45.956, - -321.883 - ], - "size": [ - 50.367, - 20.585, - 45.581 - ], - "groundY": 35.664, - "roofY": 56.249, - "wallCount": 62, - "roofCount": 76 - }, - { - "id": "sion_2014", - "uuid": "{FAFE8FEF-3BF4-44CC-ACC9-03254BF8A28A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -112.186, - 47.604, - -217.322 - ], - "size": [ - 25.004, - 23.112, - 25.944 - ], - "groundY": 36.048, - "roofY": 59.16, - "wallCount": 28, - "roofCount": 23 - }, - { - "id": "sion_2015", - "uuid": "{3577B5C6-8EAA-46F0-8360-8FCE45C241D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 844.1, - 16.696, - -489.936 - ], - "size": [ - 30.082, - 26.322, - 25.827 - ], - "groundY": 3.535, - "roofY": 29.857, - "wallCount": 76, - "roofCount": 25 - }, - { - "id": "sion_2016", - "uuid": "{F1183402-0CB2-4696-9F43-DB1A2FD4C68C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -160.709, - 47.142, - -356.222 - ], - "size": [ - 22.543, - 23.946, - 49.992 - ], - "groundY": 35.169, - "roofY": 59.114, - "wallCount": 162, - "roofCount": 73 - }, - { - "id": "sion_2017", - "uuid": "{19C14512-B8F5-4936-9C98-808FCDE21A10}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -162.654, - 43.798, - -213.386 - ], - "size": [ - 15.785, - 25.473, - 25.294 - ], - "groundY": 31.061, - "roofY": 56.534, - "wallCount": 32, - "roofCount": 29 - }, - { - "id": "sion_2018", - "uuid": "{8BB987CD-E714-47F1-971D-9FB0A6EF5E8E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 248.545, - 6.366, - 579.191 - ], - "size": [ - 12.059, - 8.464, - 11.479 - ], - "groundY": 2.134, - "roofY": 10.598, - "wallCount": 10, - "roofCount": 2 - }, - { - "id": "sion_2019", - "uuid": "{1BD31419-F13B-4E08-ACA1-3D78F51C926A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 365.293, - 16.304, - -6.352 - ], - "size": [ - 15.188, - 19.526, - 39.233 - ], - "groundY": 6.541, - "roofY": 26.067, - "wallCount": 14, - "roofCount": 33 - }, - { - "id": "sion_2020", - "uuid": "{D642DA03-51A7-45E6-9550-263C62C048FB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 115.045, - 62.241, - -712.171 - ], - "size": [ - 35.457, - 15.823, - 38.206 - ], - "groundY": 54.33, - "roofY": 70.153, - "wallCount": 48, - "roofCount": 40 - }, - { - "id": "sion_2021", - "uuid": "{0F6D1263-CE51-459E-B181-B55C48EAB020}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -125.381, - 44.37, - -196.37 - ], - "size": [ - 85.473, - 28.429, - 48.098 - ], - "groundY": 30.155, - "roofY": 58.584, - "wallCount": 292, - "roofCount": 159 - }, - { - "id": "sion_2022", - "uuid": "{9E56A9C0-C23B-49E6-B754-B6CA83665F5E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 189.195, - 174.904, - -1236.667 - ], - "size": [ - 7.062, - 7.509, - 5.275 - ], - "groundY": 171.149, - "roofY": 178.658, - "wallCount": 21, - "roofCount": 11 - }, - { - "id": "sion_2023", - "uuid": "{26EFD633-8C99-4A25-A8D0-0F4CE47417DF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 720.256, - 8.565, - 865.755 - ], - "size": [ - 27.379, - 9.538, - 22.208 - ], - "groundY": 3.796, - "roofY": 13.334, - "wallCount": 27, - "roofCount": 30 - }, - { - "id": "sion_2024", - "uuid": "{CCD7B16F-F27B-4B7C-9C80-8B79323C661E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -277.937, - 44.425, - -302.257 - ], - "size": [ - 24.68, - 17.685, - 23.307 - ], - "groundY": 35.583, - "roofY": 53.268, - "wallCount": 21, - "roofCount": 18 - }, - { - "id": "sion_2025", - "uuid": "{16608281-E75D-4F5F-9ABC-5D1267451C6A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 251.572, - 140.944, - -1145.792 - ], - "size": [ - 3.754, - 7.132, - 4.362 - ], - "groundY": 137.378, - "roofY": 144.51, - "wallCount": 36, - "roofCount": 9 - }, - { - "id": "sion_2026", - "uuid": "{817ED20C-7F22-41F4-94B2-268C78DEDADC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -137.559, - 95.912, - -1162.957 - ], - "size": [ - 21.578, - 10.066, - 22.076 - ], - "groundY": 90.879, - "roofY": 100.945, - "wallCount": 47, - "roofCount": 25 - }, - { - "id": "sion_2027", - "uuid": "{89977434-0F6B-4F22-9C84-07130A857768}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -139.701, - 35.486, - -18.259 - ], - "size": [ - 67.465, - 24.393, - 90.952 - ], - "groundY": 23.289, - "roofY": 47.682, - "wallCount": 297, - "roofCount": 179 - }, - { - "id": "sion_2028", - "uuid": "{6481A135-C86F-4ED2-93C7-C6180E827833}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -137.939, - 79.537, - -917.5 - ], - "size": [ - 22.238, - 12.467, - 12.141 - ], - "groundY": 73.304, - "roofY": 85.771, - "wallCount": 36, - "roofCount": 29 - }, - { - "id": "sion_2029", - "uuid": "{BD3F9A61-B7AB-4A46-A84B-392175F54CF8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -29.004, - 61.076, - -673.889 - ], - "size": [ - 26.844, - 11.509, - 24.435 - ], - "groundY": 55.322, - "roofY": 66.831, - "wallCount": 56, - "roofCount": 40 - }, - { - "id": "sion_2030", - "uuid": "{57F9B937-E873-441C-B52E-5289261E0D4C}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 4, - 1 - ], - "center": [ - 554.525, - 130.85, - -546.225 - ], - "size": [ - 28.824, - 23.212, - 8.735 - ], - "groundY": 119.244, - "roofY": 142.456, - "wallCount": 81, - "roofCount": 14 - }, - { - "id": "sion_2031", - "uuid": "{1C6E1329-5E8C-4E69-A6E1-C385968D4523}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -81.695, - 32.548, - 88.381 - ], - "size": [ - 131.773, - 27.38, - 109.312 - ], - "groundY": 18.858, - "roofY": 46.238, - "wallCount": 183, - "roofCount": 203 - }, - { - "id": "sion_2032", - "uuid": "{ABA6DCAE-E952-410E-8557-F2B16AEC4649}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -100.662, - 69.527, - -799.026 - ], - "size": [ - 12.668, - 11.42, - 10.164 - ], - "groundY": 63.817, - "roofY": 75.237, - "wallCount": 42, - "roofCount": 28 - }, - { - "id": "sion_2033", - "uuid": "{44664914-C00E-49CC-A1D1-54FF8A5743EE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 817.869, - 10.966, - 468.21 - ], - "size": [ - 52.387, - 16.555, - 33.895 - ], - "groundY": 2.688, - "roofY": 19.243, - "wallCount": 76, - "roofCount": 52 - }, - { - "id": "sion_2034", - "uuid": "{FABD6F7F-7B6B-4157-B9F2-C6E527D44106}", - "name": "", - "class": "Hochhaus", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -386.627, - 12.847, - 747.214 - ], - "size": [ - 53.668, - 27.763, - 17.206 - ], - "groundY": -1.034, - "roofY": 26.729, - "wallCount": 73, - "roofCount": 12 - }, - { - "id": "sion_2035", - "uuid": "{2EB107C1-13D7-43A5-80B6-5A9E763C93A5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 253.768, - 20.283, - 68.524 - ], - "size": [ - 54.707, - 19.067, - 16.694 - ], - "groundY": 10.75, - "roofY": 29.817, - "wallCount": 35, - "roofCount": 23 - }, - { - "id": "sion_2036", - "uuid": "{86D46C63-ED80-4E8C-A613-F3273DCAF379}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 647.473, - 7.505, - 652.937 - ], - "size": [ - 48.859, - 9.891, - 64.548 - ], - "groundY": 2.56, - "roofY": 12.451, - "wallCount": 43, - "roofCount": 40 - }, - { - "id": "sion_2037", - "uuid": "{44B13B2E-39A2-43C8-A713-2402EAE66E7F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 339.551, - 211.452, - -1396.251 - ], - "size": [ - 15.281, - 5.122, - 14.96 - ], - "groundY": 208.891, - "roofY": 214.013, - "wallCount": 15, - "roofCount": 2 - }, - { - "id": "sion_2038", - "uuid": "{7C15E1BF-983B-4D8B-B181-5E80778C2E35}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -174.871, - 187.373, - -1386.754 - ], - "size": [ - 7.82, - 5.716, - 7.838 - ], - "groundY": 184.515, - "roofY": 190.231, - "wallCount": 27, - "roofCount": 16 - }, - { - "id": "sion_2039", - "uuid": "{E3887671-2CAB-4635-BF9C-5649A4C48529}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1030.756, - 12.84, - 428.909 - ], - "size": [ - 38.043, - 16.765, - 18.246 - ], - "groundY": 4.457, - "roofY": 21.222, - "wallCount": 36, - "roofCount": 33 - }, - { - "id": "sion_2040", - "uuid": "{A3536D74-A553-4CDB-9FD1-29D32BAEEC1A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -162.051, - 79.968, - -943.497 - ], - "size": [ - 12.992, - 13.685, - 23.336 - ], - "groundY": 73.126, - "roofY": 86.81, - "wallCount": 47, - "roofCount": 35 - }, - { - "id": "sion_2041", - "uuid": "{507D5991-9A52-4510-8D4F-060BCA2ACC46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -167.51, - 5.322, - 1031.394 - ], - "size": [ - 18.871, - 9.702, - 19.046 - ], - "groundY": 0.471, - "roofY": 10.173, - "wallCount": 35, - "roofCount": 7 - }, - { - "id": "sion_2042", - "uuid": "{C60C00A6-8EA5-4AA3-9E31-84C5A5BCED46}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 449.52, - 8.11, - 706.754 - ], - "size": [ - 20.047, - 10.332, - 16.712 - ], - "groundY": 2.944, - "roofY": 13.276, - "wallCount": 22, - "roofCount": 27 - }, - { - "id": "sion_2043", - "uuid": "{88AB9BBB-5050-4580-928D-32472EEFAA34}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1113.557, - 14.663, - 379.641 - ], - "size": [ - 26.856, - 16.797, - 16.897 - ], - "groundY": 6.265, - "roofY": 23.062, - "wallCount": 103, - "roofCount": 16 - }, - { - "id": "sion_2044", - "uuid": "{F209A91F-830C-4B80-AF0F-42C349DE5266}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -145.051, - 26.918, - 198.274 - ], - "size": [ - 47.055, - 28.599, - 66.729 - ], - "groundY": 12.619, - "roofY": 41.218, - "wallCount": 38, - "roofCount": 64 - }, - { - "id": "sion_2045", - "uuid": "{0E72201A-D461-4A9E-9302-F786F312E723}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -273.33, - 22.856, - 240.099 - ], - "size": [ - 27.902, - 18.387, - 20.574 - ], - "groundY": 13.663, - "roofY": 32.05, - "wallCount": 25, - "roofCount": 59 - }, - { - "id": "sion_2046", - "uuid": "{2D07772A-15A5-440E-9D37-2DC566A65B0D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 872.141, - 269.885, - -1458.897 - ], - "size": [ - 10.445, - 8.82, - 9.337 - ], - "groundY": 265.475, - "roofY": 274.295, - "wallCount": 54, - "roofCount": 18 - }, - { - "id": "sion_2047", - "uuid": "{E425D519-C24E-429C-952D-86C25775C86A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 210.43, - 25.241, - 101.449 - ], - "size": [ - 33.836, - 23.542, - 30.316 - ], - "groundY": 13.47, - "roofY": 37.013, - "wallCount": 36, - "roofCount": 38 - }, - { - "id": "sion_2048", - "uuid": "{21A7FAA4-8FD4-4867-B022-CFC371F87678}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 331.717, - 208.95, - -1443.626 - ], - "size": [ - 16.895, - 12.896, - 17.021 - ], - "groundY": 202.502, - "roofY": 215.398, - "wallCount": 42, - "roofCount": 13 - }, - { - "id": "sion_2049", - "uuid": "{268996FD-29D1-44B8-8B17-83B74A8139C8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 596.982, - 45.561, - -958.13 - ], - "size": [ - 34.16, - 13.916, - 34.628 - ], - "groundY": 38.603, - "roofY": 52.519, - "wallCount": 44, - "roofCount": 14 - }, - { - "id": "sion_2050", - "uuid": "{ED437F04-3DA6-453E-84FC-7B37915DD070}", - "name": "", - "class": "Kapelle", - "archStyle": "fortress", - "tile": [ - 2, - 1 - ], - "center": [ - -347.055, - 78.639, - -902.003 - ], - "size": [ - 24.562, - 9.668, - 23.494 - ], - "groundY": 73.805, - "roofY": 83.473, - "wallCount": 152, - "roofCount": 70 - }, - { - "id": "sion_2051", - "uuid": "{C4F5CD5E-AC57-4CB3-B680-9ED9CB72493F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 260.82, - 67.702, - -867.381 - ], - "size": [ - 14.281, - 9.475, - 13.3 - ], - "groundY": 62.965, - "roofY": 72.44, - "wallCount": 31, - "roofCount": 22 - }, - { - "id": "sion_2052", - "uuid": "{51FDAF9D-FC25-477A-8D1F-E8A4D6BDA2AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 75.545, - 71.767, - -904.702 - ], - "size": [ - 26.184, - 18.326, - 21.312 - ], - "groundY": 62.604, - "roofY": 80.93, - "wallCount": 18, - "roofCount": 11 - }, - { - "id": "sion_2053", - "uuid": "{6A45CC7D-CC7D-40A3-902A-EFD7E1F69805}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 152.311, - 27.424, - -18.245 - ], - "size": [ - 101.613, - 31.586, - 51.75 - ], - "groundY": 11.631, - "roofY": 43.217, - "wallCount": 89, - "roofCount": 98 - }, - { - "id": "sion_2054", - "uuid": "{FC078F20-BBC1-44AB-8E20-A067DC82D33F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -64.592, - 31.328, - -123.216 - ], - "size": [ - 22.41, - 13.514, - 20.624 - ], - "groundY": 24.571, - "roofY": 38.085, - "wallCount": 12, - "roofCount": 7 - }, - { - "id": "sion_2055", - "uuid": "{2C0C4B55-18C5-4DFE-8BD5-2D0BF5B01FA7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 11.102, - 33.007, - -87.03 - ], - "size": [ - 73.438, - 27.666, - 43.364 - ], - "groundY": 19.174, - "roofY": 46.84, - "wallCount": 81, - "roofCount": 44 - }, - { - "id": "sion_2056", - "uuid": "{12ACF6C2-4C2C-4EE0-848C-C1F78AEC1732}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 328.096, - 58.359, - -691.705 - ], - "size": [ - 138.082, - 14.611, - 59.644 - ], - "groundY": 51.054, - "roofY": 65.665, - "wallCount": 67, - "roofCount": 46 - }, - { - "id": "sion_2057", - "uuid": "{93FCAC1C-FDFC-4D1A-A6AE-D552AA903C2D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1299.049, - 15.516, - 197.748 - ], - "size": [ - 38.777, - 14.876, - 14.951 - ], - "groundY": 8.078, - "roofY": 22.954, - "wallCount": 31, - "roofCount": 14 - }, - { - "id": "sion_2058", - "uuid": "{00FA0574-6165-4D9D-8D3B-AC1D8FEB6569}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -94.221, - 51.68, - -252.744 - ], - "size": [ - 44.746, - 24.654, - 47.061 - ], - "groundY": 39.353, - "roofY": 64.007, - "wallCount": 94, - "roofCount": 80 - }, - { - "id": "sion_2059", - "uuid": "{EF55BB24-210D-40E0-AFDF-1B906962B66A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 654.443, - 5.255, - 21.325 - ], - "size": [ - 10.879, - 5.14, - 13.246 - ], - "groundY": 2.685, - "roofY": 7.825, - "wallCount": 22, - "roofCount": 10 - }, - { - "id": "sion_2060", - "uuid": "{A9B83C29-34E4-4C27-BA0A-0126C54EB0DB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 858.783, - 15.642, - -18.652 - ], - "size": [ - 30.309, - 26.104, - 27.748 - ], - "groundY": 2.59, - "roofY": 28.694, - "wallCount": 49, - "roofCount": 10 - }, - { - "id": "sion_2061", - "uuid": "{87EF8E34-6F8C-496F-9C4F-4D82CAB8417E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -104.941, - 39.693, - -144.079 - ], - "size": [ - 28.289, - 19.958, - 22.4 - ], - "groundY": 29.714, - "roofY": 49.672, - "wallCount": 81, - "roofCount": 37 - }, - { - "id": "sion_2062", - "uuid": "{98D98B99-3320-441A-BDF2-3F5320D7F1E7}", - "name": "", - "class": "Mauer gross", - "archStyle": "fortress", - "tile": [ - 3, - 2 - ], - "center": [ - 177.906, - 135.147, - -458.851 - ], - "size": [ - 32.078, - 22.466, - 33.12 - ], - "groundY": 123.914, - "roofY": 146.38, - "wallCount": 246, - "roofCount": 44 - }, - { - "id": "sion_2063", - "uuid": "{D13C20C7-4D11-410A-85CA-4C1D756E337E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 4 - ], - "center": [ - 918.383, - 12.121, - 809.461 - ], - "size": [ - 53.328, - 12.375, - 56.106 - ], - "groundY": 5.934, - "roofY": 18.309, - "wallCount": 12, - "roofCount": 17 - }, - { - "id": "sion_2064", - "uuid": "{9E8F4CD2-5D51-44B9-B29D-04EB1DEB2D38}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 2 - ], - "center": [ - 18.787, - 64.437, - -334.213 - ], - "size": [ - 12.387, - 10.455, - 9.202 - ], - "groundY": 59.209, - "roofY": 69.664, - "wallCount": 27, - "roofCount": 14 - }, - { - "id": "sion_2065", - "uuid": "{1E52DEBC-3234-46D4-9449-B62A9621CC7E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 414.51, - 217.029, - -1386.924 - ], - "size": [ - 20.356, - 7.862, - 16.643 - ], - "groundY": 213.098, - "roofY": 220.96, - "wallCount": 30, - "roofCount": 14 - }, - { - "id": "sion_2066", - "uuid": "{3CE3BF37-CFBE-4500-93E4-2923AAF4967D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 681.398, - 11.176, - 29.776 - ], - "size": [ - 28.531, - 16.858, - 16.996 - ], - "groundY": 2.747, - "roofY": 19.605, - "wallCount": 44, - "roofCount": 8 - }, - { - "id": "sion_2067", - "uuid": "{D5721A36-5AE8-4A73-9571-500977BB5937}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 31.572, - 62.634, - -735.471 - ], - "size": [ - 21.223, - 11.62, - 20.204 - ], - "groundY": 56.824, - "roofY": 68.444, - "wallCount": 20, - "roofCount": 7 - }, - { - "id": "sion_2068", - "uuid": "{BE5D1850-4310-458E-92F5-0BAB48554669}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -299.777, - 84.323, - -962.685 - ], - "size": [ - 223.531, - 21.774, - 165.852 - ], - "groundY": 73.436, - "roofY": 95.21, - "wallCount": 156, - "roofCount": 150 - }, - { - "id": "sion_2069", - "uuid": "{DCF1835D-B353-49F6-88FA-80503D3E0802}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -270.344, - 45.955, - -326.51 - ], - "size": [ - 27.547, - 18.965, - 26.624 - ], - "groundY": 36.473, - "roofY": 55.438, - "wallCount": 35, - "roofCount": 28 - }, - { - "id": "sion_2070", - "uuid": "{D9055046-B1B6-4E96-9E4F-13B241EFE751}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -293.606, - 77.356, - -939.776 - ], - "size": [ - 16.25, - 6.008, - 15.544 - ], - "groundY": 74.352, - "roofY": 80.36, - "wallCount": 12, - "roofCount": 13 - }, - { - "id": "sion_2071", - "uuid": "{2346D3D3-3021-48B5-8813-E815E7D39695}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 0 - ], - "center": [ - -40.09, - 91.743, - -1032.971 - ], - "size": [ - 17.766, - 9.986, - 17.812 - ], - "groundY": 86.75, - "roofY": 96.736, - "wallCount": 29, - "roofCount": 2 - }, - { - "id": "sion_2072", - "uuid": "{C958EF7A-F31F-4EC6-B8B2-7CDFB91B37AF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1396.537, - 20.666, - 147.089 - ], - "size": [ - 21.402, - 25.222, - 14.18 - ], - "groundY": 8.055, - "roofY": 33.277, - "wallCount": 137, - "roofCount": 28 - }, - { - "id": "sion_2073", - "uuid": "{D1089D2D-BB5D-49AE-8910-BFBE45D1C054}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -323.709, - 65.305, - -726.433 - ], - "size": [ - 27.473, - 14.857, - 15.86 - ], - "groundY": 57.877, - "roofY": 72.734, - "wallCount": 48, - "roofCount": 51 - }, - { - "id": "sion_2074", - "uuid": "{DB7EA172-8CE8-428B-AA81-3191E70EE53E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 892.967, - 10.796, - 330.383 - ], - "size": [ - 46.621, - 15.83, - 67.729 - ], - "groundY": 2.881, - "roofY": 18.711, - "wallCount": 66, - "roofCount": 19 - }, - { - "id": "sion_2075", - "uuid": "{E119B007-69CD-4B6C-BFC7-BBA2EFDFC649}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -117.855, - 80.825, - -880.501 - ], - "size": [ - 85.461, - 23.949, - 30.496 - ], - "groundY": 68.851, - "roofY": 92.8, - "wallCount": 116, - "roofCount": 63 - }, - { - "id": "sion_2076", - "uuid": "{9F3C5C29-B3F4-4CB4-A300-AED07CC16004}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 306.904, - 9.152, - 577.391 - ], - "size": [ - 67.074, - 15.666, - 53.14 - ], - "groundY": 1.319, - "roofY": 16.985, - "wallCount": 54, - "roofCount": 22 - }, - { - "id": "sion_2077", - "uuid": "{685E401E-86FA-4557-9A8C-BFD43BBB36D4}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 248.348, - 23.881, - -97.689 - ], - "size": [ - 87.734, - 29.535, - 44.888 - ], - "groundY": 9.113, - "roofY": 38.648, - "wallCount": 84, - "roofCount": 38 - }, - { - "id": "sion_2078", - "uuid": "{FD679571-14D2-4F25-A2BD-2B0F47A18429}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 503.82, - 225.264, - -1435.109 - ], - "size": [ - 24.945, - 16.305, - 20.418 - ], - "groundY": 217.112, - "roofY": 233.417, - "wallCount": 45, - "roofCount": 20 - }, - { - "id": "sion_2079", - "uuid": "{EB16EA76-1BD0-4CEA-8FD2-ED7F5885CBC6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 522.6, - 10.144, - 740.617 - ], - "size": [ - 84.566, - 12.931, - 75.49 - ], - "groundY": 3.679, - "roofY": 16.61, - "wallCount": 65, - "roofCount": 110 - }, - { - "id": "sion_2080", - "uuid": "{5DB4BFC7-F693-4571-AA73-863FC0E6A3D1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 3 - ], - "center": [ - 328.305, - 17.863, - 71.835 - ], - "size": [ - 22.789, - 19.58, - 31.066 - ], - "groundY": 8.073, - "roofY": 27.653, - "wallCount": 33, - "roofCount": 24 - }, - { - "id": "sion_2081", - "uuid": "{06790E57-7E2B-4C07-AFA9-5A2EFB7ED812}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 865.197, - 12.305, - -515.824 - ], - "size": [ - 21.035, - 17.494, - 21.019 - ], - "groundY": 3.558, - "roofY": 21.052, - "wallCount": 11, - "roofCount": 16 - }, - { - "id": "sion_2082", - "uuid": "{83DC9EA2-90C0-43DE-BE45-11C2266A1F9E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 952.059, - 15.376, - 107.683 - ], - "size": [ - 29.938, - 25.574, - 27.59 - ], - "groundY": 2.589, - "roofY": 28.163, - "wallCount": 42, - "roofCount": 10 - }, - { - "id": "sion_2083", - "uuid": "{891F6F11-F39E-4FDD-933C-13071779CEA9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 4 - ], - "center": [ - 282.947, - 8.728, - 859.813 - ], - "size": [ - 41.426, - 12.366, - 46.073 - ], - "groundY": 2.545, - "roofY": 14.911, - "wallCount": 20, - "roofCount": 16 - }, - { - "id": "sion_2084", - "uuid": "{FFD088F9-D5F1-4283-A8E2-34327A1992F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1084.914, - 10.915, - 373.05 - ], - "size": [ - 12.383, - 10.996, - 10.68 - ], - "groundY": 5.417, - "roofY": 16.413, - "wallCount": 50, - "roofCount": 31 - }, - { - "id": "sion_2085", - "uuid": "{74C2A4B9-4A06-4A1C-A497-E801705310BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -20.082, - 64.785, - -258.117 - ], - "size": [ - 15.891, - 13.124, - 17.876 - ], - "groundY": 58.223, - "roofY": 71.347, - "wallCount": 40, - "roofCount": 14 - }, - { - "id": "sion_2086", - "uuid": "{F057C4A2-802E-40FF-84E1-6FC7D8ED9F48}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 406.969, - 18.988, - -27.35 - ], - "size": [ - 48.726, - 30.588, - 64.397 - ], - "groundY": 3.694, - "roofY": 34.282, - "wallCount": 79, - "roofCount": 31 - }, - { - "id": "sion_2087", - "uuid": "{D65FB98C-D138-4755-BC65-14282ABB4C1F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -68.82, - 28.061, - 103.427 - ], - "size": [ - 30.117, - 20.503, - 26.588 - ], - "groundY": 17.809, - "roofY": 38.312, - "wallCount": 25, - "roofCount": 19 - }, - { - "id": "sion_2088", - "uuid": "{4E383523-1BDE-4670-B1D5-9D92AA3E7FCA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 423.795, - 6.61, - 984.163 - ], - "size": [ - 34.238, - 7.251, - 24.012 - ], - "groundY": 2.984, - "roofY": 10.235, - "wallCount": 30, - "roofCount": 24 - }, - { - "id": "sion_2089", - "uuid": "{3D109C0C-0B53-4C7D-BBCA-2D603C96BD7E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -244.266, - 48.805, - -384.353 - ], - "size": [ - 37.625, - 20.658, - 43.3 - ], - "groundY": 38.476, - "roofY": 59.133, - "wallCount": 37, - "roofCount": 35 - }, - { - "id": "sion_2090", - "uuid": "{B82417F5-B632-4A76-B42E-19398870D81C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 2 - ], - "center": [ - 982.215, - 6.223, - -352.032 - ], - "size": [ - 29.219, - 6.51, - 45.534 - ], - "groundY": 2.968, - "roofY": 9.478, - "wallCount": 32, - "roofCount": 31 - }, - { - "id": "sion_2091", - "uuid": "{5B0A44B1-B0B5-4E1E-B85C-89023F075493}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 1 - ], - "center": [ - 550.705, - 76.372, - -798.996 - ], - "size": [ - 9.621, - 10.166, - 14.596 - ], - "groundY": 71.289, - "roofY": 81.455, - "wallCount": 52, - "roofCount": 23 - }, - { - "id": "sion_2092", - "uuid": "{B225B770-C158-415D-8546-2FC54D34A52F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1113.961, - 9.977, - 118.432 - ], - "size": [ - 102.867, - 9.856, - 80.226 - ], - "groundY": 5.049, - "roofY": 14.905, - "wallCount": 16, - "roofCount": 20 - }, - { - "id": "sion_2093", - "uuid": "{0472BBA6-CE96-4E44-9DDC-49BAD94BAF94}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -363.492, - 29.672, - -67.235 - ], - "size": [ - 52.5, - 11.292, - 27.689 - ], - "groundY": 24.026, - "roofY": 35.317, - "wallCount": 89, - "roofCount": 45 - }, - { - "id": "sion_2094", - "uuid": "{D3C07C49-30BF-40A6-8F6D-F3ADF7F87B5F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1333.516, - 18.866, - 167.347 - ], - "size": [ - 47.992, - 20.31, - 15.874 - ], - "groundY": 8.711, - "roofY": 29.021, - "wallCount": 34, - "roofCount": 42 - }, - { - "id": "sion_2095", - "uuid": "{9C5E7F04-8B5F-4431-B9EF-A06B711E21EA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -115.387, - 57.829, - -558.937 - ], - "size": [ - 33.992, - 22.176, - 53.435 - ], - "groundY": 46.741, - "roofY": 68.917, - "wallCount": 53, - "roofCount": 24 - }, - { - "id": "sion_2096", - "uuid": "{CF5863B8-E09E-4F43-895C-34BE5923FED1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -187.723, - 5.761, - 734.859 - ], - "size": [ - 17.359, - 11.468, - 29.851 - ], - "groundY": 0.027, - "roofY": 11.495, - "wallCount": 21, - "roofCount": 17 - }, - { - "id": "sion_2097", - "uuid": "{0BD7026B-A689-480F-B67A-0AEDC9D3F0AA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 4 - ], - "center": [ - -389.846, - 8.578, - 606.153 - ], - "size": [ - 14.129, - 15.274, - 13.078 - ], - "groundY": 0.941, - "roofY": 16.215, - "wallCount": 76, - "roofCount": 54 - }, - { - "id": "sion_2098", - "uuid": "{67AC4F12-E30D-4C49-AEC8-513FF781BA6E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 0 - ], - "center": [ - 713.195, - 197.233, - -1293.34 - ], - "size": [ - 5.094, - 6.177, - 4.068 - ], - "groundY": 194.145, - "roofY": 200.322, - "wallCount": 17, - "roofCount": 4 - }, - { - "id": "sion_2099", - "uuid": "{84F4E342-9E46-43FA-9562-B92F1542B25C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -108.189, - 51.249, - -395.984 - ], - "size": [ - 27.684, - 20.498, - 74.218 - ], - "groundY": 41.0, - "roofY": 61.498, - "wallCount": 35, - "roofCount": 0 - }, - { - "id": "sion_2100", - "uuid": "{E15D2391-162C-47B0-AD29-089DDFC951B5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 474.254, - 83.156, - -1038.579 - ], - "size": [ - 5.719, - 7.586, - 4.758 - ], - "groundY": 79.363, - "roofY": 86.948, - "wallCount": 36, - "roofCount": 9 - }, - { - "id": "sion_2101", - "uuid": "{A3C835AE-28D3-46C3-B8E2-A3CC9289A832}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 1 - ], - "center": [ - 93.336, - 69.85, - -875.853 - ], - "size": [ - 32.367, - 18.417, - 24.899 - ], - "groundY": 60.641, - "roofY": 79.059, - "wallCount": 10, - "roofCount": 10 - }, - { - "id": "sion_2102", - "uuid": "{235B6BB5-F61E-45C8-9E10-634FA2AE6C9A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 3 - ], - "center": [ - 1355.344, - 17.807, - 335.091 - ], - "size": [ - 56.406, - 22.152, - 13.602 - ], - "groundY": 6.731, - "roofY": 28.883, - "wallCount": 90, - "roofCount": 32 - }, - { - "id": "sion_2103", - "uuid": "{52089DF5-05D4-4285-83FF-FC5E6F7397DD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 0 - ], - "center": [ - 256.498, - 203.852, - -1342.301 - ], - "size": [ - 28.957, - 9.469, - 20.268 - ], - "groundY": 199.118, - "roofY": 208.587, - "wallCount": 44, - "roofCount": 32 - }, - { - "id": "sion_2104", - "uuid": "{360AF491-8605-451D-A089-4CBE10B3D16C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 1 - ], - "center": [ - -401.645, - 54.584, - -512.838 - ], - "size": [ - 24.438, - 20.086, - 15.07 - ], - "groundY": 44.541, - "roofY": 64.627, - "wallCount": 28, - "roofCount": 35 - }, - { - "id": "sion_2105", - "uuid": "{682D8ADF-5126-4823-ACCE-BCDE135DACD8}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 3 - ], - "center": [ - -402.195, - 22.896, - 237.381 - ], - "size": [ - 36.727, - 22.726, - 23.973 - ], - "groundY": 11.533, - "roofY": 34.258, - "wallCount": 22, - "roofCount": 19 - }, - { - "id": "sion_2106", - "uuid": "{318ED595-63BB-49C0-8CA6-E6FFA1352874}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1171.367, - 201.896, - 1458.638 - ], - "size": [ - 17.109, - 9.516, - 13.968 - ], - "groundY": 197.138, - "roofY": 206.654, - "wallCount": 25, - "roofCount": 20 - }, - { - "id": "sion_2107", - "uuid": "{259C7D4E-87EF-43F7-AA5E-F06272380D67}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -19.926, - 7.737, - 1191.88 - ], - "size": [ - 29.383, - 9.905, - 35.857 - ], - "groundY": 2.785, - "roofY": 12.69, - "wallCount": 21, - "roofCount": 7 - }, - { - "id": "sion_2108", - "uuid": "{62B20CDF-A3D4-41CD-BC41-98786B558046}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1041.57, - 78.874, - 1223.235 - ], - "size": [ - 26.43, - 14.482, - 20.094 - ], - "groundY": 71.633, - "roofY": 86.115, - "wallCount": 56, - "roofCount": 26 - }, - { - "id": "sion_2109", - "uuid": "{335FF65F-FCBD-4210-962E-EC9D0FED8826}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -216.01, - 5.089, - 1088.642 - ], - "size": [ - 51.262, - 9.563, - 32.13 - ], - "groundY": 0.308, - "roofY": 9.871, - "wallCount": 36, - "roofCount": 30 - }, - { - "id": "sion_2110", - "uuid": "{DF0A0D40-5CFB-49B6-9DCD-BE0ABC45CD33}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 223.488, - 95.136, - 1398.256 - ], - "size": [ - 17.594, - 8.452, - 10.498 - ], - "groundY": 90.91, - "roofY": 99.362, - "wallCount": 27, - "roofCount": 20 - }, - { - "id": "sion_2111", - "uuid": "{ECDCEC46-255A-4E92-8843-C297D53A1AD9}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 151.137, - 6.745, - 1077.146 - ], - "size": [ - 35.164, - 8.035, - 29.757 - ], - "groundY": 2.728, - "roofY": 10.763, - "wallCount": 35, - "roofCount": 39 - }, - { - "id": "sion_2112", - "uuid": "{6698D73A-9687-4E03-8EDB-623E0802066C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -107.553, - 8.475, - 1315.661 - ], - "size": [ - 120.488, - 10.04, - 71.998 - ], - "groundY": 3.455, - "roofY": 13.495, - "wallCount": 35, - "roofCount": 41 - }, - { - "id": "sion_2113", - "uuid": "{E7D0C612-0665-4EB5-BA1F-1631B77AEEBC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -378.43, - 4.612, - 1155.788 - ], - "size": [ - 38.18, - 9.699, - 24.706 - ], - "groundY": -0.237, - "roofY": 9.461, - "wallCount": 25, - "roofCount": 24 - }, - { - "id": "sion_2114", - "uuid": "{1C90C78F-CE96-4003-823C-6AF061E5E92D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 464.836, - 10.156, - 1162.766 - ], - "size": [ - 53.227, - 15.82, - 45.608 - ], - "groundY": 2.246, - "roofY": 18.066, - "wallCount": 66, - "roofCount": 23 - }, - { - "id": "sion_2115", - "uuid": "{92039373-033D-47DD-B10D-407C129FE819}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -110.488, - 116.788, - 1533.101 - ], - "size": [ - 16.016, - 12.94, - 17.424 - ], - "groundY": 110.318, - "roofY": 123.258, - "wallCount": 22, - "roofCount": 9 - }, - { - "id": "sion_2116", - "uuid": "{D7C0C5DE-FC15-469C-9AA4-F7839DA09AEE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1322.211, - 234.563, - 1476.054 - ], - "size": [ - 13.07, - 9.938, - 11.952 - ], - "groundY": 229.594, - "roofY": 239.532, - "wallCount": 32, - "roofCount": 18 - }, - { - "id": "sion_2117", - "uuid": "{DAD55D2E-C6E7-44D9-A49C-726053A72467}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -108.646, - 108.034, - 1501.319 - ], - "size": [ - 7.629, - 6.178, - 5.144 - ], - "groundY": 104.945, - "roofY": 111.123, - "wallCount": 14, - "roofCount": 14 - }, - { - "id": "sion_2118", - "uuid": "{DEB2C4F3-AB4C-41E7-B3DC-905520E98DC4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -342.645, - 6.008, - 1151.312 - ], - "size": [ - 17.547, - 11.384, - 21.841 - ], - "groundY": 0.316, - "roofY": 11.7, - "wallCount": 36, - "roofCount": 12 - }, - { - "id": "sion_2119", - "uuid": "{FB7D77BC-C370-42A8-AF04-9EBA157F7BBD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 95.51, - 39.271, - 1342.667 - ], - "size": [ - 21.707, - 8.172, - 9.588 - ], - "groundY": 35.185, - "roofY": 43.357, - "wallCount": 16, - "roofCount": 28 - }, - { - "id": "sion_2120", - "uuid": "{F1A671DD-E91E-4475-949A-7A94BA462EC1}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 5 - ], - "center": [ - 523.023, - 11.371, - 1108.546 - ], - "size": [ - 32.859, - 13.507, - 38.126 - ], - "groundY": 4.618, - "roofY": 18.125, - "wallCount": 17, - "roofCount": 12 - }, - { - "id": "sion_2121", - "uuid": "{45E25FCC-5038-4827-9596-6139D890F573}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 548.029, - 29.381, - 1223.844 - ], - "size": [ - 14.988, - 12.88, - 13.872 - ], - "groundY": 22.941, - "roofY": 35.821, - "wallCount": 37, - "roofCount": 19 - }, - { - "id": "sion_2122", - "uuid": "{B367EFD1-51B8-47CF-A6B9-780E6FFF044B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 758.353, - 31.031, - 1120.568 - ], - "size": [ - 6.949, - 10.842, - 9.576 - ], - "groundY": 25.61, - "roofY": 36.452, - "wallCount": 63, - "roofCount": 23 - }, - { - "id": "sion_2123", - "uuid": "{FB684055-5874-4C91-B1EF-83FA7206999D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 571.02, - 30.286, - 1236.701 - ], - "size": [ - 17.039, - 10.163, - 10.229 - ], - "groundY": 25.205, - "roofY": 35.367, - "wallCount": 29, - "roofCount": 37 - }, - { - "id": "sion_2124", - "uuid": "{D7A6F175-AE92-45F7-8250-83DCDDF5B266}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1068.057, - 197.174, - 1462.181 - ], - "size": [ - 12.754, - 11.688, - 15.267 - ], - "groundY": 191.33, - "roofY": 203.018, - "wallCount": 47, - "roofCount": 13 - }, - { - "id": "sion_2125", - "uuid": "{694BF2B8-CF68-41D6-A57F-F549271F6AA6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 983.533, - 64.002, - 1193.149 - ], - "size": [ - 24.082, - 13.288, - 13.916 - ], - "groundY": 57.358, - "roofY": 70.646, - "wallCount": 71, - "roofCount": 26 - }, - { - "id": "sion_2126", - "uuid": "{BE073200-D99E-4FDB-9771-5670872221F4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1311.43, - 124.991, - 1227.58 - ], - "size": [ - 19.914, - 8.714, - 13.367 - ], - "groundY": 120.634, - "roofY": 129.348, - "wallCount": 34, - "roofCount": 26 - }, - { - "id": "sion_2127", - "uuid": "{62F77940-B8C9-4D42-8DB7-90C4F4AAC6DE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 222.617, - 101.794, - 1408.864 - ], - "size": [ - 9.742, - 12.075, - 12.792 - ], - "groundY": 95.757, - "roofY": 107.832, - "wallCount": 20, - "roofCount": 19 - }, - { - "id": "sion_2128", - "uuid": "{6E982AE3-4792-4A21-8760-AAEDE6BEDCA3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 149.473, - 7.806, - 1194.261 - ], - "size": [ - 56.07, - 9.921, - 50.376 - ], - "groundY": 2.845, - "roofY": 12.766, - "wallCount": 43, - "roofCount": 16 - }, - { - "id": "sion_2129", - "uuid": "{BC3FD928-D332-459F-8A79-5669B81F67BD}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -137.397, - 95.538, - 1457.882 - ], - "size": [ - 24.324, - 15.768, - 18.382 - ], - "groundY": 87.654, - "roofY": 103.422, - "wallCount": 78, - "roofCount": 29 - }, - { - "id": "sion_2130", - "uuid": "{42F152CC-06B8-4CE6-9DBF-30AAF6D568BA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -81.482, - 108.998, - 1481.798 - ], - "size": [ - 14.863, - 11.963, - 12.874 - ], - "groundY": 103.016, - "roofY": 114.979, - "wallCount": 49, - "roofCount": 22 - }, - { - "id": "sion_2131", - "uuid": "{CAC0D9D7-953B-42E9-9441-FB1E040FA18A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 60.793, - 9.569, - 1076.128 - ], - "size": [ - 33.938, - 11.838, - 46.553 - ], - "groundY": 3.65, - "roofY": 15.488, - "wallCount": 13, - "roofCount": 38 - }, - { - "id": "sion_2132", - "uuid": "{21FE7538-955C-49F5-A203-0990CB199779}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 64.85, - 80.87, - 1431.872 - ], - "size": [ - 73.223, - 14.687, - 30.734 - ], - "groundY": 73.526, - "roofY": 88.213, - "wallCount": 38, - "roofCount": 19 - }, - { - "id": "sion_2133", - "uuid": "{16ED8E6D-8B75-4285-8144-DC0A7122097B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -369.596, - 60.499, - 1477.323 - ], - "size": [ - 29.082, - 10.931, - 19.072 - ], - "groundY": 55.034, - "roofY": 65.965, - "wallCount": 27, - "roofCount": 14 - }, - { - "id": "sion_2134", - "uuid": "{0CB21514-9A88-4EB7-9575-16EFB3070784}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 981.297, - 21.015, - 1081.168 - ], - "size": [ - 26.859, - 14.036, - 22.973 - ], - "groundY": 13.997, - "roofY": 28.033, - "wallCount": 57, - "roofCount": 20 - }, - { - "id": "sion_2135", - "uuid": "{2DCCF333-771B-463C-B5B1-EAF3AF214DCC}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -226.146, - 79.028, - 1466.725 - ], - "size": [ - 23.34, - 11.604, - 15.506 - ], - "groundY": 73.226, - "roofY": 84.83, - "wallCount": 20, - "roofCount": 29 - }, - { - "id": "sion_2136", - "uuid": "{F422A866-C5CB-4E3D-991A-20C559B0B820}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 233.85, - 7.119, - 1171.164 - ], - "size": [ - 30.543, - 10.283, - 85.736 - ], - "groundY": 1.978, - "roofY": 12.261, - "wallCount": 28, - "roofCount": 24 - }, - { - "id": "sion_2137", - "uuid": "{EE7AF132-B807-45C0-853B-541030C32B15}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 298.029, - 10.045, - 1199.78 - ], - "size": [ - 71.973, - 15.353, - 43.468 - ], - "groundY": 2.368, - "roofY": 17.721, - "wallCount": 55, - "roofCount": 35 - }, - { - "id": "sion_2138", - "uuid": "{C2D9E6E5-270C-42A3-AB00-3CC7E4A1C148}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 615.229, - 117.669, - 1415.293 - ], - "size": [ - 14.887, - 12.796, - 13.486 - ], - "groundY": 111.271, - "roofY": 124.067, - "wallCount": 44, - "roofCount": 20 - }, - { - "id": "sion_2139", - "uuid": "{2720EE54-2ECC-4D86-AECA-8137CE3BB27F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -283.889, - 3.861, - 1174.812 - ], - "size": [ - 17.684, - 7.052, - 17.407 - ], - "groundY": 0.335, - "roofY": 7.387, - "wallCount": 39, - "roofCount": 0 - }, - { - "id": "sion_2140", - "uuid": "{10B2EE8B-03BF-4E20-A50E-A66BF6BFFC6F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -275.742, - 3.591, - 1119.442 - ], - "size": [ - 17.539, - 6.202, - 18.72 - ], - "groundY": 0.49, - "roofY": 6.692, - "wallCount": 45, - "roofCount": 8 - }, - { - "id": "sion_2141", - "uuid": "{7A4EA621-9340-4690-9D35-F03A7D0BBC2B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -29.484, - 7.701, - 1168.111 - ], - "size": [ - 18.891, - 10.901, - 18.428 - ], - "groundY": 2.251, - "roofY": 13.152, - "wallCount": 46, - "roofCount": 6 - }, - { - "id": "sion_2142", - "uuid": "{EB87D8E1-61FA-4BBC-9633-792BD7EE4649}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1351.764, - 117.083, - 1192.515 - ], - "size": [ - 20.074, - 12.264, - 15.782 - ], - "groundY": 110.951, - "roofY": 123.215, - "wallCount": 35, - "roofCount": 14 - }, - { - "id": "sion_2143", - "uuid": "{4C2087AA-F2E5-44C2-A2EB-09075547689E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 38.178, - 8.041, - 1090.632 - ], - "size": [ - 31.816, - 8.446, - 41.738 - ], - "groundY": 3.818, - "roofY": 12.264, - "wallCount": 14, - "roofCount": 31 - }, - { - "id": "sion_2144", - "uuid": "{40DB5E52-D748-410D-A926-43789C43AD64}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1507.518, - 223.919, - 1375.147 - ], - "size": [ - 12.371, - 9.518, - 10.907 - ], - "groundY": 219.16, - "roofY": 228.678, - "wallCount": 44, - "roofCount": 19 - }, - { - "id": "sion_2145", - "uuid": "{648AB307-C5CF-452E-9117-FBBAA311A787}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -189.209, - 9.004, - 1084.683 - ], - "size": [ - 3.551, - 16.522, - 3.548 - ], - "groundY": 0.743, - "roofY": 17.265, - "wallCount": 40, - "roofCount": 3 - }, - { - "id": "sion_2146", - "uuid": "{22E3C1A3-00BA-4B00-B4C6-86CFD1187B3E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 377.389, - 10.764, - 1192.509 - ], - "size": [ - 40.379, - 15.789, - 33.324 - ], - "groundY": 2.869, - "roofY": 18.658, - "wallCount": 92, - "roofCount": 55 - }, - { - "id": "sion_2147", - "uuid": "{A46B9C88-63AE-4F0A-AA85-1468F70AAC35}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 665.295, - 69.688, - 1269.284 - ], - "size": [ - 9.16, - 5.65, - 7.506 - ], - "groundY": 66.863, - "roofY": 72.513, - "wallCount": 31, - "roofCount": 11 - }, - { - "id": "sion_2148", - "uuid": "{48CC406E-A11D-4D55-9979-36ECB53C40F5}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -209.109, - 7.875, - 1189.72 - ], - "size": [ - 31.68, - 8.451, - 31.008 - ], - "groundY": 3.649, - "roofY": 12.1, - "wallCount": 27, - "roofCount": 37 - }, - { - "id": "sion_2149", - "uuid": "{8A8C14B2-2910-4F07-B60B-39F572EAC33D}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 330.686, - 8.399, - 1189.301 - ], - "size": [ - 35.926, - 11.657, - 39.508 - ], - "groundY": 2.571, - "roofY": 14.228, - "wallCount": 19, - "roofCount": 30 - }, - { - "id": "sion_2150", - "uuid": "{0DAA755E-CB37-4EC4-9893-030D492450E6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 5 - ], - "center": [ - 559.844, - 14.731, - 1131.884 - ], - "size": [ - 94.492, - 17.066, - 98.096 - ], - "groundY": 6.198, - "roofY": 23.264, - "wallCount": 46, - "roofCount": 18 - }, - { - "id": "sion_2151", - "uuid": "{FAB3B8FC-1103-42CB-A4AA-4D6B94F66559}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 227.346, - 136.162, - 1505.547 - ], - "size": [ - 7.785, - 8.296, - 7.09 - ], - "groundY": 132.014, - "roofY": 140.31, - "wallCount": 30, - "roofCount": 15 - }, - { - "id": "sion_2152", - "uuid": "{C64CD000-0528-4608-AB70-4CD43AFC3253}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -364.688, - 4.936, - 1064.917 - ], - "size": [ - 49.82, - 9.27, - 35.148 - ], - "groundY": 0.301, - "roofY": 9.571, - "wallCount": 10, - "roofCount": 24 - }, - { - "id": "sion_2153", - "uuid": "{D8298C0F-ED59-4651-B8A1-8604C96041B6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -253.133, - 5.699, - 1106.407 - ], - "size": [ - 19.141, - 11.464, - 16.814 - ], - "groundY": -0.033, - "roofY": 11.431, - "wallCount": 24, - "roofCount": 9 - }, - { - "id": "sion_2154", - "uuid": "{DB19D9DC-6B36-42FD-A1DA-8C1601D47290}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 17.467, - 12.75, - 1322.362 - ], - "size": [ - 11.957, - 8.244, - 10.524 - ], - "groundY": 8.628, - "roofY": 16.872, - "wallCount": 47, - "roofCount": 21 - }, - { - "id": "sion_2155", - "uuid": "{5FD9807A-C3BC-44AC-A5BE-5F1CE02CEC00}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1286.711, - 120.908, - 1210.708 - ], - "size": [ - 14.891, - 11.064, - 15.672 - ], - "groundY": 115.376, - "roofY": 126.44, - "wallCount": 43, - "roofCount": 41 - }, - { - "id": "sion_2156", - "uuid": "{DD1ACB25-D472-49C7-8FD5-62BF382EA60F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 253.639, - 6.82, - 1175.726 - ], - "size": [ - 13.574, - 8.315, - 21.122 - ], - "groundY": 2.662, - "roofY": 10.977, - "wallCount": 27, - "roofCount": 109 - }, - { - "id": "sion_2157", - "uuid": "{56A3259B-BD6A-483C-92F9-5E8EAD6AE924}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -388.781, - 6.824, - 1273.616 - ], - "size": [ - 28.594, - 13.326, - 22.156 - ], - "groundY": 0.161, - "roofY": 13.487, - "wallCount": 26, - "roofCount": 24 - }, - { - "id": "sion_2158", - "uuid": "{5BAD80B3-4A31-475E-AF51-634B1CE28691}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 67.832, - 7.729, - 1151.838 - ], - "size": [ - 35.781, - 9.164, - 31.326 - ], - "groundY": 3.147, - "roofY": 12.311, - "wallCount": 20, - "roofCount": 64 - }, - { - "id": "sion_2159", - "uuid": "{413D3969-149D-40F0-A9BB-139F3B0C80E2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 65.961, - 14.637, - 1296.173 - ], - "size": [ - 18.219, - 11.122, - 21.5 - ], - "groundY": 9.076, - "roofY": 20.198, - "wallCount": 37, - "roofCount": 13 - }, - { - "id": "sion_2160", - "uuid": "{89362BFE-8AA6-4D5E-AFAD-71C96E362A22}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1474.75, - 123.405, - 1162.135 - ], - "size": [ - 19.281, - 11.906, - 16.008 - ], - "groundY": 117.452, - "roofY": 129.358, - "wallCount": 49, - "roofCount": 17 - }, - { - "id": "sion_2161", - "uuid": "{95D4022B-52F1-4448-B8F1-D257F3411E40}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 210.242, - 7.927, - 1171.171 - ], - "size": [ - 31.203, - 12.63, - 63.96 - ], - "groundY": 1.612, - "roofY": 14.242, - "wallCount": 22, - "roofCount": 15 - }, - { - "id": "sion_2162", - "uuid": "{ED628BC4-90D0-43CB-9313-649D14AB1AB0}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 364.26, - 89.142, - 1361.666 - ], - "size": [ - 9.496, - 10.215, - 9.826 - ], - "groundY": 84.034, - "roofY": 94.249, - "wallCount": 27, - "roofCount": 28 - }, - { - "id": "sion_2163", - "uuid": "{AAE0A9D6-1441-43EC-81A9-BCE189E908C7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 353.328, - 5.971, - 1057.483 - ], - "size": [ - 20.891, - 6.712, - 15.222 - ], - "groundY": 2.615, - "roofY": 9.327, - "wallCount": 10, - "roofCount": 26 - }, - { - "id": "sion_2164", - "uuid": "{3311BB6A-CF0D-4943-AB42-154D2E2FE087}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -358.816, - 5.922, - 1091.37 - ], - "size": [ - 125.68, - 11.096, - 81.884 - ], - "groundY": 0.374, - "roofY": 11.47, - "wallCount": 40, - "roofCount": 6 - }, - { - "id": "sion_2165", - "uuid": "{F2C65D55-9099-42FC-A9C2-FCEAE0E23336}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1131.816, - 185.125, - 1399.186 - ], - "size": [ - 15.727, - 10.636, - 13.082 - ], - "groundY": 179.807, - "roofY": 190.443, - "wallCount": 33, - "roofCount": 22 - }, - { - "id": "sion_2166", - "uuid": "{360FF648-539B-4181-BCAA-4B98D0514A4F}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 245.641, - 136.586, - 1495.693 - ], - "size": [ - 33.195, - 12.756, - 23.435 - ], - "groundY": 130.208, - "roofY": 142.964, - "wallCount": 61, - "roofCount": 34 - }, - { - "id": "sion_2167", - "uuid": "{98031FDE-827D-4214-87EA-67CE1FCD9D47}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -30.82, - 123.402, - 1511.572 - ], - "size": [ - 15.492, - 12.981, - 16.329 - ], - "groundY": 116.912, - "roofY": 129.893, - "wallCount": 54, - "roofCount": 32 - }, - { - "id": "sion_2168", - "uuid": "{C91500D5-FD2B-4D61-B289-63F7DE47C2FF}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -171.709, - 14.754, - 1089.65 - ], - "size": [ - 10.762, - 27.746, - 24.599 - ], - "groundY": 0.881, - "roofY": 28.627, - "wallCount": 47, - "roofCount": 22 - }, - { - "id": "sion_2169", - "uuid": "{91303D7B-C4F2-4C2C-A7B9-7E52978FBD89}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -42.596, - 109.762, - 1479.494 - ], - "size": [ - 14.168, - 11.944, - 13.376 - ], - "groundY": 103.79, - "roofY": 115.734, - "wallCount": 48, - "roofCount": 9 - }, - { - "id": "sion_2170", - "uuid": "{6C342B9E-1742-4485-92CB-CC17E628721E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1065.504, - 191.848, - 1436.072 - ], - "size": [ - 12.5, - 10.934, - 12.05 - ], - "groundY": 186.381, - "roofY": 197.315, - "wallCount": 49, - "roofCount": 20 - }, - { - "id": "sion_2171", - "uuid": "{9AD520B6-4291-4606-9262-3B38CB7D02E3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 636.17, - 76.669, - 1331.713 - ], - "size": [ - 13.731, - 10.714, - 14.238 - ], - "groundY": 71.312, - "roofY": 82.026, - "wallCount": 34, - "roofCount": 28 - }, - { - "id": "sion_2172", - "uuid": "{BA63D42A-4505-44D6-834D-68CFD79F1AB0}", - "name": "", - "class": "Lagertank", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 107.223, - 61.77, - 1386.232 - ], - "size": [ - 3.273, - 12.48, - 3.275 - ], - "groundY": 55.53, - "roofY": 68.01, - "wallCount": 7, - "roofCount": 2 - }, - { - "id": "sion_2173", - "uuid": "{13A7DFCD-8F88-4F5E-9817-B608C8BF053E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 5, - 5 - ], - "center": [ - 1078.062, - 26.114, - 1073.999 - ], - "size": [ - 83.625, - 22.347, - 64.465 - ], - "groundY": 14.941, - "roofY": 37.288, - "wallCount": 74, - "roofCount": 25 - }, - { - "id": "sion_2174", - "uuid": "{C8EBC1A4-3791-4FAC-889C-4A65B578C228}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 30.283, - 7.753, - 1165.373 - ], - "size": [ - 32.98, - 9.022, - 36.553 - ], - "groundY": 3.242, - "roofY": 12.264, - "wallCount": 30, - "roofCount": 53 - }, - { - "id": "sion_2175", - "uuid": "{EC153C56-D906-403E-BDFF-87FD790A973A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 343.721, - 153.182, - 1512.904 - ], - "size": [ - 11.918, - 12.462, - 12.492 - ], - "groundY": 146.951, - "roofY": 159.413, - "wallCount": 38, - "roofCount": 26 - }, - { - "id": "sion_2176", - "uuid": "{BCD1CF01-C27A-4E17-8220-4A9597371E36}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1395.541, - 66.09, - 1064.161 - ], - "size": [ - 18.457, - 13.11, - 9.13 - ], - "groundY": 59.535, - "roofY": 72.645, - "wallCount": 52, - "roofCount": 21 - }, - { - "id": "sion_2177", - "uuid": "{F071D0E7-2C46-4C4D-B4DC-AB68C6257D78}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -64.27, - 108.761, - 1477.394 - ], - "size": [ - 10.188, - 10.414, - 9.233 - ], - "groundY": 103.554, - "roofY": 113.968, - "wallCount": 52, - "roofCount": 31 - }, - { - "id": "sion_2178", - "uuid": "{F4F48BF0-63D5-4A2B-AEBE-B74F965765FA}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 24.084, - 7.175, - 1104.423 - ], - "size": [ - 25.105, - 7.144, - 39.482 - ], - "groundY": 3.603, - "roofY": 10.747, - "wallCount": 20, - "roofCount": 27 - }, - { - "id": "sion_2179", - "uuid": "{F0E8C09E-94DC-4D09-A2A4-CB368CAEF26B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 712.094, - 40.517, - 1183.813 - ], - "size": [ - 20.266, - 10.53, - 22.105 - ], - "groundY": 35.252, - "roofY": 45.782, - "wallCount": 32, - "roofCount": 23 - }, - { - "id": "sion_2180", - "uuid": "{D57203E6-415A-4FC1-9727-8DF346014450}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1452.668, - 71.029, - 1066.859 - ], - "size": [ - 13.227, - 13.408, - 10.422 - ], - "groundY": 64.325, - "roofY": 77.733, - "wallCount": 60, - "roofCount": 38 - }, - { - "id": "sion_2181", - "uuid": "{DCC2EF3F-869C-4771-8323-FF47DEF241DE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 361.715, - 4.674, - 1150.139 - ], - "size": [ - 41.055, - 7.593, - 35.696 - ], - "groundY": 0.877, - "roofY": 8.47, - "wallCount": 34, - "roofCount": 27 - }, - { - "id": "sion_2182", - "uuid": "{D50982B9-78E9-42E6-883A-A54FAB29B4FE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 722.037, - 46.447, - 1200.524 - ], - "size": [ - 21.707, - 15.354, - 16.644 - ], - "groundY": 38.77, - "roofY": 54.124, - "wallCount": 23, - "roofCount": 9 - }, - { - "id": "sion_2183", - "uuid": "{968D0827-C15E-4480-A331-697135291278}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1438.77, - 120.011, - 1172.192 - ], - "size": [ - 16.898, - 11.868, - 14.927 - ], - "groundY": 114.077, - "roofY": 125.945, - "wallCount": 38, - "roofCount": 20 - }, - { - "id": "sion_2184", - "uuid": "{A581C60F-346C-4B7C-AC3F-5937AFF2E2DE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 235.617, - 100.522, - 1403.926 - ], - "size": [ - 18.461, - 10.83, - 11.884 - ], - "groundY": 95.107, - "roofY": 105.937, - "wallCount": 30, - "roofCount": 45 - }, - { - "id": "sion_2185", - "uuid": "{57233294-50FC-49C0-A989-D7013A8DCE5C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 610.818, - 22.625, - 1186.649 - ], - "size": [ - 12.019, - 11.866, - 12.006 - ], - "groundY": 16.692, - "roofY": 28.558, - "wallCount": 54, - "roofCount": 15 - }, - { - "id": "sion_2186", - "uuid": "{9821D1B4-F496-4026-AF0A-46FB20992891}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -226.322, - 73.466, - 1451.379 - ], - "size": [ - 15.246, - 4.524, - 15.645 - ], - "groundY": 71.204, - "roofY": 75.728, - "wallCount": 22, - "roofCount": 6 - }, - { - "id": "sion_2187", - "uuid": "{A9DE322C-BE6F-4A6D-BB0D-E74C991F2976}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -27.096, - 8.173, - 1289.697 - ], - "size": [ - 46.473, - 9.434, - 54.47 - ], - "groundY": 3.456, - "roofY": 12.89, - "wallCount": 17, - "roofCount": 48 - }, - { - "id": "sion_2188", - "uuid": "{AEE00D44-8C36-442C-B81A-97D6035B0CEE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 182.568, - 7.424, - 1067.195 - ], - "size": [ - 27.699, - 10.499, - 39.75 - ], - "groundY": 2.175, - "roofY": 12.674, - "wallCount": 31, - "roofCount": 18 - }, - { - "id": "sion_2189", - "uuid": "{6C110108-A113-449B-8A4F-4266D279BD81}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -28.82, - 7.876, - 1323.149 - ], - "size": [ - 24.5, - 8.134, - 16.819 - ], - "groundY": 3.809, - "roofY": 11.943, - "wallCount": 16, - "roofCount": 30 - }, - { - "id": "sion_2190", - "uuid": "{78302DA1-7609-4DDA-AAD8-8C33FC19B509}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -329.15, - 5.342, - 1220.61 - ], - "size": [ - 17.91, - 10.44, - 20.315 - ], - "groundY": 0.122, - "roofY": 10.562, - "wallCount": 44, - "roofCount": 34 - }, - { - "id": "sion_2191", - "uuid": "{C5B6E431-698C-4571-9680-88CC0025727C}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 391.715, - 7.997, - 1069.392 - ], - "size": [ - 20.961, - 10.747, - 32.614 - ], - "groundY": 2.624, - "roofY": 13.371, - "wallCount": 18, - "roofCount": 2 - }, - { - "id": "sion_2192", - "uuid": "{5B09F44E-EC85-4DA2-A040-04F883C50945}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1208.541, - 154.221, - 1313.788 - ], - "size": [ - 8.191, - 7.62, - 6.934 - ], - "groundY": 150.411, - "roofY": 158.031, - "wallCount": 55, - "roofCount": 24 - }, - { - "id": "sion_2193", - "uuid": "{3378C6A0-7FF6-4FA5-B397-5EBA6DC437AB}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 399.812, - 88.808, - 1345.818 - ], - "size": [ - 16.234, - 12.262, - 13.792 - ], - "groundY": 82.677, - "roofY": 94.938, - "wallCount": 58, - "roofCount": 31 - }, - { - "id": "sion_2194", - "uuid": "{67B1FF0D-827E-4E6A-A14D-E663BE8674B3}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -295.156, - 3.904, - 1145.77 - ], - "size": [ - 36.601, - 7.346, - 50.349 - ], - "groundY": 0.231, - "roofY": 7.577, - "wallCount": 46, - "roofCount": 21 - }, - { - "id": "sion_2195", - "uuid": "{0D13FE38-7C23-462F-8E65-A9AC08DFC956}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1467.412, - 71.262, - 1069.08 - ], - "size": [ - 14.035, - 11.681, - 18.594 - ], - "groundY": 65.421, - "roofY": 77.102, - "wallCount": 49, - "roofCount": 31 - }, - { - "id": "sion_2196", - "uuid": "{672F34D7-819B-4C08-8C8E-BDD5E02F4EA2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 485.932, - 16.279, - 1222.081 - ], - "size": [ - 19.113, - 12.608, - 13.346 - ], - "groundY": 9.975, - "roofY": 22.583, - "wallCount": 31, - "roofCount": 19 - }, - { - "id": "sion_2197", - "uuid": "{C6FA7E84-1BC2-456C-AA65-F10E63AA499B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 189.832, - 9.665, - 1225.027 - ], - "size": [ - 30.633, - 15.303, - 34.817 - ], - "groundY": 2.014, - "roofY": 17.317, - "wallCount": 168, - "roofCount": 23 - }, - { - "id": "sion_2198", - "uuid": "{2E6CEB44-569F-47E9-8A11-E800BA36EE2B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1510.574, - 235.066, - 1399.573 - ], - "size": [ - 26.133, - 6.437, - 12.152 - ], - "groundY": 231.848, - "roofY": 238.285, - "wallCount": 20, - "roofCount": 14 - }, - { - "id": "sion_2199", - "uuid": "{86702FC9-41EC-4D07-B236-539B6D636F50}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 195.562, - 5.448, - 1059.444 - ], - "size": [ - 16.211, - 6.488, - 25.626 - ], - "groundY": 2.204, - "roofY": 8.692, - "wallCount": 18, - "roofCount": 15 - }, - { - "id": "sion_2200", - "uuid": "{27B111B1-8741-4468-AD53-B1777675071A}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1188.83, - 206.033, - 1465.784 - ], - "size": [ - 17.512, - 12.362, - 19.023 - ], - "groundY": 199.852, - "roofY": 212.214, - "wallCount": 37, - "roofCount": 17 - }, - { - "id": "sion_2201", - "uuid": "{304CDA18-1B7A-4FA3-8B76-2661F6D22DE6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -92.084, - 8.243, - 1240.59 - ], - "size": [ - 84.902, - 10.789, - 59.578 - ], - "groundY": 2.848, - "roofY": 13.637, - "wallCount": 35, - "roofCount": 25 - }, - { - "id": "sion_2202", - "uuid": "{EEA3906B-6877-4082-8770-268DA4609AC4}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 598.406, - 112.329, - 1400.14 - ], - "size": [ - 11.453, - 11.723, - 8.038 - ], - "groundY": 106.467, - "roofY": 118.19, - "wallCount": 63, - "roofCount": 38 - }, - { - "id": "sion_2203", - "uuid": "{75FE8C39-817A-48C6-9214-B603AAA82B7E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 106.58, - 9.297, - 1073.958 - ], - "size": [ - 60.074, - 11.778, - 62.143 - ], - "groundY": 3.408, - "roofY": 15.186, - "wallCount": 82, - "roofCount": 46 - }, - { - "id": "sion_2204", - "uuid": "{78D6AFB4-27B6-4E24-AC6E-EB80E3392E2E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 5, - 5 - ], - "center": [ - 1264.666, - 124.155, - 1222.564 - ], - "size": [ - 15.254, - 12.156, - 14.252 - ], - "groundY": 118.077, - "roofY": 130.233, - "wallCount": 50, - "roofCount": 16 - }, - { - "id": "sion_2205", - "uuid": "{CB6CE6E2-39AB-420E-9AE3-DDA84D9E57A2}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -389.957, - 3.854, - 1221.705 - ], - "size": [ - 22.562, - 7.796, - 19.44 - ], - "groundY": -0.044, - "roofY": 7.752, - "wallCount": 16, - "roofCount": 20 - }, - { - "id": "sion_2206", - "uuid": "{DE25EC74-67C2-4C9A-BA91-86EBB65A8D67}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 5 - ], - "center": [ - 686.551, - 97.824, - 1362.901 - ], - "size": [ - 7.812, - 9.681, - 6.929 - ], - "groundY": 92.984, - "roofY": 102.665, - "wallCount": 73, - "roofCount": 22 - }, - { - "id": "sion_2207", - "uuid": "{3B2F319E-D257-41C9-8E04-71E95A9C10BE}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 4, - 5 - ], - "center": [ - 551.061, - 8.157, - 1069.662 - ], - "size": [ - 34.621, - 8.023, - 39.622 - ], - "groundY": 4.145, - "roofY": 12.168, - "wallCount": 8, - "roofCount": 12 - }, - { - "id": "sion_2208", - "uuid": "{189A4786-0C28-44C0-941D-396943CF4472}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 437.826, - 6.813, - 1118.936 - ], - "size": [ - 77.512, - 9.732, - 88.159 - ], - "groundY": 1.947, - "roofY": 11.678, - "wallCount": 28, - "roofCount": 52 - }, - { - "id": "sion_2209", - "uuid": "{1E3E3A2D-8E74-48D8-844F-E553FF204595}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 5 - ], - "center": [ - -45.875, - 7.882, - 1178.813 - ], - "size": [ - 12.891, - 10.94, - 13.802 - ], - "groundY": 2.412, - "roofY": 13.352, - "wallCount": 34, - "roofCount": 23 - }, - { - "id": "sion_2210", - "uuid": "{BD6FA21B-1BD8-4D3F-9864-1623FA607B74}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 339.707, - 11.841, - 1120.849 - ], - "size": [ - 36.719, - 21.57, - 24.784 - ], - "groundY": 1.056, - "roofY": 22.626, - "wallCount": 103, - "roofCount": 46 - }, - { - "id": "sion_2211", - "uuid": "{FCDBAEB2-9467-4207-B384-3F8623F85584}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 3, - 5 - ], - "center": [ - 26.672, - 62.375, - 1391.147 - ], - "size": [ - 36.867, - 14.45, - 18.632 - ], - "groundY": 55.15, - "roofY": 69.6, - "wallCount": 28, - "roofCount": 35 - }, - { - "id": "sion_2212", - "uuid": "{4977C76D-916D-40CE-B3B6-1619EEB4483E}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -195.23, - 8.695, - 1353.507 - ], - "size": [ - 50.992, - 9.6, - 33.815 - ], - "groundY": 3.895, - "roofY": 13.495, - "wallCount": 14, - "roofCount": 26 - }, - { - "id": "sion_2213", - "uuid": "{26E1AB06-86B0-40C3-B30D-32F13C3ADFBA}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1345.205, - 243.015, - -849.786 - ], - "size": [ - 7.387, - 0.942, - 12.864 - ], - "groundY": 242.544, - "roofY": 243.486, - "wallCount": 0, - "roofCount": 18 - }, - { - "id": "sion_2214", - "uuid": "{BCDFB512-E9C1-4D72-8136-11BD8497DCF7}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 2 - ], - "center": [ - -1207.662, - 74.667, - -74.03 - ], - "size": [ - 18.918, - 2.554, - 20.432 - ], - "groundY": 73.39, - "roofY": 75.943, - "wallCount": 0, - "roofCount": 17 - }, - { - "id": "sion_2215", - "uuid": "{E2BA0166-6C60-4BAA-8980-AC02935392D5}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 1 - ], - "center": [ - -610.453, - 131.041, - -861.236 - ], - "size": [ - 8.0, - 0.82, - 8.034 - ], - "groundY": 130.632, - "roofY": 131.451, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2216", - "uuid": "{CA4EC701-9ECE-4B2F-AEBB-CB62CC61CCD4}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -411.805, - 32.73, - -100.264 - ], - "size": [ - 7.68, - 0.0, - 7.648 - ], - "groundY": 32.73, - "roofY": 32.73, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2217", - "uuid": "{23DEBCDD-950F-4FA4-8285-2DDDB0E36576}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 1 - ], - "center": [ - -1018.678, - 188.098, - -703.944 - ], - "size": [ - 5.387, - 0.43, - 5.542 - ], - "groundY": 187.883, - "roofY": 188.313, - "wallCount": 0, - "roofCount": 6 - }, - { - "id": "sion_2218", - "uuid": "{EF32638B-CE16-403B-80A8-21553AEB7CD7}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 2, - 2 - ], - "center": [ - -477.109, - 47.951, - -275.196 - ], - "size": [ - 32.797, - 2.986, - 21.306 - ], - "groundY": 46.458, - "roofY": 49.444, - "wallCount": 0, - "roofCount": 19 - }, - { - "id": "sion_2219", - "uuid": "{69709FAC-5269-4D42-A71A-2984DB4034B3}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -416.758, - 30.048, - -40.723 - ], - "size": [ - 7.328, - 0.0, - 7.262 - ], - "groundY": 30.048, - "roofY": 30.048, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2220", - "uuid": "{FAB52561-5672-4CB1-8190-926B9F721922}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -898.986, - 19.171, - 15.154 - ], - "size": [ - 18.754, - 1.99, - 18.784 - ], - "groundY": 18.176, - "roofY": 20.166, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2221", - "uuid": "{5DAB1A36-242A-4881-B63A-D138FE2A1FC9}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 1 - ], - "center": [ - -698.84, - 141.753, - -814.122 - ], - "size": [ - 4.031, - 0.0, - 4.007 - ], - "groundY": 141.753, - "roofY": 141.753, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2222", - "uuid": "{299A316A-1A0E-40D0-B238-365A07AD1A8B}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 3 - ], - "center": [ - -1331.023, - 63.045, - 97.664 - ], - "size": [ - 25.922, - 4.699, - 23.926 - ], - "groundY": 60.696, - "roofY": 65.395, - "wallCount": 0, - "roofCount": 59 - }, - { - "id": "sion_2223", - "uuid": "{0376A254-1F4B-4BAD-B610-1011D4F11BF5}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -404.947, - 47.476, - -457.473 - ], - "size": [ - 19.738, - 0.927, - 23.916 - ], - "groundY": 47.013, - "roofY": 47.939, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2224", - "uuid": "{DDB995CE-F373-4040-9657-3E8B442C4205}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 3 - ], - "center": [ - -924.988, - 17.734, - 71.428 - ], - "size": [ - 18.289, - 0.0, - 17.004 - ], - "groundY": 17.734, - "roofY": 17.734, - "wallCount": 0, - "roofCount": 4 - }, - { - "id": "sion_2225", - "uuid": "{5308E0A7-1634-4FD5-85A1-979F6DE29D13}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1131.781, - 293.736, - -1401.39 - ], - "size": [ - 9.211, - 0.638, - 4.649 - ], - "groundY": 293.417, - "roofY": 294.055, - "wallCount": 0, - "roofCount": 12 - }, - { - "id": "sion_2226", - "uuid": "{BE0D386B-795D-466E-805C-76E44AB2AD56}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1412.158, - 285.485, - -1320.379 - ], - "size": [ - 18.168, - 1.138, - 15.641 - ], - "groundY": 284.916, - "roofY": 286.054, - "wallCount": 0, - "roofCount": 31 - }, - { - "id": "sion_2227", - "uuid": "{53C03CB5-98F0-49F1-885A-6391AB0EE3D0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 0 - ], - "center": [ - -1006.1, - 294.62, - -1341.76 - ], - "size": [ - 31.48, - 0.6, - 17.046 - ], - "groundY": 294.32, - "roofY": 294.92, - "wallCount": 0, - "roofCount": 58 - }, - { - "id": "sion_2228", - "uuid": "{04D46CC3-2E77-43AF-8FB2-093085728AE7}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1378.855, - 203.366, - -527.334 - ], - "size": [ - 17.43, - 1.262, - 10.647 - ], - "groundY": 202.735, - "roofY": 203.996, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2229", - "uuid": "{A9949487-EC1A-423A-A5E3-ED58092E14D8}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1453.197, - 275.214, - -1433.765 - ], - "size": [ - 12.457, - 0.664, - 8.578 - ], - "groundY": 274.882, - "roofY": 275.546, - "wallCount": 0, - "roofCount": 6 - }, - { - "id": "sion_2230", - "uuid": "{BB4F2610-E8DB-4690-8F42-C0B26A22F5B0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 0 - ], - "center": [ - -842.541, - 296.644, - -1485.662 - ], - "size": [ - 7.816, - 0.0, - 9.382 - ], - "groundY": 296.644, - "roofY": 296.644, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2231", - "uuid": "{52F554D7-AAB6-49B1-BADE-9051FB9B6682}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1450.352, - 276.002, - -1441.182 - ], - "size": [ - 8.82, - 0.91, - 8.892 - ], - "groundY": 275.547, - "roofY": 276.457, - "wallCount": 0, - "roofCount": 12 - }, - { - "id": "sion_2232", - "uuid": "{04B518A1-9FC6-4136-82A1-8FDB505CED9D}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 0 - ], - "center": [ - -972.617, - 294.5, - -1353.911 - ], - "size": [ - 31.977, - 0.3, - 14.731 - ], - "groundY": 294.35, - "roofY": 294.65, - "wallCount": 0, - "roofCount": 55 - }, - { - "id": "sion_2233", - "uuid": "{C499238C-B980-4837-9A5B-CF37AA837BDC}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -406.928, - 32.421, - -85.506 - ], - "size": [ - 8.106, - 0.0, - 8.0 - ], - "groundY": 32.421, - "roofY": 32.421, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2234", - "uuid": "{A5706B62-D38D-495F-A00D-F40A84157379}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 0, - 1 - ], - "center": [ - -1243.904, - 203.962, - -601.225 - ], - "size": [ - 23.551, - 1.266, - 18.216 - ], - "groundY": 203.329, - "roofY": 204.595, - "wallCount": 0, - "roofCount": 19 - }, - { - "id": "sion_2235", - "uuid": "{354E9794-7921-4358-AB80-629805FFCFD0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1441.295, - 3.029, - 732.995 - ], - "size": [ - 27.801, - 1.66, - 60.018 - ], - "groundY": 2.199, - "roofY": 3.859, - "wallCount": 0, - "roofCount": 22 - }, - { - "id": "sion_2236", - "uuid": "{D5381173-7B55-49E7-8225-8A06B5A31586}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 0 - ], - "center": [ - -852.223, - 296.078, - -1522.629 - ], - "size": [ - 12.977, - 1.326, - 13.057 - ], - "groundY": 295.416, - "roofY": 296.741, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2237", - "uuid": "{9AEC6645-4A19-440F-934B-58B7574B5ECF}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 4 - ], - "center": [ - -1292.334, - 1.921, - 695.959 - ], - "size": [ - 5.863, - 0.884, - 11.332 - ], - "groundY": 1.479, - "roofY": 2.363, - "wallCount": 0, - "roofCount": 18 - }, - { - "id": "sion_2238", - "uuid": "{97B78878-DFE2-4EA9-A3D4-0EF1966C507E}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 2 - ], - "center": [ - -1065.412, - 99.805, - -364.017 - ], - "size": [ - 9.152, - 0.392, - 9.491 - ], - "groundY": 99.609, - "roofY": 100.002, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2239", - "uuid": "{D72E07B1-E79F-46A8-A7C3-840EE8ECEBEA}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 1 - ], - "center": [ - -1052.49, - 164.411, - -600.865 - ], - "size": [ - 3.723, - 0.569, - 3.638 - ], - "groundY": 164.127, - "roofY": 164.696, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2240", - "uuid": "{34B88EBE-121E-4127-84C1-B84943135C20}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -421.617, - 35.331, - -142.456 - ], - "size": [ - 7.648, - 0.0, - 7.626 - ], - "groundY": 35.331, - "roofY": 35.331, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2241", - "uuid": "{7022424E-11E8-43D0-A232-C09F207A5B01}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 0 - ], - "center": [ - -1126.088, - 289.696, - -1225.736 - ], - "size": [ - 9.309, - 1.068, - 9.324 - ], - "groundY": 289.162, - "roofY": 290.23, - "wallCount": 0, - "roofCount": 19 - }, - { - "id": "sion_2242", - "uuid": "{7EAE4C89-03A7-4617-ABA5-1F5F9294A3A1}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -734.074, - 4.946, - 1450.496 - ], - "size": [ - 15.227, - 0.0, - 22.506 - ], - "groundY": 4.946, - "roofY": 4.946, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2243", - "uuid": "{EE46ED15-6066-4075-BD0A-8095578C692F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1195.328, - 10.848, - 1263.554 - ], - "size": [ - 75.266, - 2.42, - 38.818 - ], - "groundY": 9.639, - "roofY": 12.058, - "wallCount": 0, - "roofCount": 10 - }, - { - "id": "sion_2244", - "uuid": "{BF5A1DA0-FA10-48A7-B4EA-32150ABA5493}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -767.07, - 5.162, - 1272.153 - ], - "size": [ - 24.094, - 0.332, - 16.392 - ], - "groundY": 4.996, - "roofY": 5.328, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2245", - "uuid": "{A79F30DA-5AE3-4B15-A463-CF0B3343F2B8}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1207.682, - 3.743, - 1417.259 - ], - "size": [ - 20.918, - 0.472, - 27.346 - ], - "groundY": 3.507, - "roofY": 3.979, - "wallCount": 0, - "roofCount": 17 - }, - { - "id": "sion_2246", - "uuid": "{B2DA95A6-A020-4EBD-A01D-A7E54BAE9C51}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1465.391, - 2.657, - 1485.938 - ], - "size": [ - 16.898, - 0.53, - 15.007 - ], - "groundY": 2.392, - "roofY": 2.922, - "wallCount": 0, - "roofCount": 22 - }, - { - "id": "sion_2247", - "uuid": "{78C77E6C-D4CD-4C16-B86A-84300523F70F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 1, - 5 - ], - "center": [ - -604.461, - 5.469, - 1207.095 - ], - "size": [ - 9.992, - 0.554, - 13.33 - ], - "groundY": 5.192, - "roofY": 5.746, - "wallCount": 0, - "roofCount": 15 - }, - { - "id": "sion_2248", - "uuid": "{9490E9D2-789F-45A0-BA74-F692003A084A}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1510.664, - 2.8, - 1406.877 - ], - "size": [ - 20.273, - 0.886, - 13.719 - ], - "groundY": 2.357, - "roofY": 3.243, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2249", - "uuid": "{B77D84BF-3D4C-434F-A88E-6A94FBEC60AE}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 0, - 5 - ], - "center": [ - -1049.828, - 4.424, - 1448.212 - ], - "size": [ - 31.008, - 0.0, - 19.68 - ], - "groundY": 4.424, - "roofY": 4.424, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2250", - "uuid": "{669D5552-0DBC-452B-8B1A-DA862D38C061}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 953.658, - 13.617, - -200.14 - ], - "size": [ - 60.027, - 8.053, - 70.694 - ], - "groundY": 9.591, - "roofY": 17.643, - "wallCount": 0, - "roofCount": 288 - }, - { - "id": "sion_2251", - "uuid": "{5E748601-4889-4093-8575-DB40015CFA37}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 2 - ], - "center": [ - 66.336, - 25.987, - -39.158 - ], - "size": [ - 18.734, - 0.0, - 17.264 - ], - "groundY": 25.987, - "roofY": 25.987, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2252", - "uuid": "{DC9BD2C8-7D34-4764-8BFA-008F4378B687}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1285.027, - 13.124, - -25.267 - ], - "size": [ - 29.531, - 1.21, - 16.946 - ], - "groundY": 12.519, - "roofY": 13.729, - "wallCount": 0, - "roofCount": 12 - }, - { - "id": "sion_2253", - "uuid": "{769BE557-2A2A-44EF-A611-61AD82F346E0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1122.527, - 11.779, - 747.935 - ], - "size": [ - 5.984, - 0.798, - 10.364 - ], - "groundY": 11.38, - "roofY": 12.178, - "wallCount": 0, - "roofCount": 22 - }, - { - "id": "sion_2254", - "uuid": "{42108FA0-55B1-4DA7-9CA3-131AAC855960}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -21.592, - 13.616, - 424.352 - ], - "size": [ - 91.316, - 1.396, - 26.894 - ], - "groundY": 12.918, - "roofY": 14.314, - "wallCount": 0, - "roofCount": 32 - }, - { - "id": "sion_2255", - "uuid": "{C9DC1FC2-EC14-40CA-BF17-CED59AAC20B5}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 615.201, - 9.004, - 49.036 - ], - "size": [ - 12.066, - 0.114, - 6.042 - ], - "groundY": 8.947, - "roofY": 9.061, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2256", - "uuid": "{0B779C12-3A47-4B6D-8388-E7158ADA5715}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 524.393, - 10.68, - 789.229 - ], - "size": [ - 18.098, - 0.52, - 16.3 - ], - "groundY": 10.42, - "roofY": 10.94, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2257", - "uuid": "{76330F68-FD7C-40B9-9E7C-EBF1C5F35EAC}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 378.301, - 9.435, - 1009.953 - ], - "size": [ - 30.438, - 0.784, - 20.214 - ], - "groundY": 9.043, - "roofY": 9.827, - "wallCount": 0, - "roofCount": 26 - }, - { - "id": "sion_2258", - "uuid": "{3E1C3747-5071-471F-847E-83A78FA0F2A6}", - "name": "", - "class": "Gebaeude Einzelhaus", - "archStyle": "residential", - "tile": [ - 4, - 3 - ], - "center": [ - 1020.342, - 18.494, - 393.424 - ], - "size": [ - 17.168, - 3.626, - 23.014 - ], - "groundY": 16.681, - "roofY": 20.307, - "wallCount": 0, - "roofCount": 29 - }, - { - "id": "sion_2259", - "uuid": "{CA22BFBB-7431-40DA-ABC6-612EB0C90FE1}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 2, - 1 - ], - "center": [ - -97.66, - 54.905, - -587.993 - ], - "size": [ - 9.797, - 0.0, - 9.229 - ], - "groundY": 54.905, - "roofY": 54.905, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2260", - "uuid": "{AA235EC0-BAC4-4510-8D60-33F5A5C6717E}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -193.055, - 6.036, - 931.932 - ], - "size": [ - 50.25, - 0.672, - 19.868 - ], - "groundY": 5.7, - "roofY": 6.372, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2261", - "uuid": "{7E2F265B-C1B3-47D6-823C-D3E80C69C639}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 54.371, - 9.772, - 613.361 - ], - "size": [ - 8.414, - 0.562, - 20.756 - ], - "groundY": 9.491, - "roofY": 10.053, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2262", - "uuid": "{33F44224-A457-4DC4-BAF6-D7E39C99086B}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1454.082, - 18.255, - 897.623 - ], - "size": [ - 16.594, - 1.182, - 10.378 - ], - "groundY": 17.664, - "roofY": 18.846, - "wallCount": 0, - "roofCount": 15 - }, - { - "id": "sion_2263", - "uuid": "{50302CFE-03F4-4819-8C65-BB7F6B70A7BC}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 872.025, - 9.696, - 376.682 - ], - "size": [ - 17.605, - 0.0, - 8.237 - ], - "groundY": 9.696, - "roofY": 9.696, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2264", - "uuid": "{201FEDF1-2774-4DBD-BB90-9E19F2E6E142}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1034.967, - 11.919, - 576.93 - ], - "size": [ - 6.988, - 0.0, - 12.458 - ], - "groundY": 11.919, - "roofY": 11.919, - "wallCount": 0, - "roofCount": 6 - }, - { - "id": "sion_2265", - "uuid": "{9E701664-D19A-41F6-B671-AA887CBF7ADA}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 211.857, - 8.592, - 919.925 - ], - "size": [ - 22.293, - 0.782, - 18.904 - ], - "groundY": 8.201, - "roofY": 8.983, - "wallCount": 0, - "roofCount": 12 - }, - { - "id": "sion_2266", - "uuid": "{B0A9AC56-DACE-4FEC-9299-13CDC3892D48}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 599.643, - 8.522, - 152.675 - ], - "size": [ - 6.988, - 0.0, - 14.848 - ], - "groundY": 8.522, - "roofY": 8.522, - "wallCount": 0, - "roofCount": 5 - }, - { - "id": "sion_2267", - "uuid": "{AA591171-EEDB-4841-8C95-70F7E9DCB757}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -337.408, - 33.794, - -108.724 - ], - "size": [ - 7.777, - 0.0, - 7.812 - ], - "groundY": 33.794, - "roofY": 33.794, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2268", - "uuid": "{C57C5F5A-6708-449B-9100-0D9BE5F16E7E}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1245.689, - 12.015, - 488.864 - ], - "size": [ - 25.527, - 0.886, - 11.148 - ], - "groundY": 11.572, - "roofY": 12.458, - "wallCount": 0, - "roofCount": 10 - }, - { - "id": "sion_2269", - "uuid": "{C40F6898-B93C-4A66-9847-9AB7FC2A0E70}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 678.043, - 13.231, - 547.59 - ], - "size": [ - 54.492, - 2.384, - 86.918 - ], - "groundY": 12.04, - "roofY": 14.423, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2270", - "uuid": "{281C1431-0591-4B90-878C-32492A64FE7F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1042.926, - 17.268, - -204.862 - ], - "size": [ - 105.336, - 1.264, - 78.01 - ], - "groundY": 16.636, - "roofY": 17.9, - "wallCount": 0, - "roofCount": 503 - }, - { - "id": "sion_2271", - "uuid": "{FC094713-6238-463D-9D5C-41BE46470307}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1077.66, - 12.899, - 857.962 - ], - "size": [ - 13.766, - 1.102, - 12.988 - ], - "groundY": 12.348, - "roofY": 13.45, - "wallCount": 0, - "roofCount": 21 - }, - { - "id": "sion_2272", - "uuid": "{CE28A67C-3256-4B5D-91C6-BBA939AE17C5}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 0 - ], - "center": [ - 486.535, - 218.568, - -1494.539 - ], - "size": [ - 5.188, - 1.354, - 9.512 - ], - "groundY": 217.892, - "roofY": 219.245, - "wallCount": 0, - "roofCount": 10 - }, - { - "id": "sion_2273", - "uuid": "{E2C4CC0A-2735-4F06-98B7-D1548B8FE270}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 657.971, - 8.078, - 216.326 - ], - "size": [ - 11.418, - 0.4, - 15.546 - ], - "groundY": 7.878, - "roofY": 8.279, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2274", - "uuid": "{6FFC2302-E123-431F-9C69-4A7AAD39755F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 1 - ], - "center": [ - -32.924, - 66.327, - -786.162 - ], - "size": [ - 7.48, - 0.538, - 7.622 - ], - "groundY": 66.058, - "roofY": 66.596, - "wallCount": 0, - "roofCount": 8 - }, - { - "id": "sion_2275", - "uuid": "{2B546147-91B0-49C0-948E-59BCCA660CEE}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1246.91, - 13.807, - 541.838 - ], - "size": [ - 13.688, - 4.11, - 84.053 - ], - "groundY": 11.752, - "roofY": 15.863, - "wallCount": 0, - "roofCount": 26 - }, - { - "id": "sion_2276", - "uuid": "{66312B78-D3CF-44BD-97A1-AD1639EFDA40}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 598.547, - 9.29, - 55.403 - ], - "size": [ - 7.484, - 0.344, - 18.368 - ], - "groundY": 9.118, - "roofY": 9.462, - "wallCount": 0, - "roofCount": 20 - }, - { - "id": "sion_2277", - "uuid": "{A49EA6D9-3D9C-405E-A40B-8B9873AEFD69}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -119.152, - 3.865, - 337.454 - ], - "size": [ - 43.023, - 0.0, - 21.232 - ], - "groundY": 3.864, - "roofY": 3.865, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2278", - "uuid": "{6CB7409C-7F41-42C6-87F4-6323A923278C}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 42.896, - 7.029, - 772.194 - ], - "size": [ - 11.465, - 0.0, - 15.906 - ], - "groundY": 7.029, - "roofY": 7.029, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2279", - "uuid": "{E0CC01EB-E9C2-4B29-9D99-836A63FEA5CB}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 1 - ], - "center": [ - -117.066, - 72.698, - -845.356 - ], - "size": [ - 31.141, - 2.418, - 9.552 - ], - "groundY": 71.489, - "roofY": 73.907, - "wallCount": 0, - "roofCount": 28 - }, - { - "id": "sion_2280", - "uuid": "{B6C160AC-1725-4781-879E-41AE0868017A}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 374.922, - 8.865, - 974.866 - ], - "size": [ - 14.172, - 1.044, - 20.55 - ], - "groundY": 8.343, - "roofY": 9.387, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2281", - "uuid": "{0DCE46A1-58FD-4983-A0D9-40DDFB241862}", - "name": "", - "class": "Im Bau", - "archStyle": "industrial", - "tile": [ - 3, - 1 - ], - "center": [ - 184.496, - 70.64, - -1013.21 - ], - "size": [ - 26.562, - 0.256, - 20.926 - ], - "groundY": 70.512, - "roofY": 70.768, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2282", - "uuid": "{3A737AB8-73E9-4224-8518-A8C9F35A8080}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 223.568, - 8.256, - 688.767 - ], - "size": [ - 19.402, - 0.896, - 16.37 - ], - "groundY": 7.808, - "roofY": 8.704, - "wallCount": 0, - "roofCount": 15 - }, - { - "id": "sion_2283", - "uuid": "{56E9E15E-D044-47BD-BD65-7642B83FAAC1}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 418.666, - 9.011, - 962.814 - ], - "size": [ - 14.816, - 0.782, - 16.584 - ], - "groundY": 8.62, - "roofY": 9.402, - "wallCount": 0, - "roofCount": 10 - }, - { - "id": "sion_2284", - "uuid": "{4DDFB37D-317C-4CD3-83E4-7538559CBB40}", - "name": "Stade de Tourbillon", - "class": "Offenes Gebaeude", - "archStyle": "fortress", - "tile": [ - 4, - 2 - ], - "center": [ - 983.69, - 20.215, - -114.714 - ], - "size": [ - 100.332, - 0.944, - 74.32 - ], - "groundY": 19.743, - "roofY": 20.688, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2285", - "uuid": "{85548A1D-62A6-4DCC-A2C1-3B36B2EF60E8}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 2 - ], - "center": [ - -230.314, - 39.217, - -266.239 - ], - "size": [ - 14.34, - 0.0, - 9.242 - ], - "groundY": 39.217, - "roofY": 39.217, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2286", - "uuid": "{17003154-BEB0-4880-A342-644701A8AA24}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1433.619, - 19.174, - 911.498 - ], - "size": [ - 9.527, - 1.576, - 11.428 - ], - "groundY": 18.386, - "roofY": 19.961, - "wallCount": 0, - "roofCount": 8 - }, - { - "id": "sion_2287", - "uuid": "{352A84C5-AEF5-4707-88B3-8E4D7BADADC4}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 4 - ], - "center": [ - 57.772, - 9.996, - 593.839 - ], - "size": [ - 10.418, - 0.334, - 30.807 - ], - "groundY": 9.829, - "roofY": 10.163, - "wallCount": 0, - "roofCount": 30 - }, - { - "id": "sion_2288", - "uuid": "{C1A824A8-639C-4309-A6A0-27D56373A167}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -372.117, - 5.426, - 923.302 - ], - "size": [ - 27.773, - 0.532, - 46.968 - ], - "groundY": 5.16, - "roofY": 5.692, - "wallCount": 0, - "roofCount": 54 - }, - { - "id": "sion_2289", - "uuid": "{7B2AE0B0-2E46-4C4D-905F-08D13AEE8561}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 2 - ], - "center": [ - 860.047, - 8.451, - -299.514 - ], - "size": [ - 9.148, - 0.41, - 8.56 - ], - "groundY": 8.246, - "roofY": 8.656, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2290", - "uuid": "{D5BC60C8-C090-483B-840C-98A07FBA89A8}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 1 - ], - "center": [ - -46.668, - 62.307, - -689.205 - ], - "size": [ - 17.953, - 0.934, - 14.454 - ], - "groundY": 61.84, - "roofY": 62.775, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2291", - "uuid": "{C6FF453A-94CF-4EBD-9CC6-31BE1CB5D630}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 0 - ], - "center": [ - -187.699, - 214.873, - -1524.463 - ], - "size": [ - 6.977, - 0.44, - 14.51 - ], - "groundY": 214.653, - "roofY": 215.093, - "wallCount": 0, - "roofCount": 17 - }, - { - "id": "sion_2292", - "uuid": "{DBB9666E-894E-4C80-A449-223A94E79295}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 3 - ], - "center": [ - 1183.256, - 15.106, - 7.288 - ], - "size": [ - 26.207, - 1.186, - 26.471 - ], - "groundY": 14.513, - "roofY": 15.699, - "wallCount": 0, - "roofCount": 7 - }, - { - "id": "sion_2293", - "uuid": "{5698FF45-1A17-438C-B7F1-CD120CA4C50F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 3 - ], - "center": [ - 991.633, - 9.081, - 395.269 - ], - "size": [ - 31.641, - 0.398, - 11.271 - ], - "groundY": 8.882, - "roofY": 9.28, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2294", - "uuid": "{E57093C2-84AA-4687-B4F6-FFBC40872891}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 1 - ], - "center": [ - 136.469, - 64.052, - -824.927 - ], - "size": [ - 14.5, - 0.134, - 11.044 - ], - "groundY": 63.985, - "roofY": 64.12, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2295", - "uuid": "{CE50B37C-B231-4550-BC6A-7B5961FDD937}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 5, - 4 - ], - "center": [ - 1094.186, - 12.9, - 859.109 - ], - "size": [ - 8.058, - 1.098, - 12.854 - ], - "groundY": 12.351, - "roofY": 13.449, - "wallCount": 0, - "roofCount": 20 - }, - { - "id": "sion_2296", - "uuid": "{727056CA-B604-4692-9AF4-8E66F15BDB28}", - "name": "", - "class": "Flugdach", - "archStyle": "industrial", - "tile": [ - 2, - 4 - ], - "center": [ - -289.818, - 11.851, - 515.269 - ], - "size": [ - 78.715, - 0.0, - 24.998 - ], - "groundY": 11.851, - "roofY": 11.851, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2297", - "uuid": "{365C3191-FE3D-40C2-AE92-88BBD2B44DB0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 3 - ], - "center": [ - 454.215, - 11.175, - 155.916 - ], - "size": [ - 16.25, - 0.446, - 24.701 - ], - "groundY": 10.952, - "roofY": 11.398, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2298", - "uuid": "{6783DCEC-0F34-47A2-93F7-CEAD6FAA40AA}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 2 - ], - "center": [ - 1075.283, - 13.608, - -122.335 - ], - "size": [ - 59.293, - 8.533, - 72.273 - ], - "groundY": 9.342, - "roofY": 17.875, - "wallCount": 0, - "roofCount": 293 - }, - { - "id": "sion_2299", - "uuid": "{893BC4A9-AFB9-4444-8F4E-4176352C751E}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 4, - 4 - ], - "center": [ - 753.527, - 21.216, - 991.246 - ], - "size": [ - 5.664, - 1.346, - 15.164 - ], - "groundY": 20.543, - "roofY": 21.889, - "wallCount": 0, - "roofCount": 26 - }, - { - "id": "sion_2300", - "uuid": "{1720748C-7040-4DBE-9D14-04A7BC56E047}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 3 - ], - "center": [ - -343.326, - 14.051, - 460.612 - ], - "size": [ - 36.168, - 0.0, - 57.06 - ], - "groundY": 14.05, - "roofY": 14.051, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2301", - "uuid": "{331729A2-5F3E-46F3-8E0A-9EEB0B44750C}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 1 - ], - "center": [ - 46.734, - 62.211, - -757.367 - ], - "size": [ - 6.688, - 0.358, - 10.138 - ], - "groundY": 62.032, - "roofY": 62.39, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2302", - "uuid": "{9256F720-7969-4F98-9021-09D856E13868}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 12.623, - 14.887, - 1312.762 - ], - "size": [ - 9.207, - 1.042, - 5.84 - ], - "groundY": 14.366, - "roofY": 15.408, - "wallCount": 0, - "roofCount": 12 - }, - { - "id": "sion_2303", - "uuid": "{F68771C7-4FB7-4738-AE79-D5DF84AFCB7E}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 49.805, - 10.434, - 1126.131 - ], - "size": [ - 19.086, - 1.32, - 13.775 - ], - "groundY": 9.775, - "roofY": 11.094, - "wallCount": 0, - "roofCount": 8 - }, - { - "id": "sion_2304", - "uuid": "{E4CCFFAE-0E3D-4D86-BE6D-320E4151F157}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 5, - 5 - ], - "center": [ - 1489.172, - 122.375, - 1147.885 - ], - "size": [ - 7.062, - 1.77, - 7.304 - ], - "groundY": 121.49, - "roofY": 123.26, - "wallCount": 0, - "roofCount": 11 - }, - { - "id": "sion_2305", - "uuid": "{B1B2C14E-4D14-4E05-88BE-01B437CC708A}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -257.145, - 6.536, - 1151.29 - ], - "size": [ - 18.914, - 0.252, - 27.555 - ], - "groundY": 6.41, - "roofY": 6.662, - "wallCount": 0, - "roofCount": 4 - }, - { - "id": "sion_2306", - "uuid": "{3F2164B1-B756-4088-B74D-E19EB815166C}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 230.879, - 66.381, - 1322.349 - ], - "size": [ - 7.969, - 0.672, - 6.624 - ], - "groundY": 66.046, - "roofY": 66.717, - "wallCount": 0, - "roofCount": 16 - }, - { - "id": "sion_2307", - "uuid": "{6AC15C6D-4AF7-4F5F-83A5-D9C07C4D0D57}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -222.691, - 7.16, - 1107.963 - ], - "size": [ - 15.078, - 0.772, - 11.656 - ], - "groundY": 6.774, - "roofY": 7.546, - "wallCount": 0, - "roofCount": 32 - }, - { - "id": "sion_2308", - "uuid": "{01F458AF-D927-4103-A5F4-5CB509AAD98D}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 480.408, - 15.126, - 1209.774 - ], - "size": [ - 11.98, - 0.0, - 10.494 - ], - "groundY": 15.126, - "roofY": 15.127, - "wallCount": 0, - "roofCount": 13 - }, - { - "id": "sion_2309", - "uuid": "{148752B5-DF43-4A01-941E-64F4183E7036}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -316.061, - 8.666, - 1153.321 - ], - "size": [ - 14.168, - 0.76, - 13.09 - ], - "groundY": 8.286, - "roofY": 9.046, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2310", - "uuid": "{0946E73B-7A7A-46D8-BF6E-792B726BFCA2}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 420.936, - 8.014, - 1204.528 - ], - "size": [ - 13.496, - 0.0, - 10.108 - ], - "groundY": 8.014, - "roofY": 8.014, - "wallCount": 0, - "roofCount": 2 - }, - { - "id": "sion_2311", - "uuid": "{B1BA3747-6D8C-4A61-A5C4-B560531AD406}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -351.623, - 6.72, - 1231.644 - ], - "size": [ - 16.066, - 1.352, - 26.202 - ], - "groundY": 6.044, - "roofY": 7.396, - "wallCount": 0, - "roofCount": 54 - }, - { - "id": "sion_2312", - "uuid": "{007BD679-C858-4EE9-8031-E6E0A8D27EAD}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 393.496, - 8.64, - 1101.021 - ], - "size": [ - 41.172, - 3.418, - 27.767 - ], - "groundY": 6.931, - "roofY": 10.348, - "wallCount": 0, - "roofCount": 4 - }, - { - "id": "sion_2313", - "uuid": "{CFE569C3-41FC-4698-9959-CB0F5BEBF4CC}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 3, - 5 - ], - "center": [ - 258.732, - 8.607, - 1147.918 - ], - "size": [ - 14.496, - 1.708, - 10.736 - ], - "groundY": 7.753, - "roofY": 9.461, - "wallCount": 0, - "roofCount": 29 - }, - { - "id": "sion_2314", - "uuid": "{0C0A0DE7-ED73-4EF8-9862-1857533569C0}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -301.1, - 6.058, - 1184.477 - ], - "size": [ - 53.488, - 2.654, - 38.116 - ], - "groundY": 4.731, - "roofY": 7.385, - "wallCount": 0, - "roofCount": 43 - }, - { - "id": "sion_2315", - "uuid": "{19982D1F-3CB4-4C72-9417-603B9A0EF66C}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -320.732, - 6.296, - 1180.996 - ], - "size": [ - 12.535, - 1.328, - 10.506 - ], - "groundY": 5.632, - "roofY": 6.96, - "wallCount": 0, - "roofCount": 19 - }, - { - "id": "sion_2316", - "uuid": "{0B920794-58EE-4ECC-942E-AC57007FA9F2}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -343.147, - 7.143, - 1224.559 - ], - "size": [ - 14.973, - 1.68, - 21.994 - ], - "groundY": 6.303, - "roofY": 7.983, - "wallCount": 0, - "roofCount": 17 - }, - { - "id": "sion_2317", - "uuid": "{5F4F483D-ADE3-4E41-91E4-97D8C5C07D93}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -354.162, - 6.123, - 1264.596 - ], - "size": [ - 10.27, - 0.63, - 8.466 - ], - "groundY": 5.808, - "roofY": 6.438, - "wallCount": 0, - "roofCount": 14 - }, - { - "id": "sion_2318", - "uuid": "{FC0CC0FC-15E4-4320-8C0A-2A315B58709F}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -322.492, - 5.538, - 1169.796 - ], - "size": [ - 24.633, - 1.328, - 22.078 - ], - "groundY": 4.874, - "roofY": 6.202, - "wallCount": 0, - "roofCount": 19 - }, - { - "id": "sion_2319", - "uuid": "{A645D567-B4AF-4469-AF02-85DEEBAB4DA2}", - "name": "", - "class": "Offenes Gebaeude", - "archStyle": "industrial", - "tile": [ - 2, - 5 - ], - "center": [ - -288.17, - 6.534, - 1199.79 - ], - "size": [ - 15.551, - 0.57, - 25.193 - ], - "groundY": 6.249, - "roofY": 6.819, - "wallCount": 0, - "roofCount": 15 - } - ] -} \ No newline at end of file diff --git a/assets/maps/sion/heightmap.f32 b/assets/maps/sion/heightmap.f32 deleted file mode 100644 index 7b83982..0000000 Binary files a/assets/maps/sion/heightmap.f32 and /dev/null differ diff --git a/assets/maps/sion/metadata.json b/assets/maps/sion/metadata.json deleted file mode 100644 index f2f22af..0000000 --- a/assets/maps/sion/metadata.json +++ /dev/null @@ -1,1146 +0,0 @@ -{ - "name": "Sion, Valais, Switzerland", - "attribution": "Federal Office of Topography swisstopo", - "sources": [ - "ch.swisstopo.swissalti3d (2m DTM, Open Government Data)", - "ch.swisstopo.swissbuildings3d_3_0 (LOD2 3D Buildings, Open Government Data)" - ], - "stacItems": [ - "swissalti3d_2024_2592-1118", - "swissalti3d_2024_2592-1119", - "swissalti3d_2024_2592-1120", - "swissalti3d_2024_2592-1121", - "swissalti3d_2024_2593-1118", - "swissalti3d_2024_2593-1119", - "swissalti3d_2024_2593-1120", - "swissalti3d_2024_2593-1121", - "swissalti3d_2024_2594-1118", - "swissalti3d_2024_2594-1119", - "swissalti3d_2024_2594-1120", - "swissalti3d_2024_2594-1121", - "swissalti3d_2024_2595-1118", - "swissalti3d_2024_2595-1119", - "swissalti3d_2024_2595-1120", - "swissalti3d_2024_2595-1121", - "swissbuildings3d_3_0_2020_1306-12", - "swissbuildings3d_3_0_2020_1306-14", - "swissbuildings3d_3_0_2020_1306-21", - "swissbuildings3d_3_0_2020_1306-23" - ], - "crs": "EPSG:2056", - "originE": 2592614.0, - "originN": 1118514.0, - "centerE": 2594150.0, - "centerN": 1120050.0, - "baseElevationM": 483.41, - "minY": -5.863, - "maxY": 304.92, - "reliefM": 310.783, - "sizeMeters": 3072.0, - "tileGrid": 6, - "tileSizeMeters": 512.0, - "gridRes": 1025, - "cellSizeMeters": 3.0, - "heightmapFormat": "float32_le_row_major", - "surfaceTexture": "terrain_surface.png", - "surfaceTextureSize": 2048, - "surfaceTextureFormat": "png_rgb_north_to_south_west_to_east", - "collisionFormat": { - "magic": "RCOL", - "version": 1, - "headerBytes": 48, - "headerLayout": "magic[4], uint32 version, int32 tx, int32 tz, uint32 vertexCount, uint32 indexCount, float32[3] boundsMin, float32[3] boundsMax", - "vertexLayout": "float32[vertexCount * 3] (X, Y, Z in arena glTF space)", - "indexLayout": "int32[indexCount] (CCW outward triangles)" - }, - "rowOrder": "north_to_south_z_neg_to_pos", - "colOrder": "west_to_east_x_neg_to_pos", - "coordinateTransform": { - "X": "E - centerE (East = +X)", - "Y": "Z_asl - baseElevationM (Up = +Y)", - "Z": "-(N - centerN) (North = -Z)" - }, - "tileCount": 36, - "tiles": [ - { - "tx": 0, - "tz": 0, - "lod2": "tiles/lod2_0_0.glb", - "lod1": "tiles/lod1_0_0.glb", - "collision": "tiles/col_0_0.bin", - "buildingCount": 166, - "lod2Tris": 11394, - "lod2Bytes": 588932, - "colVerts": 14880, - "colTris": 11268, - "colBytes": 313824, - "center": [ - -1280.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - -1546.056, - 260.242, - -1542.931 - ], - "boundsMax": [ - -1010.277, - 305.043, - -1010.118 - ], - "lod1Tris": 13480, - "lod1Bytes": 688656 - }, - { - "tx": 0, - "tz": 1, - "lod2": "tiles/lod2_0_1.glb", - "lod1": "tiles/lod1_0_1.glb", - "collision": "tiles/col_0_1.bin", - "buildingCount": 144, - "lod2Tris": 8665, - "lod2Bytes": 440804, - "colVerts": 11107, - "colTris": 8559, - "colBytes": 236040, - "center": [ - -1280.0, - 0.0, - -768.0 - ], - "boundsMin": [ - -1547.395, - 164.126, - -1030.299 - ], - "boundsMax": [ - -1031.902, - 282.001, - -506.363 - ], - "lod1Tris": 9756, - "lod1Bytes": 492256 - }, - { - "tx": 0, - "tz": 2, - "lod2": "tiles/lod2_0_2.glb", - "lod1": "tiles/lod1_0_2.glb", - "collision": "tiles/col_0_2.bin", - "buildingCount": 88, - "lod2Tris": 6119, - "lod2Bytes": 321308, - "colVerts": 7885, - "colTris": 5710, - "colBytes": 163188, - "center": [ - -1280.0, - 0.0, - -256.0 - ], - "boundsMin": [ - -1539.297, - 12.895, - -512.019 - ], - "boundsMax": [ - -1011.797, - 207.918, - 16.535 - ], - "lod1Tris": 7246, - "lod1Bytes": 375504 - }, - { - "tx": 0, - "tz": 3, - "lod2": "tiles/lod2_0_3.glb", - "lod1": "tiles/lod1_0_3.glb", - "collision": "tiles/col_0_3.bin", - "buildingCount": 113, - "lod2Tris": 9586, - "lod2Bytes": 500104, - "colVerts": 12640, - "colTris": 9120, - "colBytes": 261168, - "center": [ - -1280.0, - 0.0, - 256.0 - ], - "boundsMin": [ - -1545.137, - -4.677, - -20.359 - ], - "boundsMax": [ - -1012.152, - 98.628, - 522.141 - ], - "lod1Tris": 11660, - "lod1Bytes": 598628 - }, - { - "tx": 0, - "tz": 4, - "lod2": "tiles/lod2_0_4.glb", - "lod1": "tiles/lod1_0_4.glb", - "collision": "tiles/col_0_4.bin", - "buildingCount": 55, - "lod2Tris": 3285, - "lod2Bytes": 165796, - "colVerts": 4232, - "colTris": 3277, - "colBytes": 90156, - "center": [ - -1280.0, - 0.0, - 768.0 - ], - "boundsMin": [ - -1542.234, - -5.68, - 491.398 - ], - "boundsMax": [ - -1035.621, - 42.218, - 1047.621 - ], - "lod1Tris": 3720, - "lod1Bytes": 184348 - }, - { - "tx": 0, - "tz": 5, - "lod2": "tiles/lod2_0_5.glb", - "lod1": "tiles/lod1_0_5.glb", - "collision": "tiles/col_0_5.bin", - "buildingCount": 34, - "lod2Tris": 1641, - "lod2Bytes": 84044, - "colVerts": 1976, - "colTris": 1641, - "colBytes": 43452, - "center": [ - -1280.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - -1566.132, - -3.427, - 1073.149 - ], - "boundsMax": [ - -1023.434, - 23.29, - 1529.117 - ], - "lod1Tris": 2381, - "lod1Bytes": 122052 - }, - { - "tx": 1, - "tz": 0, - "lod2": "tiles/lod2_1_0.glb", - "lod1": "tiles/lod1_1_0.glb", - "collision": "tiles/col_1_0.bin", - "buildingCount": 50, - "lod2Tris": 2626, - "lod2Bytes": 137832, - "colVerts": 3543, - "colTris": 2626, - "colBytes": 74076, - "center": [ - -768.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - -1032.996, - 280.451, - -1540.333 - ], - "boundsMax": [ - -564.015, - 305.354, - -1187.799 - ], - "lod1Tris": 3376, - "lod1Bytes": 172152 - }, - { - "tx": 1, - "tz": 1, - "lod2": "tiles/lod2_1_1.glb", - "lod1": "tiles/lod1_1_1.glb", - "collision": "tiles/col_1_1.bin", - "buildingCount": 41, - "lod2Tris": 2085, - "lod2Bytes": 112644, - "colVerts": 2718, - "colTris": 1965, - "colBytes": 56244, - "center": [ - -768.0, - 0.0, - -768.0 - ], - "boundsMin": [ - -1021.371, - 49.525, - -898.786 - ], - "boundsMax": [ - -501.414, - 208.412, - -503.779 - ], - "lod1Tris": 2652, - "lod1Bytes": 139388 - }, - { - "tx": 1, - "tz": 2, - "lod2": "tiles/lod2_1_2.glb", - "lod1": "tiles/lod1_1_2.glb", - "collision": "tiles/col_1_2.bin", - "buildingCount": 164, - "lod2Tris": 11715, - "lod2Bytes": 614372, - "colVerts": 15712, - "colTris": 11068, - "colBytes": 321408, - "center": [ - -768.0, - 0.0, - -256.0 - ], - "boundsMin": [ - -1034.941, - 11.698, - -526.488 - ], - "boundsMax": [ - -504.941, - 125.997, - 17.166 - ], - "lod1Tris": 16285, - "lod1Bytes": 846908 - }, - { - "tx": 1, - "tz": 3, - "lod2": "tiles/lod2_1_3.glb", - "lod1": "tiles/lod1_1_3.glb", - "collision": "tiles/col_1_3.bin", - "buildingCount": 138, - "lod2Tris": 10546, - "lod2Bytes": 543092, - "colVerts": 14382, - "colTris": 10509, - "colBytes": 298740, - "center": [ - -768.0, - 0.0, - 256.0 - ], - "boundsMin": [ - -1037.914, - -4.639, - -37.108 - ], - "boundsMax": [ - -443.449, - 40.721, - 537.126 - ], - "lod1Tris": 15651, - "lod1Bytes": 803884 - }, - { - "tx": 1, - "tz": 4, - "lod2": "tiles/lod2_1_4.glb", - "lod1": "tiles/lod1_1_4.glb", - "collision": "tiles/col_1_4.bin", - "buildingCount": 38, - "lod2Tris": 2524, - "lod2Bytes": 128996, - "colVerts": 3296, - "colTris": 2502, - "colBytes": 69624, - "center": [ - -768.0, - 0.0, - 768.0 - ], - "boundsMin": [ - -1099.73, - -2.707, - 479.377 - ], - "boundsMax": [ - -525.465, - 23.422, - 1055.034 - ], - "lod1Tris": 2974, - "lod1Bytes": 147548 - }, - { - "tx": 1, - "tz": 5, - "lod2": "tiles/lod2_1_5.glb", - "lod1": "tiles/lod1_1_5.glb", - "collision": "tiles/col_1_5.bin", - "buildingCount": 42, - "lod2Tris": 1912, - "lod2Bytes": 99916, - "colVerts": 2530, - "colTris": 1912, - "colBytes": 53352, - "center": [ - -768.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - -1024.523, - -2.51, - 1013.78 - ], - "boundsMax": [ - -488.918, - 26.437, - 1530.035 - ], - "lod1Tris": 2617, - "lod1Bytes": 127840 - }, - { - "tx": 2, - "tz": 0, - "lod2": "tiles/lod2_2_0.glb", - "lod1": "tiles/lod1_2_0.glb", - "collision": "tiles/col_2_0.bin", - "buildingCount": 16, - "lod2Tris": 847, - "lod2Bytes": 48024, - "colVerts": 1191, - "colTris": 835, - "colBytes": 24360, - "center": [ - -256.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - -500.015, - 78.33, - -1531.718 - ], - "boundsMax": [ - 7.269, - 279.265, - -1024.065 - ], - "lod1Tris": 1102, - "lod1Bytes": 60608 - }, - { - "tx": 2, - "tz": 1, - "lod2": "tiles/lod2_2_1.glb", - "lod1": "tiles/lod1_2_1.glb", - "collision": "tiles/col_2_1.bin", - "buildingCount": 121, - "lod2Tris": 10933, - "lod2Bytes": 587944, - "colVerts": 15353, - "colTris": 10700, - "colBytes": 312684, - "center": [ - -256.0, - 0.0, - -768.0 - ], - "boundsMin": [ - -526.844, - 41.641, - -1045.61 - ], - "boundsMax": [ - 6.731, - 108.915, - -494.241 - ], - "lod1Tris": 14860, - "lod1Bytes": 791384 - }, - { - "tx": 2, - "tz": 2, - "lod2": "tiles/lod2_2_2.glb", - "lod1": "tiles/lod1_2_2.glb", - "collision": "tiles/col_2_2.bin", - "buildingCount": 130, - "lod2Tris": 18764, - "lod2Bytes": 1056476, - "colVerts": 27755, - "colTris": 18493, - "colBytes": 555024, - "center": [ - -256.0, - 0.0, - -256.0 - ], - "boundsMin": [ - -580.315, - 18.195, - -528.981 - ], - "boundsMax": [ - 17.887, - 96.714, - 47.924 - ], - "lod1Tris": 36633, - "lod1Bytes": 1962212 - }, - { - "tx": 2, - "tz": 3, - "lod2": "tiles/lod2_2_3.glb", - "lod1": "tiles/lod1_2_3.glb", - "collision": "tiles/col_2_3.bin", - "buildingCount": 81, - "lod2Tris": 9035, - "lod2Bytes": 493852, - "colVerts": 13240, - "colTris": 8851, - "colBytes": 265140, - "center": [ - -256.0, - 0.0, - 256.0 - ], - "boundsMin": [ - -539.387, - 0.845, - -12.595 - ], - "boundsMax": [ - 38.391, - 48.016, - 522.511 - ], - "lod1Tris": 24340, - "lod1Bytes": 1303228 - }, - { - "tx": 2, - "tz": 4, - "lod2": "tiles/lod2_2_4.glb", - "lod1": "tiles/lod1_2_4.glb", - "collision": "tiles/col_2_4.bin", - "buildingCount": 44, - "lod2Tris": 3315, - "lod2Bytes": 172488, - "colVerts": 4388, - "colTris": 3293, - "colBytes": 92220, - "center": [ - -256.0, - 0.0, - 768.0 - ], - "boundsMin": [ - -558.116, - -2.247, - 485.877 - ], - "boundsMax": [ - 23.758, - 43.921, - 1009.472 - ], - "lod1Tris": 4691, - "lod1Bytes": 242564 - }, - { - "tx": 2, - "tz": 5, - "lod2": "tiles/lod2_2_5.glb", - "lod1": "tiles/lod1_2_5.glb", - "collision": "tiles/col_2_5.bin", - "buildingCount": 50, - "lod2Tris": 2651, - "lod2Bytes": 143948, - "colVerts": 3700, - "colTris": 2571, - "colBytes": 75300, - "center": [ - -256.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - -499.758, - -0.287, - 1021.871 - ], - "boundsMax": [ - -3.859, - 129.895, - 1541.812 - ], - "lod1Tris": 4289, - "lod1Bytes": 224972 - }, - { - "tx": 3, - "tz": 0, - "lod2": "tiles/lod2_3_0.glb", - "lod1": "tiles/lod1_3_0.glb", - "collision": "tiles/col_3_0.bin", - "buildingCount": 72, - "lod2Tris": 4455, - "lod2Bytes": 230360, - "colVerts": 5687, - "colTris": 4307, - "colBytes": 119976, - "center": [ - 256.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - -9.106, - 79.363, - -1549.693 - ], - "boundsMax": [ - 516.293, - 233.751, - -1013.705 - ], - "lod1Tris": 5251, - "lod1Bytes": 268936 - }, - { - "tx": 3, - "tz": 1, - "lod2": "tiles/lod2_3_1.glb", - "lod1": "tiles/lod1_3_1.glb", - "collision": "tiles/col_3_1.bin", - "buildingCount": 118, - "lod2Tris": 6833, - "lod2Bytes": 349856, - "colVerts": 9021, - "colTris": 6677, - "colBytes": 188424, - "center": [ - 256.0, - 0.0, - -768.0 - ], - "boundsMin": [ - -8.379, - 48.924, - -1027.13 - ], - "boundsMax": [ - 520.473, - 169.722, - -521.475 - ], - "lod1Tris": 9073, - "lod1Bytes": 450952 - }, - { - "tx": 3, - "tz": 2, - "lod2": "tiles/lod2_3_2.glb", - "lod1": "tiles/lod1_3_2.glb", - "collision": "tiles/col_3_2.bin", - "buildingCount": 50, - "lod2Tris": 7192, - "lod2Bytes": 393472, - "colVerts": 7102, - "colTris": 5960, - "colBytes": 156792, - "center": [ - 256.0, - 0.0, - -256.0 - ], - "boundsMin": [ - -25.629, - 2.473, - -532.988 - ], - "boundsMax": [ - 502.961, - 189.352, - 16.267 - ], - "lod1Tris": 21458, - "lod1Bytes": 1157012 - }, - { - "tx": 3, - "tz": 3, - "lod2": "tiles/lod2_3_3.glb", - "lod1": "tiles/lod1_3_3.glb", - "collision": "tiles/col_3_3.bin", - "buildingCount": 82, - "lod2Tris": 6359, - "lod2Bytes": 339760, - "colVerts": 9108, - "colTris": 6253, - "colBytes": 184380, - "center": [ - 256.0, - 0.0, - 256.0 - ], - "boundsMin": [ - -35.797, - 1.157, - -34.311 - ], - "boundsMax": [ - 492.52, - 54.532, - 526.016 - ], - "lod1Tris": 15755, - "lod1Bytes": 822616 - }, - { - "tx": 3, - "tz": 4, - "lod2": "tiles/lod2_3_4.glb", - "lod1": "tiles/lod1_3_4.glb", - "collision": "tiles/col_3_4.bin", - "buildingCount": 65, - "lod2Tris": 3002, - "lod2Bytes": 157176, - "colVerts": 3991, - "colTris": 2894, - "colBytes": 82668, - "center": [ - 256.0, - 0.0, - 768.0 - ], - "boundsMin": [ - -1.326, - 0.35, - 487.22 - ], - "boundsMax": [ - 537.785, - 25.822, - 1027.025 - ], - "lod1Tris": 4296, - "lod1Bytes": 212216 - }, - { - "tx": 3, - "tz": 5, - "lod2": "tiles/lod2_3_5.glb", - "lod1": "tiles/lod1_3_5.glb", - "collision": "tiles/col_3_5.bin", - "buildingCount": 53, - "lod2Tris": 3123, - "lod2Bytes": 163036, - "colVerts": 4126, - "colTris": 3078, - "colBytes": 86496, - "center": [ - 256.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - 8.019, - 0.877, - 987.364 - ], - "boundsMax": [ - 495.488, - 159.415, - 1519.15 - ], - "lod1Tris": 4109, - "lod1Bytes": 205840 - }, - { - "tx": 4, - "tz": 0, - "lod2": "tiles/lod2_4_0.glb", - "lod1": "tiles/lod1_4_0.glb", - "collision": "tiles/col_4_0.bin", - "buildingCount": 18, - "lod2Tris": 1113, - "lod2Bytes": 58452, - "colVerts": 1496, - "colTris": 1113, - "colBytes": 31356, - "center": [ - 768.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - 505.684, - 67.229, - -1537.321 - ], - "boundsMax": [ - 877.363, - 274.295, - -1086.908 - ], - "lod1Tris": 1444, - "lod1Bytes": 74984 - }, - { - "tx": 4, - "tz": 1, - "lod2": "tiles/lod2_4_1.glb", - "lod1": "tiles/lod1_4_1.glb", - "collision": "tiles/col_4_1.bin", - "buildingCount": 14, - "lod2Tris": 1018, - "lod2Bytes": 58300, - "colVerts": 1210, - "colTris": 942, - "colBytes": 25872, - "center": [ - 768.0, - 0.0, - -768.0 - ], - "boundsMin": [ - 495.027, - 3.558, - -978.398 - ], - "boundsMax": [ - 976.672, - 157.446, - -504.037 - ], - "lod1Tris": 1365, - "lod1Bytes": 75608 - }, - { - "tx": 4, - "tz": 2, - "lod2": "tiles/lod2_4_2.glb", - "lod1": "tiles/lod1_4_2.glb", - "collision": "tiles/col_4_2.bin", - "buildingCount": 42, - "lod2Tris": 4425, - "lod2Bytes": 233824, - "colVerts": 5522, - "colTris": 4386, - "colBytes": 118944, - "center": [ - 768.0, - 0.0, - -256.0 - ], - "boundsMin": [ - 499.328, - 2.184, - -502.85 - ], - "boundsMax": [ - 1033.969, - 89.448, - 2.281 - ], - "lod1Tris": 5054, - "lod1Bytes": 263828 - }, - { - "tx": 4, - "tz": 3, - "lod2": "tiles/lod2_4_3.glb", - "lod1": "tiles/lod1_4_3.glb", - "collision": "tiles/col_4_3.bin", - "buildingCount": 65, - "lod2Tris": 4567, - "lod2Bytes": 236272, - "colVerts": 5959, - "colTris": 4556, - "colBytes": 126228, - "center": [ - 768.0, - 0.0, - 256.0 - ], - "boundsMin": [ - 522.107, - 1.139, - -14.4 - ], - "boundsMax": [ - 1041.492, - 36.96, - 522.428 - ], - "lod1Tris": 5382, - "lod1Bytes": 278840 - }, - { - "tx": 4, - "tz": 4, - "lod2": "tiles/lod2_4_4.glb", - "lod1": "tiles/lod1_4_4.glb", - "collision": "tiles/col_4_4.bin", - "buildingCount": 52, - "lod2Tris": 3923, - "lod2Bytes": 210284, - "colVerts": 5094, - "colTris": 3903, - "colBytes": 108012, - "center": [ - 768.0, - 0.0, - 768.0 - ], - "boundsMin": [ - 476.82, - 0.435, - 471.31 - ], - "boundsMax": [ - 1004.543, - 27.116, - 1056.785 - ], - "lod1Tris": 4688, - "lod1Bytes": 241548 - }, - { - "tx": 4, - "tz": 5, - "lod2": "tiles/lod2_4_5.glb", - "lod1": "tiles/lod1_4_5.glb", - "collision": "tiles/col_4_5.bin", - "buildingCount": 16, - "lod2Tris": 1067, - "lod2Bytes": 57904, - "colVerts": 1363, - "colTris": 1015, - "colBytes": 28584, - "center": [ - 768.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - 506.594, - 4.145, - 1049.851 - ], - "boundsMax": [ - 995.574, - 124.069, - 1422.036 - ], - "lod1Tris": 1264, - "lod1Bytes": 67056 - }, - { - "tx": 5, - "tz": 0, - "lod2": "tiles/lod2_5_0.glb", - "lod1": "tiles/lod1_5_0.glb", - "collision": "tiles/col_5_0.bin", - "buildingCount": 7, - "lod2Tris": 345, - "lod2Bytes": 22080, - "colVerts": 471, - "colTris": 345, - "colBytes": 9840, - "center": [ - 1280.0, - 0.0, - -1280.0 - ], - "boundsMin": [ - 1046.164, - 5.103, - -1524.624 - ], - "boundsMax": [ - 1502.379, - 137.053, - -1026.293 - ], - "lod1Tris": 511, - "lod1Bytes": 29780 - }, - { - "tx": 5, - "tz": 1, - "lod2": "tiles/lod2_5_1.glb", - "lod1": "tiles/lod1_5_1.glb", - "collision": "tiles/col_5_1.bin", - "buildingCount": 7, - "lod2Tris": 406, - "lod2Bytes": 24384, - "colVerts": 557, - "colTris": 398, - "colBytes": 11508, - "center": [ - 1280.0, - 0.0, - -768.0 - ], - "boundsMin": [ - 1013.32, - 4.526, - -946.625 - ], - "boundsMax": [ - 1502.84, - 18.437, - -613.109 - ], - "lod1Tris": 692, - "lod1Bytes": 37412 - }, - { - "tx": 5, - "tz": 2, - "lod2": "tiles/lod2_5_2.glb", - "lod1": "tiles/lod1_5_2.glb", - "collision": "tiles/col_5_2.bin", - "buildingCount": 19, - "lod2Tris": 1832, - "lod2Bytes": 108660, - "colVerts": 2431, - "colTris": 1832, - "colBytes": 51204, - "center": [ - 1280.0, - 0.0, - -256.0 - ], - "boundsMin": [ - 990.258, - 2.669, - -327.278 - ], - "boundsMax": [ - 1545.097, - 24.902, - 5.311 - ], - "lod1Tris": 2096, - "lod1Bytes": 119508 - }, - { - "tx": 5, - "tz": 3, - "lod2": "tiles/lod2_5_3.glb", - "lod1": "tiles/lod1_5_3.glb", - "collision": "tiles/col_5_3.bin", - "buildingCount": 82, - "lod2Tris": 6318, - "lod2Bytes": 321316, - "colVerts": 8411, - "colTris": 6278, - "colBytes": 176316, - "center": [ - 1280.0, - 0.0, - 256.0 - ], - "boundsMin": [ - 1011.734, - 3.263, - -10.193 - ], - "boundsMax": [ - 1555.777, - 42.438, - 511.41 - ], - "lod1Tris": 8052, - "lod1Bytes": 398600 - }, - { - "tx": 5, - "tz": 4, - "lod2": "tiles/lod2_5_4.glb", - "lod1": "tiles/lod1_5_4.glb", - "collision": "tiles/col_5_4.bin", - "buildingCount": 21, - "lod2Tris": 903, - "lod2Bytes": 47420, - "colVerts": 1177, - "colTris": 901, - "colBytes": 24984, - "center": [ - 1280.0, - 0.0, - 768.0 - ], - "boundsMin": [ - 1021.43, - 4.992, - 499.811 - ], - "boundsMax": [ - 1462.379, - 29.764, - 949.481 - ], - "lod1Tris": 1504, - "lod1Bytes": 73524 - }, - { - "tx": 5, - "tz": 5, - "lod2": "tiles/lod2_5_5.glb", - "lod1": "tiles/lod1_5_5.glb", - "collision": "tiles/col_5_5.bin", - "buildingCount": 21, - "lod2Tris": 1363, - "lod2Bytes": 72584, - "colVerts": 1767, - "colTris": 1335, - "colBytes": 37272, - "center": [ - 1280.0, - 0.0, - 1280.0 - ], - "boundsMin": [ - 1028.355, - 14.941, - 1041.767 - ], - "boundsMax": [ - 1523.641, - 239.532, - 1482.03 - ], - "lod1Tris": 1523, - "lod1Bytes": 81284 - } - ] -} \ No newline at end of file diff --git a/assets/maps/sion/terrain_surface.png b/assets/maps/sion/terrain_surface.png deleted file mode 100644 index e240d47..0000000 Binary files a/assets/maps/sion/terrain_surface.png and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_0.bin b/assets/maps/sion/tiles/col_0_0.bin deleted file mode 100644 index f3e074f..0000000 Binary files a/assets/maps/sion/tiles/col_0_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_1.bin b/assets/maps/sion/tiles/col_0_1.bin deleted file mode 100644 index ff8eafd..0000000 Binary files a/assets/maps/sion/tiles/col_0_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_2.bin b/assets/maps/sion/tiles/col_0_2.bin deleted file mode 100644 index 2416d76..0000000 Binary files a/assets/maps/sion/tiles/col_0_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_3.bin b/assets/maps/sion/tiles/col_0_3.bin deleted file mode 100644 index 7c35dea..0000000 Binary files a/assets/maps/sion/tiles/col_0_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_4.bin b/assets/maps/sion/tiles/col_0_4.bin deleted file mode 100644 index 64806cb..0000000 Binary files a/assets/maps/sion/tiles/col_0_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_0_5.bin b/assets/maps/sion/tiles/col_0_5.bin deleted file mode 100644 index 8080b0a..0000000 Binary files a/assets/maps/sion/tiles/col_0_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_0.bin b/assets/maps/sion/tiles/col_1_0.bin deleted file mode 100644 index 4b13a18..0000000 Binary files a/assets/maps/sion/tiles/col_1_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_1.bin b/assets/maps/sion/tiles/col_1_1.bin deleted file mode 100644 index 5ca3724..0000000 Binary files a/assets/maps/sion/tiles/col_1_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_2.bin b/assets/maps/sion/tiles/col_1_2.bin deleted file mode 100644 index b9f0931..0000000 Binary files a/assets/maps/sion/tiles/col_1_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_3.bin b/assets/maps/sion/tiles/col_1_3.bin deleted file mode 100644 index 43ec020..0000000 Binary files a/assets/maps/sion/tiles/col_1_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_4.bin b/assets/maps/sion/tiles/col_1_4.bin deleted file mode 100644 index 1d75f14..0000000 Binary files a/assets/maps/sion/tiles/col_1_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_1_5.bin b/assets/maps/sion/tiles/col_1_5.bin deleted file mode 100644 index 2437d62..0000000 Binary files a/assets/maps/sion/tiles/col_1_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_0.bin b/assets/maps/sion/tiles/col_2_0.bin deleted file mode 100644 index f331bbc..0000000 Binary files a/assets/maps/sion/tiles/col_2_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_1.bin b/assets/maps/sion/tiles/col_2_1.bin deleted file mode 100644 index c4d4767..0000000 Binary files a/assets/maps/sion/tiles/col_2_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_2.bin b/assets/maps/sion/tiles/col_2_2.bin deleted file mode 100644 index f36f928..0000000 Binary files a/assets/maps/sion/tiles/col_2_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_3.bin b/assets/maps/sion/tiles/col_2_3.bin deleted file mode 100644 index 163e14e..0000000 Binary files a/assets/maps/sion/tiles/col_2_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_4.bin b/assets/maps/sion/tiles/col_2_4.bin deleted file mode 100644 index 84f06ee..0000000 Binary files a/assets/maps/sion/tiles/col_2_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_2_5.bin b/assets/maps/sion/tiles/col_2_5.bin deleted file mode 100644 index 608f243..0000000 Binary files a/assets/maps/sion/tiles/col_2_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_0.bin b/assets/maps/sion/tiles/col_3_0.bin deleted file mode 100644 index 1fb3546..0000000 Binary files a/assets/maps/sion/tiles/col_3_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_1.bin b/assets/maps/sion/tiles/col_3_1.bin deleted file mode 100644 index 71581c1..0000000 Binary files a/assets/maps/sion/tiles/col_3_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_2.bin b/assets/maps/sion/tiles/col_3_2.bin deleted file mode 100644 index deaa8ea..0000000 Binary files a/assets/maps/sion/tiles/col_3_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_3.bin b/assets/maps/sion/tiles/col_3_3.bin deleted file mode 100644 index 7c5248e..0000000 Binary files a/assets/maps/sion/tiles/col_3_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_4.bin b/assets/maps/sion/tiles/col_3_4.bin deleted file mode 100644 index 6804ab4..0000000 Binary files a/assets/maps/sion/tiles/col_3_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_3_5.bin b/assets/maps/sion/tiles/col_3_5.bin deleted file mode 100644 index f7b4a53..0000000 Binary files a/assets/maps/sion/tiles/col_3_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_0.bin b/assets/maps/sion/tiles/col_4_0.bin deleted file mode 100644 index 8a1aae3..0000000 Binary files a/assets/maps/sion/tiles/col_4_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_1.bin b/assets/maps/sion/tiles/col_4_1.bin deleted file mode 100644 index 7343251..0000000 Binary files a/assets/maps/sion/tiles/col_4_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_2.bin b/assets/maps/sion/tiles/col_4_2.bin deleted file mode 100644 index 36aabf3..0000000 Binary files a/assets/maps/sion/tiles/col_4_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_3.bin b/assets/maps/sion/tiles/col_4_3.bin deleted file mode 100644 index 4a42dd2..0000000 Binary files a/assets/maps/sion/tiles/col_4_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_4.bin b/assets/maps/sion/tiles/col_4_4.bin deleted file mode 100644 index 626d86a..0000000 Binary files a/assets/maps/sion/tiles/col_4_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_4_5.bin b/assets/maps/sion/tiles/col_4_5.bin deleted file mode 100644 index f83b2d3..0000000 Binary files a/assets/maps/sion/tiles/col_4_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_0.bin b/assets/maps/sion/tiles/col_5_0.bin deleted file mode 100644 index aa68fe1..0000000 Binary files a/assets/maps/sion/tiles/col_5_0.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_1.bin b/assets/maps/sion/tiles/col_5_1.bin deleted file mode 100644 index 1de0ff7..0000000 Binary files a/assets/maps/sion/tiles/col_5_1.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_2.bin b/assets/maps/sion/tiles/col_5_2.bin deleted file mode 100644 index b684c5c..0000000 Binary files a/assets/maps/sion/tiles/col_5_2.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_3.bin b/assets/maps/sion/tiles/col_5_3.bin deleted file mode 100644 index 82b2c17..0000000 Binary files a/assets/maps/sion/tiles/col_5_3.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_4.bin b/assets/maps/sion/tiles/col_5_4.bin deleted file mode 100644 index f63023c..0000000 Binary files a/assets/maps/sion/tiles/col_5_4.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/col_5_5.bin b/assets/maps/sion/tiles/col_5_5.bin deleted file mode 100644 index a7996e5..0000000 Binary files a/assets/maps/sion/tiles/col_5_5.bin and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_0.glb b/assets/maps/sion/tiles/lod1_0_0.glb deleted file mode 100644 index 2a69056..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_1.glb b/assets/maps/sion/tiles/lod1_0_1.glb deleted file mode 100644 index 02cf0cf..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_2.glb b/assets/maps/sion/tiles/lod1_0_2.glb deleted file mode 100644 index 7aec268..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_3.glb b/assets/maps/sion/tiles/lod1_0_3.glb deleted file mode 100644 index 889deb8..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_4.glb b/assets/maps/sion/tiles/lod1_0_4.glb deleted file mode 100644 index 811c681..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_0_5.glb b/assets/maps/sion/tiles/lod1_0_5.glb deleted file mode 100644 index d27d9ec..0000000 Binary files a/assets/maps/sion/tiles/lod1_0_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_0.glb b/assets/maps/sion/tiles/lod1_1_0.glb deleted file mode 100644 index 331c745..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_1.glb b/assets/maps/sion/tiles/lod1_1_1.glb deleted file mode 100644 index bad21f7..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_2.glb b/assets/maps/sion/tiles/lod1_1_2.glb deleted file mode 100644 index ce23413..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_3.glb b/assets/maps/sion/tiles/lod1_1_3.glb deleted file mode 100644 index 68d2774..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_4.glb b/assets/maps/sion/tiles/lod1_1_4.glb deleted file mode 100644 index 79815fd..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_1_5.glb b/assets/maps/sion/tiles/lod1_1_5.glb deleted file mode 100644 index b1d082c..0000000 Binary files a/assets/maps/sion/tiles/lod1_1_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_0.glb b/assets/maps/sion/tiles/lod1_2_0.glb deleted file mode 100644 index cabd681..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_1.glb b/assets/maps/sion/tiles/lod1_2_1.glb deleted file mode 100644 index ca1ed6d..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_2.glb b/assets/maps/sion/tiles/lod1_2_2.glb deleted file mode 100644 index 042db7c..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_3.glb b/assets/maps/sion/tiles/lod1_2_3.glb deleted file mode 100644 index acce327..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_4.glb b/assets/maps/sion/tiles/lod1_2_4.glb deleted file mode 100644 index 680e1e2..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_2_5.glb b/assets/maps/sion/tiles/lod1_2_5.glb deleted file mode 100644 index bd12150..0000000 Binary files a/assets/maps/sion/tiles/lod1_2_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_0.glb b/assets/maps/sion/tiles/lod1_3_0.glb deleted file mode 100644 index f51e062..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_1.glb b/assets/maps/sion/tiles/lod1_3_1.glb deleted file mode 100644 index dd59248..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_2.glb b/assets/maps/sion/tiles/lod1_3_2.glb deleted file mode 100644 index b8e6407..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_3.glb b/assets/maps/sion/tiles/lod1_3_3.glb deleted file mode 100644 index aa4898e..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_4.glb b/assets/maps/sion/tiles/lod1_3_4.glb deleted file mode 100644 index ccd6102..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_3_5.glb b/assets/maps/sion/tiles/lod1_3_5.glb deleted file mode 100644 index b26af8c..0000000 Binary files a/assets/maps/sion/tiles/lod1_3_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_0.glb b/assets/maps/sion/tiles/lod1_4_0.glb deleted file mode 100644 index cf26d11..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_1.glb b/assets/maps/sion/tiles/lod1_4_1.glb deleted file mode 100644 index fe68920..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_2.glb b/assets/maps/sion/tiles/lod1_4_2.glb deleted file mode 100644 index 66c89ef..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_3.glb b/assets/maps/sion/tiles/lod1_4_3.glb deleted file mode 100644 index 2afb855..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_4.glb b/assets/maps/sion/tiles/lod1_4_4.glb deleted file mode 100644 index da0c1d0..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_4_5.glb b/assets/maps/sion/tiles/lod1_4_5.glb deleted file mode 100644 index 07f85d1..0000000 Binary files a/assets/maps/sion/tiles/lod1_4_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_0.glb b/assets/maps/sion/tiles/lod1_5_0.glb deleted file mode 100644 index 7c1d792..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_1.glb b/assets/maps/sion/tiles/lod1_5_1.glb deleted file mode 100644 index f759198..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_2.glb b/assets/maps/sion/tiles/lod1_5_2.glb deleted file mode 100644 index 061b8ee..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_3.glb b/assets/maps/sion/tiles/lod1_5_3.glb deleted file mode 100644 index 5b03a11..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_4.glb b/assets/maps/sion/tiles/lod1_5_4.glb deleted file mode 100644 index 4392f0a..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod1_5_5.glb b/assets/maps/sion/tiles/lod1_5_5.glb deleted file mode 100644 index d8d7c98..0000000 Binary files a/assets/maps/sion/tiles/lod1_5_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_0.glb b/assets/maps/sion/tiles/lod2_0_0.glb deleted file mode 100644 index 6e74f63..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_1.glb b/assets/maps/sion/tiles/lod2_0_1.glb deleted file mode 100644 index c340cd7..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_2.glb b/assets/maps/sion/tiles/lod2_0_2.glb deleted file mode 100644 index e321d54..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_3.glb b/assets/maps/sion/tiles/lod2_0_3.glb deleted file mode 100644 index 5fa8a3f..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_4.glb b/assets/maps/sion/tiles/lod2_0_4.glb deleted file mode 100644 index dc74855..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_0_5.glb b/assets/maps/sion/tiles/lod2_0_5.glb deleted file mode 100644 index 792a4b5..0000000 Binary files a/assets/maps/sion/tiles/lod2_0_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_0.glb b/assets/maps/sion/tiles/lod2_1_0.glb deleted file mode 100644 index 7d34192..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_1.glb b/assets/maps/sion/tiles/lod2_1_1.glb deleted file mode 100644 index 2ac70fa..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_2.glb b/assets/maps/sion/tiles/lod2_1_2.glb deleted file mode 100644 index 712aa0e..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_3.glb b/assets/maps/sion/tiles/lod2_1_3.glb deleted file mode 100644 index 2a11380..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_4.glb b/assets/maps/sion/tiles/lod2_1_4.glb deleted file mode 100644 index 97fa611..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_1_5.glb b/assets/maps/sion/tiles/lod2_1_5.glb deleted file mode 100644 index 1e98452..0000000 Binary files a/assets/maps/sion/tiles/lod2_1_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_0.glb b/assets/maps/sion/tiles/lod2_2_0.glb deleted file mode 100644 index f2b0170..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_1.glb b/assets/maps/sion/tiles/lod2_2_1.glb deleted file mode 100644 index 573e972..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_2.glb b/assets/maps/sion/tiles/lod2_2_2.glb deleted file mode 100644 index ee86ac0..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_3.glb b/assets/maps/sion/tiles/lod2_2_3.glb deleted file mode 100644 index a164434..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_4.glb b/assets/maps/sion/tiles/lod2_2_4.glb deleted file mode 100644 index 08a8fb6..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_2_5.glb b/assets/maps/sion/tiles/lod2_2_5.glb deleted file mode 100644 index 743d184..0000000 Binary files a/assets/maps/sion/tiles/lod2_2_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_0.glb b/assets/maps/sion/tiles/lod2_3_0.glb deleted file mode 100644 index 48ba85e..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_1.glb b/assets/maps/sion/tiles/lod2_3_1.glb deleted file mode 100644 index bb2464e..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_2.glb b/assets/maps/sion/tiles/lod2_3_2.glb deleted file mode 100644 index bc9d01b..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_3.glb b/assets/maps/sion/tiles/lod2_3_3.glb deleted file mode 100644 index 110a43c..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_4.glb b/assets/maps/sion/tiles/lod2_3_4.glb deleted file mode 100644 index 192472d..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_3_5.glb b/assets/maps/sion/tiles/lod2_3_5.glb deleted file mode 100644 index 630d67e..0000000 Binary files a/assets/maps/sion/tiles/lod2_3_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_0.glb b/assets/maps/sion/tiles/lod2_4_0.glb deleted file mode 100644 index d9e8895..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_1.glb b/assets/maps/sion/tiles/lod2_4_1.glb deleted file mode 100644 index 538fa53..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_2.glb b/assets/maps/sion/tiles/lod2_4_2.glb deleted file mode 100644 index 5d7c947..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_3.glb b/assets/maps/sion/tiles/lod2_4_3.glb deleted file mode 100644 index 0ba74f0..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_4.glb b/assets/maps/sion/tiles/lod2_4_4.glb deleted file mode 100644 index 86c207a..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_4_5.glb b/assets/maps/sion/tiles/lod2_4_5.glb deleted file mode 100644 index a5bd499..0000000 Binary files a/assets/maps/sion/tiles/lod2_4_5.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_0.glb b/assets/maps/sion/tiles/lod2_5_0.glb deleted file mode 100644 index 4c63395..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_0.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_1.glb b/assets/maps/sion/tiles/lod2_5_1.glb deleted file mode 100644 index 5a1e7e9..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_1.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_2.glb b/assets/maps/sion/tiles/lod2_5_2.glb deleted file mode 100644 index 50661d1..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_2.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_3.glb b/assets/maps/sion/tiles/lod2_5_3.glb deleted file mode 100644 index 333ed5c..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_3.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_4.glb b/assets/maps/sion/tiles/lod2_5_4.glb deleted file mode 100644 index 27f75c9..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_4.glb and /dev/null differ diff --git a/assets/maps/sion/tiles/lod2_5_5.glb b/assets/maps/sion/tiles/lod2_5_5.glb deleted file mode 100644 index e842870..0000000 Binary files a/assets/maps/sion/tiles/lod2_5_5.glb and /dev/null differ diff --git a/assets/vehicles/anvil/anvil.glb b/assets/vehicles/anvil/anvil.glb deleted file mode 100644 index 25b367c..0000000 Binary files a/assets/vehicles/anvil/anvil.glb and /dev/null differ diff --git a/assets/vehicles/anvil/manifest.json b/assets/vehicles/anvil/manifest.json deleted file mode 100644 index ca8cff5..0000000 --- a/assets/vehicles/anvil/manifest.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "anvil", - "name": "Anvil", - "class": "Heavy Quad-Track Siege Tank", - "plane": "Dorsal", - "gridWidth": 5, - "gridHeight": 6, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.armor.front", - "kind": "armor", - "x": 0, - "y": 0, - "w": 5, - "h": 1, - "modelNodeId": "hp.armor.front" - }, - { - "id": "hp.weapon.sponson_l", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.sponson_l" - }, - { - "id": "hp.weapon.siege_l", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.siege_l" - }, - { - "id": "hp.armor.sides", - "kind": "armor", - "x": 2, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.armor.sides" - }, - { - "id": "hp.weapon.siege_r", - "kind": "weapon", - "x": 3, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.siege_r" - }, - { - "id": "hp.weapon.sponson_r", - "kind": "weapon", - "x": 4, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.sponson_r" - }, - { - "id": "hp.engine.rear", - "kind": "engine", - "x": 1, - "y": 3, - "w": 3, - "h": 2, - "modelNodeId": "hp.engine.rear" - }, - { - "id": "hp.radiator.l", - "kind": "radiator", - "x": 0, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.l" - }, - { - "id": "hp.radiator.r", - "kind": "radiator", - "x": 4, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.r" - } - ], - "joints": [ - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -1.93, - 0.0, - -2.8252 - ], - "max": [ - 1.93, - 3.0266, - 2.8252 - ], - "size": [ - 3.86, - 3.0266, - 5.6504 - ] - }, - "triCount": 18044 -} diff --git a/assets/vehicles/anvil/vehicle.cc b/assets/vehicles/anvil/vehicle.cc deleted file mode 100644 index 1e82918..0000000 Binary files a/assets/vehicles/anvil/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/bastion/bastion.glb b/assets/vehicles/bastion/bastion.glb deleted file mode 100644 index 0711977..0000000 Binary files a/assets/vehicles/bastion/bastion.glb and /dev/null differ diff --git a/assets/vehicles/bastion/manifest.json b/assets/vehicles/bastion/manifest.json deleted file mode 100644 index 43f8d8a..0000000 --- a/assets/vehicles/bastion/manifest.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "bastion", - "name": "Bastion", - "class": "Heavy Siege Quadruped", - "plane": "Dorsal", - "gridWidth": 6, - "gridHeight": 6, - "mask": [ - false, - false, - true, - true, - false, - false, - false, - true, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.armor.prow", - "kind": "armor", - "x": 2, - "y": 0, - "w": 2, - "h": 1, - "modelNodeId": "hp.armor.prow" - }, - { - "id": "hp.weapon.turret_pd", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.turret_pd" - }, - { - "id": "hp.weapon.turret_main", - "kind": "weapon", - "x": 2, - "y": 1, - "w": 2, - "h": 2, - "modelNodeId": "hp.weapon.turret_main" - }, - { - "id": "hp.weapon.flank_l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.flank_l" - }, - { - "id": "hp.weapon.flank_r", - "kind": "weapon", - "x": 5, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.flank_r" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 2, - "y": 3, - "w": 2, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.radiator.rear_l", - "kind": "radiator", - "x": 1, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.rear_l" - }, - { - "id": "hp.radiator.rear_r", - "kind": "radiator", - "x": 4, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.rear_r" - } - ], - "joints": [ - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -6.6043, - 0.0, - -8.043 - ], - "max": [ - 6.6094, - 9.625, - 6.7519 - ], - "size": [ - 13.2137, - 9.625, - 14.7949 - ] - }, - "triCount": 36656 -} diff --git a/assets/vehicles/bastion/vehicle.cc b/assets/vehicles/bastion/vehicle.cc deleted file mode 100644 index db90253..0000000 Binary files a/assets/vehicles/bastion/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/breaker/breaker.glb b/assets/vehicles/breaker/breaker.glb deleted file mode 100644 index 510d874..0000000 Binary files a/assets/vehicles/breaker/breaker.glb and /dev/null differ diff --git a/assets/vehicles/breaker/manifest.json b/assets/vehicles/breaker/manifest.json deleted file mode 100644 index 0d7d940..0000000 --- a/assets/vehicles/breaker/manifest.json +++ /dev/null @@ -1,1084 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "breaker", - "name": "Breaker", - "class": "Heavy Assault Biped", - "plane": "Coronal", - "gridWidth": 5, - "gridHeight": 6, - "mask": [ - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - false, - true, - false, - false, - true, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.arm_l", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_l" - }, - { - "id": "hp.weapon.arm_r", - "kind": "weapon", - "x": 4, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_r" - }, - { - "id": "hp.weapon.shoulder_l", - "kind": "weapon", - "x": 1, - "y": 0, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.shoulder_l" - }, - { - "id": "hp.armor.torso", - "kind": "armor", - "x": 2, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.armor.torso" - }, - { - "id": "hp.engine.chest", - "kind": "engine", - "x": 2, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.chest" - }, - { - "id": "hp.radiator.back_l", - "kind": "radiator", - "x": 1, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_l" - }, - { - "id": "hp.radiator.back_r", - "kind": "radiator", - "x": 3, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_r" - } - ], - "joints": [ - { - "id": "joint.torso_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -90.0, - "max": 90.0 - }, - { - "id": "joint.arm_l_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - }, - { - "id": "joint.arm_r_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - } - ], - "bounds": { - "min": [ - -2.3356, - -0.0, - -1.274 - ], - "max": [ - 2.3808, - 6.2911, - 1.8859 - ], - "size": [ - 4.7164, - 6.2911, - 3.1599 - ] - }, - "triCount": 35967, - "mechanisms": { - "frame": "gltf (+Y up, +Z forward, +X left, meters)", - "rootOrigin": [ - -0.0, - 3.362557, - 0.0 - ], - "dofs": [ - { - "name": "LegL.Hip", - "parent": -1, - "kind": "slew", - "mechanism": "hip", - "side": "L", - "origin": [ - 0.6209, - 3.362557, - 0.0 - ], - "axis": [ - 1.0, - -0.0, - 0.0 - ], - "lo": -1.0471975511965976, - "hi": 1.0471975511965976, - "depth": 0 - }, - { - "name": "LegL.Thigh", - "parent": 0, - "kind": "slew", - "mechanism": "hip yaw", - "side": "L", - "origin": [ - 1.0809, - 2.71148, - 0.173509 - ], - "axis": [ - -0.0, - -0.966276, - 0.257508 - ], - "lo": -0.6108652381980153, - "hi": 0.6108652381980153, - "depth": 1 - }, - { - "name": "LegL.Shin", - "parent": 1, - "kind": "hinge", - "mechanism": "knee", - "side": "L", - "origin": [ - 1.0809, - 2.086744, - 0.339999 - ], - "axis": [ - -0.0, - -0.970991, - -0.239116 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 2 - }, - { - "name": "LegL.Oleo", - "parent": 2, - "kind": "slide", - "mechanism": "oleo", - "side": "L", - "origin": [ - 1.0809, - 1.021033, - 0.077557 - ], - "axis": [ - -0.0, - -0.970991, - -0.239116 - ], - "lo": -0.2, - "hi": 0.0, - "depth": 3, - "compliance": { - "damping_ratio": 0.45, - "hertz": 1.6 - } - }, - { - "name": "LegL.Foot", - "parent": 3, - "kind": "hinge", - "mechanism": "ankle", - "side": "L", - "origin": [ - 1.0809, - 0.624869, - -0.020002 - ], - "axis": [ - -0.0, - -1.0, - 0.0 - ], - "lo": -0.6981317007977318, - "hi": 0.6981317007977318, - "depth": 4, - "stopped_by": "ram" - }, - { - "name": "LegL.Foot.Toe0.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 0.753334, - 0.252079, - 0.237904 - ], - "axis": [ - -0.08495, - -0.223571, - 0.970979 - ], - "lo": -0.1745329183221527, - "hi": 0.5235987824755791, - "depth": 5 - }, - { - "name": "LegL.Foot.Toe0.Seg1", - "parent": 5, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 0.719354, - 0.162651, - 0.626296 - ], - "axis": [ - -0.087156, - 0.0, - 0.996195 - ], - "lo": -0.2094395171165998, - "hi": 0.8377580340799979, - "depth": 6 - }, - { - "name": "LegL.Foot.Toe1.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 1.408466, - 0.252079, - 0.237904 - ], - "axis": [ - 0.08495, - -0.223571, - 0.970979 - ], - "lo": -0.1745329183221527, - "hi": 0.5235987824755791, - "depth": 5 - }, - { - "name": "LegL.Foot.Toe1.Seg1", - "parent": 7, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 1.442446, - 0.162651, - 0.626296 - ], - "axis": [ - 0.087156, - 0.0, - 0.996195 - ], - "lo": -0.2094395171165998, - "hi": 0.8377580340799979, - "depth": 6 - }, - { - "name": "LegL.Foot.Toe2.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 0.353393, - 0.252079, - 0.057444 - ], - "axis": [ - -0.58406, - -0.316267, - 0.747562 - ], - "lo": -0.17453293312755827, - "hi": 0.5235987676701735, - "depth": 5 - }, - { - "name": "LegL.Foot.Toe3.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 1.808407, - 0.252079, - 0.057444 - ], - "axis": [ - 0.58406, - -0.316267, - 0.747562 - ], - "lo": -0.17453293312755827, - "hi": 0.5235987676701735, - "depth": 5 - }, - { - "name": "LegL.Foot.Toe4.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 0.694624, - 0.252079, - -0.387362 - ], - "axis": [ - -0.225859, - -0.358307, - -0.905872 - ], - "lo": -0.20943950039479836, - "hi": 0.4188790303231602, - "depth": 5 - }, - { - "name": "LegL.Foot.Toe5.Seg0", - "parent": 4, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "L", - "origin": [ - 1.467176, - 0.252079, - -0.387362 - ], - "axis": [ - 0.225859, - -0.358307, - -0.905872 - ], - "lo": -0.20943950039479836, - "hi": 0.4188790303231602, - "depth": 5 - }, - { - "name": "LegR.Hip", - "parent": -1, - "kind": "slew", - "mechanism": "hip", - "side": "R", - "origin": [ - -0.6209, - 3.362557, - 0.0 - ], - "axis": [ - -1.0, - -0.0, - -0.0 - ], - "lo": -1.0471975511965976, - "hi": 1.0471975511965976, - "depth": 0 - }, - { - "name": "LegR.Thigh", - "parent": 13, - "kind": "slew", - "mechanism": "hip yaw", - "side": "R", - "origin": [ - -1.0809, - 2.690817, - 0.052652 - ], - "axis": [ - 0.0, - -0.996942, - 0.078142 - ], - "lo": -0.6108652381980153, - "hi": 0.6108652381980153, - "depth": 1 - }, - { - "name": "LegR.Shin", - "parent": 14, - "kind": "hinge", - "mechanism": "knee", - "side": "R", - "origin": [ - -1.0809, - 2.046254, - 0.103173 - ], - "axis": [ - 0.0, - -0.944097, - -0.329667 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 2 - }, - { - "name": "LegR.Oleo", - "parent": 15, - "kind": "slide", - "mechanism": "oleo", - "side": "R", - "origin": [ - -1.0809, - 1.01006, - -0.258652 - ], - "axis": [ - 0.0, - -0.944097, - -0.329667 - ], - "lo": -0.2, - "hi": 0.0, - "depth": 3, - "compliance": { - "damping_ratio": 0.45, - "hertz": 1.6 - } - }, - { - "name": "LegR.Foot", - "parent": 16, - "kind": "hinge", - "mechanism": "ankle", - "side": "R", - "origin": [ - -1.0809, - 0.624868, - -0.393156 - ], - "axis": [ - 0.0, - -1.0, - 0.0 - ], - "lo": -0.6981317007977318, - "hi": 0.6981317007977318, - "depth": 4, - "stopped_by": "ram" - }, - { - "name": "LegR.Foot.Toe0.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -1.408466, - 0.252079, - -0.13525 - ], - "axis": [ - -0.08495, - -0.223571, - 0.970979 - ], - "lo": -0.1745329183221527, - "hi": 0.5235987824755791, - "depth": 5 - }, - { - "name": "LegR.Foot.Toe0.Seg1", - "parent": 18, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -1.442446, - 0.16265, - 0.253141 - ], - "axis": [ - -0.087156, - 0.0, - 0.996195 - ], - "lo": -0.2094395171165998, - "hi": 0.8377580340799979, - "depth": 6 - }, - { - "name": "LegR.Foot.Toe1.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -0.753334, - 0.252079, - -0.135251 - ], - "axis": [ - 0.08495, - -0.223571, - 0.970979 - ], - "lo": -0.1745329183221527, - "hi": 0.5235987824755791, - "depth": 5 - }, - { - "name": "LegR.Foot.Toe1.Seg1", - "parent": 20, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -0.719354, - 0.16265, - 0.253141 - ], - "axis": [ - 0.087156, - 0.0, - 0.996195 - ], - "lo": -0.2094395171165998, - "hi": 0.8377580340799979, - "depth": 6 - }, - { - "name": "LegR.Foot.Toe2.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -1.808407, - 0.252079, - -0.315711 - ], - "axis": [ - -0.58406, - -0.316267, - 0.747562 - ], - "lo": -0.17453293312755827, - "hi": 0.5235987676701735, - "depth": 5 - }, - { - "name": "LegR.Foot.Toe3.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -0.353393, - 0.252079, - -0.315711 - ], - "axis": [ - 0.58406, - -0.316267, - 0.747562 - ], - "lo": -0.17453293312755827, - "hi": 0.5235987676701735, - "depth": 5 - }, - { - "name": "LegR.Foot.Toe4.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -1.467176, - 0.252079, - -0.760517 - ], - "axis": [ - -0.225859, - -0.358307, - -0.905872 - ], - "lo": -0.20943950039479836, - "hi": 0.4188790303231602, - "depth": 5 - }, - { - "name": "LegR.Foot.Toe5.Seg0", - "parent": 17, - "kind": "hinge", - "mechanism": "toe pitch", - "side": "R", - "origin": [ - -0.694624, - 0.252079, - -0.760517 - ], - "axis": [ - 0.225859, - -0.358307, - -0.905872 - ], - "lo": -0.20943950039479836, - "hi": 0.4188790303231602, - "depth": 5 - }, - { - "name": "Core", - "parent": -1, - "kind": "slew", - "mechanism": "waist", - "side": "", - "origin": [ - -0.0, - 3.721381, - 0.0 - ], - "axis": [ - -0.0, - 1.0, - 0.0 - ], - "lo": -1.9198621771937625, - "hi": 1.9198621771937625, - "depth": 0 - }, - { - "name": "ShoulderYokeL", - "parent": 26, - "kind": "slew", - "mechanism": "shoulder slew", - "side": "L", - "origin": [ - 0.819255, - 4.983909, - 0.0 - ], - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 1 - }, - { - "name": "UpperArmL", - "parent": 27, - "kind": "hinge", - "mechanism": "shoulder hinge", - "side": "L", - "origin": [ - 1.488455, - 4.983909, - 0.0 - ], - "axis": [ - 0.087165, - -0.991212, - 0.0995 - ], - "lo": -0.7853981633974483, - "hi": 0.7853981633974483, - "depth": 2 - }, - { - "name": "ElbowYokeL", - "parent": 28, - "kind": "slew", - "mechanism": "arm twist", - "side": "L", - "origin": [ - 1.556551, - 4.209545, - 0.077732 - ], - "axis": [ - 0.087165, - -0.991212, - 0.0995 - ], - "lo": -1.5707963267948966, - "hi": 1.5707963267948966, - "depth": 3 - }, - { - "name": "ForearmL", - "parent": 29, - "kind": "hinge", - "mechanism": "elbow", - "side": "L", - "origin": [ - 1.601947, - 3.693322, - 0.129552 - ], - "axis": [ - 0.1199, - -0.441691, - 0.889119 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 4 - }, - { - "name": "ShoulderYokeR", - "parent": 26, - "kind": "slew", - "mechanism": "shoulder slew", - "side": "R", - "origin": [ - -0.819255, - 4.983909, - 0.0 - ], - "axis": [ - -1.0, - -0.0, - -0.0 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 1 - }, - { - "name": "UpperArmR", - "parent": 31, - "kind": "hinge", - "mechanism": "shoulder hinge", - "side": "R", - "origin": [ - -1.488455, - 4.983909, - -0.0 - ], - "axis": [ - -0.061315, - -0.978592, - 0.196466 - ], - "lo": -0.7853981633974483, - "hi": 0.7853981633974483, - "depth": 2 - }, - { - "name": "ElbowYokeR", - "parent": 32, - "kind": "slew", - "mechanism": "arm twist", - "side": "R", - "origin": [ - -1.536356, - 4.219404, - 0.153485 - ], - "axis": [ - -0.061315, - -0.978592, - 0.196466 - ], - "lo": -1.5707963267948966, - "hi": 1.5707963267948966, - "depth": 3 - }, - { - "name": "ForearmR", - "parent": 33, - "kind": "hinge", - "mechanism": "elbow", - "side": "R", - "origin": [ - -1.56829, - 3.709754, - 0.255804 - ], - "axis": [ - 0.03822, - -0.374104, - 0.926599 - ], - "lo": -1.7453292519943295, - "hi": 1.7453292519943295, - "depth": 4 - } - ], - "rams": [ - { - "name": "LegL.RecessRam0", - "barrel_bone": "LegL.RecessRam0.barrel", - "rod_bone": "LegL.RecessRam0.rod", - "spans": [ - "LegL.Oleo", - "LegL.Foot" - ], - "bore": 0.09, - "body": 0.664775, - "inner": 0.8131586697281079, - "extension": 0.407443, - "rest": 1.3782174197281079, - "stroke": [ - -0.407443, - 0.514775 - ], - "a_parent_dof": 2, - "a_pos": [ - 0.9109, - 2.117333, - -0.202422 - ], - "b_parent_dof": 4, - "b_pos": [ - 0.9109, - 0.745732, - -0.337304 - ], - "pin_dir": [ - 1.0, - -0.0, - -0.0 - ] - }, - { - "name": "LegL.RecessRam1", - "barrel_bone": "LegL.RecessRam1.barrel", - "rod_bone": "LegL.RecessRam1.rod", - "spans": [ - "LegL.Oleo", - "LegL.Foot" - ], - "bore": 0.09, - "body": 0.664775, - "inner": 0.8131586697281079, - "extension": 0.407443, - "rest": 1.3782174197281079, - "stroke": [ - -0.407443, - 0.514775 - ], - "a_parent_dof": 2, - "a_pos": [ - 1.2509, - 2.117333, - -0.202422 - ], - "b_parent_dof": 4, - "b_pos": [ - 1.2509, - 0.745732, - -0.337304 - ], - "pin_dir": [ - 1.0, - -0.0, - -0.0 - ] - }, - { - "name": "LegR.RecessRam0", - "barrel_bone": "LegR.RecessRam0.barrel", - "rod_bone": "LegR.RecessRam0.rod", - "spans": [ - "LegR.Oleo", - "LegR.Foot" - ], - "bore": 0.09, - "body": 0.684197, - "inner": 0.8279768098379127, - "extension": 0.419347, - "rest": 1.4095442598379126, - "stroke": [ - -0.419347, - 0.534197 - ], - "a_parent_dof": 15, - "a_pos": [ - -1.2509, - 2.127887, - -0.433941 - ], - "b_parent_dof": 17, - "b_pos": [ - -1.2509, - 0.745731, - -0.710458 - ], - "pin_dir": [ - 1.0, - 0.0, - -0.0 - ] - }, - { - "name": "LegR.RecessRam1", - "barrel_bone": "LegR.RecessRam1.barrel", - "rod_bone": "LegR.RecessRam1.rod", - "spans": [ - "LegR.Oleo", - "LegR.Foot" - ], - "bore": 0.09, - "body": 0.684197, - "inner": 0.8279768098379127, - "extension": 0.419347, - "rest": 1.4095442598379126, - "stroke": [ - -0.419347, - 0.534197 - ], - "a_parent_dof": 15, - "a_pos": [ - -0.9109, - 2.127887, - -0.433941 - ], - "b_parent_dof": 17, - "b_pos": [ - -0.9109, - 0.745731, - -0.710458 - ], - "pin_dir": [ - 1.0, - 0.0, - -0.0 - ] - } - ], - "scissors": [ - { - "name": "LegL.Torque", - "upper_bone": "LegL.Torque.upper", - "lower_bone": "LegL.Torque.lower", - "arm": 0.3087611656677239, - "a_parent_dof": 2, - "a_pos": [ - 1.0809, - 1.240598, - 0.44059 - ], - "b_parent_dof": 3, - "b_pos": [ - 1.0809, - 0.757042, - 0.32151 - ], - "out_dir": [ - 0.0, - -0.239116, - 0.970991 - ] - }, - { - "name": "LegR.Torque", - "upper_bone": "LegR.Torque.upper", - "lower_bone": "LegR.Torque.lower", - "arm": 0.30876125639651403, - "a_parent_dof": 15, - "a_pos": [ - -1.0809, - 1.194391, - 0.123477 - ], - "b_parent_dof": 16, - "b_pos": [ - -1.0809, - 0.724229, - -0.040697 - ], - "out_dir": [ - 0.0, - -0.329667, - 0.944097 - ] - } - ], - "struts": [ - { - "name": "LegL.Oleo", - "side": "L", - "dof": "LegL.Oleo", - "travel": 0.2, - "hertz": 1.6, - "damping_ratio": 0.45 - }, - { - "name": "LegR.Oleo", - "side": "R", - "dof": "LegR.Oleo", - "travel": 0.2, - "hertz": 1.6, - "damping_ratio": 0.45 - } - ] - } -} diff --git a/assets/vehicles/breaker/vehicle.cc b/assets/vehicles/breaker/vehicle.cc deleted file mode 100644 index e6e6c58..0000000 Binary files a/assets/vehicles/breaker/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/condor/condor.glb b/assets/vehicles/condor/condor.glb deleted file mode 100644 index 482c6cb..0000000 Binary files a/assets/vehicles/condor/condor.glb and /dev/null differ diff --git a/assets/vehicles/condor/manifest.json b/assets/vehicles/condor/manifest.json deleted file mode 100644 index 8b056e5..0000000 --- a/assets/vehicles/condor/manifest.json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "condor", - "name": "Condor", - "class": "Heavy Quad-Thruster Assault VTOL", - "plane": "Dorsal", - "gridWidth": 5, - "gridHeight": 6, - "mask": [ - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - false, - true, - false, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.nose", - "kind": "weapon", - "x": 1, - "y": 0, - "w": 2, - "h": 1, - "modelNodeId": "hp.weapon.nose" - }, - { - "id": "hp.armor.hull", - "kind": "armor", - "x": 3, - "y": 0, - "w": 1, - "h": 1, - "modelNodeId": "hp.armor.hull" - }, - { - "id": "hp.weapon.sponson_l", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.sponson_l" - }, - { - "id": "hp.weapon.dorsal", - "kind": "weapon", - "x": 2, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.dorsal" - }, - { - "id": "hp.weapon.sponson_r", - "kind": "weapon", - "x": 4, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.sponson_r" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 1, - "y": 2, - "w": 3, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.radiator.spine_l", - "kind": "radiator", - "x": 0, - "y": 3, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.spine_l" - }, - { - "id": "hp.radiator.spine_r", - "kind": "radiator", - "x": 4, - "y": 3, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.spine_r" - } - ], - "joints": [ - { - "id": "joint.nacelle_fl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_fl", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.nacelle_fr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_fr", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.nacelle_rl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_rl", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.nacelle_rr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_rr", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -2.3586, - 0.0, - -3.1 - ], - "max": [ - 2.3586, - 2.2046, - 2.7758 - ], - "size": [ - 4.7172, - 2.2046, - 5.8758 - ] - }, - "triCount": 12960 -} diff --git a/assets/vehicles/condor/vehicle.cc b/assets/vehicles/condor/vehicle.cc deleted file mode 100644 index ba2ef62..0000000 Binary files a/assets/vehicles/condor/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/ferret/ferret.glb b/assets/vehicles/ferret/ferret.glb deleted file mode 100644 index b8dff09..0000000 Binary files a/assets/vehicles/ferret/ferret.glb and /dev/null differ diff --git a/assets/vehicles/ferret/manifest.json b/assets/vehicles/ferret/manifest.json deleted file mode 100644 index 77052ab..0000000 --- a/assets/vehicles/ferret/manifest.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "ferret", - "name": "Ferret", - "class": "Light Tracked Scout Tankette", - "plane": "Dorsal", - "gridWidth": 3, - "gridHeight": 4, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.armor.glacis", - "kind": "armor", - "x": 0, - "y": 0, - "w": 3, - "h": 1, - "modelNodeId": "hp.armor.glacis" - }, - { - "id": "hp.weapon.pod", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.pod" - }, - { - "id": "hp.weapon.turret", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.turret" - }, - { - "id": "hp.engine.rear", - "kind": "engine", - "x": 2, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.rear" - }, - { - "id": "hp.radiator.deck", - "kind": "radiator", - "x": 1, - "y": 3, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.deck" - } - ], - "joints": [ - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -1.1075, - 0.0, - -1.8009 - ], - "max": [ - 1.1075, - 1.5523, - 1.869 - ], - "size": [ - 2.215, - 1.5523, - 3.6699 - ] - }, - "triCount": 7612 -} diff --git a/assets/vehicles/ferret/vehicle.cc b/assets/vehicles/ferret/vehicle.cc deleted file mode 100644 index d2a9452..0000000 Binary files a/assets/vehicles/ferret/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/hornet/hornet.glb b/assets/vehicles/hornet/hornet.glb deleted file mode 100644 index 3ff4378..0000000 Binary files a/assets/vehicles/hornet/hornet.glb and /dev/null differ diff --git a/assets/vehicles/hornet/manifest.json b/assets/vehicles/hornet/manifest.json deleted file mode 100644 index bfe246a..0000000 --- a/assets/vehicles/hornet/manifest.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "hornet", - "name": "Hornet", - "class": "Light Ducted-Fan VTOL Gunship", - "plane": "Dorsal", - "gridWidth": 4, - "gridHeight": 4, - "mask": [ - false, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - true, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.chin", - "kind": "weapon", - "x": 1, - "y": 0, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.chin" - }, - { - "id": "hp.radiator.nacelle_l", - "kind": "radiator", - "x": 0, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.nacelle_l" - }, - { - "id": "hp.radiator.nacelle_r", - "kind": "radiator", - "x": 3, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.nacelle_r" - }, - { - "id": "hp.weapon.wing_l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.wing_l" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 1, - "y": 2, - "w": 2, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.weapon.wing_r", - "kind": "weapon", - "x": 3, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.wing_r" - } - ], - "joints": [ - { - "id": "joint.nacelle_l", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_l", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.nacelle_r", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 75.0 - }, - { - "id": "joint.rotor_r", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - } - ], - "bounds": { - "min": [ - -1.65, - -0.0, - -2.6715 - ], - "max": [ - 1.65, - 1.8235, - 2.0 - ], - "size": [ - 3.3, - 1.8235, - 4.6715 - ] - }, - "triCount": 7252 -} diff --git a/assets/vehicles/hornet/vehicle.cc b/assets/vehicles/hornet/vehicle.cc deleted file mode 100644 index e3321d1..0000000 Binary files a/assets/vehicles/hornet/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/ironclad/ironclad.glb b/assets/vehicles/ironclad/ironclad.glb deleted file mode 100644 index 0c266c6..0000000 Binary files a/assets/vehicles/ironclad/ironclad.glb and /dev/null differ diff --git a/assets/vehicles/ironclad/manifest.json b/assets/vehicles/ironclad/manifest.json deleted file mode 100644 index f3b5bfa..0000000 --- a/assets/vehicles/ironclad/manifest.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "ironclad", - "name": "Ironclad", - "class": "Medium Tracked Battle Tank", - "plane": "Dorsal", - "gridWidth": 4, - "gridHeight": 5, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.armor.front", - "kind": "armor", - "x": 0, - "y": 0, - "w": 4, - "h": 1, - "modelNodeId": "hp.armor.front" - }, - { - "id": "hp.weapon.coax", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.coax" - }, - { - "id": "hp.weapon.main", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 2, - "h": 2, - "modelNodeId": "hp.weapon.main" - }, - { - "id": "hp.armor.skirts", - "kind": "armor", - "x": 3, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.armor.skirts" - }, - { - "id": "hp.radiator.l", - "kind": "radiator", - "x": 0, - "y": 3, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.l" - }, - { - "id": "hp.engine.rear", - "kind": "engine", - "x": 1, - "y": 3, - "w": 2, - "h": 2, - "modelNodeId": "hp.engine.rear" - }, - { - "id": "hp.radiator.r", - "kind": "radiator", - "x": 3, - "y": 3, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.r" - } - ], - "joints": [ - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -1.5272, - 0.0, - -2.4115 - ], - "max": [ - 1.4934, - 1.792, - 2.3554 - ], - "size": [ - 3.0206, - 1.792, - 4.7669 - ] - }, - "triCount": 16840 -} diff --git a/assets/vehicles/ironclad/vehicle.cc b/assets/vehicles/ironclad/vehicle.cc deleted file mode 100644 index b121484..0000000 Binary files a/assets/vehicles/ironclad/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/jackal/jackal.glb b/assets/vehicles/jackal/jackal.glb deleted file mode 100644 index 73444df..0000000 Binary files a/assets/vehicles/jackal/jackal.glb and /dev/null differ diff --git a/assets/vehicles/jackal/manifest.json b/assets/vehicles/jackal/manifest.json deleted file mode 100644 index fc9934c..0000000 --- a/assets/vehicles/jackal/manifest.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "jackal", - "name": "Jackal", - "class": "Light Wheeled Dune Buggy", - "plane": "Dorsal", - "gridWidth": 3, - "gridHeight": 4, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.weapon.roof", - "kind": "weapon", - "x": 1, - "y": 0, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.roof" - }, - { - "id": "hp.engine.rear", - "kind": "engine", - "x": 1, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.rear" - }, - { - "id": "hp.radiator.rear", - "kind": "radiator", - "x": 2, - "y": 3, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.rear" - } - ], - "joints": [ - { - "id": "joint.steer_fl", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -32.0, - "max": 32.0 - }, - { - "id": "joint.wheel_fl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.steer_fr", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -32.0, - "max": 32.0 - }, - { - "id": "joint.wheel_fr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - } - ], - "bounds": { - "min": [ - -0.9778, - 0.0, - -1.5461 - ], - "max": [ - 0.9778, - 1.5457, - 1.705 - ], - "size": [ - 1.9556, - 1.5457, - 3.2511 - ] - }, - "triCount": 16068 -} diff --git a/assets/vehicles/jackal/vehicle.cc b/assets/vehicles/jackal/vehicle.cc deleted file mode 100644 index 86378ee..0000000 Binary files a/assets/vehicles/jackal/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/kestrel/kestrel.glb b/assets/vehicles/kestrel/kestrel.glb deleted file mode 100644 index 8ad6ddb..0000000 Binary files a/assets/vehicles/kestrel/kestrel.glb and /dev/null differ diff --git a/assets/vehicles/kestrel/manifest.json b/assets/vehicles/kestrel/manifest.json deleted file mode 100644 index cd3739f..0000000 --- a/assets/vehicles/kestrel/manifest.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "kestrel", - "name": "Kestrel", - "class": "Light Scout Biped", - "plane": "Coronal", - "gridWidth": 5, - "gridHeight": 5, - "mask": [ - false, - false, - true, - false, - false, - false, - true, - true, - true, - false, - false, - true, - true, - true, - true, - false, - true, - true, - true, - true, - false, - true, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.dorsal", - "kind": "weapon", - "x": 2, - "y": 0, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.dorsal" - }, - { - "id": "hp.armor.chest", - "kind": "armor", - "x": 2, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.armor.chest" - }, - { - "id": "hp.radiator.back", - "kind": "radiator", - "x": 1, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 2, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.weapon.arm_r", - "kind": "weapon", - "x": 4, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_r" - } - ], - "joints": [ - { - "id": "joint.torso_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -90.0, - "max": 90.0 - }, - { - "id": "joint.arm_l_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - }, - { - "id": "joint.arm_r_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - } - ], - "bounds": { - "min": [ - -2.6628, - 0.0, - -2.0753 - ], - "max": [ - 2.6048, - 9.7815, - 2.378 - ], - "size": [ - 5.2676, - 9.7815, - 4.4533 - ] - }, - "triCount": 41382 -} diff --git a/assets/vehicles/kestrel/vehicle.cc b/assets/vehicles/kestrel/vehicle.cc deleted file mode 100644 index 231a8ed..0000000 Binary files a/assets/vehicles/kestrel/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/mammoth/mammoth.glb b/assets/vehicles/mammoth/mammoth.glb deleted file mode 100644 index 4747dd4..0000000 Binary files a/assets/vehicles/mammoth/mammoth.glb and /dev/null differ diff --git a/assets/vehicles/mammoth/manifest.json b/assets/vehicles/mammoth/manifest.json deleted file mode 100644 index c57615a..0000000 --- a/assets/vehicles/mammoth/manifest.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "mammoth", - "name": "Mammoth", - "class": "Heavy 8x8 Armored Fire Support Rig", - "plane": "Dorsal", - "gridWidth": 4, - "gridHeight": 6, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.armor.glacis", - "kind": "armor", - "x": 0, - "y": 0, - "w": 4, - "h": 1, - "modelNodeId": "hp.armor.glacis" - }, - { - "id": "hp.weapon.bow", - "kind": "weapon", - "x": 0, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.bow" - }, - { - "id": "hp.weapon.turret_l", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.turret_l" - }, - { - "id": "hp.weapon.turret_r", - "kind": "weapon", - "x": 2, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.turret_r" - }, - { - "id": "hp.armor.flanks", - "kind": "armor", - "x": 3, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.armor.flanks" - }, - { - "id": "hp.engine.rear", - "kind": "engine", - "x": 1, - "y": 3, - "w": 2, - "h": 2, - "modelNodeId": "hp.engine.rear" - }, - { - "id": "hp.radiator.l", - "kind": "radiator", - "x": 0, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.l" - }, - { - "id": "hp.radiator.r", - "kind": "radiator", - "x": 3, - "y": 4, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.r" - } - ], - "joints": [ - { - "id": "joint.steer_fl1", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -28.0, - "max": 28.0 - }, - { - "id": "joint.wheel_fl1", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.steer_fr1", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -28.0, - "max": 28.0 - }, - { - "id": "joint.wheel_fr1", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.steer_fl2", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -28.0, - "max": 28.0 - }, - { - "id": "joint.wheel_fl2", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.steer_fr2", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -28.0, - "max": 28.0 - }, - { - "id": "joint.wheel_fr2", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rl1", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rr1", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rl2", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rr2", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.turret_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -180.0, - "max": 180.0 - } - ], - "bounds": { - "min": [ - -1.46, - 0.0, - -2.64 - ], - "max": [ - 1.46, - 2.3467, - 3.2249 - ], - "size": [ - 2.92, - 2.3467, - 5.8649 - ] - }, - "triCount": 20512 -} diff --git a/assets/vehicles/mammoth/vehicle.cc b/assets/vehicles/mammoth/vehicle.cc deleted file mode 100644 index 00c244d..0000000 Binary files a/assets/vehicles/mammoth/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/manticore/manifest.json b/assets/vehicles/manticore/manifest.json deleted file mode 100644 index d47831b..0000000 --- a/assets/vehicles/manticore/manifest.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "manticore", - "name": "Manticore", - "class": "Heavy Quadruped Scorpion", - "plane": "Dorsal", - "gridWidth": 5, - "gridHeight": 5, - "mask": [ - true, - true, - true, - true, - true, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - false, - true, - true, - true, - false, - true, - false, - true, - false, - true - ], - "hardpoints": [ - { - "id": "hp.weapon.chin", - "kind": "weapon", - "x": 2, - "y": 0, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.chin" - }, - { - "id": "hp.radiator.flank_l", - "kind": "radiator", - "x": 1, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.flank_l" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 2, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.radiator.flank_r", - "kind": "radiator", - "x": 3, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.flank_r" - }, - { - "id": "hp.weapon.l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.l" - }, - { - "id": "hp.weapon.r", - "kind": "weapon", - "x": 4, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.r" - }, - { - "id": "hp.armor.prow", - "kind": "armor", - "x": 2, - "y": 3, - "w": 1, - "h": 1, - "modelNodeId": "hp.armor.prow" - } - ], - "joints": [ - { - "id": "joint.tail_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -75.0, - "max": 75.0 - }, - { - "id": "joint.tail_s1", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -60.0, - "max": 60.0 - }, - { - "id": "joint.tail_s2", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -75.0, - "max": 15.0 - }, - { - "id": "joint.tail_s3", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -80.0, - "max": 10.0 - }, - { - "id": "joint.tail_elev", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -40.0, - "max": 30.0 - } - ], - "bounds": { - "min": [ - -3.4374, - 0.0, - -4.5621 - ], - "max": [ - 3.4358, - 6.5001, - 4.547 - ], - "size": [ - 6.8732, - 6.5001, - 9.1091 - ] - }, - "triCount": 33517 -} diff --git a/assets/vehicles/manticore/manticore.glb b/assets/vehicles/manticore/manticore.glb deleted file mode 100644 index 01bad1c..0000000 Binary files a/assets/vehicles/manticore/manticore.glb and /dev/null differ diff --git a/assets/vehicles/manticore/vehicle.cc b/assets/vehicles/manticore/vehicle.cc deleted file mode 100644 index d740b50..0000000 Binary files a/assets/vehicles/manticore/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/mule/manifest.json b/assets/vehicles/mule/manifest.json deleted file mode 100644 index a646428..0000000 --- a/assets/vehicles/mule/manifest.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "mule", - "name": "Mule", - "class": "Medium 6x6 Armored Gun Truck", - "plane": "Dorsal", - "gridWidth": 3, - "gridHeight": 5, - "mask": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true - ], - "hardpoints": [ - { - "id": "hp.armor.front", - "kind": "armor", - "x": 0, - "y": 0, - "w": 3, - "h": 1, - "modelNodeId": "hp.armor.front" - }, - { - "id": "hp.radiator.left", - "kind": "radiator", - "x": 0, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.left" - }, - { - "id": "hp.engine.front", - "kind": "engine", - "x": 1, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.front" - }, - { - "id": "hp.radiator.right", - "kind": "radiator", - "x": 2, - "y": 1, - "w": 1, - "h": 2, - "modelNodeId": "hp.radiator.right" - }, - { - "id": "hp.weapon.cab", - "kind": "weapon", - "x": 0, - "y": 3, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.cab" - }, - { - "id": "hp.weapon.bed_main", - "kind": "weapon", - "x": 1, - "y": 3, - "w": 2, - "h": 2, - "modelNodeId": "hp.weapon.bed_main" - } - ], - "joints": [ - { - "id": "joint.steer_fl", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -30.0, - "max": 30.0 - }, - { - "id": "joint.wheel_fl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.steer_fr", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -30.0, - "max": 30.0 - }, - { - "id": "joint.wheel_fr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_ml", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_mr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rl", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - }, - { - "id": "joint.wheel_rr", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -360.0, - "max": 360.0 - } - ], - "bounds": { - "min": [ - -1.1938, - 0.0, - -2.4067 - ], - "max": [ - 1.1938, - 2.0889, - 2.46 - ], - "size": [ - 2.3876, - 2.0889, - 4.8667 - ] - }, - "triCount": 13772 -} diff --git a/assets/vehicles/mule/mule.glb b/assets/vehicles/mule/mule.glb deleted file mode 100644 index cd2d258..0000000 Binary files a/assets/vehicles/mule/mule.glb and /dev/null differ diff --git a/assets/vehicles/mule/vehicle.cc b/assets/vehicles/mule/vehicle.cc deleted file mode 100644 index 043b8f1..0000000 Binary files a/assets/vehicles/mule/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/paladin/manifest.json b/assets/vehicles/paladin/manifest.json deleted file mode 100644 index dd6df5f..0000000 --- a/assets/vehicles/paladin/manifest.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "paladin", - "name": "Paladin", - "class": "Heavy Assault Biped", - "plane": "Coronal", - "gridWidth": 6, - "gridHeight": 7, - "mask": [ - false, - false, - true, - true, - false, - false, - false, - true, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - true, - true, - true, - false, - false, - true, - false, - false, - true, - false, - false, - true, - false, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.sh_l", - "kind": "weapon", - "x": 1, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.sh_l" - }, - { - "id": "hp.armor.torso", - "kind": "armor", - "x": 2, - "y": 1, - "w": 2, - "h": 1, - "modelNodeId": "hp.armor.torso" - }, - { - "id": "hp.weapon.sh_r", - "kind": "weapon", - "x": 4, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.sh_r" - }, - { - "id": "hp.weapon.arm_l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_l" - }, - { - "id": "hp.engine.chest", - "kind": "engine", - "x": 2, - "y": 2, - "w": 2, - "h": 2, - "modelNodeId": "hp.engine.chest" - }, - { - "id": "hp.weapon.arm_r", - "kind": "weapon", - "x": 5, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_r" - }, - { - "id": "hp.radiator.back_l", - "kind": "radiator", - "x": 1, - "y": 4, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_l" - }, - { - "id": "hp.armor.legs", - "kind": "armor", - "x": 2, - "y": 4, - "w": 2, - "h": 1, - "modelNodeId": "hp.armor.legs" - }, - { - "id": "hp.radiator.back_r", - "kind": "radiator", - "x": 4, - "y": 4, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_r" - } - ], - "joints": [ - { - "id": "joint.torso_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -90.0, - "max": 90.0 - }, - { - "id": "joint.arm_l_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -40.0, - "max": 70.0 - }, - { - "id": "joint.arm_r_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -40.0, - "max": 70.0 - } - ], - "bounds": { - "min": [ - -4.4388, - -0.0, - -1.5109 - ], - "max": [ - 4.4387, - 11.3161, - 2.4514 - ], - "size": [ - 8.8775, - 11.3161, - 3.9623 - ] - }, - "triCount": 36463 -} diff --git a/assets/vehicles/paladin/paladin.glb b/assets/vehicles/paladin/paladin.glb deleted file mode 100644 index 5a0c2ab..0000000 Binary files a/assets/vehicles/paladin/paladin.glb and /dev/null differ diff --git a/assets/vehicles/paladin/vehicle.cc b/assets/vehicles/paladin/vehicle.cc deleted file mode 100644 index 460cd19..0000000 Binary files a/assets/vehicles/paladin/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/raptor/manifest.json b/assets/vehicles/raptor/manifest.json deleted file mode 100644 index 29f6590..0000000 --- a/assets/vehicles/raptor/manifest.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "raptor", - "name": "Raptor", - "class": "Medium Theropod Biped", - "plane": "Coronal", - "gridWidth": 5, - "gridHeight": 6, - "mask": [ - false, - false, - true, - false, - false, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - false, - true, - false, - true, - false, - true, - false, - true, - false, - false, - true, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.radiator.sh_l", - "kind": "radiator", - "x": 1, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.sh_l" - }, - { - "id": "hp.radiator.sh_r", - "kind": "radiator", - "x": 3, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.sh_r" - }, - { - "id": "hp.weapon.arm_l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_l" - }, - { - "id": "hp.engine.chest", - "kind": "engine", - "x": 2, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.chest" - }, - { - "id": "hp.weapon.arm_r", - "kind": "weapon", - "x": 4, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_r" - } - ], - "joints": [ - { - "id": "joint.arm_l_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 45.0 - }, - { - "id": "joint.arm_r_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 45.0 - } - ], - "bounds": { - "min": [ - -2.3822, - 0.0, - -4.422 - ], - "max": [ - 2.3822, - 6.9873, - 4.5553 - ], - "size": [ - 4.7644, - 6.9873, - 8.9773 - ] - }, - "triCount": 36156 -} diff --git a/assets/vehicles/raptor/raptor.glb b/assets/vehicles/raptor/raptor.glb deleted file mode 100644 index cd874db..0000000 Binary files a/assets/vehicles/raptor/raptor.glb and /dev/null differ diff --git a/assets/vehicles/raptor/vehicle.cc b/assets/vehicles/raptor/vehicle.cc deleted file mode 100644 index faa2ec4..0000000 Binary files a/assets/vehicles/raptor/vehicle.cc and /dev/null differ diff --git a/assets/vehicles/spectre/manifest.json b/assets/vehicles/spectre/manifest.json deleted file mode 100644 index 83922ea..0000000 --- a/assets/vehicles/spectre/manifest.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "schema": "rtd.vehicle.manifest.v1", - "id": "spectre", - "name": "Spectre", - "class": "Medium Recon/Skirmisher Biped", - "plane": "Coronal", - "gridWidth": 5, - "gridHeight": 6, - "mask": [ - false, - true, - false, - false, - false, - false, - true, - true, - true, - false, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - false, - true, - false, - false, - true, - false, - true, - false - ], - "hardpoints": [ - { - "id": "hp.weapon.shoulder_l", - "kind": "weapon", - "x": 1, - "y": 0, - "w": 1, - "h": 1, - "modelNodeId": "hp.weapon.shoulder_l" - }, - { - "id": "hp.armor.torso", - "kind": "armor", - "x": 2, - "y": 1, - "w": 1, - "h": 1, - "modelNodeId": "hp.armor.torso" - }, - { - "id": "hp.weapon.arm_l", - "kind": "weapon", - "x": 0, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_l" - }, - { - "id": "hp.radiator.back_l", - "kind": "radiator", - "x": 1, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_l" - }, - { - "id": "hp.engine.core", - "kind": "engine", - "x": 2, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.engine.core" - }, - { - "id": "hp.radiator.back_r", - "kind": "radiator", - "x": 3, - "y": 2, - "w": 1, - "h": 1, - "modelNodeId": "hp.radiator.back_r" - }, - { - "id": "hp.weapon.arm_r", - "kind": "weapon", - "x": 4, - "y": 2, - "w": 1, - "h": 2, - "modelNodeId": "hp.weapon.arm_r" - } - ], - "joints": [ - { - "id": "joint.torso_yaw", - "axis": [ - 0.0, - 1.0, - 0.0 - ], - "min": -90.0, - "max": 90.0 - }, - { - "id": "joint.arm_l_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - }, - { - "id": "joint.arm_r_pitch", - "axis": [ - 1.0, - 0.0, - 0.0 - ], - "min": -45.0, - "max": 60.0 - } - ], - "bounds": { - "min": [ - -3.4467, - -0.0, - -2.442 - ], - "max": [ - 3.8332, - 8.9891, - 3.6426 - ], - "size": [ - 7.2799, - 8.9891, - 6.0846 - ] - }, - "triCount": 40696 -} diff --git a/assets/vehicles/spectre/spectre.glb b/assets/vehicles/spectre/spectre.glb deleted file mode 100644 index e271f7d..0000000 Binary files a/assets/vehicles/spectre/spectre.glb and /dev/null differ diff --git a/assets/vehicles/spectre/vehicle.cc b/assets/vehicles/spectre/vehicle.cc deleted file mode 100644 index 831aaeb..0000000 Binary files a/assets/vehicles/spectre/vehicle.cc and /dev/null differ diff --git a/client/ArenaRenderer.cs b/client/ArenaRenderer.cs deleted file mode 100644 index de6c848..0000000 --- a/client/ArenaRenderer.cs +++ /dev/null @@ -1,1319 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; -using RustToDust.Ymir; - -namespace RustToDust.Client; - -/// -/// Renders the 3D arena entities from : -/// cover ruins, shrinking Safe Circle ring, unified for all -/// 15 Brokkr vehicles/mechs, mounted gear, salvage drops, and tumbling debris, -/// live 1-draw-call combat scars, and pooled multi-class weapon VFX. -/// -public partial class ArenaRenderer : Node3D -{ - private static readonly Color OlivePaint = Color.FromHtml("#9bb06a"); - private static readonly Color TouristGold = Color.FromHtml("#e6b838"); - private static readonly Color CyanSalvage = Color.FromHtml("#44d9e8"); - private static readonly Color CoverRust = Color.FromHtml("#4d433b"); - private static readonly Color BermDark = Color.FromHtml("#2c2723"); - - private sealed class ActorVisual - { - public required VehicleVisualInstance Visual; - public MeshInstance3D? HaloMesh; - public StandardMaterial3D? HaloMat; - public MeshInstance3D? LaserMesh; - public SpectatorStance? LastHaloStance; - public bool LastLaserVisible; - public float RigDtAccum; - public int RigSkipFrames; - } - - private sealed class DropVisualEntry - { - public VehicleVisualInstance? ChassisVisual; - public ArrayMesh? GearMesh; - public Vector3 GearScale; - public float GearYOffset; - public bool IsModule; - public bool IsImperial; - public float BaseY; - public int TileX; - public int TileZ; - public int TileVersion; - } - - private enum VfxShape - { - Beam, - Sphere, - Ring - } - - private struct TransientVfx - { - public VfxShape Shape; - public Vector3 Position; - public Vector3 Velocity; - public Basis BaseRotation; - public Vector3 StartScale; - public Vector3 EndScale; - public Color ColorStart; - public Color ColorEnd; - public float Age; - public float Lifetime; - } - - private const int MaxVfxBeams = 512; - private const int MaxVfxSpheres = 512; - private const int MaxVfxRings = 128; - - private VehicleAssetCache _assetCache = null!; - private Node3D _staticGroup = null!; - private Node3D _actorsGroup = null!; - private MultiMeshPartPool _partPool = null!; - private PomDecalPool _pomDecals = null!; - private DebrisSystem _debris = null!; - private MeshInstance3D _safeRingMesh = null!; - private ImmediateMesh _safeRingImm = null!; - - // Pooled GroundDrop beacons & pillars - private MultiMesh _dropDiscMm = null!; - private MultiMeshInstance3D _dropDiscMmi = null!; - private MultiMesh _dropPillarMm = null!; - private MultiMeshInstance3D _dropPillarMmi = null!; - - // Pooled weapon VFX MultiMeshes - private ShaderMaterial _vfxMat = null!; - private MultiMesh _vfxBeamMm = null!; - private MultiMeshInstance3D _vfxBeamMmi = null!; - private MultiMesh _vfxSphereMm = null!; - private MultiMeshInstance3D _vfxSphereMmi = null!; - private MultiMesh _vfxRingMm = null!; - private MultiMeshInstance3D _vfxRingMmi = null!; - private readonly List _transientVfx = new(256); - private long _lastVfxHitId; - private int _lastSpawnedTracerId; - private uint _vfxRng = 0x51F15A3Du; - - private readonly Dictionary _contenderVisuals = new(); - private readonly Dictionary _spectatorVisuals = new(); - private readonly Dictionary _dropVisuals = new(); - - private StandardMaterial3D _safeRingMat = null!; - private StandardMaterial3D _coverMat = null!; - private StandardMaterial3D _bermMat = null!; - private StandardMaterial3D _imperialBeaconMat = null!; - private MatchState? _builtForState; - private float _lastSafeRingRadius = -1f; - - public VehicleAssetCache AssetCache => _assetCache; - public DebrisSystem Debris => _debris; - internal MultiMeshPartPool PartPool => _partPool; - internal PomDecalPool PomDecals => _pomDecals; - - public VehicleVisualInstance? GetContenderVisual(int contenderId) => - _contenderVisuals.TryGetValue(contenderId, out var vis) ? vis.Visual : null; - - public VehicleVisualInstance? GetSpectatorVisual(int spectatorId) => - _spectatorVisuals.TryGetValue(spectatorId, out var vis) ? vis.Visual : null; - - internal float? GetSpectatorHaloLocalY(int spectatorId) => - _spectatorVisuals.TryGetValue(spectatorId, out var vis) && vis.HaloMesh is not null - ? vis.HaloMesh.Position.Y - : null; - - internal int ActiveDropVisualCount => _dropVisuals.Count; - internal int LastSpawnedTracerId => _lastSpawnedTracerId; - internal int TransientVfxCount => _transientVfx.Count; - - internal bool TryGetChassisDropVisual(int dropId, out VehicleVisualInstance? visual, out float baseY) - { - if (_dropVisuals.TryGetValue(dropId, out var entry) && entry.ChassisVisual is not null) - { - visual = entry.ChassisVisual; - baseY = entry.BaseY; - return true; - } - visual = null; - baseY = 0f; - return false; - } - - public override void _Ready() - { - _assetCache = new VehicleAssetCache(); - - _staticGroup = new Node3D { Name = "StaticArena" }; - _actorsGroup = new Node3D { Name = "Actors" }; - _partPool = new MultiMeshPartPool { Name = "PartPool" }; - _pomDecals = new PomDecalPool { Name = "PomDecals" }; - _debris = new DebrisSystem { Name = "Debris" }; - AddChild(_staticGroup); - AddChild(_actorsGroup); - AddChild(_partPool); - AddChild(_pomDecals); - AddChild(_debris); - - _coverMat = new StandardMaterial3D { AlbedoColor = CoverRust, Roughness = 0.88f, Metallic = 0.25f }; - _bermMat = new StandardMaterial3D { AlbedoColor = BermDark, Roughness = 0.94f, Metallic = 0.1f }; - _imperialBeaconMat = new StandardMaterial3D - { - AlbedoColor = new Color(TouristGold.R, TouristGold.G, TouristGold.B, 0.82f), - Roughness = 0.35f, - Metallic = 0.8f, - EmissionEnabled = true, - Emission = TouristGold, - EmissionEnergyMultiplier = 1.4f, - Transparency = BaseMaterial3D.TransparencyEnum.Alpha - }; - - _safeRingImm = new ImmediateMesh(); - _safeRingMat = new StandardMaterial3D - { - AlbedoColor = new Color(1.0f, 0.38f, 0.14f, 0.78f), - EmissionEnabled = true, - Emission = new Color(1.0f, 0.32f, 0.08f), - EmissionEnergyMultiplier = 1.6f, - Transparency = BaseMaterial3D.TransparencyEnum.Alpha, - ShadingMode = BaseMaterial3D.ShadingModeEnum.Unshaded, - CullMode = BaseMaterial3D.CullModeEnum.Disabled - }; - _safeRingMesh = new MeshInstance3D - { - Name = "SafeRing", - Mesh = _safeRingImm, - MaterialOverride = _safeRingMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off - }; - AddChild(_safeRingMesh); - - InitPooledVfxAndBeacons(); - } - - private void InitPooledVfxAndBeacons() - { - var vfxShader = new Shader - { - Code = """ - shader_type spatial; - render_mode unshaded, cull_back, blend_mix, depth_draw_never; - varying vec4 v_inst; - void vertex() { - v_inst = INSTANCE_CUSTOM; - } - void fragment() { - ALBEDO = max(v_inst.rgb, vec3(0.0)); - ALPHA = clamp(v_inst.a, 0.0, 1.0); - } - """ - }; - _vfxMat = new ShaderMaterial { Shader = vfxShader }; - - _vfxBeamMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = new BoxMesh { Size = Vector3.One }, - InstanceCount = MaxVfxBeams, - VisibleInstanceCount = 0 - }; - _vfxBeamMmi = new MultiMeshInstance3D - { - Name = "VfxBeams", - Multimesh = _vfxBeamMm, - MaterialOverride = _vfxMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 220f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_vfxBeamMmi); - - _vfxSphereMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = new SphereMesh { Radius = 0.5f, Height = 1.0f, RadialSegments = 10, Rings = 5 }, - InstanceCount = MaxVfxSpheres, - VisibleInstanceCount = 0 - }; - _vfxSphereMmi = new MultiMeshInstance3D - { - Name = "VfxSpheres", - Multimesh = _vfxSphereMm, - MaterialOverride = _vfxMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 220f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_vfxSphereMmi); - - _vfxRingMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = new TorusMesh { InnerRadius = 0.38f, OuterRadius = 0.50f, Rings = 16, RingSegments = 6 }, - InstanceCount = MaxVfxRings, - VisibleInstanceCount = 0 - }; - _vfxRingMmi = new MultiMeshInstance3D - { - Name = "VfxRings", - Multimesh = _vfxRingMm, - MaterialOverride = _vfxMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 220f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_vfxRingMmi); - - _dropDiscMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = new CylinderMesh { TopRadius = 0.72f, BottomRadius = 0.85f, Height = 0.14f, RadialSegments = 14 }, - InstanceCount = 128, - VisibleInstanceCount = 0 - }; - _dropDiscMmi = new MultiMeshInstance3D - { - Name = "DropBeaconDiscs", - Multimesh = _dropDiscMm, - MaterialOverride = _vfxMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 180f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_dropDiscMmi); - - _dropPillarMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = false, - Mesh = new CylinderMesh { TopRadius = 0.06f, BottomRadius = 0.22f, Height = 5.5f, RadialSegments = 8 }, - InstanceCount = 64, - VisibleInstanceCount = 0 - }; - _dropPillarMmi = new MultiMeshInstance3D - { - Name = "ImperialDropPillars", - Multimesh = _dropPillarMm, - MaterialOverride = _imperialBeaconMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 180f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_dropPillarMmi); - } - - public override void _ExitTree() - { - _assetCache?.Dispose(); - } - - public void Sync(ArenaSession session, float elapsedSeconds, float dt = 1f / 60f) - { - var state = session.State; - if (!ReferenceEquals(_builtForState, state)) - { - RebuildStaticArena(state); - ClearDynamicVisuals(); - _builtForState = state; - } - - Camera3D? cam = GetViewport()?.GetCamera3D(); - bool hasCam = cam is not null && cam.IsInsideTree(); - Vector3 camPos = hasCam ? cam!.GlobalPosition : Vector3.Zero; - - _partPool.BeginFrame(hasCam ? cam : null); - UpdateSafeCircleRing(state.Terrain, state.Spectators.SafeRadius); - SyncContenders(session, dt, hasCam, camPos); - SyncSpectators(session, elapsedSeconds, dt, hasCam, camPos); - SyncGroundDrops(state, elapsedSeconds, hasCam, camPos); - _debris.Step(dt, state.Terrain); - _debris.SubmitToPool(_partPool); - _partPool.EndFrame(); - - _pomDecals.Sync(session, dt, ResolveEntityVisual); - SyncWeaponVfx(state, dt); - } - - private VehicleVisualInstance? ResolveEntityVisual(bool isContender, int id) => - isContender ? GetContenderVisual(id) : GetSpectatorVisual(id); - - private void RebuildStaticArena(MatchState state) - { - ClearChildren(_staticGroup); - - var quadArrays = new SurfaceTool[4]; - for (int i = 0; i < state.ArenaCoverBoxes.Count; i++) - { - var b = state.ArenaCoverBoxes[i]; - int qIdx = (b.X >= 0f ? 1 : 0) | (b.Z >= 0f ? 2 : 0); - var st = quadArrays[qIdx]; - if (st is null) - { - st = new SurfaceTool(); - st.Begin(Mesh.PrimitiveType.Triangles); - quadArrays[qIdx] = st; - } - AppendBoxToSurfaceTool(st, new Vector3(b.X, b.Y, b.Z), new Vector3(b.HalfX * 2f, b.HalfY * 2f, b.HalfZ * 2f)); - } - - for (int q = 0; q < 4; q++) - { - if (quadArrays[q] is null) continue; - quadArrays[q].GenerateNormals(); - _staticGroup.AddChild(new MeshInstance3D - { - Name = $"CoverQuad_{q}", - Mesh = quadArrays[q].Commit(), - MaterialOverride = _coverMat - }); - } - - if (state.ArenaBoundaryBoxes.Count > 0) - { - var bermSt = new SurfaceTool(); - bermSt.Begin(Mesh.PrimitiveType.Triangles); - for (int i = 0; i < state.ArenaBoundaryBoxes.Count; i++) - { - var b = state.ArenaBoundaryBoxes[i]; - AppendBoxToSurfaceTool(bermSt, new Vector3(b.X, b.Y, b.Z), new Vector3(b.HalfX * 2f, b.HalfY * 2f, b.HalfZ * 2f)); - } - bermSt.GenerateNormals(); - _staticGroup.AddChild(new MeshInstance3D - { - Name = "BoundaryBerms", - Mesh = bermSt.Commit(), - MaterialOverride = _bermMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off - }); - } - } - - private static void AppendBoxToSurfaceTool(SurfaceTool st, Vector3 center, Vector3 size) - { - Vector3 h = size * 0.5f; - Vector3 p000 = center + new Vector3(-h.X, -h.Y, -h.Z); - Vector3 p100 = center + new Vector3( h.X, -h.Y, -h.Z); - Vector3 p110 = center + new Vector3( h.X, h.Y, -h.Z); - Vector3 p010 = center + new Vector3(-h.X, h.Y, -h.Z); - Vector3 p001 = center + new Vector3(-h.X, -h.Y, h.Z); - Vector3 p101 = center + new Vector3( h.X, -h.Y, h.Z); - Vector3 p111 = center + new Vector3( h.X, h.Y, h.Z); - Vector3 p011 = center + new Vector3(-h.X, h.Y, h.Z); - - AddQuad(st, p001, p101, p111, p011); - AddQuad(st, p100, p000, p010, p110); - AddQuad(st, p101, p100, p110, p111); - AddQuad(st, p000, p001, p011, p010); - AddQuad(st, p011, p111, p110, p010); - AddQuad(st, p000, p100, p101, p001); - } - - private static void AddQuad(SurfaceTool st, Vector3 a, Vector3 b, Vector3 c, Vector3 d) - { - st.AddVertex(a); st.AddVertex(b); st.AddVertex(c); - st.AddVertex(a); st.AddVertex(c); st.AddVertex(d); - } - - private void ClearDynamicVisuals() - { - ClearChildren(_actorsGroup); - _partPool.ClearAll(); - _pomDecals.ClearAll(); - _debris.ClearAll(); - _transientVfx.Clear(); - _lastVfxHitId = 0; - _lastSpawnedTracerId = 0; - _contenderVisuals.Clear(); - _spectatorVisuals.Clear(); - foreach (var kv in _dropVisuals) - { - if (kv.Value.ChassisVisual is { } cv && GodotObject.IsInstanceValid(cv.Root)) - { - cv.Root.QueueFree(); - } - } - _dropVisuals.Clear(); - _lastSafeRingRadius = -1f; - } - - private void UpdateSafeCircleRing(TerrainField terrain, float safeRadius) - { - if (_lastSafeRingRadius >= 0f && MathF.Abs(safeRadius - _lastSafeRingRadius) < 0.15f) - { - return; - } - _lastSafeRingRadius = safeRadius; - - _safeRingImm.ClearSurfaces(); - _safeRingImm.SurfaceBegin(Mesh.PrimitiveType.Triangles); - - const int segments = 160; - const float halfThick = 1.1f; - float rInner = MathF.Max(2f, safeRadius - halfThick); - float rOuter = safeRadius + halfThick; - - for (int i = 0; i < segments; i++) - { - float a0 = (i / (float)segments) * MathF.Tau; - float a1 = ((i + 1) / (float)segments) * MathF.Tau; - float c0 = MathF.Cos(a0), s0 = MathF.Sin(a0); - float c1 = MathF.Cos(a1), s1 = MathF.Sin(a1); - - float x0i = c0 * rInner, z0i = s0 * rInner; - float x0o = c0 * rOuter, z0o = s0 * rOuter; - float x1i = c1 * rInner, z1i = s1 * rInner; - float x1o = c1 * rOuter, z1o = s1 * rOuter; - - float y0 = terrain.SampleHeight(c0 * safeRadius, s0 * safeRadius) + 0.42f; - float y1 = terrain.SampleHeight(c1 * safeRadius, s1 * safeRadius) + 0.42f; - - var p0i = new Vector3(x0i, y0, z0i); - var p0o = new Vector3(x0o, y0, z0o); - var p1i = new Vector3(x1i, y1, z1i); - var p1o = new Vector3(x1o, y1, z1o); - - _safeRingImm.SurfaceAddVertex(p0i); - _safeRingImm.SurfaceAddVertex(p0o); - _safeRingImm.SurfaceAddVertex(p1o); - - _safeRingImm.SurfaceAddVertex(p0i); - _safeRingImm.SurfaceAddVertex(p1o); - _safeRingImm.SurfaceAddVertex(p1i); - } - - _safeRingImm.SurfaceEnd(); - } - - private void SyncContenders(ArenaSession session, float dt, bool hasCam, Vector3 camPos) - { - var view = session.World.View; - var contenders = session.State.Contenders; - - for (int i = 0; i < contenders.Count; i++) - { - var c = contenders[i]; - if (!c.Alive) - { - if (_contenderVisuals.TryGetValue(c.Id, out var deadVis)) - { - deadVis.Visual.SyncDamageAndHeat(c.Grid, _debris, Vector3.Zero); - deadVis.Visual.Root.Visible = false; - } - continue; - } - - if (!_contenderVisuals.TryGetValue(c.Id, out var vis) || vis.Visual.ChassisId != c.Grid.Spec.Id) - { - if (vis is not null) - { - vis.Visual.Root.QueueFree(); - } - - var role = c.IsPlayer ? VehicleVisualRole.Player : VehicleVisualRole.Rival; - var instance = VehicleVisualInstance.Create(_assetCache, c.Grid.Spec.Id, role); - instance.SyncMountedGear(c.Grid); - _actorsGroup.AddChild(instance.Root); - vis = new ActorVisual { Visual = instance }; - _contenderVisuals[c.Id] = vis; - } - - vis.Visual.Root.Visible = true; - - Vector3 pos; - Vector3 vel; - var body = session.GetContenderBody(c.Id); - if (body is { } h) - { - int lane = h.Lane; - pos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - vel = new Vector3(view.VelocityX[lane], view.VelocityY[lane], view.VelocityZ[lane]); - vis.Visual.Root.Transform = new Transform3D(new Basis(q), pos); - } - else - { - pos = new Vector3(c.X, c.Y, c.Z); - vel = Vector3.Zero; - vis.Visual.Root.Position = pos; - vis.Visual.Root.Rotation = new Vector3(0f, c.Yaw, 0f); - } - - float distSq = hasCam ? pos.DistanceSquaredTo(camPos) : 0f; - bool castShadows = !hasCam || c.IsPlayer || distSq <= 75f * 75f; - bool useStaticLod = hasCam && !c.IsPlayer && !vis.Visual.HasAnyStrippedCell && - (vis.Visual.IsStaticLod ? distSq > 64f * 64f : distSq > 68f * 68f); - vis.Visual.SetLodState(useStaticLod, castShadows); - - vis.Visual.SyncMountedGear(c.Grid); - if (!useStaticLod) - { - if (!hasCam || c.IsPlayer || distSq <= 55f * 55f) - { - vis.RigDtAccum = 0f; - vis.RigSkipFrames = 0; - VehicleRigAnimator.Update(vis.Visual, c, vel, vis.Visual.Root.Basis, dt); - } - else - { - vis.RigDtAccum += dt; - vis.RigSkipFrames++; - if (vis.RigSkipFrames >= 2) - { - VehicleRigAnimator.Update(vis.Visual, c, vel, vis.Visual.Root.Basis, vis.RigDtAccum); - vis.RigDtAccum = 0f; - vis.RigSkipFrames = 0; - } - } - } - vis.Visual.SyncDamageAndHeat(c.Grid, _debris, vel); - vis.Visual.SubmitToPool(_partPool); - } - } - - private void SyncSpectators(ArenaSession session, float elapsedSeconds, float dt, bool hasCam, Vector3 camPos) - { - var view = session.World.View; - var specs = session.State.Spectators.Spectators; - - for (int i = 0; i < specs.Count; i++) - { - var s = specs[i]; - if (!s.Alive) - { - if (_spectatorVisuals.TryGetValue(s.Id, out var deadVis)) - { - deadVis.Visual.SyncDamageAndHeat(s.Grid, _debris, Vector3.Zero); - deadVis.Visual.Root.Visible = false; - if (deadVis.LaserMesh is not null) - { - deadVis.LaserMesh.Visible = false; - } - } - continue; - } - - if (!_spectatorVisuals.TryGetValue(s.Id, out var vis)) - { - var role = s.Tier switch - { - SpectatorTier.Tourist => VehicleVisualRole.SpectatorTourist, - SpectatorTier.Patron => VehicleVisualRole.SpectatorPatron, - _ => VehicleVisualRole.SpectatorExemplar - }; - var instance = VehicleVisualInstance.Create( - _assetCache, - s.Grid.Spec.Id, - role, - visualScale: 1f, - targetHalfHeight: s.Grid.Spec.HalfHeight); - instance.SyncMountedGear(s.Grid); - _actorsGroup.AddChild(instance.Root); - vis = CreateSpectatorVisualWrapper(instance); - _spectatorVisuals[s.Id] = vis; - } - - vis.Visual.Root.Visible = true; - var body = session.GetSpectatorBody(s.Id); - Vector3 specPos; - Vector3 vel; - if (body is { } h) - { - int lane = h.Lane; - specPos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - vel = new Vector3(view.VelocityX[lane], view.VelocityY[lane], view.VelocityZ[lane]); - vis.Visual.Root.Transform = new Transform3D(new Basis(q), specPos); - } - else - { - specPos = new Vector3(s.X, s.Y, s.Z); - vel = Vector3.Zero; - vis.Visual.Root.Position = specPos; - vis.Visual.Root.Rotation = new Vector3(0f, s.Yaw, 0f); - } - - vis.Visual.SyncDamageAndHeat(s.Grid, _debris, vel); - - bool useStaticLod = false; - bool castShadows = true; - if (hasCam) - { - float distSq = specPos.DistanceSquaredTo(camPos); - castShadows = distSq <= 70f * 70f; - if (!vis.Visual.HasAnyStrippedCell) - { - useStaticLod = vis.Visual.IsStaticLod ? distSq > 50f * 50f : distSq > 55f * 55f; - } - } - vis.Visual.SetLodState(useStaticLod, castShadows); - - ContenderState? target = s.TargetContenderId.HasValue && - s.TargetContenderId.Value >= 0 && - s.TargetContenderId.Value < session.State.Contenders.Count - ? session.State.Contenders[s.TargetContenderId.Value] - : null; - - if (!useStaticLod) - { - float aimYawWorld = s.Yaw; - float aimPitchDeg = 0f; - if (s.Stance != SpectatorStance.Neutral && target is { Alive: true }) - { - float tdx = target.X - s.X; - float tdz = target.Z - s.Z; - if (tdx * tdx + tdz * tdz > 0.01f) - { - aimYawWorld = MathF.Atan2(tdx, tdz); - float horiz = MathF.Sqrt(tdx * tdx + tdz * tdz); - float eyeY = MatchRules.GetObserverEyeY(s.Y, s.Grid.Spec.HalfHeight); - float targetY = MatchRules.GetTargetAimY(target.Y, target.Grid.Spec.HalfHeight); - aimPitchDeg = Mathf.RadToDeg(MathF.Atan2(targetY - eyeY, horiz)); - } - } - - var rigInput = new VehicleRigDriveInput( - Velocity: vel, - Yaw: s.Yaw, - AimYawWorld: aimYawWorld, - AimPitchDeg: aimPitchDeg, - SteerCmd: 0f, - ThrottleCmd: vel.Length() > 0.5f ? 0.6f : 0f, - VerticalThrottleCmd: 0f, - EngineThermalPerf: s.Grid.ComputeEngineThermalPerformance(), - DeltaTime: dt, - IsGrounded: !s.Grid.Spec.IsVtol); - - vis.Visual.SyncMountedGear(s.Grid); - VehicleRigAnimator.Update(vis.Visual, in rigInput, vis.Visual.Root.Basis); - } - - vis.Visual.SubmitToPool(_partPool); - - // Status halo - if (vis.HaloMat is not null && vis.HaloMesh is not null && - (vis.LastHaloStance != s.Stance || s.Stance == SpectatorStance.Provoked)) - { - vis.LastHaloStance = s.Stance; - if (s.Stance == SpectatorStance.Neutral) - { - vis.HaloMat.AlbedoColor = new Color(0.88f, 0.65f, 0.25f, 0.45f); - vis.HaloMat.Emission = new Color(0.88f, 0.65f, 0.25f); - vis.HaloMat.EmissionEnergyMultiplier = 0.6f; - } - else if (s.Stance == SpectatorStance.Cleared) - { - vis.HaloMat.AlbedoColor = new Color(1.0f, 0.22f, 0.18f, 0.9f); - vis.HaloMat.Emission = new Color(1.0f, 0.2f, 0.15f); - vis.HaloMat.EmissionEnergyMultiplier = 2.0f; - } - else - { - float pulse = 1.6f + 1.2f * MathF.Sin(elapsedSeconds * 10f); - vis.HaloMat.AlbedoColor = new Color(1.0f, 0.1f, 0.1f, 0.95f); - vis.HaloMat.Emission = new Color(1.0f, 0.08f, 0.08f); - vis.HaloMat.EmissionEnergyMultiplier = pulse; - } - } - - // Lock-on laser beam when Cleared or Provoked - if (vis.LaserMesh is not null) - { - if (s.Stance != SpectatorStance.Neutral && s.HasTargetLos && target is { Alive: true }) - { - Vector3 start = specPos + new Vector3(0f, s.Grid.Spec.HalfHeight * 0.7f, 0f); - Vector3 end = new Vector3(target.X, target.Y + target.Grid.Spec.HalfHeight * 0.3f, target.Z); - float dist = start.DistanceTo(end); - if (dist > 0.5f) - { - if (!vis.LastLaserVisible) - { - vis.LastLaserVisible = true; - vis.LaserMesh.Visible = true; - } - vis.LaserMesh.GlobalPosition = (start + end) * 0.5f; - Vector3 dir = (end - start).Normalized(); - Vector3 up = MathF.Abs(dir.Dot(Vector3.Up)) > 0.99f ? Vector3.Right : Vector3.Up; - vis.LaserMesh.LookAt(end, up); - vis.LaserMesh.Scale = new Vector3(1f, 1f, dist); - } - else if (vis.LastLaserVisible) - { - vis.LastLaserVisible = false; - vis.LaserMesh.Visible = false; - } - } - else if (vis.LastLaserVisible) - { - vis.LastLaserVisible = false; - vis.LaserMesh.Visible = false; - } - } - } - } - - private ActorVisual CreateSpectatorVisualWrapper(VehicleVisualInstance instance) - { - float haloY = MathF.Max(2.4f, instance.ComputeMountedMaxY() + 1.15f); - var haloMat = new StandardMaterial3D - { - ShadingMode = BaseMaterial3D.ShadingModeEnum.Unshaded, - EmissionEnabled = true, - Transparency = BaseMaterial3D.TransparencyEnum.Alpha - }; - var halo = new MeshInstance3D - { - Mesh = new CylinderMesh { TopRadius = 2.4f, BottomRadius = 2.4f, Height = 0.1f, RadialSegments = 16 }, - MaterialOverride = haloMat, - Position = new Vector3(0f, haloY, 0f), - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off - }; - instance.Root.AddChild(halo); - - var laserMat = new StandardMaterial3D - { - AlbedoColor = new Color(1f, 0.15f, 0.15f, 0.85f), - EmissionEnabled = true, - Emission = new Color(1f, 0.12f, 0.1f), - EmissionEnergyMultiplier = 2.2f, - ShadingMode = BaseMaterial3D.ShadingModeEnum.Unshaded, - Transparency = BaseMaterial3D.TransparencyEnum.Alpha - }; - var laser = new MeshInstance3D - { - Mesh = new BoxMesh { Size = new Vector3(0.08f, 0.08f, 1.0f) }, - MaterialOverride = laserMat, - Visible = false, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off - }; - _actorsGroup.AddChild(laser); - - return new ActorVisual - { - Visual = instance, - HaloMesh = halo, - HaloMat = haloMat, - LaserMesh = laser - }; - } - - private void SyncGroundDrops(MatchState state, float elapsedSeconds, bool hasCam, Vector3 camPos) - { - int discCount = 0; - int pillarCount = 0; - - for (int i = 0; i < state.GroundDrops.Count; i++) - { - var d = state.GroundDrops[i]; - if (d.PickedUp) - { - if (_dropVisuals.TryGetValue(d.Id, out var pickedEntry)) - { - if (pickedEntry.ChassisVisual is { } cv && GodotObject.IsInstanceValid(cv.Root)) - { - cv.Root.GetParent()?.RemoveChild(cv.Root); - cv.Root.QueueFree(); - } - _dropVisuals.Remove(d.Id); - } - continue; - } - - if (!_dropVisuals.TryGetValue(d.Id, out var entry)) - { - TerrainField.WorldToTile(d.X, d.Z, out int tx, out int tz); - float baseY = state.Terrain.SampleHeight(d.X, d.Z); - if (d.Module is { } mod) - { - VehicleVisualInstance.ResolveDropGearVisual(_assetCache, mod, out ArrayMesh gMesh, out Vector3 gScale, out float gYOff); - entry = new DropVisualEntry - { - IsModule = true, - IsImperial = mod.IsImperial, - GearMesh = gMesh, - GearScale = gScale * 1.45f, - GearYOffset = gYOff * 1.45f + 0.35f, - BaseY = baseY, - TileX = tx, - TileZ = tz, - TileVersion = state.Terrain.TileVersions[tx, tz] - }; - } - else - { - var spec = d.Chassis!; - var vis = VehicleVisualInstance.Create( - _assetCache, - spec.Id, - VehicleVisualRole.SalvageDrop, - visualScale: 0.72f); - vis.Root.Position = new Vector3(d.X, baseY + spec.HalfHeight * 0.72f, d.Z); - _actorsGroup.AddChild(vis.Root); - entry = new DropVisualEntry - { - IsModule = false, - ChassisVisual = vis, - BaseY = baseY, - TileX = tx, - TileZ = tz, - TileVersion = state.Terrain.TileVersions[tx, tz] - }; - } - _dropVisuals[d.Id] = entry; - } - else - { - int ver = state.Terrain.TileVersions[entry.TileX, entry.TileZ]; - if (ver != entry.TileVersion) - { - entry.TileVersion = ver; - entry.BaseY = state.Terrain.SampleHeight(d.X, d.Z); - if (entry.ChassisVisual is { } cv) - { - cv.Root.Position = new Vector3(d.X, entry.BaseY + d.Chassis!.HalfHeight * 0.72f, d.Z); - } - } - } - - float distSq = hasCam ? new Vector3(d.X, entry.BaseY, d.Z).DistanceSquaredTo(camPos) : 0f; - if (entry.IsModule) - { - if (hasCam && distSq > 240f * 240f) - { - continue; - } - - float bob = MathF.Sin(elapsedSeconds * 2.5f + d.Id) * 0.12f; - float yaw = elapsedSeconds * 0.9f + d.Id; - - if (entry.GearMesh is not null) - { - var gearXf = new Transform3D( - new Basis(Vector3.Up, yaw) * Basis.FromScale(entry.GearScale), - new Vector3(d.X, entry.BaseY + bob + entry.GearYOffset, d.Z)); - _partPool.Submit(entry.GearMesh, in gearXf, new Color(0f, 0f, 5f, 1f), wantsShadow: false); - } - - if (discCount < _dropDiscMm.InstanceCount) - { - _dropDiscMm.SetInstanceTransform(discCount, new Transform3D(Basis.Identity, new Vector3(d.X, entry.BaseY + bob + 0.08f, d.Z))); - Color dCol = entry.IsImperial - ? new Color(TouristGold.R * 2.2f, TouristGold.G * 2.2f, TouristGold.B * 2.2f, 0.82f) - : new Color(OlivePaint.R * 1.5f, OlivePaint.G * 1.5f, OlivePaint.B * 1.5f, 0.72f); - _dropDiscMm.SetInstanceCustomData(discCount, dCol); - discCount++; - } - - if (entry.IsImperial && pillarCount < _dropPillarMm.InstanceCount) - { - _dropPillarMm.SetInstanceTransform(pillarCount, new Transform3D(Basis.Identity, new Vector3(d.X, entry.BaseY + bob + 2.9f, d.Z))); - pillarCount++; - } - } - else if (entry.ChassisVisual is { } cv) - { - bool useFarLod = false; - bool castShadows = true; - if (hasCam) - { - useFarLod = cv.IsStaticLod ? distSq > 50f * 50f : distSq > 55f * 55f; - castShadows = distSq <= 70f * 70f; - } - cv.SetLodState(useFarLod, castShadows); - cv.SubmitToPool(_partPool); - - if (discCount < _dropDiscMm.InstanceCount) - { - _dropDiscMm.SetInstanceTransform(discCount, new Transform3D(Basis.FromScale(new Vector3(2.4f, 1f, 2.4f)), new Vector3(d.X, entry.BaseY + 0.06f, d.Z))); - _dropDiscMm.SetInstanceCustomData(discCount, new Color(CyanSalvage.R * 1.8f, CyanSalvage.G * 1.8f, CyanSalvage.B * 1.8f, 0.65f)); - discCount++; - } - } - } - - _dropDiscMm.VisibleInstanceCount = discCount; - _dropDiscMmi.Visible = discCount > 0; - _dropPillarMm.VisibleInstanceCount = pillarCount; - _dropPillarMmi.Visible = pillarCount > 0; - } - - private void SyncWeaponVfx(MatchState state, float dt) - { - float stepDt = float.IsFinite(dt) && dt > 0f ? Math.Clamp(dt, 0f, 0.05f) : 0f; - - // 1. Advance existing transient bursts (sparks, muzzle flashes, flak puffs, detonations, shockwaves) - for (int i = _transientVfx.Count - 1; i >= 0; i--) - { - TransientVfx v = _transientVfx[i]; - v.Age += stepDt; - if (v.Age >= v.Lifetime) - { - _transientVfx.RemoveAt(i); - continue; - } - v.Position += v.Velocity * stepDt; - _transientVfx[i] = v; - } - - // 2. Spawn impact VFX once per HitFeedbackEvent - var hits = state.HitEvents; - for (int i = 0; i < hits.Count; i++) - { - var ev = hits[i]; - if (ev.EventId <= _lastVfxHitId) - { - continue; - } - _lastVfxHitId = ev.EventId; - SpawnHitVfx(in ev); - } - - // 3. Emit pooled beams/tracers + new-shot muzzle/smoke puffs from active TracerEvents - int beamIdx = 0; - int sphereIdx = 0; - int ringIdx = 0; - - var tracers = state.Tracers; - for (int i = 0; i < tracers.Count; i++) - { - var t = tracers[i]; - bool isNewShot = t.Id > _lastSpawnedTracerId; - if (isNewShot) - { - _lastSpawnedTracerId = t.Id; - } - - Vector3 start = new(t.StartX, t.StartY, t.StartZ); - Vector3 end = new(t.EndX, t.EndY, t.EndZ); - Vector3 delta = end - start; - float dist = delta.Length(); - if (dist < 0.1f) - { - continue; - } - - Vector3 dir = delta / dist; - Vector3 up = MathF.Abs(dir.Dot(Vector3.Up)) > 0.95f ? Vector3.Right : Vector3.Up; - Basis lookBasis = Basis.LookingAt(dir, up); - Vector3 mid = (start + end) * 0.5f; - - switch (t.WeaponClass) - { - case WeaponVisualClass.KineticLight: - { - bool isPd = string.Equals(t.WeaponId, "pd_flak", StringComparison.Ordinal); - Color col = isPd - ? new Color(2.8f, 1.35f, 0.35f, 0.94f) - : new Color(2.6f, 2.35f, 1.15f, 0.92f); - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(isPd ? 0.09f : 0.06f, isPd ? 0.09f : 0.06f, dist), col); - if (isNewShot) - { - EmitMuzzleFlash(start, 0.32f, new Color(2.8f, 2.0f, 0.7f, 0.95f)); - } - break; - } - - case WeaponVisualClass.Autocannon: - { - // Thick dual-tone amber-orange heavy bolt (outer jacket + bright core) - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(0.20f, 0.20f, dist), new Color(2.5f, 0.85f, 0.14f, 0.72f)); - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(0.08f, 0.08f, dist), new Color(3.6f, 2.7f, 1.3f, 0.98f)); - if (isNewShot) - { - EmitMuzzleFlash(start, 0.68f, new Color(3.2f, 1.65f, 0.35f, 0.98f)); - } - break; - } - - case WeaponVisualClass.Explosive: - { - bool isRecoilless = string.Equals(t.WeaponId, "recoilless", StringComparison.Ordinal); - float w = isRecoilless ? 0.22f : 0.12f; - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(w, w, dist), new Color(3.2f, 1.25f, 0.25f, 0.96f)); - if (isNewShot) - { - EmitMuzzleFlash(start, isRecoilless ? 1.15f : 0.58f, new Color(3.4f, 1.55f, 0.35f, 0.98f)); - int puffs = isRecoilless ? 4 : 2; - for (int p = 1; p <= puffs; p++) - { - float frac = p / (float)(puffs + 1); - Vector3 smokePos = start.Lerp(end, frac); - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = smokePos, - Velocity = new Vector3(0f, 1.4f, 0f), - BaseRotation = Basis.Identity, - StartScale = Vector3.One * (isRecoilless ? 0.45f : 0.28f), - EndScale = Vector3.One * (isRecoilless ? 1.55f : 0.85f), - ColorStart = new Color(0.62f, 0.56f, 0.48f, 0.65f), - ColorEnd = new Color(0.45f, 0.40f, 0.36f, 0.0f), - Age = 0f, - Lifetime = isRecoilless ? 0.48f : 0.32f - }); - } - } - break; - } - - case WeaponVisualClass.ThermalBeam: - { - bool isLance = string.Equals(t.WeaponId, "gilded_lance", StringComparison.Ordinal); - float outerW = isLance ? 0.34f : 0.20f; - float coreW = isLance ? 0.13f : 0.08f; - Color outerCol = isLance - ? new Color(2.8f, 1.95f, 0.45f, 0.62f) - : new Color(0.45f, 2.35f, 2.95f, 0.65f); - Color coreCol = isLance - ? new Color(1.6f, 3.6f, 3.8f, 0.98f) - : new Color(2.4f, 3.4f, 3.8f, 0.98f); - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(outerW, outerW, dist), outerCol); - EmitBeam(ref beamIdx, lookBasis, mid, new Vector3(coreW, coreW, dist), coreCol); - if (isNewShot) - { - EmitMuzzleFlash(start, isLance ? 0.85f : 0.52f, outerCol with { A = 0.95f }); - } - break; - } - } - } - - // 4. Write active transient VFX into MultiMesh buffers - for (int i = 0; i < _transientVfx.Count; i++) - { - TransientVfx v = _transientVfx[i]; - float frac = Math.Clamp(v.Age / MathF.Max(0.01f, v.Lifetime), 0f, 1f); - Vector3 sc = v.StartScale.Lerp(v.EndScale, frac); - Color col = v.ColorStart.Lerp(v.ColorEnd, frac); - Transform3D xf = new(v.BaseRotation * Basis.FromScale(sc), v.Position); - - if (v.Shape == VfxShape.Beam && beamIdx < MaxVfxBeams) - { - _vfxBeamMm.SetInstanceTransform(beamIdx, xf); - _vfxBeamMm.SetInstanceCustomData(beamIdx, col); - beamIdx++; - } - else if (v.Shape == VfxShape.Sphere && sphereIdx < MaxVfxSpheres) - { - _vfxSphereMm.SetInstanceTransform(sphereIdx, xf); - _vfxSphereMm.SetInstanceCustomData(sphereIdx, col); - sphereIdx++; - } - else if (v.Shape == VfxShape.Ring && ringIdx < MaxVfxRings) - { - _vfxRingMm.SetInstanceTransform(ringIdx, xf); - _vfxRingMm.SetInstanceCustomData(ringIdx, col); - ringIdx++; - } - } - - _vfxBeamMm.VisibleInstanceCount = beamIdx; - _vfxBeamMmi.Visible = beamIdx > 0; - _vfxSphereMm.VisibleInstanceCount = sphereIdx; - _vfxSphereMmi.Visible = sphereIdx > 0; - _vfxRingMm.VisibleInstanceCount = ringIdx; - _vfxRingMmi.Visible = ringIdx > 0; - } - - private void SpawnHitVfx(in HitFeedbackEvent ev) - { - Vector3 pos = new(ev.HitX, ev.HitY, ev.HitZ); - Vector3 normal = new(ev.NormalX, ev.NormalY, ev.NormalZ); - if (normal.LengthSquared() < 1e-4f) normal = Vector3.Up; - normal = normal.Normalized(); - - if (ev.IsAirburst || (ev.WeaponClass == WeaponVisualClass.KineticLight && string.Equals(ev.WeaponId, "pd_flak", StringComparison.Ordinal))) - { - // Crisp dark-orange flak airburst puff + ember sparks - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = pos, - Velocity = Vector3.Zero, - BaseRotation = Basis.Identity, - StartScale = Vector3.One * 0.4f, - EndScale = Vector3.One * 2.3f, - ColorStart = new Color(2.4f, 0.72f, 0.14f, 0.92f), - ColorEnd = new Color(0.28f, 0.14f, 0.08f, 0.0f), - Age = 0f, - Lifetime = 0.28f - }); - SpawnSparkBurst(pos, normal, 4, new Color(3.0f, 1.5f, 0.35f, 0.98f), 11f); - return; - } - - switch (ev.WeaponClass) - { - case WeaponVisualClass.KineticLight: - SpawnSparkBurst(pos, normal, 3, new Color(3.2f, 2.6f, 1.1f, 0.98f), 9f); - break; - - case WeaponVisualClass.Autocannon: - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = pos + normal * 0.15f, - Velocity = normal * 2.2f, - BaseRotation = Basis.Identity, - StartScale = Vector3.One * 0.45f, - EndScale = Vector3.One * 1.55f, - ColorStart = new Color(1.5f, 0.95f, 0.55f, 0.85f), - ColorEnd = new Color(0.55f, 0.48f, 0.38f, 0.0f), - Age = 0f, - Lifetime = 0.26f - }); - SpawnSparkBurst(pos, normal, 4, new Color(3.2f, 1.85f, 0.55f, 0.98f), 12f); - break; - - case WeaponVisualClass.Explosive: - { - bool isRecoilless = string.Equals(ev.WeaponId, "recoilless", StringComparison.Ordinal); - float detSize = isRecoilless ? 4.4f : 2.1f; - float ringSize = isRecoilless ? 6.2f : 2.9f; - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = pos + normal * 0.25f, - Velocity = normal * 1.6f, - BaseRotation = Basis.Identity, - StartScale = Vector3.One * 0.6f, - EndScale = Vector3.One * detSize, - ColorStart = new Color(3.8f, 2.1f, 0.65f, 0.98f), - ColorEnd = new Color(0.85f, 0.28f, 0.08f, 0.0f), - Age = 0f, - Lifetime = isRecoilless ? 0.34f : 0.24f - }); - - Vector3 upRef = MathF.Abs(normal.Y) > 0.92f ? Vector3.Forward : Vector3.Up; - Vector3 right = upRef.Cross(normal).Normalized(); - Vector3 fwd = normal.Cross(right).Normalized(); - Basis ringBasis = new(right, normal, fwd); - AddTransient(new TransientVfx - { - Shape = VfxShape.Ring, - Position = pos + normal * 0.18f, - Velocity = Vector3.Zero, - BaseRotation = ringBasis, - StartScale = new Vector3(0.7f, 1.0f, 0.7f), - EndScale = new Vector3(ringSize, 0.4f, ringSize), - ColorStart = new Color(3.2f, 1.65f, 0.45f, 0.92f), - ColorEnd = new Color(1.4f, 0.55f, 0.20f, 0.0f), - Age = 0f, - Lifetime = isRecoilless ? 0.32f : 0.22f - }); - SpawnSparkBurst(pos, normal, isRecoilless ? 6 : 4, new Color(3.4f, 1.6f, 0.35f, 0.98f), 15f); - break; - } - - case WeaponVisualClass.ThermalBeam: - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = pos, - Velocity = Vector3.Zero, - BaseRotation = Basis.Identity, - StartScale = Vector3.One * 0.45f, - EndScale = Vector3.One * 1.65f, - ColorStart = new Color(1.6f, 3.4f, 3.8f, 0.95f), - ColorEnd = new Color(2.6f, 1.5f, 0.3f, 0.0f), - Age = 0f, - Lifetime = 0.22f - }); - SpawnSparkBurst(pos, normal, 5, new Color(2.0f, 3.2f, 3.6f, 0.98f), 13f); - break; - } - } - - private void SpawnSparkBurst(Vector3 pos, Vector3 normal, int count, Color color, float speed) - { - for (int i = 0; i < count; i++) - { - Vector3 rand = new(NextVfxSigned(), MathF.Abs(NextVfxSigned()) + 0.35f, NextVfxSigned()); - Vector3 dir = (normal * 0.8f + rand).Normalized(); - Vector3 up = MathF.Abs(dir.Dot(Vector3.Up)) > 0.95f ? Vector3.Right : Vector3.Up; - AddTransient(new TransientVfx - { - Shape = VfxShape.Beam, - Position = pos, - Velocity = dir * (speed * (0.65f + 0.7f * NextVfxFloat())), - BaseRotation = Basis.LookingAt(dir, up), - StartScale = new Vector3(0.05f, 0.05f, 0.55f), - EndScale = new Vector3(0.02f, 0.02f, 0.12f), - ColorStart = color, - ColorEnd = color with { A = 0f }, - Age = 0f, - Lifetime = 0.16f + 0.08f * NextVfxFloat() - }); - } - } - - private void EmitMuzzleFlash(Vector3 pos, float size, Color color) - { - AddTransient(new TransientVfx - { - Shape = VfxShape.Sphere, - Position = pos, - Velocity = Vector3.Zero, - BaseRotation = Basis.Identity, - StartScale = Vector3.One * size, - EndScale = Vector3.One * (size * 0.25f), - ColorStart = color, - ColorEnd = color with { A = 0f }, - Age = 0f, - Lifetime = 0.065f - }); - } - - private void EmitBeam(ref int beamIdx, Basis lookBasis, Vector3 mid, Vector3 scale, Color color) - { - if (beamIdx >= MaxVfxBeams) - { - return; - } - _vfxBeamMm.SetInstanceTransform(beamIdx, new Transform3D(lookBasis * Basis.FromScale(scale), mid)); - _vfxBeamMm.SetInstanceCustomData(beamIdx, color); - beamIdx++; - } - - private void AddTransient(in TransientVfx vfx) - { - if (_transientVfx.Count >= 512) - { - _transientVfx.RemoveAt(0); - } - _transientVfx.Add(vfx); - } - - private float NextVfxFloat() - { - uint x = _vfxRng; - x ^= x << 13; - x ^= x >> 17; - x ^= x << 5; - _vfxRng = x; - return (x & 0x00FFFFFFu) / 16777216f; - } - - private float NextVfxSigned() => NextVfxFloat() * 2f - 1f; - - private static void ClearChildren(Node parent) - { - for (int i = parent.GetChildCount() - 1; i >= 0; i--) - { - Node ch = parent.GetChild(i); - parent.RemoveChild(ch); - ch.QueueFree(); - } - } -} diff --git a/client/DebrisSystem.cs b/client/DebrisSystem.cs deleted file mode 100644 index 474bb6e..0000000 --- a/client/DebrisSystem.cs +++ /dev/null @@ -1,212 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -/// -/// Manages physically detached armor plates and sheared hardpoint gear as tumbling, -/// terrain-bouncing debris pieces submitted directly into -/// (zero per-piece Node3D/MeshInstance3D/StandardMaterial3D allocations). -/// -public partial class DebrisSystem : Node3D -{ - private const float Gravity = -20f; - private const float DefaultLifetime = 8.0f; - private const float FadeDuration = 2.0f; - private const int MaxActiveDebris = 256; - - private sealed class DebrisPiece - { - public required ArrayMesh Mesh; - public Vector3 Position; - public Basis Rotation; - public Vector3 Scale; - public Vector3 Velocity; - public Vector3 AngularVelocity; - public float RoleIndex; - public float Scorch; - public float HeatGlow; - public float Age; - public float Lifetime; - public bool Settled; - } - - private readonly List _pieces = new(); - private uint _rngState = 0x9E3779B9u; - - public int ActiveCount => _pieces.Count; - - public bool TryGetPiecePosition(int index, out Vector3 position) - { - if (index >= 0 && index < _pieces.Count) - { - position = _pieces[index].Position; - return true; - } - position = Vector3.Zero; - return false; - } - - public void ClearAll() - { - _pieces.Clear(); - } - - /// - /// Registers a detached rigid part or sheared gear mesh at its world transform - /// and launches it with an outward blast impulse and tumble. - /// - public void SpawnDetachedPart( - ArrayMesh mesh, - Transform3D worldXform, - Vector3 blastOriginWorld, - Vector3 inheritedVelocity, - float roleIndex, - float impulseScale = 1.0f, - bool applyScorch = true) - { - if (mesh is null || mesh.GetSurfaceCount() == 0) - { - return; - } - - while (_pieces.Count >= MaxActiveDebris) - { - _pieces.RemoveAt(0); - } - - Vector3 scale = worldXform.Basis.Scale; - if (!scale.IsFinite() || scale.LengthSquared() < 1e-6f) - { - scale = Vector3.One; - } - Basis rot = worldXform.Basis.Orthonormalized(); - - Vector3 outward = worldXform.Origin - blastOriginWorld; - outward.Y = 0f; - if (outward.LengthSquared() < 1e-4f) - { - float ang = NextFloat() * MathF.Tau; - outward = new Vector3(MathF.Cos(ang), 0f, MathF.Sin(ang)); - } - else - { - outward = outward.Normalized(); - } - - float horizSpeed = (4.2f + NextFloat() * 4.8f) * impulseScale; - float upSpeed = (4.0f + NextFloat() * 4.5f) * impulseScale; - Vector3 vel = inheritedVelocity * 0.45f + outward * horizSpeed + Vector3.Up * upSpeed; - - Vector3 angVel = new( - (NextFloat() * 2f - 1f) * 7.5f, - (NextFloat() * 2f - 1f) * 7.5f, - (NextFloat() * 2f - 1f) * 7.5f); - - _pieces.Add(new DebrisPiece - { - Mesh = mesh, - Position = worldXform.Origin, - Rotation = rot, - Scale = scale, - Velocity = vel, - AngularVelocity = angVel, - RoleIndex = roleIndex, - Scorch = applyScorch ? 0.85f : 0.15f, - HeatGlow = applyScorch ? 0.45f : 0f, - Age = 0f, - Lifetime = DefaultLifetime, - Settled = false - }); - } - - public void Step(float dt, TerrainField terrain) - { - if (dt <= 0f || !float.IsFinite(dt)) - { - return; - } - float stepDt = Math.Clamp(dt, 0f, 0.05f); - - for (int i = _pieces.Count - 1; i >= 0; i--) - { - DebrisPiece p = _pieces[i]; - p.Age += stepDt; - if (p.Age >= p.Lifetime) - { - _pieces.RemoveAt(i); - continue; - } - - if (p.HeatGlow > 0f) - { - p.HeatGlow = MathF.Max(0f, p.HeatGlow - stepDt * 0.22f); - } - - if (!p.Settled) - { - p.Velocity += new Vector3(0f, Gravity * stepDt, 0f); - Vector3 pos = p.Position + p.Velocity * stepDt; - - Basis rot = p.Rotation; - float spinLen = p.AngularVelocity.Length(); - if (spinLen > 1e-4f) - { - rot = (new Basis(p.AngularVelocity / spinLen, spinLen * stepDt) * rot).Orthonormalized(); - } - - float floorY = terrain.SampleHeight(pos.X, pos.Z) + 0.10f; - if (pos.Y <= floorY) - { - pos.Y = floorY; - if (p.Velocity.Y < -1.4f) - { - p.Velocity = new Vector3( - p.Velocity.X * 0.62f, - -p.Velocity.Y * 0.32f, - p.Velocity.Z * 0.62f); - p.AngularVelocity *= 0.55f; - } - else - { - p.Velocity = Vector3.Zero; - p.AngularVelocity = Vector3.Zero; - p.Settled = true; - } - } - - p.Position = pos; - p.Rotation = rot; - } - } - } - - public void SubmitToPool(MultiMeshPartPool pool) - { - for (int i = 0; i < _pieces.Count; i++) - { - DebrisPiece p = _pieces[i]; - float remaining = p.Lifetime - p.Age; - float alpha = remaining < FadeDuration - ? Math.Clamp(remaining / FadeDuration, 0.02f, 1f) - : 1f; - float sinkY = remaining < FadeDuration ? (1f - alpha) * 0.65f : 0f; - Vector3 scale = p.Scale * (remaining < FadeDuration ? (0.35f + 0.65f * alpha) : 1f); - Transform3D xf = new(p.Rotation * Basis.FromScale(scale), p.Position - new Vector3(0f, sinkY, 0f)); - Color custom = new(p.Scorch, p.HeatGlow, p.RoleIndex, alpha); - pool.Submit(p.Mesh, in xf, in custom, wantsShadow: false); - } - } - - private float NextFloat() - { - uint x = _rngState; - x ^= x << 13; - x ^= x >> 17; - x ^= x << 5; - _rngState = x; - return (x & 0x00FFFFFFu) / 16777216f; - } -} diff --git a/client/Hud.cs b/client/Hud.cs deleted file mode 100644 index e1fa5d5..0000000 --- a/client/Hud.cs +++ /dev/null @@ -1,1164 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; -using RustToDust.Ymir; - -namespace RustToDust.Client; - -/// -/// Rust to Dust industrial HUD: -/// - Top-Left: Chassis badge (DORSAL/CORONAL), Core HP, Speed, Contenders Alive, Safe Circle status, Pickup prompt. -/// - Top-Right: Tactical Radar (Safe Circle, RadarSignature-scaled Spectator Wall, lock lines, contenders, salvage). -/// - Bottom-Left: Live clickable Aetheria Hardpoint & Heat Schematic + Cargo Salvage Rack (Tab expands Garage details). -/// - Bottom-Center: Imperial Broadcast Chyron (Weksa commentary). -/// -public partial class Hud : CanvasLayer -{ - private static readonly Color BgDark = Color.FromHtml("#131613"); - private static readonly Color BgInner = Color.FromHtml("#1b1f1b"); - private static readonly Color BorderCol = Color.FromHtml("#3e4638"); - private static readonly Color OliveCol = Color.FromHtml("#9bb06a"); - private static readonly Color OrangeCol = Color.FromHtml("#e08a4a"); - private static readonly Color TextLight = Color.FromHtml("#e4dfd2"); - private static readonly Color TextMuted = Color.FromHtml("#989487"); - private static readonly Color CyanCol = Color.FromHtml("#44d9e8"); - private static readonly Color GoldCol = Color.FromHtml("#e6b838"); - private static readonly Color RedCol = Color.FromHtml("#d93829"); - - private readonly Func _getSession; - private readonly Action _onEquipCargo; - private readonly Func _getCameraYaw; - - private Label _chassisHeader = null!; - private Label _planeBadge = null!; - private ProgressBar _coreHpBar = null!; - private Label _coreHpLabel = null!; - private Label _statsLabel = null!; - private Label _safeLabel = null!; - private Label _detectionLabel = null!; - private Label _promptLabel = null!; - private Label _controlsHint = null!; - - private RadarWidget _radar = null!; - private CrosshairOverlay _crosshair = null!; - private InventoryGridControl _schematic = null!; - private Label _hoverLabel = null!; - private VBoxContainer _cargoList = null!; - private Label _cargoHeader = null!; - private Label _garageDetails = null!; - private ChromePanel _topLeftPanel = null!; - private ChromePanel _topRightPanel = null!; - private ChromePanel _bottomLeftPanel = null!; - private ChromePanel _chyronPanel = null!; - - private VBoxContainer _chyronBox = null!; - private readonly Label[] _chyronLabels = new Label[3]; - private BroadcastFeed? _lastBroadcastFeed; - private long _lastChyronVersion = -1; - private ChromePanel _outcomeBanner = null!; - private Label _outcomeLabel = null!; - - private int _selectedCargoIndex = -1; - private int _lastCargoHash = -1; - private bool _garageExpanded; - - public Hud(Func getSession, Action onEquipCargo, Func? getCameraYaw = null) - { - _getSession = getSession; - _onEquipCargo = onEquipCargo; - _getCameraYaw = getCameraYaw ?? (() => 0f); - Layer = 10; - } - - public bool GarageExpanded => _garageExpanded; - public InventoryGridControl Schematic => _schematic; - internal int ActiveHitArcCount => _crosshair.ActiveHitArcCount; - internal void PushTestHitArc(float sourceX, float sourceZ, WeaponVisualClass weaponClass) => - _crosshair.PushTestHitArc(sourceX, sourceZ, weaponClass); - internal Rect2 BottomLeftPanelRect => _bottomLeftPanel.GetGlobalRect(); - internal Rect2 ChyronPanelRect => _chyronPanel.GetGlobalRect(); - - public IEnumerable GetChromeMaterials() - { - yield return _topLeftPanel.ChromeMaterial; - yield return _topRightPanel.ChromeMaterial; - yield return _bottomLeftPanel.ChromeMaterial; - yield return _chyronPanel.ChromeMaterial; - yield return _outcomeBanner.ChromeMaterial; - } - - public void ToggleGarage() - { - _garageExpanded = !_garageExpanded; - _garageDetails.Visible = _garageExpanded; - _schematic.CustomMinimumSize = _garageExpanded ? new Vector2(198f, 208f) : new Vector2(180f, 188f); - _schematic.QueueRedraw(); - } - - public override void _Process(double delta) - { - _crosshair?.Advance((float)delta); - } - - public override void _Ready() - { - BuildCrosshair(); - BuildTopLeft(); - BuildTopRightRadar(); - BuildBottomLeftSchematic(); - BuildBottomCenterChyron(); - BuildOutcomeBanner(); - } - - public bool IsPointerOverInteractiveHud(Vector2 screenPos) - { - return (_topLeftPanel.Visible && _topLeftPanel.GetGlobalRect().HasPoint(screenPos)) - || (_topRightPanel.Visible && _topRightPanel.GetGlobalRect().HasPoint(screenPos)) - || (_bottomLeftPanel.Visible && _bottomLeftPanel.GetGlobalRect().HasPoint(screenPos)) - || (_chyronPanel.Visible && _chyronPanel.GetGlobalRect().HasPoint(screenPos)) - || (_chyronBox.Visible && _chyronBox.GetGlobalRect().HasPoint(screenPos)) - || (_outcomeBanner.Visible && _outcomeBanner.GetGlobalRect().HasPoint(screenPos)); - } - - public bool HasPanelOverlapOrClip(Vector2 viewportSize) - { - var panels = new[] { _topLeftPanel, _topRightPanel, _bottomLeftPanel, _chyronPanel }; - var bounds = new Rect2(Vector2.Zero, viewportSize + new Vector2(1f, 1f)); - for (int i = 0; i < panels.Length; i++) - { - if (!panels[i].Visible) continue; - var ri = panels[i].GetGlobalRect(); - if (!bounds.Encloses(ri)) - { - return true; - } - for (int j = i + 1; j < panels.Length; j++) - { - if (!panels[j].Visible) continue; - if (ri.Intersects(panels[j].GetGlobalRect())) - { - return true; - } - } - } - return false; - } - - public void Sync(ArenaSession session) - { - var state = session.State; - var player = state.Player; - - // Top-Left Status - _chassisHeader.Text = player.Grid.Spec.Name.ToUpperInvariant(); - bool isCoronal = player.Grid.Spec.Plane == GridPlane.Coronal; - _planeBadge.Text = isCoronal ? "CORONAL" : "DORSAL"; - _planeBadge.Modulate = isCoronal ? CyanCol : OliveCol; - - _coreHpBar.MaxValue = Math.Max(1f, player.Grid.MaxCoreHp); - _coreHpBar.Value = Math.Max(0f, player.Grid.CoreHp); - _coreHpLabel.Text = $"CORE {player.Grid.CoreHp:F0} / {player.Grid.MaxCoreHp:F0}"; - - int aliveCount = 0; - for (int i = 0; i < state.Contenders.Count; i++) - { - if (state.Contenders[i].Alive) aliveCount++; - } - if (player.Grid.Spec.IsVtol) - { - float agl = MathF.Max(0f, player.Y - player.Grid.Spec.HalfHeight - state.Terrain.SampleHeight(player.X, player.Z)); - _statsLabel.Text = $"SPD {player.Speed:F1} m/s | ALT {agl:F1}m | ALIVE {aliveCount} / {state.Contenders.Count} | KILLS {player.Kills}"; - _controlsHint.Text = "WASD Fly | Space/C Climb/Descend | Mouse Aim | LMB Fire | E Bolt/Swap | Tab Garage"; - } - else - { - _statsLabel.Text = $"SPD {player.Speed:F1} m/s | ALIVE {aliveCount} / {state.Contenders.Count} | KILLS {player.Kills}"; - _controlsHint.Text = "WASD Drive | Mouse Aim | LMB Fire | E Bolt/Swap | Tab Garage | Wheel Zoom"; - } - - float distCenter = MathF.Sqrt(player.X * player.X + player.Z * player.Z); - float outside = distCenter - state.Spectators.SafeRadius; - int cleared = state.Spectators.CountClearedFor(player.Id); - int provoked = state.Spectators.CountProvokedFor(player.Id); - - if (outside <= 0f) - { - _safeLabel.Text = $"RING SAFE ({-outside:F0}m margin)" + (provoked > 0 ? $" • {provoked} PROVOKED!" : ""); - _safeLabel.Modulate = provoked > 0 ? OrangeCol : OliveCol; - } - else - { - _safeLabel.Text = $"OUTSIDE +{outside:F0}m — {cleared} CLEARED" + (provoked > 0 ? $" / {provoked} PROVOKED!" : "!"); - _safeLabel.Modulate = RedCol; - } - - if (state.PlayerDetectedByCount > 0) - { - _detectionLabel.Text = $"DETECTED BY {state.PlayerDetectedByCount}"; - _detectionLabel.Modulate = RedCol; - } - else - { - _detectionLabel.Text = "CONCEALED (TERRAIN)"; - _detectionLabel.Modulate = OliveCol; - } - - _promptLabel.Text = BuildInteractionPrompt(state, player); - _promptLabel.Visible = !string.IsNullOrEmpty(_promptLabel.Text); - - // Crosshair + Heat Arc + Directional Incoming Hit Arcs - _crosshair.SetState(state, player, _getCameraYaw()); - _crosshair.QueueRedraw(); - - // Radar (heading-up with camera yaw) - _radar.SetState(state, _getCameraYaw()); - _radar.QueueRedraw(); - - // Schematic + Cargo - _schematic.SetGrid(player.Grid, _selectedCargoIndex); - SyncCargoButtons(player.Grid); - - if (_garageExpanded) - { - _garageDetails.Text = BuildGarageDetails(player.Grid); - } - - // Broadcast Chyron - SyncBroadcastChyron(state.Broadcast); - - // Outcome - if (state.Phase == MatchPhase.Victory) - { - _outcomeBanner.Visible = true; - _outcomeBanner.ChromeMaterial.SetShaderParameter("accent_color", OliveCol); - _outcomeLabel.Text = "VICTORY — LAST RIG STANDING\n[R] New Drop"; - _outcomeLabel.Modulate = OliveCol; - } - else if (state.Phase == MatchPhase.Defeat) - { - _outcomeBanner.Visible = true; - _outcomeBanner.ChromeMaterial.SetShaderParameter("accent_color", RedCol); - _outcomeLabel.Text = "CHASSIS DESTROYED\n[R] Redeploy"; - _outcomeLabel.Modulate = RedCol; - } - else - { - _outcomeBanner.Visible = false; - } - } - - private void BuildCrosshair() - { - _crosshair = new CrosshairOverlay { Name = "Crosshair" }; - _crosshair.SetAnchorsPreset(Control.LayoutPreset.FullRect); - _crosshair.MouseFilter = Control.MouseFilterEnum.Ignore; - AddChild(_crosshair); - } - - private void BuildTopLeft() - { - var panel = CreateStyledPanel(OliveCol); - _topLeftPanel = panel; - panel.AnchorLeft = 0f; - panel.AnchorTop = 0f; - panel.OffsetLeft = 14f; - panel.OffsetTop = 14f; - panel.CustomMinimumSize = new Vector2(360f, 0f); - AddChild(panel); - - var vbox = new VBoxContainer { Theme = null }; - vbox.AddThemeConstantOverride("separation", 5); - panel.AddChild(vbox); - - var headRow = new HBoxContainer(); - headRow.AddThemeConstantOverride("separation", 10); - vbox.AddChild(headRow); - - _chassisHeader = new Label { Text = "DUNE BUGGY", SizeFlagsHorizontal = Control.SizeFlags.ExpandFill }; - _chassisHeader.AddThemeColorOverride("font_color", TextLight); - _chassisHeader.AddThemeFontSizeOverride("font_size", 17); - headRow.AddChild(_chassisHeader); - - _planeBadge = new Label { Text = "DORSAL" }; - _planeBadge.AddThemeFontSizeOverride("font_size", 13); - headRow.AddChild(_planeBadge); - - var hpRow = new HBoxContainer(); - hpRow.AddThemeConstantOverride("separation", 8); - vbox.AddChild(hpRow); - - _coreHpBar = new ProgressBar - { - ShowPercentage = false, - SizeFlagsHorizontal = Control.SizeFlags.ExpandFill, - CustomMinimumSize = new Vector2(180f, 16f) - }; - var barBg = new StyleBoxFlat { BgColor = BgInner, BorderColor = BorderCol }; - barBg.SetBorderWidthAll(1); - var barFill = new StyleBoxFlat { BgColor = OliveCol }; - _coreHpBar.AddThemeStyleboxOverride("background", barBg); - _coreHpBar.AddThemeStyleboxOverride("fill", barFill); - hpRow.AddChild(_coreHpBar); - - _coreHpLabel = new Label { Text = "CORE 100 / 100" }; - _coreHpLabel.AddThemeColorOverride("font_color", TextLight); - _coreHpLabel.AddThemeFontSizeOverride("font_size", 13); - hpRow.AddChild(_coreHpLabel); - - _statsLabel = new Label { Text = "SPD 0.0 m/s" }; - _statsLabel.AddThemeColorOverride("font_color", TextMuted); - _statsLabel.AddThemeFontSizeOverride("font_size", 13); - vbox.AddChild(_statsLabel); - - _safeLabel = new Label { Text = "RING SAFE" }; - _safeLabel.AddThemeFontSizeOverride("font_size", 13); - vbox.AddChild(_safeLabel); - - _detectionLabel = new Label { Text = "CONCEALED (TERRAIN)" }; - _detectionLabel.AddThemeFontSizeOverride("font_size", 13); - vbox.AddChild(_detectionLabel); - - _promptLabel = new Label { Text = "", Visible = false }; - _promptLabel.AddThemeColorOverride("font_color", CyanCol); - _promptLabel.AddThemeFontSizeOverride("font_size", 14); - vbox.AddChild(_promptLabel); - - _controlsHint = new Label { Text = "WASD Drive | Mouse Aim | LMB Fire | E Loot/Swap | Tab Garage | Wheel Zoom" }; - _controlsHint.AddThemeColorOverride("font_color", TextMuted); - _controlsHint.AddThemeFontSizeOverride("font_size", 11); - vbox.AddChild(_controlsHint); - } - - private void BuildTopRightRadar() - { - var panel = CreateStyledPanel(OrangeCol); - _topRightPanel = panel; - panel.AnchorLeft = 1f; - panel.AnchorRight = 1f; - panel.AnchorTop = 0f; - panel.OffsetLeft = -246f; - panel.OffsetRight = -14f; - panel.OffsetTop = 14f; - AddChild(panel); - - var vbox = new VBoxContainer(); - vbox.AddThemeConstantOverride("separation", 4); - panel.AddChild(vbox); - - var title = new Label { Text = "GALLERY & ARENA RADAR", HorizontalAlignment = HorizontalAlignment.Center }; - title.AddThemeColorOverride("font_color", OrangeCol); - title.AddThemeFontSizeOverride("font_size", 12); - vbox.AddChild(title); - - _radar = new RadarWidget - { - CustomMinimumSize = new Vector2(214f, 214f) - }; - vbox.AddChild(_radar); - } - - private void BuildBottomLeftSchematic() - { - _bottomLeftPanel = CreateStyledPanel(OrangeCol); - _bottomLeftPanel.AnchorLeft = 0f; - _bottomLeftPanel.AnchorTop = 1f; - _bottomLeftPanel.AnchorBottom = 1f; - _bottomLeftPanel.GrowVertical = Control.GrowDirection.Begin; - _bottomLeftPanel.OffsetLeft = 14f; - _bottomLeftPanel.OffsetTop = -248f; - _bottomLeftPanel.OffsetBottom = -14f; - AddChild(_bottomLeftPanel); - - var hbox = new HBoxContainer(); - hbox.AddThemeConstantOverride("separation", 8); - _bottomLeftPanel.AddChild(hbox); - - var leftCol = new VBoxContainer(); - leftCol.AddThemeConstantOverride("separation", 4); - hbox.AddChild(leftCol); - - var headRow = new HBoxContainer(); - headRow.AddThemeConstantOverride("separation", 6); - leftCol.AddChild(headRow); - - var title = new Label - { - Text = "HARDPOINTS & HEAT", - SizeFlagsHorizontal = Control.SizeFlags.ExpandFill - }; - title.AddThemeColorOverride("font_color", OrangeCol); - title.AddThemeFontSizeOverride("font_size", 12); - headRow.AddChild(title); - - _schematic = new InventoryGridControl - { - CustomMinimumSize = new Vector2(180f, 188f) - }; - _schematic.HardpointClicked += OnHardpointClicked; - _schematic.HoverChanged += OnSchematicHoverChanged; - leftCol.AddChild(_schematic); - - _hoverLabel = new Label - { - Text = "HOVER CELL FOR TELEMETRY", - ClipText = true, - CustomMinimumSize = new Vector2(180f, 15f) - }; - _hoverLabel.AddThemeColorOverride("font_color", TextMuted); - _hoverLabel.AddThemeFontSizeOverride("font_size", 10); - leftCol.AddChild(_hoverLabel); - - var rightCol = new VBoxContainer { CustomMinimumSize = new Vector2(156f, 0f) }; - rightCol.AddThemeConstantOverride("separation", 3); - hbox.AddChild(rightCol); - - _cargoHeader = new Label { Text = "SALVAGE CARGO (0/4)" }; - _cargoHeader.AddThemeColorOverride("font_color", OliveCol); - _cargoHeader.AddThemeFontSizeOverride("font_size", 11); - rightCol.AddChild(_cargoHeader); - - _cargoList = new VBoxContainer(); - _cargoList.AddThemeConstantOverride("separation", 2); - rightCol.AddChild(_cargoList); - - _garageDetails = new Label { Visible = false, AutowrapMode = TextServer.AutowrapMode.Word }; - _garageDetails.AddThemeColorOverride("font_color", TextMuted); - _garageDetails.AddThemeFontSizeOverride("font_size", 10); - _garageDetails.CustomMinimumSize = new Vector2(178f, 0f); - hbox.AddChild(_garageDetails); - } - - private void BuildBottomCenterChyron() - { - _chyronPanel = CreateStyledPanel(GoldCol); - var panel = _chyronPanel; - panel.AnchorLeft = 1f; - panel.AnchorRight = 1f; - panel.AnchorTop = 1f; - panel.AnchorBottom = 1f; - panel.GrowHorizontal = Control.GrowDirection.Begin; - panel.GrowVertical = Control.GrowDirection.Begin; - panel.OffsetLeft = -584f; - panel.OffsetRight = -14f; - panel.OffsetTop = -104f; - panel.OffsetBottom = -14f; - AddChild(panel); - - var vbox = new VBoxContainer(); - vbox.AddThemeConstantOverride("separation", 3); - panel.AddChild(vbox); - - var header = new Label { Text = "IMPERIAL BROADCAST FEED" }; - header.AddThemeColorOverride("font_color", GoldCol); - header.AddThemeFontSizeOverride("font_size", 11); - vbox.AddChild(header); - - _chyronBox = new VBoxContainer(); - _chyronBox.AddThemeConstantOverride("separation", 2); - vbox.AddChild(_chyronBox); - - for (int i = 0; i < _chyronLabels.Length; i++) - { - var lbl = new Label - { - Visible = false, - AutowrapMode = TextServer.AutowrapMode.Word - }; - lbl.AddThemeFontSizeOverride("font_size", 11); - lbl.AddThemeColorOverride("font_color", TextMuted); - _chyronBox.AddChild(lbl); - _chyronLabels[i] = lbl; - } - } - - private void BuildOutcomeBanner() - { - _outcomeBanner = CreateStyledPanel(OliveCol, cornerLen: 16f, borderPx: 2f); - _outcomeBanner.AnchorLeft = 0.5f; - _outcomeBanner.AnchorRight = 0.5f; - _outcomeBanner.AnchorTop = 0.28f; - _outcomeBanner.AnchorBottom = 0.28f; - _outcomeBanner.OffsetLeft = -210f; - _outcomeBanner.OffsetRight = 210f; - _outcomeBanner.OffsetTop = -40f; - _outcomeBanner.OffsetBottom = 40f; - _outcomeBanner.Visible = false; - AddChild(_outcomeBanner); - - _outcomeLabel = new Label - { - HorizontalAlignment = HorizontalAlignment.Center, - VerticalAlignment = VerticalAlignment.Center - }; - _outcomeLabel.AddThemeFontSizeOverride("font_size", 22); - _outcomeBanner.AddChild(_outcomeLabel); - } - - private void OnHardpointClicked(string hardpointId) - { - var session = _getSession(); - if (session is null) return; - var cargo = session.State.Player.Grid.Cargo; - if (_selectedCargoIndex >= 0 && _selectedCargoIndex < cargo.Count) - { - _onEquipCargo(_selectedCargoIndex, hardpointId); - _selectedCargoIndex = -1; - _lastCargoHash = -1; - } - } - - private void OnSchematicHoverChanged(Vector2I? cell, HardpointSpec? hp) - { - var grid = _schematic.Grid; - if (cell is null || grid is null) - { - _hoverLabel.Text = "HOVER CELL FOR TELEMETRY"; - _hoverLabel.AddThemeColorOverride("font_color", TextMuted); - return; - } - - var c = cell.Value; - float arm = grid.Armor[c.X, c.Y]; - float maxArm = grid.MaxArmor[c.X, c.Y]; - float temp = grid.Temperature[c.X, c.Y]; - if (hp is not null) - { - var mounted = grid.GetMountedOn(hp.Id); - bool strippedHp = !grid.IsHardpointOperational(hp); - string hpStatus = strippedHp ? " [STRIPPED]" : ""; - _hoverLabel.Text = mounted is not null - ? $"{hp.Kind.ToString().ToUpperInvariant()}: {mounted.Spec.Name} {mounted.CurrentTemp:F0}°C ({mounted.CurrentPerformance * 100f:F0}%){hpStatus}" - : $"{hp.Kind.ToString().ToUpperInvariant()} SLOT [{hp.Width}x{hp.Height}] EMPTY{hpStatus}"; - _hoverLabel.AddThemeColorOverride("font_color", (arm <= 0.01f || strippedHp) ? RedCol : TextLight); - } - else - { - _hoverLabel.Text = arm <= 0.01f - ? $"CELL ({c.X},{c.Y}) STRIPPED! {temp:F0}°C" - : $"HULL ({c.X},{c.Y}) ARM {arm:F0}/{maxArm:F0} {temp:F0}°C"; - _hoverLabel.AddThemeColorOverride("font_color", arm <= 0.01f ? RedCol : TextMuted); - } - } - - private void SyncCargoButtons(ChassisGrid grid) - { - int hash = HashCode.Combine(grid.Cargo.Count, grid.Spec.CargoCapacity, _selectedCargoIndex); - for (int i = 0; i < grid.Cargo.Count; i++) - { - hash = HashCode.Combine(hash, grid.Cargo[i].Id); - } - if (hash == _lastCargoHash) return; - _lastCargoHash = hash; - - _cargoHeader.Text = $"SALVAGE CARGO ({grid.Cargo.Count}/{grid.Spec.CargoCapacity})"; - for (int i = _cargoList.GetChildCount() - 1; i >= 0; i--) - { - var c = _cargoList.GetChild(i); - _cargoList.RemoveChild(c); - c.QueueFree(); - } - - if (grid.Cargo.Count == 0) - { - var empty = new Label { Text = "No modules in rack.\nPress [E] near crates." }; - empty.AddThemeColorOverride("font_color", TextMuted); - empty.AddThemeFontSizeOverride("font_size", 11); - _cargoList.AddChild(empty); - return; - } - - for (int i = 0; i < grid.Cargo.Count; i++) - { - int idx = i; - var mod = grid.Cargo[i]; - var row = new HBoxContainer(); - row.AddThemeConstantOverride("separation", 4); - - var selectBtn = new Button - { - Text = $"{(mod.IsImperial ? "★ " : "")}{mod.Name}", - SizeFlagsHorizontal = Control.SizeFlags.ExpandFill, - Alignment = HorizontalAlignment.Left, - FocusMode = Control.FocusModeEnum.None, - ClipText = true, - CustomMinimumSize = new Vector2(114f, 0f) - }; - selectBtn.AddThemeFontSizeOverride("font_size", 10); - if (_selectedCargoIndex == idx) - { - selectBtn.Modulate = OrangeCol; - } - else if (mod.IsImperial) - { - selectBtn.Modulate = GoldCol; - } - selectBtn.Pressed += () => - { - _selectedCargoIndex = (_selectedCargoIndex == idx) ? -1 : idx; - _lastCargoHash = -1; - }; - row.AddChild(selectBtn); - - var fitBtn = new Button { Text = "FIT", FocusMode = Control.FocusModeEnum.None }; - fitBtn.AddThemeFontSizeOverride("font_size", 10); - fitBtn.Pressed += () => AutoFitCargo(grid, idx); - row.AddChild(fitBtn); - - _cargoList.AddChild(row); - } - } - - private void AutoFitCargo(ChassisGrid grid, int cargoIndex) - { - if (cargoIndex < 0 || cargoIndex >= grid.Cargo.Count) return; - var mod = grid.Cargo[cargoIndex]; - for (int i = 0; i < grid.Spec.Hardpoints.Length; i++) - { - var hp = grid.Spec.Hardpoints[i]; - if (ChassisGrid.CanFit(hp, mod)) - { - _onEquipCargo(cargoIndex, hp.Id); - _selectedCargoIndex = -1; - _lastCargoHash = -1; - return; - } - } - } - - private void SyncBroadcastChyron(BroadcastFeed broadcast) - { - var lines = broadcast.Lines; - if (ReferenceEquals(_lastBroadcastFeed, broadcast) && broadcast.Version == _lastChyronVersion) - { - return; - } - - _lastBroadcastFeed = broadcast; - _lastChyronVersion = broadcast.Version; - - int start = Math.Max(0, lines.Count - _chyronLabels.Length); - int visibleCount = lines.Count - start; - for (int slot = 0; slot < _chyronLabels.Length; slot++) - { - var lbl = _chyronLabels[slot]; - if (slot < visibleCount) - { - int lineIdx = start + slot; - var line = lines[lineIdx]; - bool isLatest = lineIdx == lines.Count - 1; - lbl.Visible = true; - lbl.Text = $"[{line.Timestamp:00.0}s] {line.Text}"; - lbl.AddThemeFontSizeOverride("font_size", isLatest ? 12 : 11); - lbl.AddThemeColorOverride("font_color", isLatest ? TextLight : TextMuted); - } - else - { - lbl.Visible = false; - lbl.Text = ""; - } - } - } - - private static string BuildInteractionPrompt(MatchState state, ContenderState player) - { - GroundDrop? nearest = state.FindNearestInteractableDrop(player.Id); - if (nearest is null) return ""; - if (nearest.Module is { } mod) - { - var freeHp = player.Grid.FindFirstEmptyCompatibleHardpoint(mod); - return freeHp is not null - ? $"[E] Bolt {(mod.IsImperial ? "IMPERIAL " : "")}{mod.Name} -> {freeHp.Id}" - : $"[E] Loot {(mod.IsImperial ? "IMPERIAL " : "")}{mod.Name}"; - } - if (nearest.Chassis is { } ch) - { - return $"[E] Swap to {ch.Name} ({ch.Plane})"; - } - return ""; - } - - private static string BuildGarageDetails(ChassisGrid grid) - { - var lines = new List - { - $"COND {grid.Spec.HullConductivity:F1} | THRUST {grid.ComputeDriveThrust():F0} N", - "MOUNTED:" - }; - for (int i = 0; i < grid.Mounted.Count; i++) - { - var m = grid.Mounted[i]; - string stateTag = grid.IsHardpointOperational(m.HardpointId) ? "" : " [STRIPPED]"; - lines.Add($"• {m.HardpointId}: {m.Spec.Name} {m.CurrentTemp:F0}°C ({(m.CurrentPerformance * 100f):F0}%){stateTag}"); - } - return string.Join("\n", lines); - } - - private static ChromePanel CreateStyledPanel(Color accentColor, float cornerLen = 12f, float borderPx = 1.5f) - { - return new ChromePanel(accentColor, cornerLen, borderPx); - } - - private sealed partial class ChromePanel : PanelContainer - { - private static Shader? _sharedChromeShader; - private static ImageTexture? _sharedWhiteTex; - private readonly ShaderMaterial _material; - - public ChromePanel(Color accentColor, float cornerLen, float borderPx) - { - _sharedChromeShader ??= GD.Load("res://panel_chrome.gdshader"); - if (_sharedWhiteTex is null) - { - var img = Image.CreateEmpty(1, 1, false, Image.Format.Rgba8); - img.SetPixel(0, 0, Colors.White); - _sharedWhiteTex = ImageTexture.CreateFromImage(img); - } - - _material = new ShaderMaterial { Shader = _sharedChromeShader }; - _material.SetShaderParameter("bg_color", new Color(BgDark.R, BgDark.G, BgDark.B, 0.88f)); - _material.SetShaderParameter("border_color", BorderCol); - _material.SetShaderParameter("accent_color", accentColor); - _material.SetShaderParameter("corner_len", cornerLen); - _material.SetShaderParameter("border_px", borderPx); - Material = _material; - - var empty = new StyleBoxEmpty - { - ContentMarginLeft = 10, - ContentMarginRight = 10, - ContentMarginTop = 8, - ContentMarginBottom = 8 - }; - AddThemeStyleboxOverride("panel", empty); - } - - public ShaderMaterial ChromeMaterial => _material; - - public override void _Notification(int what) - { - if (what == NotificationResized) - { - _material.SetShaderParameter("rect_size", Size); - QueueRedraw(); - } - } - - public override void _Draw() - { - if (Size.X < 2f || Size.Y < 2f || _sharedWhiteTex is null) return; - _material.SetShaderParameter("rect_size", Size); - DrawTextureRect(_sharedWhiteTex, new Rect2(Vector2.Zero, Size), false, Colors.White); - } - } - - private sealed partial class CrosshairOverlay : Control - { - private const float HitArcDuration = 0.65f; - - private sealed class IncomingHitArc - { - public float SourceX; - public float SourceZ; - public WeaponVisualClass WeaponClass; - public float Age; - } - - private ContenderState? _player; - private float _cameraYaw; - private MatchState? _lastState; - private long _lastProcessedHitId; - private readonly List _incomingArcs = new(); - - public void SetState(MatchState state, ContenderState player, float cameraYaw) - { - if (!ReferenceEquals(_lastState, state)) - { - _lastState = state; - _lastProcessedHitId = 0; - _incomingArcs.Clear(); - } - - _player = player; - _cameraYaw = cameraYaw; - - var hits = state.HitEvents; - for (int i = 0; i < hits.Count; i++) - { - var ev = hits[i]; - if (ev.EventId <= _lastProcessedHitId) - { - continue; - } - _lastProcessedHitId = ev.EventId; - - if (ev.TargetKind == HitTargetKind.Contender && ev.TargetId == player.Id) - { - if (_incomingArcs.Count >= 8) - { - _incomingArcs.RemoveAt(0); - } - _incomingArcs.Add(new IncomingHitArc - { - SourceX = ev.SourceX, - SourceZ = ev.SourceZ, - WeaponClass = ev.WeaponClass, - Age = 0f - }); - } - } - } - - public void Advance(float dt) - { - if (_incomingArcs.Count == 0 || dt <= 0f) - { - return; - } - for (int i = _incomingArcs.Count - 1; i >= 0; i--) - { - _incomingArcs[i].Age += dt; - if (_incomingArcs[i].Age >= HitArcDuration) - { - _incomingArcs.RemoveAt(i); - } - } - QueueRedraw(); - } - - public void PushTestHitArc(float sourceX, float sourceZ, WeaponVisualClass weaponClass) - { - if (_incomingArcs.Count >= 8) _incomingArcs.RemoveAt(0); - _incomingArcs.Add(new IncomingHitArc - { - SourceX = sourceX, - SourceZ = sourceZ, - WeaponClass = weaponClass, - Age = 0f - }); - QueueRedraw(); - } - - public int ActiveHitArcCount => _incomingArcs.Count; - - public override void _Draw() - { - Vector2 center = Size * 0.5f; - float gap = 6f; - float tick = 10f; - bool allDisabled = _player is not null && _player.Alive && - _player.InArcWeaponCount == 0 && _player.OutOfArcWeaponCount == 0 && _player.DisabledWeaponCount > 0; - bool outOfArc = _player is not null && _player.Alive && _player.AllWeaponsOutOfArc; - Color retCol = (outOfArc || allDisabled) - ? new Color(RedCol.R, RedCol.G, RedCol.B, 0.95f) - : new Color(TextLight.R, TextLight.G, TextLight.B, 0.88f); - - // Clean 4-tick center crosshair + center pip - DrawCircle(center, 1.8f, retCol); - DrawLine(center + new Vector2(-gap - tick, 0f), center + new Vector2(-gap, 0f), retCol, 1.6f); - DrawLine(center + new Vector2(gap, 0f), center + new Vector2(gap + tick, 0f), retCol, 1.6f); - DrawLine(center + new Vector2(0f, -gap - tick), center + new Vector2(0f, -gap), retCol, 1.6f); - DrawLine(center + new Vector2(0f, gap), center + new Vector2(0f, gap + tick), retCol, 1.6f); - - if (allDisabled) - { - DrawString( - ThemeDB.FallbackFont, - center + new Vector2(-52f, 36f), - "WEAPONS STRIPPED", - HorizontalAlignment.Left, - -1, - 11, - RedCol); - } - else if (outOfArc) - { - DrawString( - ThemeDB.FallbackFont, - center + new Vector2(-34f, 36f), - "OUT OF ARC", - HorizontalAlignment.Left, - -1, - 11, - RedCol); - } - - if (_player is null || !_player.Alive) - { - return; - } - - // Thermal heat-arc indicator around crosshair - float heatRatio = 0f; - bool overPlateau = false; - var mounted = _player.Grid.Mounted; - for (int i = 0; i < mounted.Count; i++) - { - var m = mounted[i]; - if (m.Spec.Kind == HardpointKind.Weapon) - { - float r = Math.Clamp( - (m.CurrentTemp - ChassisGrid.AmbientTemp) / MathF.Max(1f, m.Spec.MaxTemp - ChassisGrid.AmbientTemp), - 0f, 1f); - if (r > heatRatio) heatRatio = r; - if (m.CurrentTemp > m.Spec.OptimalTemp + m.Spec.PlateauWidth * 0.5f) - { - overPlateau = true; - } - } - } - - float arcRadius = 21f; - float startAngle = -MathF.PI * 0.75f; - float maxSweep = MathF.PI * 1.5f; - DrawArc(center, arcRadius, startAngle, startAngle + maxSweep, 24, new Color(BorderCol.R, BorderCol.G, BorderCol.B, 0.4f), 2.0f); - - if (heatRatio > 0.01f) - { - Color heatCol = overPlateau - ? RedCol - : (heatRatio > 0.65f ? OrangeCol : OliveCol); - DrawArc(center, arcRadius, startAngle, startAngle + maxSweep * heatRatio, 24, heatCol, 2.4f); - } - - // Directional incoming-hit indicator arcs (fade over 0.65s) - if (_incomingArcs.Count > 0) - { - float sinY = MathF.Sin(_cameraYaw); - float cosY = MathF.Cos(_cameraYaw); - for (int i = 0; i < _incomingArcs.Count; i++) - { - var arc = _incomingArcs[i]; - float alpha = Math.Clamp(1f - arc.Age / HitArcDuration, 0f, 1f); - if (alpha <= 0.01f) - { - continue; - } - - float dx = arc.SourceX - _player.X; - float dz = arc.SourceZ - _player.Z; - float rx = -dx * cosY + dz * sinY; - float fy = dx * sinY + dz * cosY; - float angle = (rx * rx + fy * fy) > 1e-4f ? MathF.Atan2(-fy, rx) : 0f; - - Color arcCol = arc.WeaponClass switch - { - WeaponVisualClass.Explosive => new Color(1.0f, 0.36f, 0.12f, alpha * 0.96f), - WeaponVisualClass.ThermalBeam => new Color(0.30f, 0.90f, 1.0f, alpha * 0.96f), - _ => new Color(0.96f, 0.72f, 0.22f, alpha * 0.94f) - }; - - const float hitR = 39f; - const float halfSpan = 0.34f; - DrawArc(center, hitR, angle - halfSpan, angle + halfSpan, 14, arcCol, 4.2f); - if (arc.WeaponClass == WeaponVisualClass.ThermalBeam) - { - DrawArc(center, hitR - 3.5f, angle - halfSpan * 0.75f, angle + halfSpan * 0.75f, 10, - new Color(GoldCol.R, GoldCol.G, GoldCol.B, alpha * 0.90f), 2.0f); - } - - Vector2 dirVec = new(MathF.Cos(angle), MathF.Sin(angle)); - Vector2 perp = new(-dirVec.Y, dirVec.X); - Vector2 tip = center + dirVec * (hitR + 9f); - Vector2 baseL = center + dirVec * (hitR + 1.5f) - perp * 4.5f; - Vector2 baseR = center + dirVec * (hitR + 1.5f) + perp * 4.5f; - DrawColoredPolygon(new[] { tip, baseL, baseR }, arcCol); - } - - var latest = _incomingArcs[^1]; - float tagAlpha = Math.Clamp(1f - latest.Age / HitArcDuration, 0f, 1f); - (string tagText, Color tagCol) = latest.WeaponClass switch - { - WeaponVisualClass.Autocannon => ("20MM IMPACT", new Color(0.98f, 0.70f, 0.20f, tagAlpha)), - WeaponVisualClass.Explosive => ("BLAST IMPACT", new Color(1.0f, 0.38f, 0.14f, tagAlpha)), - WeaponVisualClass.ThermalBeam => ("THERMAL HIT", new Color(0.36f, 0.92f, 1.0f, tagAlpha)), - _ => ("KINETIC HIT", new Color(0.96f, 0.78f, 0.28f, tagAlpha)) - }; - DrawString( - ThemeDB.FallbackFont, - center + new Vector2(-36f, 54f), - tagText, - HorizontalAlignment.Left, - -1, - 10, - tagCol); - } - } - } - - private sealed partial class RadarWidget : Control - { - private MatchState? _state; - private float _cameraYaw; - - public void SetState(MatchState state, float cameraYaw) - { - _state = state; - _cameraYaw = cameraYaw; - } - - private static Vector2 WorldToRadar(Vector2 center, float scale, float wx, float wz, float camYaw) - { - // Heading-up 3P radar: camera forward (sinY, cosY) is always UP (-screenY), camera right (-cosY, sinY) is RIGHT (+screenX). - float sinY = MathF.Sin(camYaw); - float cosY = MathF.Cos(camYaw); - float rx = -wx * cosY + wz * sinY; - float fy = wx * sinY + wz * cosY; - return center + new Vector2(rx, -fy) * scale; - } - - private static Vector2 ClampToRadarDisc(Vector2 center, float maxRadius, Vector2 pt) - { - Vector2 delta = pt - center; - float dist = delta.Length(); - if (dist > maxRadius && dist > 1e-4f) - { - return center + delta * (maxRadius / dist); - } - return pt; - } - - public override void _Draw() - { - Vector2 center = Size * 0.5f; - float radius = MathF.Min(Size.X, Size.Y) * 0.47f; - float maxBlipRadius = MathF.Max(4f, radius - 3f); - float scale = radius / MatchState.ArenaHalfExtent; - - DrawCircle(center, radius, BgInner); - DrawArc(center, radius, 0f, MathF.Tau, 48, BorderCol, 1.5f); - // Forward-up indicator tick at top of radar - DrawLine(center + new Vector2(0f, -radius), center + new Vector2(0f, -radius + 6f), CyanCol, 2.0f); - - if (_state is null) return; - - // Safe Circle - float safePx = MathF.Min(_state.Spectators.SafeRadius * scale, maxBlipRadius); - DrawArc(center, safePx, 0f, MathF.Tau, 64, OrangeCol, 1.6f); - - // Ground drops - for (int i = 0; i < _state.GroundDrops.Count; i++) - { - var d = _state.GroundDrops[i]; - if (d.PickedUp) continue; - var p = ClampToRadarDisc(center, MathF.Max(4f, radius - 4f), WorldToRadar(center, scale, d.X, d.Z, _cameraYaw)); - if (d.Chassis is not null) - { - DrawRect(new Rect2(p - new Vector2(2.5f, 2.5f), new Vector2(5f, 5f)), CyanCol); - } - else if (d.Module is { IsImperial: true }) - { - DrawCircle(p, 3.0f, GoldCol); - } - } - - // Spectator Wall (LOS / Tourist horizon rule / 5s ghost memory; hidden Exemplars vanish!) - var specs = _state.Spectators.Spectators; - for (int i = 0; i < specs.Count; i++) - { - var s = specs[i]; - if (!s.Alive) continue; - - _state.SpectatorContacts.TryGetValue(s.Id, out var mem); - if (!MatchState.IsContactOnRadar(mem)) - { - continue; - } - - bool live = mem!.VisibleToPlayer; - float drawX = live || mem.FaintHorizonPing ? s.X : mem.LastSeenX; - float drawZ = live || mem.FaintHorizonPing ? s.Z : mem.LastSeenZ; - float blipR = 1.6f + s.RadarSignature * 3.1f; - float specClampR = MathF.Max(4f, radius - blipR - 1f); - var p = ClampToRadarDisc(center, specClampR, WorldToRadar(center, scale, drawX, drawZ, _cameraYaw)); - - Color col = s.Tier switch - { - SpectatorTier.Tourist => GoldCol, - SpectatorTier.Patron => PatronColor, - _ => RedCol - }; - - if (live && s.Stance != SpectatorStance.Neutral && s.HasTargetLos && s.TargetContenderId.HasValue) - { - int tid = s.TargetContenderId.Value; - if (tid >= 0 && tid < _state.Contenders.Count && _state.Contenders[tid].Alive) - { - var tgt = _state.Contenders[tid]; - bool targetVisible = tgt.IsPlayer || - (_state.ContenderContacts.TryGetValue(tgt.Id, out var tgtMem) && tgtMem.VisibleToPlayer); - if (targetVisible) - { - float tgtClampR = MathF.Max(4f, radius - (tgt.IsPlayer ? 7.5f : 4.3f)); - var tp = ClampToRadarDisc(center, tgtClampR, WorldToRadar(center, scale, tgt.X, tgt.Z, _cameraYaw)); - DrawLine(p, tp, new Color(RedCol.R, RedCol.G, RedCol.B, 0.65f), 1.3f); - } - } - col = RedCol; - } - - if (!live) - { - float alpha = mem.FaintHorizonPing - ? 0.42f - : Math.Clamp((1f - mem.LastSeenAge / MatchState.ContactGhostDuration) * 0.48f, 0.08f, 0.48f); - Color ghostCol = mem.FaintHorizonPing ? GoldCol : col; - DrawCircle(p, blipR, new Color(ghostCol.R, ghostCol.G, ghostCol.B, alpha)); - } - else - { - DrawCircle(p, blipR, col); - } - } - - // Contenders (player always live; rivals obey LOS + 5s ghost memory) - float sinY = MathF.Sin(_cameraYaw); - float cosY = MathF.Cos(_cameraYaw); - for (int i = 0; i < _state.Contenders.Count; i++) - { - var c = _state.Contenders[i]; - if (!c.Alive) continue; - - if (c.IsPlayer) - { - float playerClampR = MathF.Max(4f, radius - 6.5f - 1f); - var p = ClampToRadarDisc(center, playerClampR, WorldToRadar(center, scale, c.X, c.Z, _cameraYaw)); - var dir = new Vector2( - -MathF.Sin(c.Yaw) * cosY + MathF.Cos(c.Yaw) * sinY, - -(MathF.Sin(c.Yaw) * sinY + MathF.Cos(c.Yaw) * cosY)); - var perp = new Vector2(-dir.Y, dir.X); - var pts = new[] - { - p + dir * 6.5f, - p - dir * 4.5f + perp * 4.2f, - p - dir * 4.5f - perp * 4.2f - }; - DrawColoredPolygon(pts, OliveCol); - continue; - } - - _state.ContenderContacts.TryGetValue(c.Id, out var mem); - if (!MatchState.IsContactOnRadar(mem)) - { - continue; - } - - if (mem!.VisibleToPlayer) - { - float rivalClampR = MathF.Max(4f, radius - 3.3f - 1f); - var p = ClampToRadarDisc(center, rivalClampR, WorldToRadar(center, scale, c.X, c.Z, _cameraYaw)); - DrawCircle(p, 3.3f, OrangeCol); - } - else - { - float ghostClampR = MathF.Max(4f, radius - 2.8f - 1f); - var p = ClampToRadarDisc(center, ghostClampR, WorldToRadar(center, scale, mem.LastSeenX, mem.LastSeenZ, _cameraYaw)); - float alpha = Math.Clamp((1f - mem.LastSeenAge / MatchState.ContactGhostDuration) * 0.48f, 0.08f, 0.48f); - DrawCircle(p, 2.8f, new Color(OrangeCol.R, OrangeCol.G, OrangeCol.B, alpha)); - } - } - } - - private static readonly Color PatronColor = Color.FromHtml("#4ba8a5"); - } -} diff --git a/client/InventoryGridControl.cs b/client/InventoryGridControl.cs deleted file mode 100644 index d80d283..0000000 --- a/client/InventoryGridControl.cs +++ /dev/null @@ -1,746 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -/// -/// Godot Control owning inventory_grid.gdshader: -/// packs a into a 3W x H RGBA8 nearest-filter data texture -/// and a W x H RGBA8 bilinear temperature texture, tracks hover and hit-pulse decay, -/// and provides accurate mouse-to-cell hit-testing for HUD and Garage schematics. -/// -public partial class InventoryGridControl : Control -{ - private static readonly Color ColBgIntact = Color.FromHtml("#263022"); - private static readonly Color ColBgArmorFull = Color.FromHtml("#4b6136"); - private static readonly Color ColBgDamaged = Color.FromHtml("#8a3c22"); - private static readonly Color ColBgStripped = Color.FromHtml("#2b1210"); - - private static readonly Color ColBorderHull = Color.FromHtml("#7a856e"); - private static readonly Color ColBorderRadiatorCell = Color.FromHtml("#44d9e8"); - private static readonly Color ColBorderWeapon = Color.FromHtml("#e08a4a"); - private static readonly Color ColBorderEngine = Color.FromHtml("#e6b838"); - private static readonly Color ColBorderRadiator = Color.FromHtml("#44d9e8"); - private static readonly Color ColBorderArmor = Color.FromHtml("#9bb06a"); - private static readonly Color ColBorderUtility = Color.FromHtml("#4ba8a5"); - private static readonly Color ColGold = Color.FromHtml("#e6b838"); - private static readonly Color ColTextLight = Color.FromHtml("#e4dfd2"); - - // 8-neighbor offsets in Aetheria mask order: N, E, S, W, NE, SE, SW, NW (screen Y-down) - private static readonly (int Dx, int Dy)[] Offsets8 = - { - (0, -1), (1, 0), (0, 1), (-1, 0), - (1, -1), (1, 1), (-1, 1), (-1, -1) - }; - - private static Shader? _sharedShader; - - private readonly TextureRect _gridSurface; - private readonly LabelsOverlay _labelsOverlay; - private readonly ShaderMaterial _material; - - private Image? _dataImage; - private ImageTexture? _dataTex; - private Image? _tempImage; - private ImageTexture? _tempTex; - - private int _gridWidth; - private int _gridHeight; - private ChassisGrid? _grid; - private ChassisSpec? _spec; - private int _selectedCargoIndex = -1; - private int _lastHitSequence = -1; - - private HardpointSpec?[,] _hardpointLookup = new HardpointSpec?[0, 0]; - private float[,] _prevArmor = new float[0, 0]; - private float[,] _prevTemp = new float[0, 0]; - private float[,] _hitPulse = new float[0, 0]; - - private int _lastSelectedCargoIndex = int.MinValue; - private string? _lastSelectedCargoId; - private int _lastMountedSig = int.MinValue; - private Vector2I? _hoveredCell; - private bool _dataDirty; - private bool _tempDirty; - - public InventoryGridControl() - { - MouseFilter = MouseFilterEnum.Stop; - - _sharedShader ??= GD.Load("res://inventory_grid.gdshader"); - _material = new ShaderMaterial { Shader = _sharedShader }; - - _gridSurface = new TextureRect - { - Name = "GridShaderSurface", - MouseFilter = MouseFilterEnum.Ignore, - ExpandMode = TextureRect.ExpandModeEnum.IgnoreSize, - StretchMode = TextureRect.StretchModeEnum.Scale, - Material = _material - }; - _gridSurface.SetAnchorsPreset(LayoutPreset.FullRect); - AddChild(_gridSurface); - - _labelsOverlay = new LabelsOverlay(this) - { - Name = "GridLabelsOverlay", - MouseFilter = MouseFilterEnum.Ignore - }; - _labelsOverlay.SetAnchorsPreset(LayoutPreset.FullRect); - AddChild(_labelsOverlay); - - MouseExited += OnMouseExited; - } - - public ShaderMaterial ShaderMaterial => _material; - public Control ShaderSurface => _gridSurface; - public ChassisGrid? Grid => _grid; - public Vector2I? HoveredCell => _hoveredCell; - public HardpointSpec? HoveredHardpoint => - _hoveredCell is { } c && _grid is not null && c.X >= 0 && c.Y >= 0 && c.X < _gridWidth && c.Y < _gridHeight - ? _hardpointLookup[c.X, c.Y] - : null; - - internal int LabelsDrawCount => _labelsOverlay.DrawCount; - internal string? GetLastDrawnLabel(string hardpointId) => - _labelsOverlay.LastDrawnTags.TryGetValue(hardpointId, out string? tag) ? tag : null; - - public event Action? CellClicked; - public event Action? HardpointClicked; - public event Action? HoverChanged; - - public override void _Notification(int what) - { - if (what == NotificationResized) - { - SyncRectUniform(); - _labelsOverlay.QueueRedraw(); - } - } - - public override void _Process(double delta) - { - float dt = (float)delta; - - bool anyPulse = false; - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - if (_hitPulse[x, y] > 0f) - { - _hitPulse[x, y] = MathF.Max(0f, _hitPulse[x, y] - dt * 2.8f); - anyPulse = true; - } - } - } - - if (anyPulse && _grid is not null) - { - PackDataTexture(_grid); - FlushTextures(); - } - } - - public override void _GuiInput(InputEvent @event) - { - if (@event is InputEventMouseMotion mm) - { - UpdateHover(mm.Position); - return; - } - - if (@event is InputEventMouseButton mb && mb.Pressed && mb.ButtonIndex == MouseButton.Left) - { - UpdateHover(mb.Position); - if (TryGetCellAt(mb.Position, out var cell) && _grid is not null && _grid.Spec.IsActive(cell.X, cell.Y)) - { - CellClicked?.Invoke(cell.X, cell.Y); - var hp = _hardpointLookup[cell.X, cell.Y]; - if (hp is not null) - { - HardpointClicked?.Invoke(hp.Id); - } - AcceptEvent(); - } - } - } - - public void SetGrid(ChassisGrid grid, int selectedCargoIndex = -1) - { - if (grid is null) throw new ArgumentNullException(nameof(grid)); - - bool gridIdentityChanged = !ReferenceEquals(_grid, grid) - || !ReferenceEquals(_spec, grid.Spec) - || _gridWidth != grid.Spec.Width - || _gridHeight != grid.Spec.Height; - - _grid = grid; - _spec = grid.Spec; - _selectedCargoIndex = selectedCargoIndex; - string? selectedCargoId = selectedCargoIndex >= 0 && selectedCargoIndex < grid.Cargo.Count - ? grid.Cargo[selectedCargoIndex].Id - : null; - - if (gridIdentityChanged) - { - EnsureBackingBuffers(grid); - _lastSelectedCargoIndex = selectedCargoIndex; - _lastSelectedCargoId = selectedCargoId; - _lastMountedSig = ComputeMountedSignature(grid); - SnapshotTemperatures(grid); - PackDataTexture(grid); - PackTempTexture(grid); - FlushTextures(); - SyncRectUniform(); - _labelsOverlay.QueueRedraw(); - return; - } - - bool dataChanged = DetectHits(grid); - int mountedSig = ComputeMountedSignature(grid); - if (_lastSelectedCargoIndex != selectedCargoIndex || - !string.Equals(_lastSelectedCargoId, selectedCargoId, StringComparison.Ordinal) || - _lastMountedSig != mountedSig) - { - _lastSelectedCargoIndex = selectedCargoIndex; - _lastSelectedCargoId = selectedCargoId; - _lastMountedSig = mountedSig; - dataChanged = true; - } - - bool tempChanged = HasTemperatureChanged(grid); - - if (dataChanged) - { - PackDataTexture(grid); - } - if (tempChanged) - { - SnapshotTemperatures(grid); - PackTempTexture(grid); - } - if (dataChanged || tempChanged) - { - _labelsOverlay.QueueRedraw(); - FlushTextures(); - } - } - - public void TriggerHitPulse(int x, int y, float intensity = 1f) - { - if (_grid is null || x < 0 || y < 0 || x >= _gridWidth || y >= _gridHeight) return; - if (!_grid.Spec.IsActive(x, y)) return; - _hitPulse[x, y] = Math.Clamp(intensity, 0f, 1f); - PackDataTexture(_grid); - FlushTextures(); - } - - public bool TryGetCellAt(Vector2 localPos, out Vector2I cell) - { - cell = default; - if (_grid is null || _gridWidth <= 0 || _gridHeight <= 0) return false; - ComputeCellLayout(out float cellSize, out Vector2 origin); - if (cellSize <= 0.5f) return false; - - Vector2 rel = (localPos - origin) / cellSize; - int cx = Mathf.FloorToInt(rel.X); - int cy = Mathf.FloorToInt(rel.Y); - if (cx < 0 || cy < 0 || cx >= _gridWidth || cy >= _gridHeight) return false; - cell = new Vector2I(cx, cy); - return true; - } - - public HardpointSpec? GetHardpointAt(int x, int y) - { - if (x < 0 || y < 0 || x >= _gridWidth || y >= _gridHeight) return null; - return _hardpointLookup[x, y]; - } - - public void ComputeCellLayout(out float cellSize, out Vector2 origin) - { - int w = Math.Max(1, _gridWidth); - int h = Math.Max(1, _gridHeight); - Vector2 size = Size; - if (size.X < 2f || size.Y < 2f) - { - size = CustomMinimumSize; - } - cellSize = MathF.Min(size.X / w, size.Y / h); - origin = (size - new Vector2(w * cellSize, h * cellSize)) * 0.5f; - } - - private void OnMouseExited() - { - if (_hoveredCell.HasValue) - { - _hoveredCell = null; - HoverChanged?.Invoke(null, null); - if (_grid is not null) - { - PackDataTexture(_grid); - FlushTextures(); - } - } - } - - private void UpdateHover(Vector2 localPos) - { - Vector2I? next = null; - if (TryGetCellAt(localPos, out var c) && _grid is not null && _grid.Spec.IsActive(c.X, c.Y)) - { - next = c; - } - - if (_hoveredCell == next) return; - _hoveredCell = next; - HoverChanged?.Invoke(next, HoveredHardpoint); - if (_grid is not null) - { - PackDataTexture(_grid); - FlushTextures(); - } - } - - private void EnsureBackingBuffers(ChassisGrid grid) - { - int w = grid.Spec.Width; - int h = grid.Spec.Height; - bool dimsChanged = w != _gridWidth || h != _gridHeight || _dataTex is null || _tempTex is null; - - _gridWidth = w; - _gridHeight = h; - _hardpointLookup = new HardpointSpec?[w, h]; - for (int i = 0; i < grid.Spec.Hardpoints.Length; i++) - { - var hp = grid.Spec.Hardpoints[i]; - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int hx = hp.X + dx; - int hy = hp.Y + dy; - if (hx >= 0 && hy >= 0 && hx < w && hy < h && grid.Spec.IsActive(hx, hy)) - { - _hardpointLookup[hx, hy] = hp; - } - } - } - } - - _prevArmor = new float[w, h]; - _prevTemp = new float[w, h]; - _hitPulse = new float[w, h]; - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - _prevArmor[x, y] = grid.Armor[x, y]; - _prevTemp[x, y] = grid.Temperature[x, y]; - } - } - _lastHitSequence = grid.HitSequence; - bool hadHover = _hoveredCell.HasValue; - _hoveredCell = null; - - if (dimsChanged) - { - _dataImage = Image.CreateEmpty(Math.Max(1, w * 3), Math.Max(1, h), false, Image.Format.Rgba8); - _dataTex = ImageTexture.CreateFromImage(_dataImage); - _tempImage = Image.CreateEmpty(Math.Max(1, w), Math.Max(1, h), false, Image.Format.Rgba8); - _tempTex = ImageTexture.CreateFromImage(_tempImage); - - _gridSurface.Texture = _dataTex; - _material.SetShaderParameter("data_tex", _dataTex); - _material.SetShaderParameter("temp_tex", _tempTex); - } - - _material.SetShaderParameter("grid_size", new Vector2(w, h)); - - if (hadHover) - { - HoverChanged?.Invoke(null, null); - } - } - - private bool DetectHits(ChassisGrid grid) - { - bool changed = false; - if (grid.HitSequence != _lastHitSequence) - { - _lastHitSequence = grid.HitSequence; - if (grid.LastHitX >= 0 && grid.LastHitY >= 0 && grid.LastHitX < _gridWidth && grid.LastHitY < _gridHeight) - { - _hitPulse[grid.LastHitX, grid.LastHitY] = 1f; - } - changed = true; - } - - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - float arm = grid.Armor[x, y]; - if (arm < _prevArmor[x, y] - 0.05f) - { - _hitPulse[x, y] = 1f; - _prevArmor[x, y] = arm; - changed = true; - } - else if (MathF.Abs(arm - _prevArmor[x, y]) > 0.01f) - { - _prevArmor[x, y] = arm; - changed = true; - } - } - } - return changed; - } - - private static int ComputeMountedSignature(ChassisGrid grid) - { - var hc = new HashCode(); - hc.Add(grid.Mounted.Count); - for (int i = 0; i < grid.Mounted.Count; i++) - { - var m = grid.Mounted[i]; - hc.Add(m.HardpointId); - hc.Add(m.Spec.Id); - hc.Add(m.CurrentPerformance > 0.05f); - } - return hc.ToHashCode(); - } - - private bool HasTemperatureChanged(ChassisGrid grid) - { - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - if (MathF.Abs(grid.Temperature[x, y] - _prevTemp[x, y]) >= 0.25f) - { - return true; - } - } - } - return false; - } - - private void SnapshotTemperatures(ChassisGrid grid) - { - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - _prevTemp[x, y] = grid.Temperature[x, y]; - } - } - } - - private void PackDataTexture(ChassisGrid grid) - { - if (_dataImage is null) return; - var spec = grid.Spec; - - ModuleSpec? selectedCargo = _selectedCargoIndex >= 0 && _selectedCargoIndex < grid.Cargo.Count - ? grid.Cargo[_selectedCargoIndex] - : null; - - HardpointSpec? hoveredHp = HoveredHardpoint; - - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - if (!spec.IsActive(x, y)) - { - var zero = new Color(0f, 0f, 0f, 0f); - _dataImage.SetPixel(x * 3 + 0, y, zero); - _dataImage.SetPixel(x * 3 + 1, y, zero); - _dataImage.SetPixel(x * 3 + 2, y, zero); - continue; - } - - var hp = _hardpointLookup[x, y]; - var mounted = hp is not null ? grid.GetMountedOn(hp.Id) : null; - float maxArm = MathF.Max(1f, grid.MaxArmor[x, y]); - float arm = grid.Armor[x, y]; - float armRatio = Math.Clamp(arm / maxArm, 0f, 1f); - bool stripped = arm <= 0.01f; - bool isBorder = grid.BorderCells[x, y]; - bool isCompatible = hp is not null && selectedCargo is not null && ChassisGrid.CanFit(hp, selectedCargo); - bool isHovered = (_hoveredCell is { } hc && hc.X == x && hc.Y == y) - || (hoveredHp is not null && ReferenceEquals(hp, hoveredHp)); - - // 3x+0: Cell / item fill & armor tint - Color fill; - if (stripped) - { - fill = ColBgStripped; - } - else - { - Color armorCol = armRatio > 0.5f - ? ColBgIntact.Lerp(ColBgArmorFull, (armRatio - 0.5f) * 2f) - : ColBgDamaged.Lerp(ColBgIntact, armRatio * 2f); - - if (mounted is not null) - { - Color modTint = mounted.Spec.IsImperial ? ColGold : KindColor(hp!.Kind); - fill = armorCol.Lerp(modTint, 0.28f); - } - else - { - fill = armorCol; - } - } - fill.A = stripped ? 0.92f : 0.86f; - - // 3x+1: Border / L-bracket / pipe accent color - Color accent; - if (hp is not null) - { - if (isCompatible) - { - accent = ColGold; - } - else if (mounted is { Spec.IsImperial: true }) - { - accent = ColGold; - } - else - { - accent = KindColor(hp.Kind); - if (mounted is null) - { - accent = accent.Lerp(ColBorderHull, 0.45f); - } - } - accent.A = 0.96f; - } - else if (isBorder) - { - accent = ColBorderHull.Lerp(ColBorderRadiatorCell, 0.28f); - accent.A = 0.72f; - } - else - { - accent = ColBorderHull; - accent.A = 0.62f; - } - - // 3x+2.R: 8-bit neighbor mismatch mask (Aetheria rule) - byte mask = 0; - for (int i = 0; i < Offsets8.Length; i++) - { - int nx = x + Offsets8[i].Dx; - int ny = y + Offsets8[i].Dy; - bool match; - if (!spec.IsActive(nx, ny)) - { - match = false; - } - else if (hp is not null) - { - match = ReferenceEquals(_hardpointLookup[nx, ny], hp); - } - else - { - match = _hardpointLookup[nx, ny] is null; - } - - if (!match) - { - mask |= (byte)(1 << i); - } - } - - // 3x+2.G: flags byte - int flags = 1; // bit 0: present - if (mounted is not null) flags |= 2; // bit 1: mounted module / item - if (isHovered) flags |= 4; // bit 2: hovered - if (stripped) flags |= 8; // bit 3: stripped / Armor == 0 - if (isCompatible) flags |= 16; // bit 4: compatible cargo drop target - if (isBorder) flags |= 32; // bit 5: border radiator cell - - float pulse = Math.Clamp(_hitPulse[x, y], 0f, 1f); - var meta = new Color(mask / 255f, flags / 255f, 0f, pulse); - - _dataImage.SetPixel(x * 3 + 0, y, fill); - _dataImage.SetPixel(x * 3 + 1, y, accent); - _dataImage.SetPixel(x * 3 + 2, y, meta); - } - } - - _dataDirty = true; - } - - private void PackTempTexture(ChassisGrid grid) - { - if (_tempImage is null) return; - var spec = grid.Spec; - - // First pass: active cells - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - if (!spec.IsActive(x, y)) continue; - - float t = grid.Temperature[x, y]; - float normTemp = Math.Clamp((t - ChassisGrid.AmbientTemp) / 180f, 0f, 1f); - - float stress = normTemp * 0.25f; - var hp = _hardpointLookup[x, y]; - var mounted = hp is not null ? grid.GetMountedOn(hp.Id) : null; - if (mounted is not null) - { - float highPlateau = mounted.Spec.OptimalTemp + mounted.Spec.PlateauWidth * 0.5f; - if (t > highPlateau) - { - float overSpan = MathF.Max(1f, mounted.Spec.MaxTemp - highPlateau); - stress = 0.5f + 0.5f * Math.Clamp((t - highPlateau) / overSpan, 0f, 1f); - } - else - { - stress = 0.5f * Math.Clamp(mounted.CurrentPerformance, 0f, 1f); - } - } - - _tempImage.SetPixel(x, y, new Color(normTemp, stress, 1f, 1f)); - } - } - - // Second pass: extrapolate boundary temperature into inactive neighbor cells - // so bilinear filter_linear sampling stays smooth without cold zero bleed at hull edges. - for (int y = 0; y < _gridHeight; y++) - { - for (int x = 0; x < _gridWidth; x++) - { - if (spec.IsActive(x, y)) continue; - - float sumR = 0f; - float sumG = 0f; - int count = 0; - for (int i = 0; i < Offsets8.Length; i++) - { - int nx = x + Offsets8[i].Dx; - int ny = y + Offsets8[i].Dy; - if (spec.IsActive(nx, ny)) - { - var c = _tempImage.GetPixel(nx, ny); - sumR += c.R; - sumG += c.G; - count++; - } - } - - if (count > 0) - { - _tempImage.SetPixel(x, y, new Color(sumR / count, sumG / count, 0f, 1f)); - } - else - { - _tempImage.SetPixel(x, y, new Color(0f, 0f, 0f, 1f)); - } - } - } - - _tempDirty = true; - } - - private void FlushTextures() - { - if (_dataDirty && _dataTex is not null && _dataImage is not null) - { - _dataTex.Update(_dataImage); - _dataDirty = false; - } - if (_tempDirty && _tempTex is not null && _tempImage is not null) - { - _tempTex.Update(_tempImage); - _tempDirty = false; - } - } - - private void SyncRectUniform() - { - Vector2 size = Size; - if (size.X < 2f || size.Y < 2f) - { - size = CustomMinimumSize; - } - _material.SetShaderParameter("rect_size", size); - } - - private static Color KindColor(HardpointKind kind) => kind switch - { - HardpointKind.Weapon => ColBorderWeapon, - HardpointKind.Engine => ColBorderEngine, - HardpointKind.Radiator => ColBorderRadiator, - HardpointKind.Armor => ColBorderArmor, - HardpointKind.Utility => ColBorderUtility, - _ => ColTextLight - }; - - private sealed partial class LabelsOverlay : Control - { - private readonly InventoryGridControl _owner; - public int DrawCount { get; private set; } - public readonly Dictionary LastDrawnTags = new(StringComparer.Ordinal); - - public LabelsOverlay(InventoryGridControl owner) => _owner = owner; - - public override void _Draw() - { - DrawCount++; - LastDrawnTags.Clear(); - var grid = _owner._grid; - if (grid is null) return; - - _owner.ComputeCellLayout(out float cellSize, out Vector2 origin); - if (cellSize < 14f) return; - - var spec = grid.Spec; - int fontSize = cellSize >= 38f ? 10 : 9; - float alpha = 0.95f; - - for (int i = 0; i < spec.Hardpoints.Length; i++) - { - var hp = spec.Hardpoints[i]; - var mounted = grid.GetMountedOn(hp.Id); - var pos = origin + new Vector2(hp.X * cellSize, hp.Y * cellSize); - float maxW = MathF.Max(12f, hp.Width * cellSize - 6f); - - string tag = mounted is not null - ? $"{mounted.Spec.Kind.ToString()[..1]}:{mounted.CurrentTemp:F0}°" - : hp.Kind.ToString()[..3].ToUpperInvariant(); - LastDrawnTags[hp.Id] = tag; - - Color col = mounted is { Spec.IsImperial: true } ? ColGold : ColTextLight; - col.A = alpha; - - // Dark shadow for crisp legibility over bright thermal glow - DrawString( - ThemeDB.FallbackFont, - pos + new Vector2(7f, fontSize + 6f), - tag, - HorizontalAlignment.Left, - maxW - 2f, - fontSize, - new Color(0.04f, 0.05f, 0.04f, alpha * 0.9f)); - - DrawString( - ThemeDB.FallbackFont, - pos + new Vector2(6f, fontSize + 5f), - tag, - HorizontalAlignment.Left, - maxW - 2f, - fontSize, - col); - } - } - } -} diff --git a/client/Main.cs b/client/Main.cs deleted file mode 100644 index f48c901..0000000 --- a/client/Main.cs +++ /dev/null @@ -1,654 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Godot; -using RustToDust.Core; -using RustToDust.Ymir; - -namespace RustToDust.Client; - -/// -/// Root Godot node for Rust to Dust. -/// Godot physics is Dummy; owns 100% of vehicle, thermal, spectator, and terrain physics at 60 Hz. -/// -public partial class Main : Node3D -{ - private TerrainRenderer _terrain = null!; - private ArenaRenderer _arena = null!; - private Camera3D _camera = null!; - private Hud _hud = null!; - private ArenaSession? _session; - - private PlayerInput? _scriptedInput; - private float _cameraYaw; - private float _cameraPitch = Mathf.DegToRad(12f); - private float _cameraZoom = 1.0f; - private Vector3 _cameraSmoothedAnchor = Vector3.Zero; - private float _elapsedSeconds; - private bool _interactQueued; - private int _seed = 42; - - // Temporary Step 1/Step 3 perf probe (enabled only when RTD_PERF_FRAMES is set) - private int _perfTargetFrames; - private int _perfFrameCount; - private int _perfPhysicsTicks; - private long _perfLastFrameTick; - private int _perfLastDirtyRebakes; - private readonly List _perfFrameMs = new(); - private readonly List _perfPhysicsStepMs = new(); - private readonly List _perfTerrainSyncMs = new(); - private readonly List _perfArenaSyncMs = new(); - private readonly List _perfHudMs = new(); - private readonly List _perfDirtyRebakeDelta = new(); - private readonly List _perfDrawCalls = new(); - private readonly List _perfPrimitives = new(); - private readonly List _perfObjects = new(); - private readonly List _perfNodeCount = new(); - private readonly List _perfTimeProcess = new(); - private readonly List _perfTimePhysicsProcess = new(); - private double _perfPendingStepMs; - private double _perfPendingTerrainMs; - private double _perfPendingArenaMs; - private double _perfCamMsSum; - - public ArenaSession Session => _session ?? throw new InvalidOperationException($"No active ArenaSession ({Failure ?? "uninitialized"})"); - public TerrainRenderer Terrain => _terrain; - public ArenaRenderer Arena => _arena; - public Hud Hud => _hud; - public string? Failure { get; private set; } - public int Seed => _seed; - public float CameraYaw => _cameraYaw; - - public override void _Ready() - { - SetupLightingAndSky(); - - _terrain = new TerrainRenderer { Name = "Terrain" }; - AddChild(_terrain); - - _arena = new ArenaRenderer { Name = "Arena" }; - AddChild(_arena); - - _camera = new Camera3D - { - Name = "ShoulderCamera", - Current = true, - Fov = 58f, - Far = 1800f - }; - AddChild(_camera); - - _hud = new Hud(() => _session, OnEquipCargo, () => _cameraYaw) { Name = "Hud" }; - AddChild(_hud); - - if (int.TryParse(System.Environment.GetEnvironmentVariable("RTD_PERF_FRAMES"), out int perfFrames) && perfFrames > 0) - { - _perfTargetFrames = perfFrames; - ArenaSession.PerfEnabled = true; - } - - Reset(_seed); - if (_perfTargetFrames > 0 && System.Environment.GetEnvironmentVariable("RTD_PERF_COMBAT") == "1" && _session is not null) - { - SetupPerfCombatScenario(_session); - } - _perfLastFrameTick = Stopwatch.GetTimestamp(); - _perfLastDirtyRebakes = _terrain.DirtyRebakes; - TerrainRenderer.PerfBakeTileMs = 0; - TerrainRenderer.PerfBakeTileCalls = 0; - VehicleVisualInstance.PerfDamageHeatMs = 0; - VehicleVisualInstance.PerfMaterialDupCount = 0; - } - - private void SetupPerfCombatScenario(ArenaSession session) - { - var p = session.State.Player; - float fwdX = MathF.Sin(p.Yaw); - float fwdZ = MathF.Cos(p.Yaw); - float rightX = -fwdZ; - float rightZ = fwdX; - - for (int i = 1; i <= 8 && i < session.State.Contenders.Count; i++) - { - float dist = 65f + (i % 4) * 11f; - float lat = (i - 4.5f) * 11f; - float tx = p.X + fwdX * dist + rightX * lat; - float tz = p.Z + fwdZ * dist + rightZ * lat; - session.SetContenderPose(session.State.Contenders[i].Id, tx, tz, p.Yaw + MathF.PI); - } - - for (int i = 0; i < 6 && i < session.State.Spectators.Spectators.Count; i++) - { - var s = session.State.Spectators.Spectators[i]; - float dist = 78f + (i % 3) * 12f; - float lat = (i - 2.5f) * 16f; - float sx = p.X + fwdX * dist + rightX * lat; - float sz = p.Z + fwdZ * dist + rightZ * lat; - session.SetSpectatorPose(s.Id, sx, sz, p.Yaw + MathF.PI); - session.State.Spectators.OnSpectatorDamaged(s, p.Id); - } - - var aimTarget = session.State.Contenders[1]; - _scriptedInput = new PlayerInput( - Throttle: 0.4f, - Steer: 0f, - AimWorldX: aimTarget.X, - AimWorldZ: aimTarget.Z, - Fire: true, - InteractPickup: false, - Brake: false); - - _arena.Sync(session, _elapsedSeconds, 0f); - UpdateCamera(1f); - _hud.Sync(session); - } - - public override void _ExitTree() - { - _session?.Dispose(); - _session = null; - } - - public void Reset(int seed) - { - _seed = seed; - _session?.Dispose(); - _session = null; - Failure = null; - - try - { - _session = new ArenaSession(seed); - var p = _session.State.Player; - _cameraYaw = p.Yaw; - _cameraPitch = Mathf.DegToRad(12f); - _cameraZoom = 1.0f; - _cameraSmoothedAnchor = ComputeTargetAnchor(p); - - _terrain.InvalidateAll(); - _terrain.Sync(_session.State.Terrain); - _arena.Sync(_session, _elapsedSeconds, 0f); - UpdateCamera(1f); - _hud.Sync(_session); - - if (DisplayServer.GetName() != "headless" && !_hud.GarageExpanded && _perfTargetFrames == 0) - { - Input.MouseMode = Input.MouseModeEnum.Captured; - } - } - catch (Exception ex) - { - Failure = ex.Message; - GD.PushError("ArenaSession startup failed: " + ex); - } - } - - public void SetScriptedInput(PlayerInput? input) => _scriptedInput = input; - - public override void _UnhandledInput(InputEvent @event) - { - if (@event is InputEventMouseMotion mm && Input.MouseMode == Input.MouseModeEnum.Captured) - { - _cameraYaw -= mm.Relative.X * 0.0028f; - _cameraPitch = Math.Clamp( - _cameraPitch + mm.Relative.Y * 0.0024f, - Mathf.DegToRad(-78f), - Mathf.DegToRad(62f)); - return; - } - - if (@event is InputEventKey key && key.Pressed && !key.Echo) - { - switch (key.Keycode) - { - case Key.E: - _interactQueued = true; - break; - case Key.Tab: - _hud.ToggleGarage(); - if (DisplayServer.GetName() != "headless") - { - Input.MouseMode = _hud.GarageExpanded - ? Input.MouseModeEnum.Visible - : Input.MouseModeEnum.Captured; - } - break; - case Key.R: - Reset(_seed + 1); - break; - case Key.Escape: - if (_hud.GarageExpanded) - { - _hud.ToggleGarage(); - if (DisplayServer.GetName() != "headless") - { - Input.MouseMode = Input.MouseModeEnum.Visible; - } - } - else if (DisplayServer.GetName() != "headless") - { - Input.MouseMode = Input.MouseMode == Input.MouseModeEnum.Captured - ? Input.MouseModeEnum.Visible - : Input.MouseModeEnum.Captured; - } - break; - } - } - else if (@event is InputEventMouseButton mb && mb.Pressed) - { - if (mb.ButtonIndex == MouseButton.WheelUp) - { - _cameraZoom = Math.Clamp(_cameraZoom - 0.08f, 0.75f, 1.6f); - } - else if (mb.ButtonIndex == MouseButton.WheelDown) - { - _cameraZoom = Math.Clamp(_cameraZoom + 0.08f, 0.75f, 1.6f); - } - else if (mb.ButtonIndex == MouseButton.Left && - Input.MouseMode == Input.MouseModeEnum.Visible && - !_hud.GarageExpanded && - !_hud.IsPointerOverInteractiveHud(mb.Position) && - DisplayServer.GetName() != "headless") - { - Input.MouseMode = Input.MouseModeEnum.Captured; - } - } - } - - public override void _PhysicsProcess(double delta) - { - if (_session is null) - { - return; - } - - _elapsedSeconds += (float)delta; - var input = _scriptedInput ?? GatherPlayerInput(); - _interactQueued = false; - - if (_perfTargetFrames > 0) - { - long t0 = Stopwatch.GetTimestamp(); - _session.Step(input); - long t1 = Stopwatch.GetTimestamp(); - double toMs = 1000.0 / Stopwatch.Frequency; - _perfPendingStepMs += (t1 - t0) * toMs; - _perfPhysicsTicks++; - } - else - { - _session.Step(input); - } - } - - public override void _Process(double delta) - { - if (_session is null) - { - return; - } - - if (_perfTargetFrames > 0) - { - double toMs = 1000.0 / Stopwatch.Frequency; - long tt0 = Stopwatch.GetTimestamp(); - _terrain.Sync(_session.State.Terrain); - long tt1 = Stopwatch.GetTimestamp(); - _arena.Sync(_session, _elapsedSeconds, (float)delta); - long ta1 = Stopwatch.GetTimestamp(); - _perfPendingTerrainMs = (tt1 - tt0) * toMs; - _perfPendingArenaMs = (ta1 - tt1) * toMs; - - long tc0 = Stopwatch.GetTimestamp(); - UpdateCamera((float)delta); - _terrain.UpdateTileLod(_camera.GlobalPosition); - long th0 = Stopwatch.GetTimestamp(); - _hud.Sync(_session); - long th1 = Stopwatch.GetTimestamp(); - _perfCamMsSum += (th0 - tc0) * toMs; - double hudMs = (th1 - th0) * toMs; - - long now = Stopwatch.GetTimestamp(); - double frameMs = (now - _perfLastFrameTick) * 1000.0 / Stopwatch.Frequency; - _perfLastFrameTick = now; - - _perfFrameMs.Add(frameMs); - _perfPhysicsStepMs.Add(_perfPendingStepMs); - _perfTerrainSyncMs.Add(_perfPendingTerrainMs); - _perfArenaSyncMs.Add(_perfPendingArenaMs); - _perfHudMs.Add(hudMs); - _perfPendingStepMs = 0; - _perfPendingTerrainMs = 0; - _perfPendingArenaMs = 0; - - int rebakesNow = _terrain.DirtyRebakes; - _perfDirtyRebakeDelta.Add(rebakesNow - _perfLastDirtyRebakes); - _perfLastDirtyRebakes = rebakesNow; - - _perfDrawCalls.Add(Performance.GetMonitor(Performance.Monitor.RenderTotalDrawCallsInFrame)); - _perfPrimitives.Add(Performance.GetMonitor(Performance.Monitor.RenderTotalPrimitivesInFrame)); - _perfObjects.Add(Performance.GetMonitor(Performance.Monitor.RenderTotalObjectsInFrame)); - _perfNodeCount.Add(Performance.GetMonitor(Performance.Monitor.ObjectNodeCount)); - _perfTimeProcess.Add(Performance.GetMonitor(Performance.Monitor.TimeProcess) * 1000.0); - _perfTimePhysicsProcess.Add(Performance.GetMonitor(Performance.Monitor.TimePhysicsProcess) * 1000.0); - - _perfFrameCount++; - if (_perfFrameCount >= _perfTargetFrames) - { - PrintPerfSummaryAndQuit(); - } - } - else - { - _terrain.Sync(_session.State.Terrain); - _arena.Sync(_session, _elapsedSeconds, (float)delta); - UpdateCamera((float)delta); - _terrain.UpdateTileLod(_camera.GlobalPosition); - _hud.Sync(_session); - } - } - - private void PrintPerfSummaryAndQuit() - { - static double Avg(List v) - { - if (v.Count == 0) return 0; - double s = 0; - foreach (double x in v) s += x; - return s / v.Count; - } - static double P95(List v) - { - if (v.Count == 0) return 0; - var sorted = new List(v); - sorted.Sort(); - int idx = Math.Clamp((int)Math.Ceiling(sorted.Count * 0.95) - 1, 0, sorted.Count - 1); - return sorted[idx]; - } - double totalMs = 0; - foreach (double x in _perfFrameMs) totalMs += x; - double fps = totalMs > 0 ? (_perfFrameMs.Count * 1000.0 / totalMs) : 0; - double rebakeAvg = 0; - int rebakeTotal = 0; - foreach (int r in _perfDirtyRebakeDelta) rebakeTotal += r; - rebakeAvg = _perfDirtyRebakeDelta.Count > 0 ? (double)rebakeTotal / _perfDirtyRebakeDelta.Count : 0; - - double steadyMs = 0; - int steadyCount = Math.Max(0, _perfFrameMs.Count - 10); - for (int i = 10; i < _perfFrameMs.Count; i++) steadyMs += _perfFrameMs[i]; - double steadyAvgMs = steadyCount > 0 ? steadyMs / steadyCount : 0; - double steadyFps = steadyAvgMs > 0 ? 1000.0 / steadyAvgMs : 0; - - GD.Print("=== PERF BENCHMARK SUMMARY ==="); - GD.Print($"Frames={_perfFrameMs.Count} PhysicsTicks={_perfPhysicsTicks} AvgFPS={fps:F2} SteadyFPS(10..59)={steadyFps:F2} EngineFPS={Engine.GetFramesPerSecond():F1}"); - GD.Print($"frameMs: avg={Avg(_perfFrameMs):F2} steadyAvg={steadyAvgMs:F2} p95={P95(_perfFrameMs):F2}"); - GD.Print($"physicsStepMs/frame: avg={Avg(_perfPhysicsStepMs):F2} p95={P95(_perfPhysicsStepMs):F2}"); - GD.Print($"terrainSyncMs/frame: avg={Avg(_perfTerrainSyncMs):F2} p95={P95(_perfTerrainSyncMs):F2} dirtyRebakesTotal={rebakeTotal} dirtyRebakesAvg={rebakeAvg:F2}"); - GD.Print($"arenaSyncMs/frame: avg={Avg(_perfArenaSyncMs):F2} p95={P95(_perfArenaSyncMs):F2}"); - GD.Print($"hudMs/frame: avg={Avg(_perfHudMs):F2} p95={P95(_perfHudMs):F2}"); - GD.Print($"RenderTotalDrawCallsInFrame: avg={Avg(_perfDrawCalls):F0} max={P95(_perfDrawCalls):F0}"); - GD.Print($"RenderTotalPrimitivesInFrame: avg={Avg(_perfPrimitives):F0}"); - GD.Print($"RenderTotalObjectsInFrame: avg={Avg(_perfObjects):F0}"); - GD.Print($"ObjectNodeCount: avg={Avg(_perfNodeCount):F0}"); - GD.Print($"TimeProcessMs: avg={Avg(_perfTimeProcess):F2}"); - GD.Print($"TimePhysicsProcessMs: avg={Avg(_perfTimePhysicsProcess):F2}"); - GD.Print($"UpdateCameraMs/frame: avg={_perfCamMsSum / _perfFrameMs.Count:F2}"); - GD.Print($"StepBreakdownMs/tick: ring={ArenaSession.PerfRingMs / _perfPhysicsTicks:F2} ai={ArenaSession.PerfAiMs / _perfPhysicsTicks:F2} drive={ArenaSession.PerfDriveMs / _perfPhysicsTicks:F2} world={ArenaSession.PerfWorldMs / _perfPhysicsTicks:F2} sync={ArenaSession.PerfBodySyncMs / _perfPhysicsTicks:F2} detect={ArenaSession.PerfDetectMs / _perfPhysicsTicks:F2} weapons={ArenaSession.PerfWeaponsMs / _perfPhysicsTicks:F2}"); - GD.Print($"CombatProbes: syncDamageHeatMsTotal={VehicleVisualInstance.PerfDamageHeatMs:F2} matDups={VehicleVisualInstance.PerfMaterialDupCount} bakeTileMsTotal={TerrainRenderer.PerfBakeTileMs:F2} bakeTileCalls={TerrainRenderer.PerfBakeTileCalls} debrisActive={_arena.Debris.ActiveCount} tracers={_session?.State.Tracers.Count ?? 0}"); - foreach (var kv in _arena.AssetCache.Vehicles) - { - int tris = 0; - var bm = kv.Value.BakedStaticMesh; - for (int s = 0; s < bm.GetSurfaceCount(); s++) - { - var arr = bm.SurfaceGetArrays(s); - if (arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array) - tris += arr[(int)Mesh.ArrayType.Index].AsInt32Array().Length / 3; - } - int farTris = 0; - var fm = kv.Value.BakedLodFarMesh; - for (int s = 0; s < fm.GetSurfaceCount(); s++) - { - var arr = fm.SurfaceGetArrays(s); - if (arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array) - farTris += arr[(int)Mesh.ArrayType.Index].AsInt32Array().Length / 3; - } - int nodes = CountSubtreeNodes(kv.Value.SceneTemplate); - GD.Print($" Vehicle '{kv.Key}': nodes={nodes} bakedTris={tris} farTris={farTris} surfs={bm.GetSurfaceCount()} farSurfs={fm.GetSurfaceCount()} detachChunks={kv.Value.DetachableParts.Count}"); - } - if (_arena.AssetCache.Vehicles.TryGetValue("paladin", out var palTpl)) - { - var names = new List(); - CollectNodeNames(palTpl.SceneTemplate, names, 40); - GD.Print($" Paladin sample nodes: {string.Join(", ", names)}"); - } - GD.Print("=== END PERF BENCHMARK ==="); - string? previewOut = System.Environment.GetEnvironmentVariable("RTD_CAPTURE_PREVIEW"); - if (!string.IsNullOrWhiteSpace(previewOut) && DisplayServer.GetName() != "headless") - { - var img = GetViewport().GetTexture()?.GetImage(); - if (img is not null) - { - var err = img.SavePng(previewOut); - GD.Print($"PERF PREVIEW SAVED: {previewOut} ({img.GetWidth()}x{img.GetHeight()}, err={err})"); - } - } - GetTree().Quit(0); - } - - private static void CollectNodeNames(Node cur, List outNames, int limit) - { - if (outNames.Count >= limit) return; - outNames.Add($"{cur.Name}({cur.GetType().Name})"); - for (int i = 0; i < cur.GetChildCount(); i++) CollectNodeNames(cur.GetChild(i), outNames, limit); - } - - private static int CountSubtreeNodes(Node cur) - { - int n = 1; - for (int i = 0; i < cur.GetChildCount(); i++) n += CountSubtreeNodes(cur.GetChild(i)); - return n; - } - - private PlayerInput GatherPlayerInput() - { - float throttle = 0f; - if (Input.IsKeyPressed(Key.W) || Input.IsKeyPressed(Key.Up)) throttle += 1f; - if (Input.IsKeyPressed(Key.S) || Input.IsKeyPressed(Key.Down)) throttle -= 1f; - - float steer = 0f; - if (Input.IsKeyPressed(Key.D) || Input.IsKeyPressed(Key.Right)) steer += 1f; - if (Input.IsKeyPressed(Key.A) || Input.IsKeyPressed(Key.Left)) steer -= 1f; - - bool isVtol = Session.State.Player.Grid.Spec.IsVtol; - float verticalThrottle = 0f; - if (Input.IsKeyPressed(Key.Space)) verticalThrottle += 1f; - if (Input.IsKeyPressed(Key.C) || Input.IsKeyPressed(Key.Ctrl)) verticalThrottle -= 1f; - - bool brake = isVtol ? Input.IsKeyPressed(Key.Shift) : Input.IsKeyPressed(Key.Space); - bool pointerOnHud = Input.MouseMode != Input.MouseModeEnum.Captured && - _hud.IsPointerOverInteractiveHud(GetViewport().GetMousePosition()); - bool fire = !pointerOnHud && Input.IsMouseButtonPressed(MouseButton.Left); - - var (aimX, aimY, aimZ) = ComputeCenterScreenAim(); - return new PlayerInput( - Throttle: throttle, - Steer: steer, - AimWorldX: aimX, - AimWorldZ: aimZ, - Fire: fire, - InteractPickup: _interactQueued, - Brake: brake, - AimWorldY: aimY, - VerticalThrottle: verticalThrottle); - } - - private (float AimX, float AimY, float AimZ) ComputeCenterScreenAim() - { - var player = Session.State.Player; - Vector2 screenSize = GetViewport().GetVisibleRect().Size; - if (screenSize.X < 2f || screenSize.Y < 2f) - { - return ( - player.X + MathF.Sin(_cameraYaw) * 40f, - player.Y, - player.Z + MathF.Cos(_cameraYaw) * 40f); - } - - Vector2 center = screenSize * 0.5f; - Vector3 rayOrigin = _camera.ProjectRayOrigin(center); - Vector3 rayDir = _camera.ProjectRayNormal(center); - - const float maxAimDist = 450f; - ulong playerStableId = ArenaSession.ContenderStableIdBase + (ulong)player.Id; - - Vector3 castOrigin = rayOrigin; - float remainingDist = maxAimDist; - float boxDist = maxAimDist; - Vector3 boxHitPt = Vector3.Zero; - bool hasBoxHit = false; - - // Cast against Ymir world, skipping the player's own chassis if hit along the shoulder ray. - for (int attempt = 0; attempt < 2; attempt++) - { - var hit = Session.World.CastRayClosest( - (castOrigin.X, castOrigin.Y, castOrigin.Z), - (rayDir.X * remainingDist, rayDir.Y * remainingDist, rayDir.Z * remainingDist)); - if (!hit.Hit) - { - break; - } - - var pt = new Vector3(hit.Point.X, hit.Point.Y, hit.Point.Z); - if (hit.StableId == playerStableId) - { - float skip = rayOrigin.DistanceTo(pt) + 0.4f; - castOrigin = rayOrigin + rayDir * skip; - remainingDist = MathF.Max(1f, maxAimDist - skip); - continue; - } - - boxHitPt = pt; - boxDist = rayOrigin.DistanceTo(pt); - hasBoxHit = true; - break; - } - - bool hasTerrainHit = Session.State.Terrain.Raycast( - rayOrigin.X, rayOrigin.Y, rayOrigin.Z, - rayDir.X, rayDir.Y, rayDir.Z, - maxDistance: boxDist, - out float tx, out float ty, out float tz, out float terrainDist); - - if (hasTerrainHit && terrainDist <= boxDist) - { - return (tx, ty, tz); - } - - if (hasBoxHit) - { - return (boxHitPt.X, boxHitPt.Y, boxHitPt.Z); - } - - Vector3 farPt = rayOrigin + rayDir * 320f; - return (farPt.X, farPt.Y, farPt.Z); - } - - private Vector3 ComputeTargetAnchor(ContenderState p) - { - var spec = p.Grid.Spec; - float heightT = Math.Clamp((spec.HalfHeight - 0.75f) / (2.35f - 0.75f), 0f, 1.2f); - float upOffset = Mathf.Lerp(3.2f, 6.5f, heightT); - float rightOffset = Mathf.Lerp(1.6f, 2.8f, heightT); - - var camRight = new Vector3(-MathF.Cos(_cameraYaw), 0f, MathF.Sin(_cameraYaw)); - return new Vector3(p.X, p.Y + (upOffset - spec.HalfHeight), p.Z) + camRight * rightOffset; - } - - private void UpdateCamera(float dt) - { - var p = Session.State.Player; - var spec = p.Grid.Spec; - float heightT = Math.Clamp((spec.HalfHeight - 0.75f) / (2.35f - 0.75f), 0f, 1.2f); - float backDist = Mathf.Lerp(7.5f, 12.5f, heightT) * _cameraZoom; - - Vector3 targetAnchor = ComputeTargetAnchor(p); - float blend = dt >= 1f ? 1f : 1f - MathF.Exp(-dt * 16f); - _cameraSmoothedAnchor = _cameraSmoothedAnchor.Lerp(targetAnchor, blend); - - var camFwdHoriz = new Vector3(MathF.Sin(_cameraYaw), 0f, MathF.Cos(_cameraYaw)); - var lookDir = (camFwdHoriz * MathF.Cos(_cameraPitch) - Vector3.Up * MathF.Sin(_cameraPitch)).Normalized(); - - // Pull camera forward along arm if terrain or static cover blocks the shoulder-to-camera ray - float effectiveBack = backDist; - if (Session.State.Terrain.Raycast( - _cameraSmoothedAnchor.X, _cameraSmoothedAnchor.Y, _cameraSmoothedAnchor.Z, - -lookDir.X, -lookDir.Y, -lookDir.Z, - backDist, - out _, out _, out _, out float terrainDist)) - { - effectiveBack = MathF.Min(effectiveBack, MathF.Max(1.6f, terrainDist - 0.6f)); - } - - var boxHit = Session.World.CastRayClosest( - (_cameraSmoothedAnchor.X, _cameraSmoothedAnchor.Y, _cameraSmoothedAnchor.Z), - (-lookDir.X * effectiveBack, -lookDir.Y * effectiveBack, -lookDir.Z * effectiveBack)); - if (boxHit.Hit && boxHit.StableId < ArenaSession.ContenderStableIdBase) - { - var pt = new Vector3(boxHit.Point.X, boxHit.Point.Y, boxHit.Point.Z); - effectiveBack = MathF.Min(effectiveBack, MathF.Max(1.6f, _cameraSmoothedAnchor.DistanceTo(pt) - 0.5f)); - } - - Vector3 camPos = _cameraSmoothedAnchor - lookDir * effectiveBack; - float minTerrainY = Session.State.Terrain.SampleHeight(camPos.X, camPos.Z) + 1.2f; - if (camPos.Y < minTerrainY) - { - camPos.Y = minTerrainY; - } - - _camera.GlobalPosition = camPos; - _camera.LookAt(camPos + lookDir * 60f, Vector3.Up); - } - - private void OnEquipCargo(int cargoIndex, string hardpointId) - { - _session?.TryEquipCargo(cargoIndex, hardpointId); - } - - private void SetupLightingAndSky() - { - var sun = new DirectionalLight3D - { - Name = "DesertSun", - LightColor = new Color(1.0f, 0.92f, 0.78f), - LightEnergy = 1.45f, - ShadowEnabled = true, - DirectionalShadowMode = DirectionalLight3D.ShadowMode.Parallel2Splits, - DirectionalShadowMaxDistance = 88f, - RotationDegrees = new Vector3(-48f, 32f, 0f) - }; - AddChild(sun); - - var skyMat = new ProceduralSkyMaterial - { - SkyTopColor = new Color(0.24f, 0.34f, 0.44f), - SkyHorizonColor = new Color(0.76f, 0.56f, 0.37f), - GroundBottomColor = new Color(0.32f, 0.22f, 0.14f), - GroundHorizonColor = new Color(0.70f, 0.50f, 0.33f) - }; - var env = new Godot.Environment - { - BackgroundMode = Godot.Environment.BGMode.Sky, - Sky = new Sky { SkyMaterial = skyMat }, - AmbientLightSource = Godot.Environment.AmbientSource.Sky, - AmbientLightEnergy = 0.55f, - FogEnabled = true, - FogMode = Godot.Environment.FogModeEnum.Depth, - FogLightColor = new Color(0.76f, 0.57f, 0.39f), - FogDensity = 0.72f, - FogDepthBegin = 380f, - FogDepthEnd = 1100f - }; - AddChild(new WorldEnvironment { Name = "WorldEnv", Environment = env }); - } -} diff --git a/client/Main.tscn b/client/Main.tscn deleted file mode 100644 index 4285746..0000000 --- a/client/Main.tscn +++ /dev/null @@ -1,6 +0,0 @@ -[gd_scene load_steps=2 format=3] - -[ext_resource type="Script" path="res://Main.cs" id="1"] - -[node name="Main" type="Node3D"] -script = ExtResource("1") diff --git a/client/MultiMeshPartPool.cs b/client/MultiMeshPartPool.cs deleted file mode 100644 index 1de7bd8..0000000 --- a/client/MultiMeshPartPool.cs +++ /dev/null @@ -1,247 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; - -namespace RustToDust.Client; - -/// -/// Unified MultiMeshInstance3D part pool sharing mech_paint.gdshader in vertex-material mode. -/// Collapses all live vehicle limbs, armor chunks, mounted gear, salvage drops, and tumbling debris -/// sharing the same single-surface into one -/// draw call with per-instance INSTANCE_CUSTOM = (scorch, heat_glow, role_tint_index, alpha). -/// -public partial class MultiMeshPartPool : Node3D -{ - private readonly record struct PendingInstance( - Transform3D Xform, - Color Custom, - bool WantsShadow, - Vector3 WorldCenter, - float ScaledRadius); - - private sealed class PoolBucket - { - public required ArrayMesh Mesh; - public required Vector3 LocalCenter; - public required float LocalRadius; - public required MultiMesh MultiMesh; - public required MultiMeshInstance3D Node; - public readonly List Pending = new(16); - } - - private readonly Dictionary _buckets = new(); - private readonly List _bucketList = new(); - private readonly Plane[] _frustumPlanes = new Plane[6]; - private ShaderMaterial _sharedMat = null!; - private bool _hasFrustum; - private Vector3 _camPos; - - public int BucketCount => _bucketList.Count; - public int ActiveBucketCount { get; private set; } - public int TotalSubmittedInstances { get; private set; } - - public override void _Ready() - { - Shader shader = GD.Load("res://mech_paint.gdshader") - ?? throw new InvalidOperationException("Failed to load res://mech_paint.gdshader for MultiMeshPartPool."); - _sharedMat = new ShaderMaterial { Shader = shader }; - _sharedMat.SetShaderParameter("use_vertex_material", true); - _sharedMat.SetShaderParameter("heat_emission_energy", 2.6f); - } - - public void EnsureInitialized() - { - if (_sharedMat is null) - { - _Ready(); - } - } - - public void BeginFrame(Camera3D? cam) - { - EnsureInitialized(); - TotalSubmittedInstances = 0; - - for (int i = 0; i < _bucketList.Count; i++) - { - _bucketList[i].Pending.Clear(); - } - - if (cam is not null && cam.IsInsideTree()) - { - _camPos = cam.GlobalPosition; - var planes = cam.GetFrustum(); - if (planes.Count >= 6) - { - for (int i = 0; i < 6; i++) - { - _frustumPlanes[i] = planes[i]; - } - _hasFrustum = true; - return; - } - } - _hasFrustum = false; - } - - public void Submit( - ArrayMesh mesh, - in Transform3D worldXform, - in Color customData, - bool wantsShadow) - { - if (mesh is null || mesh.GetSurfaceCount() == 0) - { - return; - } - - PoolBucket bucket = GetOrCreateBucket(mesh); - - Basis b = worldXform.Basis; - float maxScaleSq = MathF.Max( - b.Column0.LengthSquared(), - MathF.Max(b.Column1.LengthSquared(), b.Column2.LengthSquared())); - float scale = MathF.Sqrt(MathF.Max(0.0001f, maxScaleSq)); - float scaledRadius = bucket.LocalRadius * scale; - Vector3 worldCenter = worldXform * bucket.LocalCenter; - - if (_hasFrustum && !IsSphereInFrustum(worldCenter, scaledRadius)) - { - return; - } - - bool castShadow = wantsShadow && bucket.LocalRadius >= 0.55f; - if (castShadow && _hasFrustum) - { - float maxShadowDist = 85f + scaledRadius; - if (worldCenter.DistanceSquaredTo(_camPos) > maxShadowDist * maxShadowDist) - { - castShadow = false; - } - } - - bucket.Pending.Add(new PendingInstance(worldXform, customData, castShadow, worldCenter, scaledRadius)); - TotalSubmittedInstances++; - } - - public void EndFrame() - { - int active = 0; - for (int i = 0; i < _bucketList.Count; i++) - { - PoolBucket bucket = _bucketList[i]; - int count = bucket.Pending.Count; - if (count == 0) - { - bucket.MultiMesh.VisibleInstanceCount = 0; - bucket.Node.Visible = false; - continue; - } - - active++; - if (bucket.MultiMesh.InstanceCount < count) - { - bucket.MultiMesh.InstanceCount = Math.Max(16, count * 2); - } - - Vector3 aabbMin = new(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity); - Vector3 aabbMax = new(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity); - bool anyShadow = false; - - for (int k = 0; k < count; k++) - { - PendingInstance inst = bucket.Pending[k]; - bucket.MultiMesh.SetInstanceTransform(k, inst.Xform); - bucket.MultiMesh.SetInstanceCustomData(k, inst.Custom); - if (inst.WantsShadow) - { - anyShadow = true; - } - - Vector3 r = new(inst.ScaledRadius, inst.ScaledRadius, inst.ScaledRadius); - Vector3 lo = inst.WorldCenter - r; - Vector3 hi = inst.WorldCenter + r; - aabbMin = new Vector3(MathF.Min(aabbMin.X, lo.X), MathF.Min(aabbMin.Y, lo.Y), MathF.Min(aabbMin.Z, lo.Z)); - aabbMax = new Vector3(MathF.Max(aabbMax.X, hi.X), MathF.Max(aabbMax.Y, hi.Y), MathF.Max(aabbMax.Z, hi.Z)); - } - - bucket.MultiMesh.VisibleInstanceCount = count; - bucket.Node.CustomAabb = new Aabb(aabbMin, aabbMax - aabbMin); - bucket.Node.CastShadow = anyShadow - ? GeometryInstance3D.ShadowCastingSetting.On - : GeometryInstance3D.ShadowCastingSetting.Off; - bucket.Node.Visible = true; - } - ActiveBucketCount = active; - } - - public void ClearAll() - { - for (int i = 0; i < _bucketList.Count; i++) - { - PoolBucket bucket = _bucketList[i]; - bucket.Pending.Clear(); - bucket.MultiMesh.VisibleInstanceCount = 0; - bucket.Node.Visible = false; - } - ActiveBucketCount = 0; - TotalSubmittedInstances = 0; - } - - private PoolBucket GetOrCreateBucket(ArrayMesh mesh) - { - ulong id = mesh.GetInstanceId(); - if (_buckets.TryGetValue(id, out PoolBucket? existing)) - { - return existing; - } - - Aabb aabb = mesh.GetAabb(); - Vector3 localCenter = aabb.GetCenter(); - float localRadius = MathF.Max(0.2f, aabb.Size.Length() * 0.5f); - - var mm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = mesh, - InstanceCount = 16, - VisibleInstanceCount = 0 - }; - var mmi = new MultiMeshInstance3D - { - Name = $"MMPool_{_bucketList.Count}", - Multimesh = mm, - MaterialOverride = _sharedMat, - Visible = false, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off - }; - AddChild(mmi); - - var created = new PoolBucket - { - Mesh = mesh, - LocalCenter = localCenter, - LocalRadius = localRadius, - MultiMesh = mm, - Node = mmi - }; - _buckets[id] = created; - _bucketList.Add(created); - return created; - } - - private bool IsSphereInFrustum(Vector3 center, float radius) - { - float margin = radius + 1.5f; - for (int i = 0; i < 6; i++) - { - if (_frustumPlanes[i].DistanceTo(center) > margin) - { - return false; - } - } - return true; - } -} diff --git a/client/NativeLibraries.cs b/client/NativeLibraries.cs deleted file mode 100644 index e5bafde..0000000 --- a/client/NativeLibraries.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.IO; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using Godot; -using Ymir.Box3D; - -namespace RustToDust.Client; - -/// -/// Finds ymir_box3d for Ymir.Box3D's DllImports. Godot loads game assemblies into its own load context, so the -/// default probing does not look beside them. A run from the editor or --path loads the library from the -/// project's build directory; an exported run from the data folder Godot puts beside the executable. -/// -internal static class NativeLibraries -{ - private const string Library = "ymir_box3d"; - -#pragma warning disable CA2255 // application code: the resolver must exist before the first DllImport - [ModuleInitializer] - internal static void Register() => - NativeLibrary.SetDllImportResolver(typeof(Box3DSoaWorld).Assembly, Resolve); - - private static IntPtr Resolve(string name, Assembly assembly, DllImportSearchPath? searchPath) - { - if (name != Library) return IntPtr.Zero; - string fileName = FileName(); - - if (OS.HasFeature("template")) - { - string exportPath = Path.Combine( - Path.GetDirectoryName(OS.GetExecutablePath())!, - $"data_RustToDust.Client_{Platform()}_{Arch()}", - fileName); - return File.Exists(exportPath) && NativeLibrary.TryLoad(exportPath, out var exportHandle) - ? exportHandle - : IntPtr.Zero; - } - - string debugPath = Path.Combine(ProjectSettings.GlobalizePath("res://.godot/mono/temp/bin/Debug"), fileName); - if (File.Exists(debugPath) && NativeLibrary.TryLoad(debugPath, out var debugHandle)) - { - return debugHandle; - } - - string releasePath = Path.Combine(ProjectSettings.GlobalizePath("res://.godot/mono/temp/bin/Release"), fileName); - return File.Exists(releasePath) && NativeLibrary.TryLoad(releasePath, out var releaseHandle) - ? releaseHandle - : IntPtr.Zero; - } - - private static string FileName() => - OperatingSystem.IsWindows() ? "ymir_box3d.dll" : OperatingSystem.IsMacOS() ? "libymir_box3d.dylib" : "libymir_box3d.so"; - - private static string Platform() => - OperatingSystem.IsWindows() ? "windows" : OperatingSystem.IsMacOS() ? "macos" : "linuxbsd"; - - private static string Arch() => - RuntimeInformation.ProcessArchitecture == System.Runtime.InteropServices.Architecture.Arm64 ? "arm64" : "x86_64"; -} diff --git a/client/PomDecalPool.cs b/client/PomDecalPool.cs deleted file mode 100644 index e03f7fb..0000000 --- a/client/PomDecalPool.cs +++ /dev/null @@ -1,440 +0,0 @@ -using System; -using System.IO; -using Godot; -using RustToDust.Core; -using RustToDust.Ymir; - -namespace RustToDust.Client; - -/// -/// Live 4x4 Parallax Occlusion Mapping (POM) combat decal pool rendered in 1 draw call -/// using decal_pom.gdshader and assets/decals/decal_atlas_*.png. -/// Supports terrain impacts, static cover impacts, and vehicle-cell-attached scars -/// that cool smoothly over 3.5s, ride with moving limbs/turrets, and fade when armor detaches. -/// -public partial class PomDecalPool : Node3D -{ - public const int MaxDecals = 512; - private const float HeatCoolDuration = 3.5f; - private const float DetachFadeDuration = 0.35f; - private const float EndFadeDuration = 2.0f; - - private struct DecalSlot - { - public bool Active; - public float Age; - public float Lifetime; - public float TileIndex; - public float InitialHeat; - public float BaseOpacity; - public float DepthScale; - public Transform3D WorldXform; - - public bool IsAttached; - public VehicleVisualInstance? Visual; - public Node3D? Pivot; - public Transform3D LocalToPivot; - public ChassisGrid? Grid; - public int CellX; - public int CellY; - public float DetachedFadeRemaining; - } - - private readonly DecalSlot[] _slots = new DecalSlot[MaxDecals]; - private int _writeCursor; - private long _lastProcessedHitId; - private MatchState? _boundState; - - private MultiMesh _multiMesh = null!; - private MultiMeshInstance3D _instanceNode = null!; - private ShaderMaterial _material = null!; - private ImageTexture _albedoTex = null!; - private ImageTexture _normalTex = null!; - private ImageTexture _ormhTex = null!; - - public int ActiveCount { get; private set; } - - public override void _Ready() - { - Shader shader = GD.Load("res://decal_pom.gdshader") - ?? throw new InvalidOperationException("Failed to load res://decal_pom.gdshader"); - - string vehiclesDir = VehicleCatalogLoader.LocateVehiclesDirectory(); - string assetsDir = Directory.GetParent(vehiclesDir)?.FullName - ?? throw new DirectoryNotFoundException("Could not locate assets directory."); - string decalsDir = Path.Combine(assetsDir, "decals"); - - _albedoTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_albedo.png")); - _normalTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_normal.png")); - _ormhTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_ormh.png")); - - _material = new ShaderMaterial { Shader = shader }; - _material.SetShaderParameter("albedo_tex", _albedoTex); - _material.SetShaderParameter("normal_tex", _normalTex); - _material.SetShaderParameter("ormh_tex", _ormhTex); - _material.SetShaderParameter("use_instance_custom", true); - _material.SetShaderParameter("default_depth_scale", 0.06f); - _material.SetShaderParameter("normal_offset", 0.012f); - _material.SetShaderParameter("heat_emission_energy", 2.8f); - - _multiMesh = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = new QuadMesh { Size = Vector2.One }, - InstanceCount = MaxDecals, - VisibleInstanceCount = 0 - }; - - _instanceNode = new MultiMeshInstance3D - { - Name = "PomDecalsBatch", - Multimesh = _multiMesh, - MaterialOverride = _material, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off, - CustomAabb = new Aabb(new Vector3(-900f, -60f, -900f), new Vector3(1800f, 180f, 1800f)), - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - Visible = false - }; - AddChild(_instanceNode); - } - - public void EnsureInitialized() - { - if (_multiMesh is null) - { - _Ready(); - } - } - - public void ClearAll() - { - Array.Clear(_slots, 0, _slots.Length); - _writeCursor = 0; - _lastProcessedHitId = 0; - ActiveCount = 0; - if (_multiMesh is not null) - { - _multiMesh.VisibleInstanceCount = 0; - _instanceNode.Visible = false; - } - } - - public void Sync( - ArenaSession session, - float dt, - Func getVisual) - { - EnsureInitialized(); - var state = session.State; - if (!ReferenceEquals(_boundState, state)) - { - _boundState = state; - ClearAll(); - } - - var hits = state.HitEvents; - for (int i = 0; i < hits.Count; i++) - { - var ev = hits[i]; - if (ev.EventId <= _lastProcessedHitId) - { - continue; - } - _lastProcessedHitId = ev.EventId; - StampHit(ev, state, getVisual); - } - - UpdateAndCommit(dt); - } - - public void StampTestDecal( - Vector3 worldPos, - Vector3 worldNormal, - float size, - int tileIndex, - float heat = 0.95f, - float depth = 0.085f) - { - EnsureInitialized(); - Transform3D xf = BuildSurfaceTransform(worldPos, worldNormal, size, (float)_writeCursor * 1.17f); - AllocateSlot(new DecalSlot - { - Active = true, - Age = 0f, - Lifetime = 26f, - TileIndex = tileIndex, - InitialHeat = heat, - BaseOpacity = 1f, - DepthScale = depth, - WorldXform = xf, - DetachedFadeRemaining = -1f - }); - } - - private void StampHit( - in HitFeedbackEvent ev, - MatchState state, - Func getVisual) - { - if (ev.IsAirburst && ev.TargetKind == HitTargetKind.StaticCover && ev.TargetId < 0) - { - return; - } - - bool isVehicle = ev.TargetKind == HitTargetKind.Contender || ev.TargetKind == HitTargetKind.Spectator; - int tile; - float size; - float heat; - float depth; - float lifetime; - - switch (ev.WeaponClass) - { - case WeaponVisualClass.ThermalBeam: - tile = string.Equals(ev.WeaponId, "gilded_lance", StringComparison.Ordinal) || !isVehicle - ? 14 // molten plasma crater - : 14; - size = isVehicle - ? (string.Equals(ev.WeaponId, "gilded_lance", StringComparison.Ordinal) ? 0.78f : 0.56f) - : (string.Equals(ev.WeaponId, "gilded_lance", StringComparison.Ordinal) ? 2.10f : 1.35f); - heat = 1.0f; - depth = 0.095f; - lifetime = 26f; - break; - - case WeaponVisualClass.Explosive: - bool isRecoilless = string.Equals(ev.WeaponId, "recoilless", StringComparison.Ordinal); - tile = isVehicle ? 13 : 15; // shrapnel gouge on armor, blast scorch on ground - size = isVehicle ? (isRecoilless ? 0.88f : 0.66f) : (isRecoilless ? 3.20f : 1.75f); - heat = isRecoilless ? 0.98f : 0.82f; - depth = isRecoilless ? 0.095f : 0.075f; - lifetime = 28f; - break; - - case WeaponVisualClass.Autocannon: - tile = (ev.EventId % 3 == 0) ? 13 : 12; // AP hole or shrapnel gouge - size = isVehicle ? 0.54f : 0.92f; - heat = 0.90f; - depth = 0.088f; - lifetime = 24f; - break; - - default: // KineticLight (mg_762, pd_flak) - tile = string.Equals(ev.WeaponId, "pd_flak", StringComparison.Ordinal) ? 13 : 12; - size = isVehicle ? 0.36f : 0.58f; - heat = 0.78f; - depth = 0.078f; - lifetime = 20f; - break; - } - - Vector3 hitPos = new(ev.HitX, ev.HitY, ev.HitZ); - Vector3 normal = new(ev.NormalX, ev.NormalY, ev.NormalZ); - if (normal.LengthSquared() < 1e-4f) normal = Vector3.Up; - normal = normal.Normalized(); - - if (isVehicle) - { - bool isContender = ev.TargetKind == HitTargetKind.Contender; - VehicleVisualInstance? vis = getVisual(isContender, ev.TargetId); - if (vis is null || !vis.Root.IsInsideTree() || !vis.Root.Visible) - { - return; - } - - ChassisGrid? grid = null; - if (isContender) - { - if (ev.TargetId >= 0 && ev.TargetId < state.Contenders.Count) - grid = state.Contenders[ev.TargetId].Grid; - } - else - { - var specs = state.Spectators.Spectators; - for (int si = 0; si < specs.Count; si++) - { - if (specs[si].Id == ev.TargetId) - { - grid = specs[si].Grid; - break; - } - } - } - if (grid is null || grid.IsDestroyed) - { - return; - } - - Vector3 rayDir = (vis.Root.GlobalPosition - hitPos); - if (rayDir.LengthSquared() < 1e-4f) rayDir = -normal; - rayDir = rayDir.Normalized(); - Vector3 rayOrigin = hitPos - rayDir * 0.75f; - - if (vis.TryRayHitAttachedPart(rayOrigin, rayDir, out Node3D? hitPivot, out Transform3D localToPivot, size) && - hitPivot is not null) - { - AllocateSlot(new DecalSlot - { - Active = true, - Age = 0f, - Lifetime = lifetime, - TileIndex = tile, - InitialHeat = heat, - BaseOpacity = 1f, - DepthScale = depth, - IsAttached = true, - Visual = vis, - Pivot = hitPivot, - LocalToPivot = localToPivot, - Grid = grid, - CellX = ev.CellX, - CellY = ev.CellY, - DetachedFadeRemaining = -1f - }); - return; - } - - // Fallback: attach to Root if sculpted geometry ray glanced past edge - Transform3D worldXf = BuildSurfaceTransform(hitPos, normal, size, ev.EventId * 0.73f); - AllocateSlot(new DecalSlot - { - Active = true, - Age = 0f, - Lifetime = lifetime, - TileIndex = tile, - InitialHeat = heat, - BaseOpacity = 1f, - DepthScale = depth, - IsAttached = true, - Visual = vis, - Pivot = vis.Root, - LocalToPivot = vis.Root.GlobalTransform.AffineInverse() * worldXf, - Grid = grid, - CellX = ev.CellX, - CellY = ev.CellY, - DetachedFadeRemaining = -1f - }); - return; - } - - // Terrain or StaticCover decal - Transform3D groundXf = BuildSurfaceTransform(hitPos + normal * 0.045f, normal, size, ev.EventId * 1.13f); - AllocateSlot(new DecalSlot - { - Active = true, - Age = 0f, - Lifetime = lifetime, - TileIndex = tile, - InitialHeat = heat, - BaseOpacity = 0.96f, - DepthScale = depth, - WorldXform = groundXf, - DetachedFadeRemaining = -1f - }); - } - - private void UpdateAndCommit(float dt) - { - float stepDt = float.IsFinite(dt) && dt > 0f ? Math.Clamp(dt, 0f, 0.05f) : 0f; - int visibleIdx = 0; - - for (int i = 0; i < MaxDecals; i++) - { - ref DecalSlot s = ref _slots[i]; - if (!s.Active) - { - continue; - } - - s.Age += stepDt; - if (s.Age >= s.Lifetime) - { - s.Active = false; - continue; - } - - Transform3D xf = s.WorldXform; - float opacity = s.BaseOpacity; - - if (s.IsAttached) - { - if (s.Visual is null || s.Pivot is null || !GodotObject.IsInstanceValid(s.Pivot) || - !s.Pivot.IsInsideTree() || !s.Visual.Root.Visible) - { - s.Active = false; - continue; - } - - if (s.DetachedFadeRemaining < 0f && s.Grid is not null) - { - bool cellStripped = s.Grid.IsDestroyed || - (s.CellX >= 0 && s.CellX < s.Grid.Spec.Width && - s.CellY >= 0 && s.CellY < s.Grid.Spec.Height && - s.Grid.Armor[s.CellX, s.CellY] <= 0.01f); - if (cellStripped) - { - s.DetachedFadeRemaining = DetachFadeDuration; - } - } - - if (s.DetachedFadeRemaining >= 0f) - { - s.DetachedFadeRemaining -= stepDt; - if (s.DetachedFadeRemaining <= 0f) - { - s.Active = false; - continue; - } - opacity *= Math.Clamp(s.DetachedFadeRemaining / DetachFadeDuration, 0f, 1f); - } - - xf = s.Pivot.GlobalTransform * s.LocalToPivot; - } - - float remaining = s.Lifetime - s.Age; - if (remaining < EndFadeDuration) - { - opacity *= Math.Clamp(remaining / EndFadeDuration, 0f, 1f); - } - - float heatGlow = s.InitialHeat * MathF.Max(0f, 1f - s.Age / HeatCoolDuration); - _multiMesh.SetInstanceTransform(visibleIdx, xf); - _multiMesh.SetInstanceCustomData(visibleIdx, new Color(s.TileIndex, heatGlow, opacity, s.DepthScale)); - visibleIdx++; - } - - ActiveCount = visibleIdx; - _multiMesh.VisibleInstanceCount = visibleIdx; - _instanceNode.Visible = visibleIdx > 0; - } - - private void AllocateSlot(in DecalSlot slot) - { - _slots[_writeCursor] = slot; - _writeCursor = (_writeCursor + 1) % MaxDecals; - } - - private static Transform3D BuildSurfaceTransform(Vector3 worldPos, Vector3 worldNormal, float size, float spinRad) - { - Vector3 n = worldNormal.LengthSquared() > 1e-6f ? worldNormal.Normalized() : Vector3.Up; - Vector3 upRef = MathF.Abs(n.Y) > 0.92f ? Vector3.Forward : Vector3.Up; - Vector3 right = upRef.Cross(n).Normalized(); - Vector3 up = n.Cross(right).Normalized(); - Basis spin = new(n, spinRad); - right = spin * right; - up = spin * up; - return new Transform3D(new Basis(right * size, up * size, n), worldPos); - } - - private static ImageTexture LoadTextureWithMips(string path) - { - var img = Image.LoadFromFile(path); - if (img is null) - { - throw new FileNotFoundException($"Could not load POM decal texture '{path}'.", path); - } - img.GenerateMipmaps(); - return ImageTexture.CreateFromImage(img); - } -} diff --git a/client/RustToDust.Client.csproj b/client/RustToDust.Client.csproj deleted file mode 100644 index aa56926..0000000 --- a/client/RustToDust.Client.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net8.0 - true - enable - RustToDust.Client - RustToDust.Client - - - - - diff --git a/client/TerrainRenderer.cs b/client/TerrainRenderer.cs deleted file mode 100644 index 7f3c8ec..0000000 --- a/client/TerrainRenderer.cs +++ /dev/null @@ -1,487 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -/// -/// Top-down orthographic SubViewport brush-to-tile PBR + displacement terrain baker. -/// Maintains an 8x8 grid of 192m x 192m terrain tiles covering [-768, +768] in X and Z. -/// Only tiles whose changed are re-baked. -/// -public partial class TerrainRenderer : Node3D -{ - private const int ViewportSize = 256; - private const float InnerTexelSpan = 253.0f; // texel 1 center (1.5) .. texel 254 center (254.5) - private const float GutterCenterOffset = 1.5f; - private const float PixelsPerMeter = InnerTexelSpan / TerrainField.TileSize; - private const float HeightSpan = TerrainField.MaxWorldHeight - TerrainField.MinWorldHeight; - private const float BaseHeightNorm = (0f - TerrainField.MinWorldHeight) / HeightSpan; - - private static readonly Color HeightClearColor = new(BaseHeightNorm, 0.88f, 0.0f, 1.0f); - private static readonly Color AlbedoClearColor = new(0.69f, 0.50f, 0.31f, 1.0f); - private static readonly Vector2[] BrushUv = - { - new(0f, 0f), - new(1f, 0f), - new(1f, 1f), - new(0f, 1f) - }; - - private sealed class TileNode - { - public SubViewport HeightViewport = null!; - public Node2D HeightCanvas = null!; - public SubViewport AlbedoViewport = null!; - public Node2D AlbedoCanvas = null!; - public MeshInstance3D SurfaceMesh = null!; - public int BakedVersion = -1; - } - - private readonly TileNode[,] _tiles = new TileNode[TerrainField.TileGridCount, TerrainField.TileGridCount]; - private PlaneMesh _nearPlaneMesh = null!; - private PlaneMesh _farPlaneMesh = null!; - private ImageTexture _white1x1 = null!; - private Shader _clearShader = null!; - private Shader _brushAddShader = null!; - private Shader _brushSubShader = null!; - private Shader _brushAlbedoShader = null!; - private Shader _surfaceShader = null!; - private const int MaxDirtyRebakesPerSync = 2; - private TerrainField? _lastTerrain; - private int _rebakeCursor; - - public int BakedTileCount { get; private set; } - public int DirtyRebakes { get; private set; } - public static double PerfBakeTileMs; - public static int PerfBakeTileCalls; - - public override void _Ready() - { - var whiteImg = Image.CreateEmpty(1, 1, false, Image.Format.Rgba8); - whiteImg.SetPixel(0, 0, Colors.White); - _white1x1 = ImageTexture.CreateFromImage(whiteImg); - - _nearPlaneMesh = new PlaneMesh - { - Size = new Vector2(TerrainField.TileSize, TerrainField.TileSize), - SubdivideWidth = 64, - SubdivideDepth = 64 - }; - _farPlaneMesh = new PlaneMesh - { - Size = new Vector2(TerrainField.TileSize, TerrainField.TileSize), - SubdivideWidth = 16, - SubdivideDepth = 16 - }; - - _clearShader = new Shader - { - Code = """ - shader_type canvas_item; - render_mode blend_disabled; - uniform vec4 clear_color = vec4(0.0, 0.0, 0.0, 1.0); - void fragment() { - COLOR = clear_color; - } - """ - }; - _brushAddShader = GD.Load("res://terrain_brush.gdshader"); - _brushSubShader = GD.Load("res://terrain_brush_sub.gdshader"); - _brushAlbedoShader = GD.Load("res://terrain_brush_albedo.gdshader"); - _surfaceShader = GD.Load("res://terrain_surface.gdshader"); - - BuildTileGrid(); - } - - public void InvalidateAll() - { - for (int tz = 0; tz < TerrainField.TileGridCount; tz++) - { - for (int tx = 0; tx < TerrainField.TileGridCount; tx++) - { - _tiles[tx, tz].BakedVersion = -1; - } - } - BakedTileCount = 0; - DirtyRebakes = 0; - _lastTerrain = null; - } - - public void Sync(TerrainField terrain) - { - if (!ReferenceEquals(_lastTerrain, terrain)) - { - InvalidateAll(); - _lastTerrain = terrain; - } - - const int totalTiles = TerrainField.TileGridCount * TerrainField.TileGridCount; - - // 1. Always bake uninitialized tiles and structural/crater dirty tiles immediately - ulong structuralMask = terrain.StructuralDirtyTileMask; - for (int tz = 0; tz < TerrainField.TileGridCount; tz++) - { - for (int tx = 0; tx < TerrainField.TileGridCount; tx++) - { - var tile = _tiles[tx, tz]; - int version = terrain.TileVersions[tx, tz]; - bool isUninitialized = tile.BakedVersion < 0 && tile.BakedVersion != version; - ulong bit = 1UL << (tz * TerrainField.TileGridCount + tx); - bool isStructuralDirty = (structuralMask & bit) != 0UL && tile.BakedVersion != version; - if (isUninitialized || isStructuralDirty) - { - BakeTile(tx, tz, tile, terrain); - if (isUninitialized) - { - BakedTileCount++; - } - else - { - DirtyRebakes++; - } - tile.BakedVersion = version; - terrain.ClearStructuralDirtyTile(tx, tz); - } - } - } - - // 2. Budget remaining passive dynamic tile rebakes (tracks/scorch) to <= 2 per Sync in round-robin order - int rebakedThisSync = 0; - bool anyRemainingDirty = false; - int startCursor = _rebakeCursor; - for (int step = 0; step < totalTiles; step++) - { - int idx = (startCursor + step) % totalTiles; - int tx = idx % TerrainField.TileGridCount; - int tz = idx / TerrainField.TileGridCount; - var tile = _tiles[tx, tz]; - int version = terrain.TileVersions[tx, tz]; - if (tile.BakedVersion != version) - { - if (rebakedThisSync < MaxDirtyRebakesPerSync) - { - BakeTile(tx, tz, tile, terrain); - DirtyRebakes++; - tile.BakedVersion = version; - rebakedThisSync++; - _rebakeCursor = (idx + 1) % totalTiles; - } - else - { - anyRemainingDirty = true; - } - } - } - - if (!anyRemainingDirty) - { - terrain.ClearDirtyMask(); - } - } - - public void UpdateTileLod(Vector3 camPos) - { - const float nearRadiusSq = 240f * 240f; - const float shadowRadiusSq = 155f * 155f; - for (int tz = 0; tz < TerrainField.TileGridCount; tz++) - { - for (int tx = 0; tx < TerrainField.TileGridCount; tx++) - { - var tile = _tiles[tx, tz]; - if (tile?.SurfaceMesh is null) - { - continue; - } - Vector3 pos = tile.SurfaceMesh.Position; - float dx = pos.X - camPos.X; - float dz = pos.Z - camPos.Z; - float d2 = dx * dx + dz * dz; - PlaneMesh desired = d2 <= nearRadiusSq ? _nearPlaneMesh : _farPlaneMesh; - if (!ReferenceEquals(tile.SurfaceMesh.Mesh, desired)) - { - tile.SurfaceMesh.Mesh = desired; - } - var desiredShadow = d2 <= shadowRadiusSq - ? GeometryInstance3D.ShadowCastingSetting.On - : GeometryInstance3D.ShadowCastingSetting.Off; - if (tile.SurfaceMesh.CastShadow != desiredShadow) - { - tile.SurfaceMesh.CastShadow = desiredShadow; - } - } - } - } - - public bool TryGetHeightImageFormat(out Image.Format format) - { - format = Image.Format.Max; - var img = _tiles[0, 0]?.HeightViewport?.GetTexture()?.GetImage(); - if (img is null || img.IsEmpty()) - { - return false; - } - format = img.GetFormat(); - return true; - } - - public bool TrySampleBakedHeight(float wx, float wz, out float bakedHeight) - { - bakedHeight = 0f; - float cx = Math.Clamp(wx, -TerrainField.HalfExtent, TerrainField.HalfExtent); - float cz = Math.Clamp(wz, -TerrainField.HalfExtent, TerrainField.HalfExtent); - TerrainField.WorldToTile(cx, cz, out int tx, out int tz); - - var tile = _tiles[tx, tz]; - var tex = tile?.HeightViewport?.GetTexture(); - var img = tex?.GetImage(); - if (img is null || img.IsEmpty() || img.GetWidth() < ViewportSize || img.GetHeight() < ViewportSize) - { - return false; - } - - float tileMinX = -TerrainField.HalfExtent + tx * TerrainField.TileSize; - float tileMinZ = -TerrainField.HalfExtent + tz * TerrainField.TileSize; - float px = GutterCenterOffset + (cx - tileMinX) * PixelsPerMeter; - float py = GutterCenterOffset + (cz - tileMinZ) * PixelsPerMeter; - - float fx = Math.Clamp(px - 0.5f, 0f, ViewportSize - 1.0001f); - float fy = Math.Clamp(py - 0.5f, 0f, ViewportSize - 1.0001f); - int x0 = (int)MathF.Floor(fx); - int y0 = (int)MathF.Floor(fy); - int x1 = Math.Min(x0 + 1, ViewportSize - 1); - int y1 = Math.Min(y0 + 1, ViewportSize - 1); - float txFrac = fx - x0; - float tyFrac = fy - y0; - - var c00 = img.GetPixel(x0, y0); - if (c00.A < 0.5f) - { - return false; - } - - var c10 = img.GetPixel(x1, y0); - var c01 = img.GetPixel(x0, y1); - var c11 = img.GetPixel(x1, y1); - - float r = (c00.R * (1f - txFrac) + c10.R * txFrac) * (1f - tyFrac) + - (c01.R * (1f - txFrac) + c11.R * txFrac) * tyFrac; - bakedHeight = TerrainField.MinWorldHeight + Math.Clamp(r, 0f, 1f) * HeightSpan; - return true; - } - - private void BuildTileGrid() - { - for (int tz = 0; tz < TerrainField.TileGridCount; tz++) - { - for (int tx = 0; tx < TerrainField.TileGridCount; tx++) - { - var tile = new TileNode(); - - tile.HeightViewport = CreateOrthoViewport($"Tile_{tx}_{tz}_Height", useHdr: true, out var heightCanvas); - tile.HeightCanvas = heightCanvas; - AddChild(tile.HeightViewport); - - tile.AlbedoViewport = CreateOrthoViewport($"Tile_{tx}_{tz}_Albedo", useHdr: false, out var albedoCanvas); - tile.AlbedoCanvas = albedoCanvas; - AddChild(tile.AlbedoViewport); - - var mat = new ShaderMaterial { Shader = _surfaceShader }; - mat.SetShaderParameter("height_tex", tile.HeightViewport.GetTexture()); - mat.SetShaderParameter("albedo_tex", tile.AlbedoViewport.GetTexture()); - mat.SetShaderParameter("height_min", TerrainField.MinWorldHeight); - mat.SetShaderParameter("height_max", TerrainField.MaxWorldHeight); - mat.SetShaderParameter("tile_size", TerrainField.TileSize); - mat.SetShaderParameter("inner_span", InnerTexelSpan); - mat.SetShaderParameter("tex_size", (float)ViewportSize); - mat.SetShaderParameter("gutter_offset", GutterCenterOffset); - - float centerX = -TerrainField.HalfExtent + (tx + 0.5f) * TerrainField.TileSize; - float centerZ = -TerrainField.HalfExtent + (tz + 0.5f) * TerrainField.TileSize; - - tile.SurfaceMesh = new MeshInstance3D - { - Name = $"Tile_{tx}_{tz}_Mesh", - Mesh = _nearPlaneMesh, - MaterialOverride = mat, - Position = new Vector3(centerX, 0f, centerZ), - CustomAabb = new Aabb( - new Vector3(-TerrainField.TileSize * 0.5f, TerrainField.MinWorldHeight - 2f, -TerrainField.TileSize * 0.5f), - new Vector3(TerrainField.TileSize, HeightSpan + 4f, TerrainField.TileSize)) - }; - AddChild(tile.SurfaceMesh); - - _tiles[tx, tz] = tile; - } - } - } - - private static SubViewport CreateOrthoViewport(string name, bool useHdr, out Node2D canvas) - { - var vp = new SubViewport - { - Name = name, - Size = new Vector2I(ViewportSize, ViewportSize), - Disable3D = true, - UseHdr2D = useHdr, - TransparentBg = false, - Snap2DTransformsToPixel = false, - Snap2DVerticesToPixel = false, - RenderTargetClearMode = SubViewport.ClearMode.Always, - RenderTargetUpdateMode = SubViewport.UpdateMode.Disabled - }; - - var cam = new Camera2D - { - AnchorMode = Camera2D.AnchorModeEnum.FixedTopLeft, - Position = Vector2.Zero, - Enabled = true, - PhysicsInterpolationMode = PhysicsInterpolationModeEnum.Off, - ProcessCallback = Camera2D.Camera2DProcessCallback.Physics - }; - vp.AddChild(cam); - - canvas = new Node2D { Name = "Canvas" }; - vp.AddChild(canvas); - return vp; - } - - private void BakeTile(int tx, int tz, TileNode tile, TerrainField terrain) - { - long t0 = RustToDust.Ymir.ArenaSession.PerfEnabled ? System.Diagnostics.Stopwatch.GetTimestamp() : 0; - ClearCanvasChildren(tile.HeightCanvas); - ClearCanvasChildren(tile.AlbedoCanvas); - - // Full-tile base clear quads (Polygon2D avoids GUI pixel snapping) - tile.HeightCanvas.AddChild(CreateClearQuad(HeightClearColor, _clearShader, _white1x1)); - tile.AlbedoCanvas.AddChild(CreateClearQuad(AlbedoClearColor, _clearShader, _white1x1)); - - float tileMinX = -TerrainField.HalfExtent + tx * TerrainField.TileSize; - float tileMinZ = -TerrainField.HalfExtent + tz * TerrainField.TileSize; - IReadOnlyList indices = terrain.GetTileBrushIndices(tx, tz); - var brushes = terrain.Brushes; - - for (int i = 0; i < indices.Count; i++) - { - var b = brushes[indices[i]]; - if (b.RadiusX <= 0.05f || b.RadiusZ <= 0.05f) - { - continue; - } - - float px = GutterCenterOffset + (b.X - tileMinX) * PixelsPerMeter; - float py = GutterCenterOffset + (b.Z - tileMinZ) * PixelsPerMeter; - float rxPx = b.RadiusX * PixelsPerMeter; - float rzPx = b.RadiusZ * PixelsPerMeter; - int kindInt = (int)b.Kind; - - // 1. Height+Material brush pass(es) - if (b.Kind == TerrainBrushKind.Crater) - { - // Crater uses subtractive pit + additive ejecta rim/scorch - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushSubShader, kindInt, b.HeightDelta, _white1x1)); - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushAddShader, kindInt, b.HeightDelta, _white1x1)); - } - else if (b.Kind == TerrainBrushKind.Track) - { - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushSubShader, kindInt, b.HeightDelta, _white1x1)); - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushAddShader, kindInt, b.HeightDelta, _white1x1)); - } - else if (b.Kind == TerrainBrushKind.Road || b.HeightDelta < 0f) - { - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushSubShader, kindInt, b.HeightDelta, _white1x1)); - } - else - { - tile.HeightCanvas.AddChild(CreateBrushQuad(px, py, rxPx, rzPx, b.RotationRad, _brushAddShader, kindInt, b.HeightDelta, _white1x1)); - } - - // 2. Albedo brush pass - var albedoQuad = CreateOrientedQuad(px, py, rxPx, rzPx, b.RotationRad, _white1x1); - var albedoMat = new ShaderMaterial { Shader = _brushAlbedoShader }; - albedoMat.SetShaderParameter("brush_kind", kindInt); - albedoMat.SetShaderParameter("brush_albedo", new Vector3(b.AlbedoR, b.AlbedoG, b.AlbedoB)); - albedoMat.SetShaderParameter("height_delta", b.HeightDelta); - albedoQuad.Material = albedoMat; - tile.AlbedoCanvas.AddChild(albedoQuad); - } - - tile.HeightViewport.RenderTargetUpdateMode = SubViewport.UpdateMode.Once; - tile.AlbedoViewport.RenderTargetUpdateMode = SubViewport.UpdateMode.Once; - if (t0 != 0) - { - PerfBakeTileMs += (System.Diagnostics.Stopwatch.GetTimestamp() - t0) * 1000.0 / System.Diagnostics.Stopwatch.Frequency; - PerfBakeTileCalls++; - } - } - - private static Polygon2D CreateClearQuad(Color color, Shader clearShader, ImageTexture whiteTex) - { - var mat = new ShaderMaterial { Shader = clearShader }; - mat.SetShaderParameter("clear_color", color); - return new Polygon2D - { - Polygon = new[] - { - new Vector2(0f, 0f), - new Vector2(ViewportSize, 0f), - new Vector2(ViewportSize, ViewportSize), - new Vector2(0f, ViewportSize) - }, - UV = BrushUv, - Texture = whiteTex, - Material = mat - }; - } - - private static Polygon2D CreateOrientedQuad( - float px, float py, - float rxPx, float rzPx, - float rotationRad, - ImageTexture whiteTex) - { - return new Polygon2D - { - Position = new Vector2(px, py), - Rotation = rotationRad, - Polygon = new[] - { - new Vector2(-rxPx, -rzPx), - new Vector2(rxPx, -rzPx), - new Vector2(rxPx, rzPx), - new Vector2(-rxPx, rzPx) - }, - UV = BrushUv, - Texture = whiteTex - }; - } - - private static Polygon2D CreateBrushQuad( - float px, float py, - float rxPx, float rzPx, - float rotationRad, - Shader shader, - int kindInt, - float heightDelta, - ImageTexture whiteTex) - { - var quad = CreateOrientedQuad(px, py, rxPx, rzPx, rotationRad, whiteTex); - var mat = new ShaderMaterial { Shader = shader }; - mat.SetShaderParameter("brush_kind", kindInt); - mat.SetShaderParameter("height_delta", heightDelta); - mat.SetShaderParameter("height_span", HeightSpan); - quad.Material = mat; - return quad; - } - - private static void ClearCanvasChildren(Node2D canvas) - { - for (int i = canvas.GetChildCount() - 1; i >= 0; i--) - { - var child = canvas.GetChild(i); - canvas.RemoveChild(child); - child.QueueFree(); - } - } -} diff --git a/client/VehicleAssetCache.cs b/client/VehicleAssetCache.cs deleted file mode 100644 index 4bf9d4f..0000000 --- a/client/VehicleAssetCache.cs +++ /dev/null @@ -1,2109 +0,0 @@ -using System; -using System.Buffers.Binary; -using System.Collections.Generic; -using System.IO; -using System.Text.Json; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -/// -/// Runtime GLB asset loader & template cache for all 15 Brokkr vehicles (resolved via -/// + ) -/// and all 6 modular gear GLBs in assets/gear/. -/// Parses the glTF JSON chunk to map rtd.id, rtd.kind, rtd.size, and rtd.joint -/// deterministically to exact s inside the Godot scene tree generated by -/// + . -/// -public sealed class VehicleAssetCache : IDisposable -{ - public sealed record GlbAnchorInfo( - string Id, - string Kind, - Vector3 Size, - NodePath RelativePath, - Transform3D ModelSpaceTransform); - - public sealed record GlbJointInfo( - string JointId, - string NodeName, - Vector3 Axis, - float MinVal, - float MaxVal, - NodePath RelativePath); - - public sealed record GlbPartNodeInfo( - string NodeName, - int CellX, - int CellY, - string Kind, - NodePath RelativePath, - bool HasProtectedDescendant); - - public sealed record RigidPartTemplate( - NodePath PivotPath, - ArrayMesh Mesh, - int CellX, - int CellY, - string Kind); - - public sealed class VehicleTemplate - { - public required VehiclePackage Package { get; init; } - public required string GlbPath { get; init; } - public required Node3D SceneTemplate { get; init; } - public required ArrayMesh BakedStaticMesh { get; init; } - public required ArrayMesh BakedLodFarMesh { get; init; } - public required ArrayMesh SingleSurfaceStaticMesh { get; init; } - public required ArrayMesh SingleSurfaceLodFarMesh { get; init; } - public required Vector3[] FarRayTris { get; init; } - public required Aabb FarRayAabb { get; init; } - public required float MinY { get; init; } - public required float MaxY { get; init; } - public required IReadOnlyDictionary Anchors { get; init; } - public required IReadOnlyDictionary Joints { get; init; } - public required IReadOnlyDictionary NodesByOriginalName { get; init; } - public required IReadOnlyList DetachableParts { get; init; } - public required IReadOnlyList StaticRigidParts { get; init; } - public required IReadOnlyList DetachableRigidParts { get; init; } - public required IReadOnlyList MobilityNodePaths { get; init; } - } - - public sealed class GearTemplate - { - public required string Id { get; init; } - public required string GlbPath { get; init; } - public required Node3D SceneTemplate { get; init; } - public required ArrayMesh BakedDropMesh { get; init; } - public required ArrayMesh SingleSurfaceMesh { get; init; } - public required Vector3 Size { get; init; } - public required float MinY { get; init; } - public required Vector3 LocalModelForward { get; init; } - public required IReadOnlyDictionary PartCentroidsLocal { get; init; } - } - - public static readonly string[] ExpectedGearIds = - { - "mg_762", "autocannon", "recoilless", "copper_rad", "gilded_lance", "gold_radiator" - }; - - private readonly Dictionary _vehicles = new(StringComparer.OrdinalIgnoreCase); - private readonly Dictionary _gear = new(StringComparer.OrdinalIgnoreCase); - private readonly Dictionary _gearVariantMeshes = new(StringComparer.OrdinalIgnoreCase); - private readonly string _vehiclesDir; - private readonly string _gearDir; - private bool _disposed; - - public VehicleAssetCache() - { - _vehiclesDir = VehicleCatalogLoader.LocateVehiclesDirectory(); - string assetsDir = Directory.GetParent(_vehiclesDir)?.FullName - ?? throw new DirectoryNotFoundException($"Could not locate assets parent directory of '{_vehiclesDir}'."); - _gearDir = Path.Combine(assetsDir, "gear"); - if (!Directory.Exists(_gearDir)) - { - throw new DirectoryNotFoundException($"Could not locate gear directory '{_gearDir}'."); - } - } - - public IReadOnlyDictionary Vehicles => _vehicles; - public IReadOnlyDictionary Gear => _gear; - - public void PreloadAll() - { - foreach (var pkg in Catalog.PackagesById.Values) - { - GetOrLoadVehicle(pkg.Id); - } - foreach (string gearId in ExpectedGearIds) - { - GetOrLoadGear(gearId); - } - } - - public VehicleTemplate GetOrLoadVehicle(string vehicleId) - { - ObjectDisposedException.ThrowIf(_disposed, this); - string resolvedId = ResolveModelId(vehicleId); - if (_vehicles.TryGetValue(resolvedId, out var cached)) - { - return cached; - } - - var pkg = Catalog.TryGetPackage(resolvedId) - ?? throw new KeyNotFoundException($"Unknown vehicle '{vehicleId}' in Catalog.PackagesById."); - - string glbPath = Path.Combine(_vehiclesDir, pkg.Id, pkg.ModelAsset); - if (!File.Exists(glbPath)) - { - throw new FileNotFoundException($"Missing vehicle GLB for '{pkg.Id}': {glbPath}", glbPath); - } - - var template = LoadVehicleTemplate(pkg, glbPath); - _vehicles[pkg.Id] = template; - return template; - } - - public static string ResolveModelId(string chassisId) => - string.Equals(chassisId, "exemplar_frame", StringComparison.OrdinalIgnoreCase) - ? "raptor" - : chassisId; - - public GearTemplate GetOrLoadGear(string gearId) - { - ObjectDisposedException.ThrowIf(_disposed, this); - if (_gear.TryGetValue(gearId, out var cached)) - { - return cached; - } - - string glbPath = Path.Combine(_gearDir, $"{gearId}.glb"); - if (!File.Exists(glbPath)) - { - throw new FileNotFoundException($"Missing gear GLB '{gearId}': {glbPath}", glbPath); - } - - var template = LoadGearTemplate(gearId, glbPath); - _gear[gearId] = template; - return template; - } - - public ArrayMesh GetOrBuildGearVariantMesh( - string moduleId, - string gearGlbId, - Color? paintTint, - Color? accentTint) - { - ObjectDisposedException.ThrowIf(_disposed, this); - if (_gearVariantMeshes.TryGetValue(moduleId, out ArrayMesh? cached)) - { - return cached; - } - - GearTemplate tpl = GetOrLoadGear(gearGlbId); - ArrayMesh mesh = !paintTint.HasValue && !accentTint.HasValue - ? tpl.SingleSurfaceMesh - : CollapseToSingleSurfaceMechPaintMesh(tpl.BakedDropMesh, paintTint, accentTint); - _gearVariantMeshes[moduleId] = mesh; - return mesh; - } - - private static VehicleTemplate LoadVehicleTemplate(VehiclePackage pkg, string glbPath) - { - byte[] jsonBytes = ReadGlbJsonChunk(glbPath); - using var gltfJson = JsonDocument.Parse(jsonBytes); - JsonElement jsonRoot = gltfJson.RootElement; - - var doc = new GltfDocument(); - var state = new GltfState(); - Error err = doc.AppendFromFile(glbPath, state, flags: 0, basePath: Path.GetDirectoryName(glbPath) ?? string.Empty); - if (err != Error.Ok) - { - throw new InvalidOperationException($"GltfDocument.AppendFromFile failed for '{glbPath}': {err}"); - } - - Node? generated = doc.GenerateScene(state); - if (generated is not Node3D sceneRoot) - { - generated?.QueueFree(); - throw new InvalidOperationException($"GltfDocument.GenerateScene did not return a Node3D for '{glbPath}'."); - } - ClearOwnerRecursive(sceneRoot); - - var gltfNodes = state.GetNodes(); - var jsonNodes = jsonRoot.GetProperty("nodes"); - int nodeCount = Math.Min(gltfNodes.Count, jsonNodes.GetArrayLength()); - - var pathByGltfIndex = new NodePath[nodeCount]; - var nodeByGltfIndex = new Node3D?[nodeCount]; - var origNameByIndex = new string[nodeCount]; - var nodesByOriginalName = new Dictionary(StringComparer.Ordinal); - var anchors = new Dictionary(StringComparer.Ordinal); - var joints = new Dictionary(StringComparer.Ordinal); - var protectedIndices = new HashSet(); - var parentByIndex = new Dictionary(); - - for (int i = 0; i < nodeCount; i++) - { - JsonElement jn = jsonNodes[i]; - if (jn.TryGetProperty("children", out var childrenEl) && childrenEl.ValueKind == JsonValueKind.Array) - { - foreach (var ch in childrenEl.EnumerateArray()) - { - parentByIndex[ch.GetInt32()] = i; - } - } - } - - // Resolve every glTF node deterministically to its exact Godot Node3D via GltfNode.GetSceneNodePath(state) - for (int i = 0; i < nodeCount; i++) - { - GltfNode gn = gltfNodes[i]; - JsonElement jn = jsonNodes[i]; - string origName = !string.IsNullOrEmpty(gn.OriginalName) - ? gn.OriginalName - : (jn.TryGetProperty("name", out var nm) ? nm.GetString() ?? $"node_{i}" : $"node_{i}"); - origNameByIndex[i] = origName; - - Node? resolved = ResolveSceneNode(sceneRoot, gn.GetSceneNodePath(state), origName); - if (resolved is Node3D n3d) - { - NodePath relPath = BuildRelativeNodePath(sceneRoot, n3d); - pathByGltfIndex[i] = relPath; - nodeByGltfIndex[i] = n3d; - nodesByOriginalName.TryAdd(origName, relPath); - } - else - { - pathByGltfIndex[i] = new NodePath(); - } - } - - // Compute model-space transforms once from sceneRoot - var modelTransforms = new Dictionary(); - CollectModelTransforms(sceneRoot, Transform3D.Identity, modelTransforms); - - // Extract rtd.* extras from glTF JSON chunk & mark protected structural/joint/hardpoint nodes - for (int i = 0; i < nodeCount; i++) - { - JsonElement jn = jsonNodes[i]; - Node3D? node = nodeByGltfIndex[i]; - if (node is null) - { - continue; - } - - NodePath relPath = pathByGltfIndex[i]; - if (!jn.TryGetProperty("extras", out JsonElement extras) || extras.ValueKind != JsonValueKind.Object) - { - continue; - } - - if (extras.TryGetProperty("rtd.id", out var rtdIdEl) && rtdIdEl.ValueKind == JsonValueKind.String) - { - string hpId = rtdIdEl.GetString()!; - string hpKind = extras.TryGetProperty("rtd.kind", out var kEl) && kEl.ValueKind == JsonValueKind.String - ? kEl.GetString()! - : "weapon"; - Vector3 hpSize = ReadVec3(extras, "rtd.size", new Vector3(0.5f, 0.5f, 0.1f)); - Transform3D modelXform = modelTransforms.TryGetValue(node, out var xf) ? xf : Transform3D.Identity; - anchors[hpId] = new GlbAnchorInfo(hpId, hpKind, hpSize, relPath, modelXform); - MarkAncestorsProtected(i, parentByIndex, protectedIndices); - } - - if (extras.TryGetProperty("rtd.joint", out var rtdJointEl) && rtdJointEl.ValueKind == JsonValueKind.String) - { - string jId = rtdJointEl.GetString()!; - Vector3 axis = ReadVec3(extras, "rtd.axis", Vector3.Up); - if (axis.LengthSquared() < 1e-6f) axis = Vector3.Up; - axis = axis.Normalized(); - float minVal = extras.TryGetProperty("rtd.min", out var mnEl) ? mnEl.GetSingle() : -180f; - float maxVal = extras.TryGetProperty("rtd.max", out var mxEl) ? mxEl.GetSingle() : 180f; - joints[jId] = new GlbJointInfo(jId, origNameByIndex[i], axis, minVal, maxVal, relPath); - MarkAncestorsProtected(i, parentByIndex, protectedIndices); - } - } - - // Also mark structural mechanism/skeleton/mobility nodes and their ancestors protected - var mobilityPaths = new List(); - var mechNames = new HashSet(StringComparer.Ordinal); - if (pkg.Mechanisms is not null) - { - foreach (var d in pkg.Mechanisms.Dofs) mechNames.Add(d.Name); - foreach (var r in pkg.Mechanisms.Rams) - { - mechNames.Add(r.Name); - mechNames.Add(r.BarrelBone); - mechNames.Add(r.RodBone); - } - foreach (var sc in pkg.Mechanisms.Scissors) - { - mechNames.Add(sc.Name); - mechNames.Add(sc.UpperBone); - mechNames.Add(sc.LowerBone); - } - } - - for (int i = 0; i < nodeCount; i++) - { - string nm = origNameByIndex[i]; - if (mechNames.Contains(nm) || IsStructuralNodeName(nm)) - { - MarkAncestorsProtected(i, parentByIndex, protectedIndices); - } - } - - foreach (var pc in pkg.PartCells) - { - if (string.Equals(pc.Kind, "mobility", StringComparison.OrdinalIgnoreCase)) - { - if (nodesByOriginalName.TryGetValue(pc.NodeName, out var mobPath)) - { - mobilityPaths.Add(mobPath); - } - for (int i = 0; i < nodeCount; i++) - { - if (string.Equals(origNameByIndex[i], pc.NodeName, StringComparison.Ordinal)) - { - MarkAncestorsProtected(i, parentByIndex, protectedIndices); - } - } - } - } - - // Compute protected-descendant flag for each glTF node index - var hasProtectedDesc = new bool[nodeCount]; - for (int i = 0; i < nodeCount; i++) - { - if (protectedIndices.Contains(i)) - { - int cur = i; - while (parentByIndex.TryGetValue(cur, out int p)) - { - hasProtectedDesc[p] = true; - cur = p; - } - } - } - - // Index detachable exterior armor/shroud (and safe leaf cladding) parts mapped to cells - var indexByName = new Dictionary(StringComparer.Ordinal); - for (int i = 0; i < nodeCount; i++) - { - indexByName.TryAdd(origNameByIndex[i], i); - } - - var detachableParts = new List(); - foreach (var pc in pkg.PartCells) - { - if (!indexByName.TryGetValue(pc.NodeName, out int idx)) - { - continue; - } - Node3D? node = nodeByGltfIndex[idx]; - if (node is not MeshInstance3D) - { - continue; - } - if (protectedIndices.Contains(idx) || hasProtectedDesc[idx]) - { - continue; - } - if (!IsDetachablePartKind(pc.Kind, pc.NodeName, node.GetChildCount())) - { - continue; - } - detachableParts.Add(new GlbPartNodeInfo( - pc.NodeName, - pc.CellX, - pc.CellY, - pc.Kind, - pathByGltfIndex[idx], - hasProtectedDesc[idx])); - } - - // Verify all VehiclePackage hardpoint AnchorIds & Joints resolved - foreach (var hp in pkg.Hardpoints) - { - if (!anchors.ContainsKey(hp.AnchorId)) - { - sceneRoot.QueueFree(); - throw new InvalidOperationException($"{pkg.Id}: failed to resolve hardpoint AnchorId '{hp.AnchorId}' in '{glbPath}'."); - } - } - foreach (var j in pkg.Joints) - { - if (!joints.ContainsKey(j.Id)) - { - sceneRoot.QueueFree(); - throw new InvalidOperationException($"{pkg.Id}: failed to resolve joint '{j.Id}' in '{glbPath}'."); - } - } - - ComputeSceneMeshBoundsY(sceneRoot, out float minY, out float maxY); - - // Build full set of protected structural/rig/joint/anchor/mobility Godot nodes - var protectedNodes = new HashSet { sceneRoot }; - for (int i = 0; i < nodeCount; i++) - { - if ((protectedIndices.Contains(i) || hasProtectedDesc[i]) && nodeByGltfIndex[i] is { } pn) - { - MarkNodeAndAncestorsProtected(pn, sceneRoot, protectedNodes); - } - } - foreach (var a in anchors.Values) - { - if (sceneRoot.GetNodeOrNull(a.RelativePath) is { } an) - { - MarkNodeAndAncestorsProtected(an, sceneRoot, protectedNodes); - } - } - foreach (var j in joints.Values) - { - if (sceneRoot.GetNodeOrNull(j.RelativePath) is { } jn) - { - MarkNodeAndAncestorsProtected(jn, sceneRoot, protectedNodes); - } - } - foreach (var mp in mobilityPaths) - { - if (sceneRoot.GetNodeOrNull(mp) is { } mn) - { - MarkNodeAndAncestorsProtected(mn, sceneRoot, protectedNodes); - } - } - - // Map original detachable MeshInstance3Ds so we can merge them per (rigidParent, CellX, CellY) - var detachableByNode = new Dictionary(); - foreach (var dp in detachableParts) - { - if (sceneRoot.GetNodeOrNull(dp.RelativePath) is MeshInstance3D mi && !protectedNodes.Contains(mi)) - { - detachableByNode.TryAdd(mi, (dp.CellX, dp.CellY, dp.Kind)); - } - } - - // A & B: Merge detachable armor per (rigidParent, CellX, CellY) and static meshes per rigidParent - var mergedDetachableInfos = MergeVehicleSubMeshes(sceneRoot, protectedNodes, detachableByNode); - - // Prune stale nodesByOriginalName entries that were collapsed into merged meshes - var survivingNames = new Dictionary(StringComparer.Ordinal); - foreach (var (origName, relPath) in nodesByOriginalName) - { - Node? resolved = relPath.ToString() == "." ? sceneRoot : sceneRoot.GetNodeOrNull(relPath); - if (resolved is not null) - { - survivingNames[origName] = relPath; - } - } - - // C: Build single-node BakedStaticMesh + decimated BakedLodFarMesh (>130m) per template - ArrayMesh bakedStaticMesh = BuildBakedStaticMesh(sceneRoot, coarseMaterials: false); - ArrayMesh bakedCoarseStatic = BuildBakedStaticMesh(sceneRoot, coarseMaterials: true); - ArrayMesh bakedLodFarMesh = DecimateMeshGrid(bakedCoarseStatic, cellSize: 0.45f, targetMinY: minY); - - ArrayMesh singleSurfaceStatic = CollapseToSingleSurfaceMechPaintMesh(bakedStaticMesh); - ArrayMesh singleSurfaceLodFar = CollapseToSingleSurfaceMechPaintMesh(bakedLodFarMesh); - Vector3[] farRayTris = ExtractFlatTriangles(singleSurfaceLodFar); - Aabb farRayAabb = singleSurfaceLodFar.GetAabb().Grow(0.20f); - - // D: Extract single-surface MechPaint rigid parts (static limbs + detachable armor chunks) - // and strip all MeshInstance3D nodes from SceneTemplate so live rigs have zero MeshInstance3D children! - ExtractRigidPartsAndStripMeshes( - sceneRoot, - protectedNodes, - mergedDetachableInfos, - out var staticRigidParts, - out var detachableRigidParts); - - return new VehicleTemplate - { - Package = pkg, - GlbPath = glbPath, - SceneTemplate = sceneRoot, - BakedStaticMesh = bakedStaticMesh, - BakedLodFarMesh = bakedLodFarMesh, - SingleSurfaceStaticMesh = singleSurfaceStatic, - SingleSurfaceLodFarMesh = singleSurfaceLodFar, - FarRayTris = farRayTris, - FarRayAabb = farRayAabb, - MinY = minY, - MaxY = maxY, - Anchors = anchors, - Joints = joints, - NodesByOriginalName = survivingNames, - DetachableParts = mergedDetachableInfos, - StaticRigidParts = staticRigidParts, - DetachableRigidParts = detachableRigidParts, - MobilityNodePaths = mobilityPaths - }; - } - - private static readonly HashSet PreservedGearPartNames = new(StringComparer.OrdinalIgnoreCase) - { - "barrel_inner", "receiver", "muzzle_brake_L", "gun_housing", - "sight_tube", "breech_band", "condenser_ring_2", "ivory_cowl" - }; - - private static GearTemplate LoadGearTemplate(string gearId, string glbPath) - { - var doc = new GltfDocument(); - var state = new GltfState(); - Error err = doc.AppendFromFile(glbPath, state, flags: 0, basePath: Path.GetDirectoryName(glbPath) ?? string.Empty); - if (err != Error.Ok) - { - throw new InvalidOperationException($"GltfDocument.AppendFromFile failed for gear '{glbPath}': {err}"); - } - - Node? generated = doc.GenerateScene(state); - if (generated is not Node3D sceneRoot) - { - generated?.QueueFree(); - throw new InvalidOperationException($"GltfDocument.GenerateScene did not return a Node3D for gear '{glbPath}'."); - } - ClearOwnerRecursive(sceneRoot); - - ComputeSceneMeshBounds(sceneRoot, out Vector3 bMin, out Vector3 bMax); - var partCentroids = CollectGearPartCentroids(sceneRoot); - MergeGearSubMeshes(sceneRoot, gearId); - ArrayMesh bakedDropMesh = BuildBakedStaticMesh(sceneRoot, coarseMaterials: false); - ArrayMesh singleSurfaceMesh = CollapseToSingleSurfaceMechPaintMesh(bakedDropMesh); - Vector3 localFwd = new Vector3(0f, 0f, 1f); - - return new GearTemplate - { - Id = gearId, - GlbPath = glbPath, - SceneTemplate = sceneRoot, - BakedDropMesh = bakedDropMesh, - SingleSurfaceMesh = singleSurfaceMesh, - Size = bMax - bMin, - MinY = bMin.Y, - LocalModelForward = localFwd, - PartCentroidsLocal = partCentroids - }; - } - - private static readonly HashSet ExactStructuralNodeNames = new(StringComparer.OrdinalIgnoreCase) - { - "chassis", "hull", "pelvis", "core", "trunk", "waist", "torso.pose", "aim.turret", "hull.pose", - "legl.hip", "legr.hip", "legl.shin", "legr.shin", "legl.foot", "legr.foot", - "legl.upper", "legr.upper", "legl.lower", "legr.lower", "legl.ankle", "legr.ankle", - "legl.thigh", "legr.thigh", "legl.cannon", "legr.cannon", - "legl.oleo", "legr.oleo", "legl.oleofork", "legr.oleofork", - "legl.torqueup", "legr.torqueup", "legl.torquelow", "legr.torquelow", - "legl.lug", "legr.lug", "legl.ramluga0", "legl.ramluga1", "legr.ramluga0", "legr.ramluga1", - "legl.recessram0", "legl.recessram1", "legr.recessram0", "legr.recessram1", - "legfl.s1", "legfr.s1", "legbl.s1", "legbr.s1", - "legfl.s2", "legfr.s2", "legbl.s2", "legbr.s2", - "footfl", "footfr", "footbl", "footbr", - "thigh.fl", "thigh.fr", "thigh.rl", "thigh.rr", - "shin.fl", "shin.fr", "shin.rl", "shin.rr", - "ankle.fl", "ankle.fr", "ankle.rl", "ankle.rr" - }; - - private static bool IsStructuralNodeName(string name) => - ExactStructuralNodeNames.Contains(name); - - private static void ClearOwnerRecursive(Node cur) - { - cur.Owner = null; - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - ClearOwnerRecursive(cur.GetChild(i)); - } - } - - private static bool IsDetachablePartKind(string kind, string nodeName, int childCount) - { - if (string.Equals(kind, "armor", StringComparison.OrdinalIgnoreCase) || - string.Equals(kind, "shroud", StringComparison.OrdinalIgnoreCase)) - { - return true; - } - if (!string.Equals(kind, "hull", StringComparison.OrdinalIgnoreCase)) - { - return false; - } - - string low = nodeName.ToLowerInvariant(); - // Safe exterior cladding panels (e.g., buggy hood/side panels, skirt/tasset/cod plates, mech dress panels) - if (low.Contains("hood") || low.Contains("side.") || low.Contains("roof") || - low.Contains("tasset") || low.Contains("cod") || low.Contains("cuisse") || - low.Contains(".panels") || low.Contains(".dress.") || low.Contains("brow") || - low.Contains("pauldron") || low.Contains("wing") && !low.Contains("stub_wing")) - { - return true; - } - return childCount == 0 && (low.Contains("canopy") || low.Contains("hatch") || low.Contains("visor")); - } - - private static void MarkNodeAndAncestorsProtected(Node node, Node root, HashSet protectedNodes) - { - Node? cur = node; - while (cur is not null) - { - protectedNodes.Add(cur); - if (ReferenceEquals(cur, root)) - { - break; - } - cur = cur.GetParent(); - } - } - - private static Node3D FindNearestProtectedParent(Node node, Node3D sceneRoot, HashSet protectedNodes) - { - Node? cur = node.GetParent(); - while (cur is not null) - { - if (cur is Node3D n3d && protectedNodes.Contains(cur)) - { - return n3d; - } - if (ReferenceEquals(cur, sceneRoot)) - { - break; - } - cur = cur.GetParent(); - } - return sceneRoot; - } - - private static Transform3D ComputeRelativeTransform(Node3D ancestor, Node descendant) - { - Transform3D xf = Transform3D.Identity; - Node? cur = descendant; - while (cur is not null && !ReferenceEquals(cur, ancestor)) - { - if (cur is Node3D n3d) - { - xf = n3d.Transform * xf; - } - cur = cur.GetParent(); - } - return xf; - } - - private static bool CanMergeMeshInstance(MeshInstance3D mi) - { - if (mi.Mesh is null || mi.Mesh.GetSurfaceCount() == 0) - { - return false; - } - if (mi.Mesh is ArrayMesh am) - { - int surfCount = am.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - if (am.SurfaceGetPrimitiveType(s) != Mesh.PrimitiveType.Triangles) - { - return false; - } - } - } - return true; - } - - private static void CollectAllMeshInstances(Node cur, List outList) - { - if (cur is MeshInstance3D mi) - { - outList.Add(mi); - } - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - CollectAllMeshInstances(cur.GetChild(i), outList); - } - } - - private static void ReparentChildrenAndRemove(MeshInstance3D mi) - { - Node? parent = mi.GetParent(); - if (parent is not null) - { - for (int i = mi.GetChildCount() - 1; i >= 0; i--) - { - Node ch = mi.GetChild(i); - mi.RemoveChild(ch); - if (ch is Node3D ch3d) - { - ch3d.Transform = mi.Transform * ch3d.Transform; - } - parent.AddChild(ch); - } - parent.RemoveChild(mi); - } - mi.QueueFree(); - } - - private static List MergeVehicleSubMeshes( - Node3D sceneRoot, - HashSet protectedNodes, - Dictionary detachableByNode) - { - var allMeshes = new List(); - CollectAllMeshInstances(sceneRoot, allMeshes); - - var detachableGroups = new Dictionary<(Node3D RigidParent, int CellX, int CellY), (string Kind, List<(MeshInstance3D Mi, Transform3D RelXf)> Items)>(); - var staticGroups = new Dictionary>(); - var detachResultNodes = new List<(MeshInstance3D Node, int CellX, int CellY, string Kind)>(); - - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (!CanMergeMeshInstance(mi)) - { - continue; - } - - if (detachableByNode.TryGetValue(mi, out var detInfo)) - { - Node3D rigidParent = FindNearestProtectedParent(mi, sceneRoot, protectedNodes); - Transform3D relXf = ComputeRelativeTransform(rigidParent, mi); - var key = (rigidParent, detInfo.CellX, detInfo.CellY); - if (!detachableGroups.TryGetValue(key, out var group)) - { - group = (detInfo.Kind, new List<(MeshInstance3D, Transform3D)>()); - detachableGroups[key] = group; - } - group.Items.Add((mi, relXf)); - } - else if (!protectedNodes.Contains(mi)) - { - Node3D rigidParent = FindNearestProtectedParent(mi, sceneRoot, protectedNodes); - Transform3D relXf = ComputeRelativeTransform(rigidParent, mi); - if (!staticGroups.TryGetValue(rigidParent, out var list)) - { - list = new List<(MeshInstance3D, Transform3D)>(); - staticGroups[rigidParent] = list; - } - list.Add((mi, relXf)); - } - } - - // B. Merge detachable armor parts per (rigidParent, CellX, CellY) - int detSeq = 0; - foreach (var ((rigidParent, cellX, cellY), (kind, items)) in detachableGroups) - { - if (items.Count == 1 && ReferenceEquals(items[0].Mi.GetParent(), rigidParent)) - { - // Already a single child directly under rigidParent — keep as-is - detachResultNodes.Add((items[0].Mi, cellX, cellY, kind)); - continue; - } - - ArrayMesh? merged = BuildMergedArrayMesh(items); - if (merged is null) - { - continue; - } - - var chunkNode = new MeshInstance3D - { - Name = $"ArmorCell_{cellX}_{cellY}_{detSeq++}", - Mesh = merged - }; - rigidParent.AddChild(chunkNode); - detachResultNodes.Add((chunkNode, cellX, cellY, kind)); - - for (int i = 0; i < items.Count; i++) - { - ReparentChildrenAndRemove(items[i].Mi); - } - } - - // A. Merge static non-detachable sub-meshes per rigid articulated parent, and collapse PaintTag==0 surfaces on protected structural meshes - var mergedProtectedMeshes = new HashSet(); - foreach (var (rigidParent, items) in staticGroups) - { - if (rigidParent is MeshInstance3D parentMi && CanMergeMeshInstance(parentMi)) - { - var combined = new List<(MeshInstance3D, Transform3D)>(items.Count + 1) - { - (parentMi, Transform3D.Identity) - }; - combined.AddRange(items); - ArrayMesh? merged = BuildMergedArrayMesh(combined); - if (merged is not null) - { - parentMi.MaterialOverride = null; - parentMi.Mesh = merged; - mergedProtectedMeshes.Add(parentMi); - for (int i = 0; i < items.Count; i++) - { - ReparentChildrenAndRemove(items[i].Mi); - } - } - } - else if (items.Count > 1 || (items.Count == 1 && !ReferenceEquals(items[0].Mi.GetParent(), rigidParent))) - { - ArrayMesh? merged = BuildMergedArrayMesh(items); - if (merged is not null) - { - var staticNode = new MeshInstance3D - { - Name = $"{rigidParent.Name}_StaticMerged", - Mesh = merged - }; - rigidParent.AddChild(staticNode); - for (int i = 0; i < items.Count; i++) - { - ReparentChildrenAndRemove(items[i].Mi); - } - } - } - } - - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (GodotObject.IsInstanceValid(mi) && - protectedNodes.Contains(mi) && - !mergedProtectedMeshes.Contains(mi) && - CanMergeMeshInstance(mi) && - mi.Mesh is not null && - mi.Mesh.GetSurfaceCount() > 1) - { - var single = new List<(MeshInstance3D, Transform3D)>(1) { (mi, Transform3D.Identity) }; - ArrayMesh? collapsed = BuildMergedArrayMesh(single); - if (collapsed is not null && collapsed.GetSurfaceCount() < mi.Mesh.GetSurfaceCount()) - { - mi.MaterialOverride = null; - mi.Mesh = collapsed; - } - } - } - - // Prune empty non-protected grouping nodes left behind - PruneEmptyNonProtectedNodes(sceneRoot, sceneRoot, protectedNodes); - - var result = new List(detachResultNodes.Count); - for (int i = 0; i < detachResultNodes.Count; i++) - { - var (node, cellX, cellY, kind) = detachResultNodes[i]; - if (!GodotObject.IsInstanceValid(node) || !sceneRoot.IsAncestorOf(node)) - { - continue; - } - result.Add(new GlbPartNodeInfo( - node.Name, - cellX, - cellY, - kind, - BuildRelativeNodePath(sceneRoot, node), - HasProtectedDescendant: false)); - } - return result; - } - - private static void MergeGearSubMeshes(Node3D sceneRoot, string gearId) - { - var keptNodes = new HashSet { sceneRoot }; - var allMeshes = new List(); - CollectAllMeshInstances(sceneRoot, allMeshes); - - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (PreservedGearPartNames.Contains(mi.Name)) - { - MarkNodeAndAncestorsProtected(mi, sceneRoot, keptNodes); - } - } - - var mergeList = new List<(MeshInstance3D Mi, Transform3D RelXf)>(); - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (!keptNodes.Contains(mi) && CanMergeMeshInstance(mi)) - { - mergeList.Add((mi, ComputeRelativeTransform(sceneRoot, mi))); - } - } - - if (mergeList.Count <= 1) - { - return; - } - - ArrayMesh? merged = BuildMergedArrayMesh(mergeList); - if (merged is null) - { - return; - } - - var mergedNode = new MeshInstance3D - { - Name = $"{gearId}_StaticMerged", - Mesh = merged - }; - sceneRoot.AddChild(mergedNode); - for (int i = 0; i < mergeList.Count; i++) - { - ReparentChildrenAndRemove(mergeList[i].Mi); - } - PruneEmptyNonProtectedNodes(sceneRoot, sceneRoot, keptNodes); - } - - private static ArrayMesh BuildBakedStaticMesh(Node3D sceneRoot, bool coarseMaterials = false) - { - var allMeshes = new List(); - CollectAllMeshInstances(sceneRoot, allMeshes); - - var items = new List<(MeshInstance3D Mi, Transform3D RelXf)>(allMeshes.Count); - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (CanMergeMeshInstance(mi)) - { - items.Add((mi, ComputeRelativeTransform(sceneRoot, mi))); - } - } - - return BuildMergedArrayMesh(items, coarseMaterials) ?? new ArrayMesh(); - } - - private static Dictionary CollectGearPartCentroids(Node3D sceneRoot) - { - var result = new Dictionary(StringComparer.OrdinalIgnoreCase); - var allMeshes = new List(); - CollectAllMeshInstances(sceneRoot, allMeshes); - - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (!PreservedGearPartNames.Contains(mi.Name) || mi.Mesh is null) - { - continue; - } - Transform3D toRoot = ComputeRelativeTransform(sceneRoot, mi); - Vector3 sum = Vector3.Zero; - int count = 0; - int surfCount = mi.Mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arr = mi.Mesh.SurfaceGetArrays(s); - if (arr.Count > (int)Mesh.ArrayType.Vertex && - arr[(int)Mesh.ArrayType.Vertex].VariantType == Variant.Type.PackedVector3Array) - { - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - for (int v = 0; v < verts.Length; v++) - { - sum += toRoot * verts[v]; - count++; - } - } - } - if (count > 0) - { - result[mi.Name] = sum / count; - } - } - return result; - } - - private static void ExtractRigidPartsAndStripMeshes( - Node3D sceneRoot, - HashSet protectedNodes, - List detachableInfos, - out List staticPartsOut, - out List detachablePartsOut) - { - staticPartsOut = new List(); - detachablePartsOut = new List(); - - var detachableSet = new Dictionary(); - for (int i = 0; i < detachableInfos.Count; i++) - { - var dp = detachableInfos[i]; - if (sceneRoot.GetNodeOrNull(dp.RelativePath) is MeshInstance3D dmi) - { - detachableSet[dmi] = dp; - } - } - - // 1. Extract detachable per-cell armor chunks in their rigidParent's local space - foreach (var (mi, dp) in detachableSet) - { - if (!CanMergeMeshInstance(mi) || mi.Mesh is null) - { - continue; - } - Node3D rigidParent = protectedNodes.Contains(mi) - ? mi - : FindNearestProtectedParent(mi, sceneRoot, protectedNodes); - Transform3D relXf = ReferenceEquals(mi, rigidParent) - ? Transform3D.Identity - : ComputeRelativeTransform(rigidParent, mi); - var single = new List<(Mesh Mesh, Transform3D RelXf)>(1) { (mi.Mesh, relXf) }; - ArrayMesh? collapsed = CollapseToSingleSurfaceMechPaintMesh(single); - if (collapsed is not null) - { - detachablePartsOut.Add(new RigidPartTemplate( - BuildRelativeNodePath(sceneRoot, rigidParent), - collapsed, - dp.CellX, - dp.CellY, - dp.Kind)); - } - } - - // 2. Group remaining non-detachable rigid meshes by rigidParent and collapse each to 1 surface - var allMeshes = new List(); - CollectAllMeshInstances(sceneRoot, allMeshes); - var staticByPivot = new Dictionary>(); - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (detachableSet.ContainsKey(mi) || !CanMergeMeshInstance(mi) || mi.Mesh is null) - { - continue; - } - Node3D rigidParent = protectedNodes.Contains(mi) - ? mi - : FindNearestProtectedParent(mi, sceneRoot, protectedNodes); - Transform3D relXf = ReferenceEquals(mi, rigidParent) - ? Transform3D.Identity - : ComputeRelativeTransform(rigidParent, mi); - if (!staticByPivot.TryGetValue(rigidParent, out var list)) - { - list = new List<(Mesh, Transform3D)>(); - staticByPivot[rigidParent] = list; - } - list.Add((mi.Mesh, relXf)); - } - - foreach (var (rigidParent, items) in staticByPivot) - { - ArrayMesh? collapsed = CollapseToSingleSurfaceMechPaintMesh(items); - if (collapsed is not null) - { - staticPartsOut.Add(new RigidPartTemplate( - BuildRelativeNodePath(sceneRoot, rigidParent), - collapsed, - -1, - -1, - "static")); - } - } - - // 3. Strip all MeshInstance3D nodes from sceneRoot: - // - Protected MeshInstance3Ds become plain Node3D pivots preserving Name, Transform, and children. - // - Non-protected MeshInstance3Ds are removed cleanly. - for (int i = 0; i < allMeshes.Count; i++) - { - MeshInstance3D mi = allMeshes[i]; - if (!GodotObject.IsInstanceValid(mi) || ReferenceEquals(mi, sceneRoot)) - { - continue; - } - if (protectedNodes.Contains(mi)) - { - ReplaceMeshInstanceWithPivot(mi); - } - else - { - ReparentChildrenAndRemove(mi); - } - } - } - - private static void ReplaceMeshInstanceWithPivot(MeshInstance3D mi) - { - Node? parent = mi.GetParent(); - if (parent is null) - { - return; - } - int idx = mi.GetIndex(); - var pivot = new Node3D - { - Name = mi.Name, - Transform = mi.Transform - }; - parent.RemoveChild(mi); - parent.AddChild(pivot); - parent.MoveChild(pivot, idx); - while (mi.GetChildCount() > 0) - { - Node ch = mi.GetChild(0); - mi.RemoveChild(ch); - pivot.AddChild(ch); - } - mi.QueueFree(); - } - - private static Vector3[] ExtractFlatTriangles(ArrayMesh mesh) - { - var tris = new List(); - int surfCount = mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arr = mesh.SurfaceGetArrays(s); - if (arr.Count <= (int)Mesh.ArrayType.Vertex || - arr[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - int[]? indices = arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array - ? arr[(int)Mesh.ArrayType.Index].AsInt32Array() - : null; - int triCount = (indices is not null ? indices.Length : verts.Length) / 3; - for (int t = 0; t < triCount; t++) - { - int i0 = indices is not null ? indices[t * 3] : t * 3; - int i1 = indices is not null ? indices[t * 3 + 1] : t * 3 + 1; - int i2 = indices is not null ? indices[t * 3 + 2] : t * 3 + 2; - tris.Add(verts[i0]); - tris.Add(verts[i1]); - tris.Add(verts[i2]); - } - } - return tris.ToArray(); - } - - public static ArrayMesh CollapseToSingleSurfaceMechPaintMesh( - ArrayMesh src, - Color? gearPaintTint = null, - Color? gearAccentTint = null) - { - var list = new List<(Mesh Mesh, Transform3D RelXf)>(1) { (src, Transform3D.Identity) }; - return CollapseToSingleSurfaceMechPaintMesh(list, gearPaintTint, gearAccentTint) ?? new ArrayMesh(); - } - - private static ArrayMesh? CollapseToSingleSurfaceMechPaintMesh( - List<(Mesh Mesh, Transform3D RelXf)> sources, - Color? gearPaintTint = null, - Color? gearAccentTint = null) - { - int totalVerts = 0; - int totalIndices = 0; - var chunks = new List<(Godot.Collections.Array Arrays, Transform3D RelXf, Vector3 LinearCol, int Band, float Rough, int VertCount, int IdxCount)>(); - - for (int i = 0; i < sources.Count; i++) - { - var (mesh, relXf) = sources[i]; - int surfCount = mesh.GetSurfaceCount(); - var am = mesh as ArrayMesh; - for (int s = 0; s < surfCount; s++) - { - if (am is not null && am.SurfaceGetPrimitiveType(s) != Mesh.PrimitiveType.Triangles) - { - continue; - } - var arr = mesh.SurfaceGetArrays(s); - if (arr.Count <= (int)Mesh.ArrayType.Vertex || - arr[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - if (verts.Length == 0) - { - continue; - } - - int idxCount = verts.Length; - if (arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array) - { - idxCount = arr[(int)Mesh.ArrayType.Index].AsInt32Array().Length; - } - if (idxCount < 3) - { - continue; - } - - ClassifyMaterialForMechPaint(mesh.SurfaceGetMaterial(s), gearPaintTint, gearAccentTint, out Vector3 linCol, out int band, out float rough); - chunks.Add((arr, relXf, linCol, band, rough, verts.Length, idxCount)); - totalVerts += verts.Length; - totalIndices += idxCount; - } - } - - if (totalVerts == 0 || totalIndices == 0) - { - return null; - } - - var outVerts = new Vector3[totalVerts]; - var outNorms = new Vector3[totalVerts]; - var outColors = new Color[totalVerts]; - var outUvs = new Vector2[totalVerts]; - var outUv2s = new Vector2[totalVerts]; - var outIndices = new int[totalIndices]; - - int vOff = 0; - int iOff = 0; - for (int c = 0; c < chunks.Count; c++) - { - var (arr, relXf, linCol, band, rough, vCount, idxCount) = chunks[c]; - Vector3[] srcV = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - bool flipWinding = relXf.Basis.Determinant() < 0f; - Basis normBasis = relXf.Basis.Inverse().Transposed(); - - for (int v = 0; v < vCount; v++) - { - outVerts[vOff + v] = relXf * srcV[v]; - } - - if (arr.Count > (int)Mesh.ArrayType.Normal && arr[(int)Mesh.ArrayType.Normal].VariantType == Variant.Type.PackedVector3Array) - { - Vector3[] srcN = arr[(int)Mesh.ArrayType.Normal].AsVector3Array(); - for (int v = 0; v < vCount; v++) - { - Vector3 n = normBasis * srcN[v]; - outNorms[vOff + v] = n.LengthSquared() > 1e-10f ? n.Normalized() : Vector3.Up; - } - } - else - { - for (int v = 0; v < vCount; v++) outNorms[vOff + v] = Vector3.Up; - } - - if (arr.Count > (int)Mesh.ArrayType.Color && arr[(int)Mesh.ArrayType.Color].VariantType == Variant.Type.PackedColorArray) - { - Array.Copy(arr[(int)Mesh.ArrayType.Color].AsColorArray(), 0, outColors, vOff, vCount); - } - else - { - // Gear or unbaked submesh: neutral cavity AO, crisp edge highlight, steady rest height above mud line - var defaultCol = new Color(0.86f, 0.36f, 0.50f, 0.65f); - for (int v = 0; v < vCount; v++) outColors[vOff + v] = defaultCol; - } - - var uv0 = new Vector2(linCol.X, linCol.Y); - var uv1 = new Vector2(linCol.Z, band * 2.0f + rough); - for (int v = 0; v < vCount; v++) - { - outUvs[vOff + v] = uv0; - outUv2s[vOff + v] = uv1; - } - - bool hasIdx = arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array; - int[]? srcIdx = hasIdx ? arr[(int)Mesh.ArrayType.Index].AsInt32Array() : null; - if (!flipWinding) - { - if (srcIdx is not null) - { - for (int k = 0; k < idxCount; k++) outIndices[iOff + k] = srcIdx[k] + vOff; - } - else - { - for (int k = 0; k < idxCount; k++) outIndices[iOff + k] = k + vOff; - } - } - else - { - for (int k = 0; k + 2 < idxCount; k += 3) - { - int a = srcIdx is not null ? srcIdx[k] : k; - int bIdx = srcIdx is not null ? srcIdx[k + 1] : k + 1; - int cIdx = srcIdx is not null ? srcIdx[k + 2] : k + 2; - outIndices[iOff + k] = a + vOff; - outIndices[iOff + k + 1] = cIdx + vOff; - outIndices[iOff + k + 2] = bIdx + vOff; - } - } - - vOff += vCount; - iOff += idxCount; - } - - var surfArrays = new Godot.Collections.Array(); - surfArrays.Resize((int)Mesh.ArrayType.Max); - surfArrays[(int)Mesh.ArrayType.Vertex] = outVerts; - surfArrays[(int)Mesh.ArrayType.Normal] = outNorms; - surfArrays[(int)Mesh.ArrayType.Color] = outColors; - surfArrays[(int)Mesh.ArrayType.TexUV] = outUvs; - surfArrays[(int)Mesh.ArrayType.TexUV2] = outUv2s; - surfArrays[(int)Mesh.ArrayType.Index] = outIndices; - - var outMesh = new ArrayMesh(); - outMesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, surfArrays); - return outMesh; - } - - private static void ClassifyMaterialForMechPaint( - Material? mat, - Color? gearPaintTint, - Color? gearAccentTint, - out Vector3 linearColor, - out int band, - out float roughness) - { - if (mat is not StandardMaterial3D sm) - { - linearColor = new Vector3(0.08f, 0.09f, 0.06f); - band = 3; - roughness = 0.58f; - return; - } - - string mName = (sm.ResourceName ?? string.Empty).ToLowerInvariant(); - roughness = Math.Clamp(sm.Roughness, 0.08f, 0.90f); - - if (mName.Contains("lamp") || mName.Contains("glow") || mName.Contains("cyan") || - mName.Contains("amber") || mName.Contains("optic_red")) - { - Color eCol = (sm.EmissionEnabled ? sm.Emission : sm.AlbedoColor).SrgbToLinear(); - linearColor = new Vector3(eCol.R, eCol.G, eCol.B); - band = 5; - roughness = 0.22f; - return; - } - - if (mName.Contains("olive") || mName.Contains("khaki") || mName.Contains("armour") || mName.Contains("armor")) - { - if (gearPaintTint.HasValue) - { - Color c = gearPaintTint.Value.SrgbToLinear(); - linearColor = new Vector3(c.R, c.G, c.B); - band = 6; - roughness = 0.56f; - return; - } - Color b = sm.AlbedoColor.SrgbToLinear(); - linearColor = new Vector3(b.R, b.G, b.B); - band = 3; - roughness = 0.58f; - return; - } - - if (mName.Contains("ivory") && gearPaintTint.HasValue) - { - Color c = gearPaintTint.Value.SrgbToLinear(); - linearColor = new Vector3(c.R, c.G, c.B); - band = 6; - roughness = 0.42f; - return; - } - - if (mName.Contains("signal") || mName.Contains("orange") || mName.Contains("hazard")) - { - if (gearAccentTint.HasValue) - { - Color c = gearAccentTint.Value.SrgbToLinear(); - linearColor = new Vector3(c.R, c.G, c.B); - band = 7; - roughness = 0.42f; - return; - } - Color b = sm.AlbedoColor.SrgbToLinear(); - linearColor = new Vector3(b.R, b.G, b.B); - band = 4; - roughness = 0.44f; - return; - } - - if (gearAccentTint.HasValue && (mName.Contains("copper") || mName.Contains("gold"))) - { - Color c = gearAccentTint.Value.SrgbToLinear(); - linearColor = new Vector3(c.R, c.G, c.B); - band = 7; - roughness = 0.36f; - return; - } - - Color lin = sm.AlbedoColor.SrgbToLinear(); - linearColor = new Vector3(lin.R, lin.G, lin.B); - band = sm.Metallic >= 0.70f ? 2 : (sm.Metallic >= 0.35f ? 1 : 0); - } - - private static void PruneEmptyNonProtectedNodes(Node cur, Node sceneRoot, HashSet protectedNodes) - { - for (int i = cur.GetChildCount() - 1; i >= 0; i--) - { - Node ch = cur.GetChild(i); - PruneEmptyNonProtectedNodes(ch, sceneRoot, protectedNodes); - if (!ReferenceEquals(ch, sceneRoot) && - !protectedNodes.Contains(ch) && - ch is not MeshInstance3D && - ch.GetChildCount() == 0) - { - cur.RemoveChild(ch); - ch.QueueFree(); - } - } - } - - private readonly record struct StandardMatKey( - int PaintTag, - int R, - int G, - int B, - int A, - int Metallic, - int Roughness, - bool EmissionEnabled, - int EmR, - int EmG, - int EmB, - int EmEnergy, - int Transparency, - int CullMode); - - private static bool TryGetMaterialValueKey( - Material mat, - bool coarse, - out StandardMatKey key) - { - if (mat is StandardMaterial3D sm && - sm.AlbedoTexture is null && - sm.NormalTexture is null && - sm.RoughnessTexture is null && - sm.MetallicTexture is null && - sm.EmissionTexture is null) - { - string mName = (sm.ResourceName ?? string.Empty).ToLowerInvariant(); - int paintTag = (mName.Contains("olive") || mName.Contains("khaki")) ? 1 - : (mName.Contains("signal") || mName.Contains("orange")) ? 2 - : 0; - float colorScale = coarse ? 2f : 32f; - float pbrScale = coarse ? 0f : 4f; - key = new StandardMatKey( - paintTag, - (int)MathF.Round(sm.AlbedoColor.R * colorScale), - (int)MathF.Round(sm.AlbedoColor.G * colorScale), - (int)MathF.Round(sm.AlbedoColor.B * colorScale), - (int)MathF.Round(sm.AlbedoColor.A * 10f), - (int)MathF.Round(sm.Metallic * pbrScale), - (int)MathF.Round(sm.Roughness * pbrScale), - sm.EmissionEnabled, - (int)MathF.Round(sm.Emission.R * colorScale), - (int)MathF.Round(sm.Emission.G * colorScale), - (int)MathF.Round(sm.Emission.B * colorScale), - (int)MathF.Round(sm.EmissionEnergyMultiplier * pbrScale), - (int)sm.Transparency, - (int)sm.CullMode); - return true; - } - key = default; - return false; - } - - private sealed class MaterialSurfaceBucket - { - public required Material? Material; - public readonly List<(Mesh Mesh, int SurfaceIdx, Transform3D RelXf)> Sources = new(); - } - - private static ArrayMesh? BuildMergedArrayMesh( - List<(MeshInstance3D Mi, Transform3D RelXf)> items, - bool coarseMaterials = false) - { - if (items.Count == 0) - { - return null; - } - - var buckets = new List(); - var bucketByMatId = new Dictionary(); - var bucketByMatVal = new Dictionary(); - MaterialSurfaceBucket? nullMatBucket = null; - - for (int i = 0; i < items.Count; i++) - { - var (mi, relXf) = items[i]; - if (mi.Mesh is not { } mesh) - { - continue; - } - int surfCount = mesh.GetSurfaceCount(); - var am = mesh as ArrayMesh; - for (int s = 0; s < surfCount; s++) - { - if (am is not null && am.SurfaceGetPrimitiveType(s) != Mesh.PrimitiveType.Triangles) - { - continue; - } - Material? mat = mi.MaterialOverride ?? mi.GetActiveMaterial(s); - MaterialSurfaceBucket bucket; - if (mat is null) - { - nullMatBucket ??= new MaterialSurfaceBucket { Material = null }; - if (!buckets.Contains(nullMatBucket)) - { - buckets.Add(nullMatBucket); - } - bucket = nullMatBucket; - } - else if (TryGetMaterialValueKey(mat, coarseMaterials, out var matKey)) - { - if (!bucketByMatVal.TryGetValue(matKey, out bucket!)) - { - bucket = new MaterialSurfaceBucket { Material = mat }; - bucketByMatVal[matKey] = bucket; - buckets.Add(bucket); - } - } - else - { - ulong id = mat.GetInstanceId(); - if (!bucketByMatId.TryGetValue(id, out bucket!)) - { - bucket = new MaterialSurfaceBucket { Material = mat }; - bucketByMatId[id] = bucket; - buckets.Add(bucket); - } - } - bucket.Sources.Add((mesh, s, relXf)); - } - } - - if (buckets.Count == 0) - { - return null; - } - - var outMesh = new ArrayMesh(); - for (int b = 0; b < buckets.Count; b++) - { - var bucket = buckets[b]; - bool anyNormal = false; - bool anyTangent = false; - bool anyUv = false; - bool anyUv2 = false; - bool anyColor = false; - int totalVerts = 0; - int totalIndices = 0; - - var cachedArrays = new List<(Godot.Collections.Array Arrays, Transform3D RelXf, int VertCount, int IndexCount)>(bucket.Sources.Count); - for (int s = 0; s < bucket.Sources.Count; s++) - { - var (mesh, surfIdx, relXf) = bucket.Sources[s]; - var arr = mesh.SurfaceGetArrays(surfIdx); - if (arr.Count <= (int)Mesh.ArrayType.Vertex || - arr[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - if (verts.Length == 0) - { - continue; - } - - if (arr.Count > (int)Mesh.ArrayType.Normal && arr[(int)Mesh.ArrayType.Normal].VariantType == Variant.Type.PackedVector3Array) anyNormal = true; - if (arr.Count > (int)Mesh.ArrayType.Tangent && arr[(int)Mesh.ArrayType.Tangent].VariantType == Variant.Type.PackedFloat32Array) anyTangent = true; - if (arr.Count > (int)Mesh.ArrayType.TexUV && arr[(int)Mesh.ArrayType.TexUV].VariantType == Variant.Type.PackedVector2Array) anyUv = true; - if (arr.Count > (int)Mesh.ArrayType.TexUV2 && arr[(int)Mesh.ArrayType.TexUV2].VariantType == Variant.Type.PackedVector2Array) anyUv2 = true; - if (arr.Count > (int)Mesh.ArrayType.Color && arr[(int)Mesh.ArrayType.Color].VariantType == Variant.Type.PackedColorArray) anyColor = true; - - int idxCount = verts.Length; - if (arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array) - { - idxCount = arr[(int)Mesh.ArrayType.Index].AsInt32Array().Length; - } - - totalVerts += verts.Length; - totalIndices += idxCount; - cachedArrays.Add((arr, relXf, verts.Length, idxCount)); - } - - if (totalVerts == 0 || totalIndices == 0) - { - continue; - } - - var outVerts = new Vector3[totalVerts]; - Vector3[]? outNormals = anyNormal ? new Vector3[totalVerts] : null; - float[]? outTangents = anyTangent ? new float[totalVerts * 4] : null; - Vector2[]? outUvs = anyUv ? new Vector2[totalVerts] : null; - Vector2[]? outUv2s = anyUv2 ? new Vector2[totalVerts] : null; - Color[]? outColors = anyColor ? new Color[totalVerts] : null; - var outIndices = new int[totalIndices]; - - int vOffset = 0; - int iOffset = 0; - for (int c = 0; c < cachedArrays.Count; c++) - { - var (arr, relXf, vCount, idxCount) = cachedArrays[c]; - Vector3[] srcVerts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - bool flipWinding = relXf.Basis.Determinant() < 0f; - Basis normBasis = relXf.Basis.Inverse().Transposed(); - - for (int v = 0; v < vCount; v++) - { - outVerts[vOffset + v] = relXf * srcVerts[v]; - } - - if (outNormals is not null) - { - if (arr.Count > (int)Mesh.ArrayType.Normal && arr[(int)Mesh.ArrayType.Normal].VariantType == Variant.Type.PackedVector3Array) - { - Vector3[] srcN = arr[(int)Mesh.ArrayType.Normal].AsVector3Array(); - for (int v = 0; v < vCount; v++) - { - Vector3 n = normBasis * srcN[v]; - outNormals[vOffset + v] = n.LengthSquared() > 1e-10f ? n.Normalized() : Vector3.Up; - } - } - else - { - for (int v = 0; v < vCount; v++) outNormals[vOffset + v] = Vector3.Up; - } - } - - if (outTangents is not null) - { - if (arr.Count > (int)Mesh.ArrayType.Tangent && arr[(int)Mesh.ArrayType.Tangent].VariantType == Variant.Type.PackedFloat32Array) - { - float[] srcT = arr[(int)Mesh.ArrayType.Tangent].AsFloat32Array(); - for (int v = 0; v < vCount; v++) - { - int sBase = v * 4; - int dBase = (vOffset + v) * 4; - Vector3 t = relXf.Basis * new Vector3(srcT[sBase], srcT[sBase + 1], srcT[sBase + 2]); - t = t.LengthSquared() > 1e-10f ? t.Normalized() : Vector3.Right; - outTangents[dBase] = t.X; - outTangents[dBase + 1] = t.Y; - outTangents[dBase + 2] = t.Z; - outTangents[dBase + 3] = flipWinding ? -srcT[sBase + 3] : srcT[sBase + 3]; - } - } - else - { - for (int v = 0; v < vCount; v++) - { - int dBase = (vOffset + v) * 4; - outTangents[dBase] = 1f; - outTangents[dBase + 3] = 1f; - } - } - } - - if (outUvs is not null) - { - if (arr.Count > (int)Mesh.ArrayType.TexUV && arr[(int)Mesh.ArrayType.TexUV].VariantType == Variant.Type.PackedVector2Array) - { - Array.Copy(arr[(int)Mesh.ArrayType.TexUV].AsVector2Array(), 0, outUvs, vOffset, vCount); - } - } - - if (outUv2s is not null) - { - if (arr.Count > (int)Mesh.ArrayType.TexUV2 && arr[(int)Mesh.ArrayType.TexUV2].VariantType == Variant.Type.PackedVector2Array) - { - Array.Copy(arr[(int)Mesh.ArrayType.TexUV2].AsVector2Array(), 0, outUv2s, vOffset, vCount); - } - } - - if (outColors is not null) - { - if (arr.Count > (int)Mesh.ArrayType.Color && arr[(int)Mesh.ArrayType.Color].VariantType == Variant.Type.PackedColorArray) - { - Color[] srcC = arr[(int)Mesh.ArrayType.Color].AsColorArray(); - Array.Copy(srcC, 0, outColors, vOffset, vCount); - } - else - { - for (int v = 0; v < vCount; v++) outColors[vOffset + v] = Colors.White; - } - } - - bool hasIdx = arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array; - int[]? srcIdx = hasIdx ? arr[(int)Mesh.ArrayType.Index].AsInt32Array() : null; - if (!flipWinding) - { - if (srcIdx is not null) - { - for (int k = 0; k < idxCount; k++) outIndices[iOffset + k] = srcIdx[k] + vOffset; - } - else - { - for (int k = 0; k < idxCount; k++) outIndices[iOffset + k] = k + vOffset; - } - } - else - { - for (int k = 0; k + 2 < idxCount; k += 3) - { - int a = srcIdx is not null ? srcIdx[k] : k; - int bIdx = srcIdx is not null ? srcIdx[k + 1] : k + 1; - int cIdx = srcIdx is not null ? srcIdx[k + 2] : k + 2; - outIndices[iOffset + k] = a + vOffset; - outIndices[iOffset + k + 1] = cIdx + vOffset; - outIndices[iOffset + k + 2] = bIdx + vOffset; - } - } - - vOffset += vCount; - iOffset += idxCount; - } - - var surfArrays = new Godot.Collections.Array(); - surfArrays.Resize((int)Mesh.ArrayType.Max); - surfArrays[(int)Mesh.ArrayType.Vertex] = outVerts; - if (outNormals is not null) surfArrays[(int)Mesh.ArrayType.Normal] = outNormals; - if (outTangents is not null) surfArrays[(int)Mesh.ArrayType.Tangent] = outTangents; - if (outUvs is not null) surfArrays[(int)Mesh.ArrayType.TexUV] = outUvs; - if (outUv2s is not null) surfArrays[(int)Mesh.ArrayType.TexUV2] = outUv2s; - if (outColors is not null) surfArrays[(int)Mesh.ArrayType.Color] = outColors; - surfArrays[(int)Mesh.ArrayType.Index] = outIndices; - - int newSurf = outMesh.GetSurfaceCount(); - outMesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, surfArrays); - if (bucket.Material is not null) - { - outMesh.SurfaceSetMaterial(newSurf, bucket.Material); - } - } - - return outMesh.GetSurfaceCount() > 0 ? outMesh : null; - } - - private static ArrayMesh DecimateMeshGrid(ArrayMesh src, float cellSize, float targetMinY) - { - var outMesh = new ArrayMesh(); - float invCell = 1f / MathF.Max(0.02f, cellSize); - int surfCount = src.GetSurfaceCount(); - - for (int s = 0; s < surfCount; s++) - { - var arr = src.SurfaceGetArrays(s); - if (arr.Count <= (int)Mesh.ArrayType.Vertex || - arr[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - if (verts.Length == 0) - { - continue; - } - - bool hasNorm = arr.Count > (int)Mesh.ArrayType.Normal && arr[(int)Mesh.ArrayType.Normal].VariantType == Variant.Type.PackedVector3Array; - Vector3[]? norms = hasNorm ? arr[(int)Mesh.ArrayType.Normal].AsVector3Array() : null; - - bool hasColor = arr.Count > (int)Mesh.ArrayType.Color && arr[(int)Mesh.ArrayType.Color].VariantType == Variant.Type.PackedColorArray; - Color[]? colors = hasColor ? arr[(int)Mesh.ArrayType.Color].AsColorArray() : null; - - bool hasIdx = arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array; - int[]? indices = hasIdx ? arr[(int)Mesh.ArrayType.Index].AsInt32Array() : null; - int triVertCount = indices is not null ? indices.Length : verts.Length; - - var cellToNewIdx = new Dictionary<(int, int, int), int>(verts.Length / 2 + 16); - var vertToCellIdx = new int[verts.Length]; - var accumPos = new List(verts.Length / 2 + 16); - var accumNorm = norms is not null ? new List(verts.Length / 2 + 16) : null; - var accumColor = colors is not null ? new List(verts.Length / 2 + 16) : null; - var counts = new List(verts.Length / 2 + 16); - var cellMinY = new List(verts.Length / 2 + 16); - - for (int v = 0; v < verts.Length; v++) - { - Vector3 p = verts[v]; - var key = ( - (int)MathF.Floor(p.X * invCell), - (int)MathF.Floor(p.Y * invCell), - (int)MathF.Floor(p.Z * invCell)); - - if (!cellToNewIdx.TryGetValue(key, out int ci)) - { - ci = accumPos.Count; - cellToNewIdx[key] = ci; - accumPos.Add(p); - if (accumNorm is not null) accumNorm.Add(norms![v]); - if (accumColor is not null) accumColor.Add(colors![v]); - counts.Add(1); - cellMinY.Add(p.Y); - } - else - { - accumPos[ci] += p; - if (accumNorm is not null) accumNorm[ci] += norms![v]; - if (accumColor is not null) accumColor[ci] += colors![v]; - counts[ci]++; - if (p.Y < cellMinY[ci]) cellMinY[ci] = p.Y; - } - vertToCellIdx[v] = ci; - } - - var outIndices = new List(triVertCount / 2 + 12); - for (int k = 0; k + 2 < triVertCount; k += 3) - { - int i0 = indices is not null ? indices[k] : k; - int i1 = indices is not null ? indices[k + 1] : k + 1; - int i2 = indices is not null ? indices[k + 2] : k + 2; - int c0 = vertToCellIdx[i0]; - int c1 = vertToCellIdx[i1]; - int c2 = vertToCellIdx[i2]; - if (c0 != c1 && c1 != c2 && c0 != c2) - { - outIndices.Add(c0); - outIndices.Add(c1); - outIndices.Add(c2); - } - } - - if (outIndices.Count == 0) - { - // Keep original tiny surface intact if grid collapsed all triangles - int fallbackSurf = outMesh.GetSurfaceCount(); - outMesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, arr); - Material? fMat = src.SurfaceGetMaterial(s); - if (fMat is not null) outMesh.SurfaceSetMaterial(fallbackSurf, fMat); - continue; - } - - var outVerts = new Vector3[accumPos.Count]; - Vector3[]? outNorms = accumNorm is not null ? new Vector3[accumPos.Count] : null; - Color[]? outColors = accumColor is not null ? new Color[accumPos.Count] : null; - for (int i = 0; i < accumPos.Count; i++) - { - Vector3 avg = accumPos[i] / counts[i]; - // Preserve exact ground-contacting vertex minY so far LOD ChassisDrops never float or sink - float y = cellMinY[i] <= targetMinY + 0.08f ? cellMinY[i] : avg.Y; - if (y < targetMinY) y = targetMinY; - outVerts[i] = new Vector3(avg.X, y, avg.Z); - if (outNorms is not null) - { - Vector3 n = accumNorm![i]; - outNorms[i] = n.LengthSquared() > 1e-8f ? n.Normalized() : Vector3.Up; - } - if (outColors is not null) - { - outColors[i] = accumColor![i] / counts[i]; - } - } - - var newArr = new Godot.Collections.Array(); - newArr.Resize((int)Mesh.ArrayType.Max); - newArr[(int)Mesh.ArrayType.Vertex] = outVerts; - if (outNorms is not null) newArr[(int)Mesh.ArrayType.Normal] = outNorms; - if (outColors is not null) newArr[(int)Mesh.ArrayType.Color] = outColors; - newArr[(int)Mesh.ArrayType.Index] = outIndices.ToArray(); - - int newSurf = outMesh.GetSurfaceCount(); - outMesh.AddSurfaceFromArrays(Mesh.PrimitiveType.Triangles, newArr); - Material? mat = src.SurfaceGetMaterial(s); - if (mat is not null) - { - outMesh.SurfaceSetMaterial(newSurf, mat); - } - } - - return outMesh.GetSurfaceCount() > 0 ? outMesh : src; - } - - private static void MarkAncestorsProtected(int idx, Dictionary parentByIndex, HashSet protectedSet) - { - int cur = idx; - while (true) - { - if (!protectedSet.Add(cur)) - { - // Still continue up in case a parent wasn't marked yet, or break if parent already marked - } - if (!parentByIndex.TryGetValue(cur, out int parent)) - { - break; - } - cur = parent; - } - } - - private static Node? ResolveSceneNode(Node3D sceneRoot, NodePath scenePath, string originalName) - { - if (!scenePath.IsEmpty) - { - Node? direct = sceneRoot.GetNodeOrNull(scenePath); - if (direct is not null) - { - return direct; - } - - string raw = scenePath.ToString(); - if (raw == "." || raw == sceneRoot.Name) - { - return sceneRoot; - } - - int slash = raw.IndexOf('/'); - if (slash >= 0) - { - string sub = raw[(slash + 1)..]; - Node? trimmed = sceneRoot.GetNodeOrNull(sub); - if (trimmed is not null) - { - return trimmed; - } - } - } - - // Fallback: sanitized name match - string sanitized = originalName.Replace('.', '_').Replace(':', '_').Replace('@', '_').Replace('/', '_'); - return FindNodeRecursive(sceneRoot, originalName, sanitized); - } - - private static Node? FindNodeRecursive(Node cur, string exactName, string sanitized) - { - string nm = cur.Name; - if (string.Equals(nm, exactName, StringComparison.Ordinal) || - string.Equals(nm, sanitized, StringComparison.Ordinal)) - { - return cur; - } - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - Node? found = FindNodeRecursive(cur.GetChild(i), exactName, sanitized); - if (found is not null) - { - return found; - } - } - return null; - } - - private static NodePath BuildRelativeNodePath(Node root, Node target) - { - if (ReferenceEquals(root, target)) - { - return new NodePath("."); - } - - var segments = new List(); - Node? cur = target; - while (cur is not null && !ReferenceEquals(cur, root)) - { - segments.Add(cur.Name); - cur = cur.GetParent(); - } - if (!ReferenceEquals(cur, root)) - { - return new NodePath("."); - } - segments.Reverse(); - return new NodePath(string.Join("/", segments)); - } - - private static void CollectModelTransforms(Node cur, Transform3D parentTransform, Dictionary map) - { - Transform3D world = cur is Node3D n3d ? parentTransform * n3d.Transform : parentTransform; - map[cur] = world; - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - CollectModelTransforms(cur.GetChild(i), world, map); - } - } - - private static void ComputeSceneMeshBoundsY(Node3D root, out float minY, out float maxY) - { - ComputeSceneMeshBounds(root, out Vector3 mn, out Vector3 mx); - minY = mn.Y; - maxY = mx.Y; - } - - private static void ComputeSceneMeshBounds(Node3D root, out Vector3 boundsMin, out Vector3 boundsMax) - { - Vector3 mn = new(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity); - Vector3 mx = new(float.NegativeInfinity, float.NegativeInfinity, float.NegativeInfinity); - AccumulateBounds(root, Transform3D.Identity, ref mn, ref mx); - - if (!float.IsFinite(mn.X)) - { - mn = Vector3.Zero; - mx = Vector3.One; - } - boundsMin = mn; - boundsMax = mx; - } - - private static void AccumulateBounds(Node cur, Transform3D parentXf, ref Vector3 mn, ref Vector3 mx) - { - Transform3D xf = cur is Node3D n3d ? parentXf * n3d.Transform : parentXf; - if (cur is MeshInstance3D mi && mi.Mesh is not null) - { - bool usedVertices = false; - int surfCount = mi.Mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arrays = mi.Mesh.SurfaceGetArrays(s); - if (arrays.Count > (int)Mesh.ArrayType.Vertex) - { - Vector3[] verts = arrays[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - if (verts.Length > 0) - { - usedVertices = true; - for (int v = 0; v < verts.Length; v++) - { - Vector3 w = xf * verts[v]; - mn = new Vector3(MathF.Min(mn.X, w.X), MathF.Min(mn.Y, w.Y), MathF.Min(mn.Z, w.Z)); - mx = new Vector3(MathF.Max(mx.X, w.X), MathF.Max(mx.Y, w.Y), MathF.Max(mx.Z, w.Z)); - } - } - } - } - - if (!usedVertices) - { - Aabb aabb = mi.Mesh.GetAabb(); - Vector3 p = aabb.Position; - Vector3 sz = aabb.Size; - for (int ix = 0; ix < 2; ix++) - { - for (int iy = 0; iy < 2; iy++) - { - for (int iz = 0; iz < 2; iz++) - { - Vector3 corner = new(p.X + ix * sz.X, p.Y + iy * sz.Y, p.Z + iz * sz.Z); - Vector3 w = xf * corner; - mn = new Vector3(MathF.Min(mn.X, w.X), MathF.Min(mn.Y, w.Y), MathF.Min(mn.Z, w.Z)); - mx = new Vector3(MathF.Max(mx.X, w.X), MathF.Max(mx.Y, w.Y), MathF.Max(mx.Z, w.Z)); - } - } - } - } - } - - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - AccumulateBounds(cur.GetChild(i), xf, ref mn, ref mx); - } - } - - private static byte[] ReadGlbJsonChunk(string glbPath) - { - byte[] data = File.ReadAllBytes(glbPath); - if (data.Length < 20) - { - throw new InvalidDataException($"{glbPath}: GLB smaller than 20-byte header."); - } - - uint magic = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(0, 4)); - uint version = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(4, 4)); - if (magic != 0x46546C67 || version != 2) - { - throw new InvalidDataException($"{glbPath}: invalid GLB header magic=0x{magic:X8} version={version}."); - } - - uint jsonLen = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(12, 4)); - uint jsonType = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(16, 4)); - if (jsonType != 0x4E4F534A) - { - throw new InvalidDataException($"{glbPath}: first GLB chunk is not JSON (0x{jsonType:X8})."); - } - - return data.AsSpan(20, (int)jsonLen).ToArray(); - } - - private static Vector3 ReadVec3(JsonElement obj, string propName, Vector3 fallback) - { - if (!obj.TryGetProperty(propName, out JsonElement arr) || arr.ValueKind != JsonValueKind.Array || arr.GetArrayLength() < 3) - { - return fallback; - } - return new Vector3(arr[0].GetSingle(), arr[1].GetSingle(), arr[2].GetSingle()); - } - - public void Dispose() - { - if (_disposed) return; - _disposed = true; - foreach (var v in _vehicles.Values) - { - if (GodotObject.IsInstanceValid(v.SceneTemplate)) - { - v.SceneTemplate.QueueFree(); - } - } - foreach (var g in _gear.Values) - { - if (GodotObject.IsInstanceValid(g.SceneTemplate)) - { - g.SceneTemplate.QueueFree(); - } - } - _vehicles.Clear(); - _gear.Clear(); - } -} diff --git a/client/VehicleRigAnimator.cs b/client/VehicleRigAnimator.cs deleted file mode 100644 index ca73f27..0000000 --- a/client/VehicleRigAnimator.cs +++ /dev/null @@ -1,1062 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -public readonly record struct VehicleRigDriveInput( - Vector3 Velocity, - float Yaw, - float AimYawWorld, - float AimPitchDeg, - float SteerCmd, - float ThrottleCmd, - float VerticalThrottleCmd, - float EngineThermalPerf, - float DeltaTime, - bool IsGrounded = true); - -/// -/// Drives real-time secondary mechanism animations on -/// from live physics state with strict NaN/Inf guards: -/// - Wheeled: wheel spin (v / r), front-axle steering, subtle chassis suspension roll/pitch. -/// - Turrets/Torsos/Arms: yaw tracking (joint.turret_yaw, joint.torso_yaw) & arm pitch. -/// - VTOL: rotor spin scaled by EngineThermalPerf + lift demand, nacelle tilt with acceleration. -/// - Walkers/Mechs: procedural leg stride returning to neutral rest when stopped, Manticore tail aiming, -/// and Breaker's damped oleo strut + 2-link scissor torque links + telescoping recess rams. -/// -public static class VehicleRigAnimator -{ - public sealed class StrutState - { - public float Compression; - public float Velocity; - } - - public sealed class ScissorBinding - { - public required Node3D UpperNode; - public required Node3D LowerNode; - public required Node3D ShinNode; - public required Node3D OleoNode; - public required Node3D OleoForkNode; - public required Transform3D RestLocalUp; - public required Transform3D RestLocalLow; - public required Vector3 AInShin; - public required Vector3 BInOleoFork; - public required Vector3 OutInShin; - public required float Arm; - public required Vector3 DirUp0InShin; - public required Vector3 DirLow0InOleoFork; - } - - public sealed class RamBinding - { - public required Node3D RamNode; - public required Node3D LugNode; - public required Node3D OleoNode; - public required Node3D OleoForkNode; - public required Node3D FootNode; - public required Transform3D RestLocalRam; - public required Vector3 APosInLug; - public required Vector3 BPosInFoot; - public required Vector3 WantDir0InLug; - } - - public sealed class BreakerMechRig - { - public bool Initialized; - public readonly Dictionary Struts = new(StringComparer.Ordinal); - public readonly Dictionary OleoNodes = new(StringComparer.Ordinal); - public readonly List Scissors = new(); - public readonly List Rams = new(); - } - - public sealed class WalkerFootSample - { - public required Node3D[] ChainFromModelRoot; - public required Vector3[] LocalPoints; - } - - public sealed class RigState - { - public float WheelSpinRad; - public float SteerRad; - public float TurretYawRad; - public float ArmPitchRad; - public float RotorSpinRad; - public float NacelleTiltRad; - public float StridePhaseRad; - public float StrideAmp; - public float PrevForwardSpeed; - public float PrevVelY; - public float ChassisPitchRad; - public float ChassisRollRad; - public float ElapsedSeconds; - public BreakerMechRig? BreakerRig; - public List? FootSamples; - } - - public static void Update( - VehicleVisualInstance visual, - ContenderState c, - Vector3 velocity, - Basis worldBasis, - float dt, - bool snap = false) - { - float aimYawWorld = c.Yaw; - float dx = c.AimX - c.X; - float dz = c.AimZ - c.Z; - if (float.IsFinite(dx) && float.IsFinite(dz) && (dx * dx + dz * dz) > 0.01f) - { - aimYawWorld = MathF.Atan2(dx, dz); - } - - float aimPitchDeg = 0f; - if (float.IsFinite(c.AimY)) - { - float aimOriginY = MatchRules.GetObserverEyeY(c.Y, c.Grid.Spec.HalfHeight); - float horiz = MathF.Sqrt(dx * dx + dz * dz); - if (horiz > 0.1f) - { - aimPitchDeg = Mathf.RadToDeg(MathF.Atan2(c.AimY - aimOriginY, horiz)); - } - } - - var input = new VehicleRigDriveInput( - Velocity: velocity, - Yaw: c.Yaw, - AimYawWorld: aimYawWorld, - AimPitchDeg: aimPitchDeg, - SteerCmd: c.SteerCmd, - ThrottleCmd: c.ThrottleCmd, - VerticalThrottleCmd: c.VerticalThrottleCmd, - EngineThermalPerf: c.Grid.ComputeEngineThermalPerformance(), - DeltaTime: dt, - IsGrounded: !c.Grid.Spec.IsVtol); - - Update(visual, in input, worldBasis, snap); - } - - public static void Update( - VehicleVisualInstance visual, - in VehicleRigDriveInput input, - Basis worldBasis, - bool snap = false) - { - float dt = Sanitize(input.DeltaTime, 0f, 0f, 0.1f); - if (!snap && dt <= 0f) - { - return; - } - Vector3 vel = SanitizeVec(input.Velocity); - float yaw = Sanitize(input.Yaw, 0f, -MathF.Tau * 4f, MathF.Tau * 4f); - float aimYawWorld = Sanitize(input.AimYawWorld, yaw, -MathF.Tau * 4f, MathF.Tau * 4f); - float aimPitchDeg = Sanitize(input.AimPitchDeg, 0f, -85f, 85f); - float steerCmd = Sanitize(input.SteerCmd, 0f, -1f, 1f); - float throttleCmd = Sanitize(input.ThrottleCmd, 0f, -1f, 1f); - float vertCmd = Sanitize(input.VerticalThrottleCmd, 0f, -1f, 1f); - float enginePerf = Sanitize(input.EngineThermalPerf, 1f, 0f, 1f); - - RigState st = visual.RigState; - st.ElapsedSeconds += dt; - - Vector3 fwd = worldBasis.Z; - fwd.Y = 0f; - fwd = fwd.LengthSquared() > 1e-5f ? fwd.Normalized() : new Vector3(MathF.Sin(yaw), 0f, MathF.Cos(yaw)); - Vector3 right = new(-fwd.Z, 0f, fwd.X); - - float forwardSpeed = vel.Dot(fwd); - float lateralSpeed = vel.Dot(right); - float horizSpeed = MathF.Sqrt(forwardSpeed * forwardSpeed + lateralSpeed * lateralSpeed); - - float relYaw = MatchRules.NormalizeAngle(aimYawWorld - yaw); - float aimPitchRad = Mathf.DegToRad(aimPitchDeg); - - float blendFast = dt > 0f ? 1f - MathF.Exp(-dt * 10f) : 1f; - float blendMed = dt > 0f ? 1f - MathF.Exp(-dt * 7f) : 1f; - - // 1. Turrets & torsos - UpdateTurretAndTorso(visual, st, relYaw, aimPitchRad, blendFast); - - // 2. Mobility-specific drives - var mobility = visual.Package.Mobility; - switch (mobility) - { - case MobilityKind.Wheeled: - UpdateWheeled(visual, st, forwardSpeed, lateralSpeed, steerCmd, dt, blendFast); - break; - - case MobilityKind.Vtol: - UpdateVtol(visual, st, forwardSpeed, throttleCmd, vertCmd, enginePerf, dt, blendMed); - break; - - case MobilityKind.Walker: - UpdateWalker(visual, st, horizSpeed, forwardSpeed, vel.Y, steerCmd, relYaw, aimPitchRad, dt, blendMed); - break; - - case MobilityKind.Tracked: - UpdateTrackedSuspension(visual, st, forwardSpeed, lateralSpeed, dt, blendMed); - break; - } - - st.PrevForwardSpeed = forwardSpeed; - st.PrevVelY = vel.Y; - } - - private static void UpdateTurretAndTorso( - VehicleVisualInstance visual, - RigState st, - float relYaw, - float aimPitchRad, - float blend) - { - if (visual.Joints.TryGetValue("joint.turret_yaw", out var turretJoint) || - visual.Joints.TryGetValue("joint.torso_yaw", out turretJoint)) - { - bool fullSpin = turretJoint.MinRad <= -MathF.PI * 0.99f && turretJoint.MaxRad >= MathF.PI * 0.99f; - float targetYaw = fullSpin - ? relYaw - : Math.Clamp(relYaw, turretJoint.MinRad, turretJoint.MaxRad); - - if (fullSpin) - { - float diff = MatchRules.NormalizeAngle(targetYaw - st.TurretYawRad); - st.TurretYawRad = MatchRules.NormalizeAngle(st.TurretYawRad + diff * blend); - } - else - { - st.TurretYawRad += (targetYaw - st.TurretYawRad) * blend; - } - - SetJointAngle(turretJoint, st.TurretYawRad); - } - - st.ArmPitchRad += (aimPitchRad - st.ArmPitchRad) * blend; - // Positive elevation (+aimPitchRad) rotates negatively around vehicle +X (raises +Z barrels toward +Y) - if (visual.Joints.TryGetValue("joint.arm_l_pitch", out var armL)) - { - float clampedL = Math.Clamp(-st.ArmPitchRad, armL.MinRad, armL.MaxRad); - SetJointAngle(armL, clampedL); - } - if (visual.Joints.TryGetValue("joint.arm_r_pitch", out var armR)) - { - float clampedR = Math.Clamp(-st.ArmPitchRad, armR.MinRad, armR.MaxRad); - SetJointAngle(armR, clampedR); - } - } - - private static void UpdateWheeled( - VehicleVisualInstance visual, - RigState st, - float forwardSpeed, - float lateralSpeed, - float steerCmd, - float dt, - float blend) - { - // Determine average wheel radius from wheel joint Y height in grounded GLB - float radiusSum = 0f; - int radiusCount = 0; - foreach (var (jid, j) in visual.Joints) - { - if (jid.StartsWith("joint.wheel_", StringComparison.Ordinal)) - { - float y = j.RestLocal.Origin.Y; - if (y <= 0.05f && j.Node.GetParent() is Node3D p3) - { - y = p3.Transform.Origin.Y; - } - if (y > 0.1f) - { - radiusSum += y; - radiusCount++; - } - } - } - float wheelRadius = radiusCount > 0 ? radiusSum / radiusCount : 0.45f; - - st.WheelSpinRad = MathF.IEEERemainder(st.WheelSpinRad + (forwardSpeed / MathF.Max(0.25f, wheelRadius)) * dt, MathF.Tau); - - float targetSteer = -steerCmd * Mathf.DegToRad(28f); - st.SteerRad += (targetSteer - st.SteerRad) * blend; - - foreach (var (jid, j) in visual.Joints) - { - if (jid.StartsWith("joint.wheel_", StringComparison.Ordinal)) - { - SetJointAngle(j, st.WheelSpinRad); - } - else if (jid.StartsWith("joint.steer_", StringComparison.Ordinal)) - { - float clampedSteer = Math.Clamp(st.SteerRad, j.MinRad, j.MaxRad); - SetJointAngle(j, clampedSteer); - } - } - - // Subtle chassis suspension pitch & roll - float accel = dt > 1e-4f ? (forwardSpeed - st.PrevForwardSpeed) / dt : 0f; - float targetPitch = Math.Clamp(-accel * 0.0022f, -0.05f, 0.05f); - float targetRoll = Math.Clamp(lateralSpeed * 0.0045f + steerCmd * MathF.Min(1f, MathF.Abs(forwardSpeed) / 14f) * 0.035f, -0.06f, 0.06f); - st.ChassisPitchRad += (targetPitch - st.ChassisPitchRad) * blend; - st.ChassisRollRad += (targetRoll - st.ChassisRollRad) * blend; - - if (visual.GetNamedNode("Chassis") is { } chassis && visual.TryGetRestLocal("Chassis", out var restChassis)) - { - Basis tilt = new Basis(Vector3.Right, st.ChassisPitchRad) * new Basis(Vector3.Back, st.ChassisRollRad); - chassis.Transform = new Transform3D(tilt * restChassis.Basis, restChassis.Origin); - } - } - - private static void UpdateTrackedSuspension( - VehicleVisualInstance visual, - RigState st, - float forwardSpeed, - float lateralSpeed, - float dt, - float blend) - { - float accel = dt > 1e-4f ? (forwardSpeed - st.PrevForwardSpeed) / dt : 0f; - float targetPitch = Math.Clamp(-accel * 0.0018f, -0.045f, 0.045f); - float targetRoll = Math.Clamp(lateralSpeed * 0.003f, -0.045f, 0.045f); - st.ChassisPitchRad += (targetPitch - st.ChassisPitchRad) * blend; - st.ChassisRollRad += (targetRoll - st.ChassisRollRad) * blend; - - if (visual.GetNamedNode("Chassis") is { } chassis && visual.TryGetRestLocal("Chassis", out var restChassis)) - { - Basis tilt = new Basis(Vector3.Right, st.ChassisPitchRad) * new Basis(Vector3.Back, st.ChassisRollRad); - chassis.Transform = new Transform3D(tilt * restChassis.Basis, restChassis.Origin); - } - } - - private static void UpdateVtol( - VehicleVisualInstance visual, - RigState st, - float forwardSpeed, - float throttleCmd, - float vertCmd, - float enginePerf, - float dt, - float blend) - { - float rotorSpeed = (5.5f + 18.0f * enginePerf) * - (1f + 0.35f * MathF.Max(0f, vertCmd) + 0.16f * MathF.Abs(throttleCmd)); - st.RotorSpinRad = MathF.IEEERemainder(st.RotorSpinRad + rotorSpeed * dt, MathF.Tau); - - float targetTilt = throttleCmd * 0.42f + (forwardSpeed / 42f) * 0.28f; - st.NacelleTiltRad += (targetTilt - st.NacelleTiltRad) * blend; - - foreach (var (jid, j) in visual.Joints) - { - if (jid.StartsWith("joint.rotor_", StringComparison.Ordinal)) - { - float dir = (jid.Contains("_r", StringComparison.Ordinal) && !jid.Contains("_rl", StringComparison.Ordinal)) || - jid.EndsWith("_rl", StringComparison.Ordinal) - ? -1f - : 1f; - SetJointAngle(j, st.RotorSpinRad * dir); - } - else if (jid.StartsWith("joint.nacelle_", StringComparison.Ordinal)) - { - float clampedTilt = Math.Clamp(st.NacelleTiltRad, j.MinRad, j.MaxRad); - SetJointAngle(j, clampedTilt); - } - } - } - - private static void UpdateWalker( - VehicleVisualInstance visual, - RigState st, - float horizSpeed, - float forwardSpeed, - float velY, - float steerCmd, - float relYaw, - float aimPitchRad, - float dt, - float blend) - { - EnsureWalkerFootSamples(visual, st); - - float targetAmp = Math.Clamp(horizSpeed / 6.5f + MathF.Abs(steerCmd) * 0.32f, 0f, 1f); - st.StrideAmp += (targetAmp - st.StrideAmp) * blend; - - float strideDir = forwardSpeed >= -0.35f ? 1f : -1f; - float phaseRate = (2.8f + horizSpeed * 0.48f + MathF.Abs(steerCmd) * 1.4f) * strideDir; - st.StridePhaseRad = MathF.IEEERemainder(st.StridePhaseRad + phaseRate * dt, MathF.Tau); - - float phiL = st.StridePhaseRad; - float phiR = st.StridePhaseRad + MathF.PI; - string id = visual.ModelId.ToLowerInvariant(); - - switch (id) - { - case "breaker": - AnimateBipedLeg(visual, "LegL.Hip", "LegL.Shin", "LegL.Foot", phiL, st.StrideAmp, signX: -1f); - AnimateBipedLeg(visual, "LegR.Hip", "LegR.Shin", "LegR.Foot", phiR, st.StrideAmp, signX: -1f); - ApplyPelvisBob(visual, "Pelvis", st.StridePhaseRad, st.StrideAmp, bobScale: 0.06f, rollScale: 0.024f); - StepBreakerMechanisms(visual, st, phiL, phiR, velY, dt); - ApplyWalkerFloorClearance(visual, st, "Pelvis"); - break; - - case "paladin": - AnimateBipedVehicleX(visual, "LegL.Upper", "LegL.Lower", "LegL.Ankle", phiL, st.StrideAmp, hipAmp: 0.22f, kneeLiftAmp: 0.28f, kneeForwardFlexAmp: 0.08f); - AnimateBipedVehicleX(visual, "LegR.Upper", "LegR.Lower", "LegR.Ankle", phiR, st.StrideAmp, hipAmp: 0.22f, kneeLiftAmp: 0.28f, kneeForwardFlexAmp: 0.08f); - ApplyPelvisBob(visual, "Pelvis", st.StridePhaseRad, st.StrideAmp, bobScale: 0.07f, rollScale: 0.020f); - ApplyWalkerFloorClearance(visual, st, "Pelvis"); - break; - - case "raptor": - AnimateBipedVehicleX(visual, "LegL.Thigh", "LegL.Shin", "LegL.Cannon", phiL, st.StrideAmp, hipAmp: 0.20f, kneeLiftAmp: 0.34f, kneeForwardFlexAmp: 0.22f); - AnimateBipedVehicleX(visual, "LegR.Thigh", "LegR.Shin", "LegR.Cannon", phiR, st.StrideAmp, hipAmp: 0.20f, kneeLiftAmp: 0.34f, kneeForwardFlexAmp: 0.22f); - ApplyPelvisBob(visual, "Pelvis", st.StridePhaseRad, st.StrideAmp, bobScale: 0.06f, rollScale: 0.020f); - ApplyWalkerFloorClearance(visual, st, "Pelvis"); - break; - - case "spectre": - AnimateBipedVehicleX(visual, "LegL.Thigh", "LegL.Shin", "LegL.Cannon", phiL, st.StrideAmp, hipAmp: 0.22f, kneeLiftAmp: 0.32f, kneeForwardFlexAmp: 0f); - AnimateBipedVehicleX(visual, "LegR.Thigh", "LegR.Shin", "LegR.Cannon", phiR, st.StrideAmp, hipAmp: 0.22f, kneeLiftAmp: 0.32f, kneeForwardFlexAmp: 0f); - ApplyPelvisBob(visual, "Pelvis", st.StridePhaseRad, st.StrideAmp, bobScale: 0.06f, rollScale: 0.020f); - ApplyWalkerFloorClearance(visual, st, "Pelvis"); - break; - - case "kestrel": - // Kestrel leg meshes are baked under Pelvis; animate Pelvis stride bob/sway with floor clearance - ApplyPelvisBob(visual, "Pelvis", st.StridePhaseRad, st.StrideAmp, bobScale: 0.07f, rollScale: 0.024f); - ApplyWalkerFloorClearance(visual, st, "Pelvis"); - break; - - case "manticore": - AnimateManticoreLeg(visual, "LegFL.S1", "LegFL.S2", "FootFL", phiL, st.StrideAmp, isFront: true); - AnimateManticoreLeg(visual, "LegBR.S1", "LegBR.S2", "FootBR", phiL, st.StrideAmp, isFront: false); - AnimateManticoreLeg(visual, "LegFR.S1", "LegFR.S2", "FootFR", phiR, st.StrideAmp, isFront: true); - AnimateManticoreLeg(visual, "LegBL.S1", "LegBL.S2", "FootBL", phiR, st.StrideAmp, isFront: false); - ApplyPelvisBob(visual, "Hull", st.StridePhaseRad, st.StrideAmp, bobScale: 0.04f, rollScale: 0.018f); - ApplyWalkerFloorClearance(visual, st, "Hull"); - AnimateManticoreTail(visual, st, relYaw, aimPitchRad, blend); - break; - - case "bastion": - AnimateBastionLeg(visual, "Thigh.fl", "Shin.fl", "Ankle.fl", phiL, st.StrideAmp, isFront: true); - AnimateBastionLeg(visual, "Thigh.rr", "Shin.rr", "Ankle.rr", phiL, st.StrideAmp, isFront: false); - AnimateBastionLeg(visual, "Thigh.fr", "Shin.fr", "Ankle.fr", phiR, st.StrideAmp, isFront: true); - AnimateBastionLeg(visual, "Thigh.rl", "Shin.rl", "Ankle.rl", phiR, st.StrideAmp, isFront: false); - ApplyPelvisBob(visual, "Trunk", st.StridePhaseRad, st.StrideAmp, bobScale: 0.05f, rollScale: 0.012f); - ApplyWalkerFloorClearance(visual, st, "Trunk"); - break; - } - } - - private static float SwingLift(float phase) => MathF.Max(0f, MathF.Cos(phase)); - - private static void AnimateBipedLeg( - VehicleVisualInstance visual, - string hipName, - string shinName, - string footName, - float phase, - float amp, - float signX) - { - float hipAng = MathF.Sin(phase) * 0.30f * amp; - float kneeAng = MathF.Max(0f, -MathF.Cos(phase)) * 0.38f * amp; - float footAng = -(hipAng * 0.55f + kneeAng * 0.45f); - - RotateVehicleAxis(visual, hipName, Vector3.Right, hipAng * signX); - RotateVehicleAxis(visual, shinName, Vector3.Right, kneeAng * signX); - RotateVehicleAxis(visual, footName, Vector3.Right, footAng * signX); - } - - private static void AnimateBipedVehicleX( - VehicleVisualInstance visual, - string thighName, - string shinName, - string footName, - float phase, - float amp, - float hipAmp, - float kneeLiftAmp, - float kneeForwardFlexAmp) - { - float hipAng = -MathF.Sin(phase) * hipAmp * amp; - float kneeAng = (SwingLift(phase) * kneeLiftAmp + MathF.Max(0f, MathF.Sin(phase)) * kneeForwardFlexAmp) * amp; - float footAng = -(hipAng + kneeAng); - - RotateVehicleAxis(visual, thighName, Vector3.Right, hipAng); - RotateVehicleAxis(visual, shinName, Vector3.Right, kneeAng); - RotateVehicleAxis(visual, footName, Vector3.Right, footAng); - } - - private static void AnimateManticoreLeg( - VehicleVisualInstance visual, - string s1Name, - string s2Name, - string footName, - float phase, - float amp, - bool isFront) - { - float s2Ang = -MathF.Sin(phase) * 0.22f * amp; - float liftSign = isFront ? -1f : 1f; - float s1Ang = SwingLift(phase) * 0.26f * amp * liftSign; - float footAng = -(s1Ang + s2Ang); - - RotateVehicleAxis(visual, s1Name, Vector3.Right, s1Ang); - RotateVehicleAxis(visual, s2Name, Vector3.Right, s2Ang); - RotateVehicleAxis(visual, footName, Vector3.Right, footAng); - } - - private static void AnimateBastionLeg( - VehicleVisualInstance visual, - string thighName, - string shinName, - string ankleName, - float phase, - float amp, - bool isFront) - { - float thAng; - float shAng; - if (isFront) - { - thAng = -MathF.Sin(phase) * 0.16f * amp; - shAng = SwingLift(phase) * 0.14f * amp; - } - else - { - thAng = (MathF.Max(0f, -MathF.Sin(phase)) * 0.14f + SwingLift(phase) * 0.10f) * amp; - shAng = (-MathF.Sin(phase) * 0.16f - SwingLift(phase) * 0.16f) * amp; - } - float anAng = -(thAng + shAng); - - RotateVehicleAxis(visual, thighName, Vector3.Right, thAng); - RotateVehicleAxis(visual, shinName, Vector3.Right, shAng); - RotateVehicleAxis(visual, ankleName, Vector3.Right, anAng); - } - - private static void ApplyPelvisBob( - VehicleVisualInstance visual, - string rootNodeName, - float phase, - float amp, - float bobScale, - float rollScale = 0.024f) - { - if (visual.GetNamedNode(rootNodeName) is not { } node || - !visual.TryGetRestLocal(rootNodeName, out var rest)) - { - return; - } - - float bobY = MathF.Abs(MathF.Sin(phase)) * bobScale * amp; - float swayRoll = MathF.Cos(phase) * rollScale * amp; - Basis roll = new Basis(Vector3.Back, swayRoll); - node.Transform = new Transform3D(roll * rest.Basis, rest.Origin + new Vector3(0f, bobY, 0f)); - } - - private static void AnimateManticoreTail( - VehicleVisualInstance visual, - RigState st, - float relYaw, - float aimPitchRad, - float blend) - { - if (visual.Joints.TryGetValue("joint.tail_yaw", out var tailYaw)) - { - float targetTailYaw = Math.Clamp(relYaw, tailYaw.MinRad, tailYaw.MaxRad); - st.TurretYawRad += (targetTailYaw - st.TurretYawRad) * blend; - SetJointAngle(tailYaw, st.TurretYawRad); - } - - float idleSway = MathF.Sin(st.ElapsedSeconds * 2.1f) * 0.05f; - float pitchDrive = aimPitchRad * 0.5f + idleSway; - - if (visual.Joints.TryGetValue("joint.tail_s1", out var s1)) - { - SetJointAngle(s1, Math.Clamp(pitchDrive * 0.45f, s1.MinRad, s1.MaxRad)); - } - if (visual.Joints.TryGetValue("joint.tail_s2", out var s2)) - { - SetJointAngle(s2, Math.Clamp(-pitchDrive * 0.65f, s2.MinRad, s2.MaxRad)); - } - if (visual.Joints.TryGetValue("joint.tail_s3", out var s3)) - { - SetJointAngle(s3, Math.Clamp(-pitchDrive * 0.55f, s3.MinRad, s3.MaxRad)); - } - if (visual.Joints.TryGetValue("joint.tail_elev", out var elev)) - { - SetJointAngle(elev, Math.Clamp(-aimPitchRad * 0.85f, elev.MinRad, elev.MaxRad)); - } - } - - private static void StepBreakerMechanisms( - VehicleVisualInstance visual, - RigState st, - float phiL, - float phiR, - float velY, - float dt) - { - VehicleMechanismsRecord? mech = visual.Package.Mechanisms; - if (mech is null || mech.Struts.Count == 0) - { - return; - } - - BreakerMechRig rig = st.BreakerRig ??= InitBreakerRig(visual, mech); - if (!rig.Initialized) - { - return; - } - - float accelY = dt > 1e-4f ? Math.Clamp((velY - st.PrevVelY) / dt, -25f, 25f) : 0f; - float strideLoadL = 1.0f + 0.42f * MathF.Sin(phiL) * st.StrideAmp + MathF.Max(-0.6f, accelY * 0.05f); - float strideLoadR = 1.0f + 0.42f * MathF.Sin(phiR) * st.StrideAmp + MathF.Max(-0.6f, accelY * 0.05f); - - // 1. Oleo gas-spring + asymmetric orifice damping (Brokkr mechrig.Model.strut_step) - if (dt > 0f) - { - float stepDt = Math.Clamp(dt, 0.001f, 0.05f); - for (int i = 0; i < mech.Struts.Count; i++) - { - var sr = mech.Struts[i]; - if (!rig.Struts.TryGetValue(sr.Name, out var ss)) - { - continue; - } - - float load = string.Equals(sr.Side, "R", StringComparison.OrdinalIgnoreCase) ? strideLoadR : strideLoadL; - float w = MathF.Tau * MathF.Max(0.1f, sr.Hertz); - float column = 1.15f * MathF.Max(0.02f, sr.Travel); - float h = stepDt / 16f; - - for (int sub = 0; sub < 16; sub++) - { - float ratio = Math.Clamp(1f - ss.Compression / column, 0.08f, 2f); - float spring = w * w * column * (MathF.Pow(ratio, -1.3f) - 1f) / 1.3f; - float c = 2f * sr.DampingRatio * w * (ss.Velocity < 0f ? 1.3f : 1f); - ss.Velocity += h * (9.81f * load - spring - c * ss.Velocity); - ss.Compression += h * ss.Velocity; - if (ss.Compression < 0f || ss.Compression > sr.Travel) - { - ss.Compression = Math.Clamp(ss.Compression, 0f, sr.Travel); - ss.Velocity = 0f; - } - } - - if (rig.OleoNodes.TryGetValue(sr.Dof, out var oleo)) - { - // LegL/R.Oleo local +Y points down toward the foot; compression slides up (-Y) - oleo.Node.Transform = new Transform3D( - oleo.RestLocal.Basis, - oleo.RestLocal.Origin + new Vector3(0f, -ss.Compression, 0f)); - } - } - } - - // 2. Scissor 2-link torque knees (LegL/R.TorqueUp, LegL/R.TorqueLow) - for (int i = 0; i < rig.Scissors.Count; i++) - { - var sb = rig.Scissors[i]; - Transform3D forkInShin = sb.OleoNode.Transform * sb.OleoForkNode.Transform; - Vector3 bInShin = forkInShin * sb.BInOleoFork; - Vector3 apexInShin = SolveScissorApex(sb.AInShin, bInShin, sb.OutInShin, sb.Arm); - - Vector3 dirUp = (apexInShin - sb.AInShin); - if (dirUp.LengthSquared() > 1e-8f) - { - Quaternion qUp = ShortestArcQuat(sb.DirUp0InShin, dirUp.Normalized()); - Basis rotUp = new Basis(qUp); - sb.UpperNode.Transform = new Transform3D(rotUp, sb.AInShin - rotUp * sb.AInShin) * sb.RestLocalUp; - } - - Vector3 apexInFork = forkInShin.Inverse() * apexInShin; - Vector3 dirLow = (apexInFork - sb.BInOleoFork); - if (dirLow.LengthSquared() > 1e-8f) - { - Quaternion qLow = ShortestArcQuat(sb.DirLow0InOleoFork, dirLow.Normalized()); - Basis rotLow = new Basis(qLow); - sb.LowerNode.Transform = new Transform3D(rotLow, sb.BInOleoFork - rotLow * sb.BInOleoFork) * sb.RestLocalLow; - } - } - - // 3. Telescoping recess hydraulic rams (LegL/R.RecessRam0/1) - for (int i = 0; i < rig.Rams.Count; i++) - { - var rb = rig.Rams[i]; - Transform3D forkInShin = rb.OleoNode.Transform * rb.OleoForkNode.Transform; - Transform3D footInLug = rb.LugNode.Transform.Inverse() * forkInShin * rb.FootNode.Transform; - Vector3 bInLug = footInLug * rb.BPosInFoot; - Vector3 span = bInLug - rb.APosInLug; - if (span.LengthSquared() > 1e-8f) - { - Quaternion qRam = ShortestArcQuat(rb.WantDir0InLug, span.Normalized()); - rb.RamNode.Transform = new Transform3D(new Basis(qRam) * rb.RestLocalRam.Basis, rb.RestLocalRam.Origin); - } - } - } - - private static BreakerMechRig InitBreakerRig(VehicleVisualInstance visual, VehicleMechanismsRecord mech) - { - var rig = new BreakerMechRig(); - - foreach (var sr in mech.Struts) - { - float w = MathF.Tau * MathF.Max(0.1f, sr.Hertz); - float col = 1.15f * MathF.Max(0.02f, sr.Travel); - float xRest = col * (1f - MathF.Pow(1f + 1.3f * 9.81f * 1.0f / (w * w * col), -1f / 1.3f)); - rig.Struts[sr.Name] = new StrutState - { - Compression = Math.Clamp(xRest, 0f, sr.Travel), - Velocity = 0f - }; - - if (visual.GetNamedNode(sr.Dof) is { } oNode && visual.TryGetRestLocal(sr.Dof, out var oRest)) - { - rig.OleoNodes[sr.Dof] = (oNode, oRest); - } - } - - foreach (var sc in mech.Scissors) - { - string side = sc.Name.StartsWith("LegR", StringComparison.Ordinal) ? "R" : "L"; - string upName = $"Leg{side}.TorqueUp"; - string lowName = $"Leg{side}.TorqueLow"; - string shinName = $"Leg{side}.Shin"; - string oleoName = $"Leg{side}.Oleo"; - string forkName = $"Leg{side}.OleoFork"; - - if (visual.GetNamedNode(upName) is not { } upNode || - visual.GetNamedNode(lowName) is not { } lowNode || - visual.GetNamedNode(shinName) is not { } shinNode || - visual.GetNamedNode(oleoName) is not { } oleoNode || - visual.GetNamedNode(forkName) is not { } forkNode || - !visual.TryGetRestLocal(upName, out var restUp) || - !visual.TryGetRestLocal(lowName, out var restLow) || - !visual.TryGetRestModel(shinName, out var shinRestModel) || - !visual.TryGetRestModel(forkName, out var forkRestModel) || - sc.APos is null || sc.BPos is null || sc.OutDir is null) - { - continue; - } - - Vector3 aModel = new(sc.APos[0], sc.APos[1], sc.APos[2]); - Vector3 bModel = new(sc.BPos[0], sc.BPos[1], sc.BPos[2]); - Vector3 outModel = new(sc.OutDir[0], sc.OutDir[1], sc.OutDir[2]); - - Transform3D shinInv = shinRestModel.Inverse(); - Transform3D forkInv = forkRestModel.Inverse(); - - Vector3 aInShin = shinInv * aModel; - Vector3 bRestInShin = shinInv * bModel; - Vector3 bInFork = forkInv * bModel; - Vector3 outInShin = (shinInv.Basis * outModel).Normalized(); - - Vector3 apex0InShin = SolveScissorApex(aInShin, bRestInShin, outInShin, sc.Arm); - Vector3 apex0InFork = (forkRestModel.Inverse() * shinRestModel) * apex0InShin; - - Vector3 dirUp0 = (apex0InShin - aInShin).Normalized(); - Vector3 dirLow0 = (apex0InFork - bInFork).Normalized(); - - rig.Scissors.Add(new ScissorBinding - { - UpperNode = upNode, - LowerNode = lowNode, - ShinNode = shinNode, - OleoNode = oleoNode, - OleoForkNode = forkNode, - RestLocalUp = restUp, - RestLocalLow = restLow, - AInShin = aInShin, - BInOleoFork = bInFork, - OutInShin = outInShin, - Arm = sc.Arm, - DirUp0InShin = dirUp0, - DirLow0InOleoFork = dirLow0 - }); - } - - foreach (var r in mech.Rams) - { - // Name: "LegL.RecessRam0" -> lug "LegL.RamLugA0", oleo "LegL.Oleo", foot "LegL.Foot" - string side = r.Name.StartsWith("LegR", StringComparison.Ordinal) ? "R" : "L"; - char idxChar = r.Name[^1]; - string lugName = $"Leg{side}.RamLugA{idxChar}"; - string oleoName = $"Leg{side}.Oleo"; - string forkName = $"Leg{side}.OleoFork"; - string footName = $"Leg{side}.Foot"; - - if (visual.GetNamedNode(r.Name) is not { } ramNode || - visual.GetNamedNode(lugName) is not { } lugNode || - visual.GetNamedNode(oleoName) is not { } oleoNode || - visual.GetNamedNode(forkName) is not { } forkNode || - visual.GetNamedNode(footName) is not { } footNode || - !visual.TryGetRestLocal(r.Name, out var restRam) || - !visual.TryGetRestModel(lugName, out var lugRestModel) || - !visual.TryGetRestModel(footName, out var footRestModel) || - r.BPos is null) - { - continue; - } - - Vector3 bModel = new(r.BPos[0], r.BPos[1], r.BPos[2]); - Vector3 aInLug = restRam.Origin; - Vector3 bInLug0 = lugRestModel.Inverse() * bModel; - Vector3 bInFoot = footRestModel.Inverse() * bModel; - Vector3 want0 = (bInLug0 - aInLug).Normalized(); - - rig.Rams.Add(new RamBinding - { - RamNode = ramNode, - LugNode = lugNode, - OleoNode = oleoNode, - OleoForkNode = forkNode, - FootNode = footNode, - RestLocalRam = restRam, - APosInLug = aInLug, - BPosInFoot = bInFoot, - WantDir0InLug = want0 - }); - } - - rig.Initialized = rig.Struts.Count > 0; - return rig; - } - - private static Vector3 SolveScissorApex(Vector3 a, Vector3 b, Vector3 outDir, float arm) - { - Vector3 u = b - a; - float d = u.Length(); - if (d < 1e-5f) - { - return (a + b) * 0.5f + outDir * arm; - } - u /= d; - Vector3 oFlat = outDir - u * outDir.Dot(u); - oFlat = oFlat.LengthSquared() > 1e-6f ? oFlat.Normalized() : Vector3.Back; - float h = MathF.Sqrt(MathF.Max(arm * arm - (d * 0.5f) * (d * 0.5f), 0f)); - return (a + b) * 0.5f + oFlat * h; - } - - private static void SetJointAngle(VehicleVisualInstance.BoundJoint j, float angleRad) - { - if (!GodotObject.IsInstanceValid(j.Node) || !float.IsFinite(angleRad)) - { - return; - } - Basis delta = new Basis(j.AxisInParent, angleRad); - j.Node.Transform = new Transform3D(delta * j.RestLocal.Basis, j.RestLocal.Origin); - } - - private static void RotateVehicleAxis(VehicleVisualInstance visual, string nodeName, Vector3 vehicleAxis, float angleRad) - { - if (visual.GetNamedNode(nodeName) is not { } node || - !visual.TryGetRestLocal(nodeName, out var rest)) - { - return; - } - - Vector3 axisInParent = vehicleAxis; - if (node.GetParent() is Node3D p3 && visual.TryGetRestModel(p3, out var pModel)) - { - axisInParent = (pModel.Basis.Orthonormalized().Inverse() * vehicleAxis).Normalized(); - } - Basis delta = new Basis(axisInParent, angleRad); - node.Transform = new Transform3D(delta * rest.Basis, rest.Origin); - } - - private static void EnsureWalkerFootSamples(VehicleVisualInstance visual, RigState st) - { - if (st.FootSamples is not null) - { - return; - } - - var list = new List(); - float cutoffY = visual.Template.MinY + 0.75f; - var parts = visual.StaticParts; - - for (int i = 0; i < parts.Count; i++) - { - var part = parts[i]; - if (!GodotObject.IsInstanceValid(part.Pivot)) - { - continue; - } - - // Build chain from ModelRoot -> part.Pivot - var chain = new List(); - Transform3D toModel = Transform3D.Identity; - for (Node? cur = part.Pivot; cur is Node3D n3d && !ReferenceEquals(cur, visual.ModelRoot); cur = cur.GetParent()) - { - chain.Add(n3d); - toModel = n3d.Transform * toModel; - } - chain.Reverse(); - - Aabb aabb = part.Mesh.GetAabb(); - float aabbMinY = float.PositiveInfinity; - for (int c = 0; c < 8; c++) - { - Vector3 corner = aabb.Position + new Vector3( - (c & 1) != 0 ? aabb.Size.X : 0f, - (c & 2) != 0 ? aabb.Size.Y : 0f, - (c & 4) != 0 ? aabb.Size.Z : 0f); - float wy = (toModel * corner).Y; - if (wy < aabbMinY) - { - aabbMinY = wy; - } - } - - if (aabbMinY >= cutoffY) - { - continue; - } - - var bestPts = new Vector3[FootSupportDirs.Length]; - var bestDots = new float[FootSupportDirs.Length]; - for (int d = 0; d < FootSupportDirs.Length; d++) - { - bestDots[d] = float.NegativeInfinity; - } - - bool anyVert = false; - int surfCount = part.Mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arrays = part.Mesh.SurfaceGetArrays(s); - if (arrays.Count <= (int)Mesh.ArrayType.Vertex || - arrays[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arrays[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - for (int v = 0; v < verts.Length; v++) - { - Vector3 localPt = verts[v]; - Vector3 mPt = toModel * localPt; - for (int d = 0; d < FootSupportDirs.Length; d++) - { - float score = mPt.Dot(FootSupportDirs[d]); - if (score > bestDots[d]) - { - bestDots[d] = score; - bestPts[d] = localPt; - } - } - anyVert = true; - } - } - - if (anyVert) - { - var unique = new List(FootSupportDirs.Length); - for (int d = 0; d < bestPts.Length; d++) - { - bool dup = false; - for (int u = 0; u < unique.Count; u++) - { - if ((unique[u] - bestPts[d]).LengthSquared() < 1e-6f) - { - dup = true; - break; - } - } - if (!dup) - { - unique.Add(bestPts[d]); - } - } - - list.Add(new WalkerFootSample - { - ChainFromModelRoot = chain.ToArray(), - LocalPoints = unique.ToArray() - }); - } - } - st.FootSamples = list; - } - - private static readonly Vector3[] FootSupportDirs = - { - new(0f, -1f, 0f), - new(0.45f, -1f, 0f), - new(-0.45f, -1f, 0f), - new(0f, -1f, 0.45f), - new(0f, -1f, -0.45f), - new(0.45f, -1f, 0.45f), - new(0.45f, -1f, -0.45f), - new(-0.45f, -1f, 0.45f), - new(-0.45f, -1f, -0.45f), - }; - - private static void ApplyWalkerFloorClearance(VehicleVisualInstance visual, RigState st, string rootNodeName) - { - var samples = st.FootSamples; - if (samples is null || samples.Count == 0 || visual.GetNamedNode(rootNodeName) is not { } rootNode) - { - return; - } - - float minModelY = float.PositiveInfinity; - for (int i = 0; i < samples.Count; i++) - { - var s = samples[i]; - Transform3D toModel = Transform3D.Identity; - for (int k = 0; k < s.ChainFromModelRoot.Length; k++) - { - toModel *= s.ChainFromModelRoot[k].Transform; - } - for (int p = 0; p < s.LocalPoints.Length; p++) - { - float y = (toModel * s.LocalPoints[p]).Y; - if (y < minModelY) - { - minModelY = y; - } - } - } - - float restMinY = visual.Template.MinY; - if (float.IsFinite(minModelY) && minModelY < restMinY) - { - Vector3 liftInModel = new Vector3(0f, restMinY - minModelY, 0f); - Vector3 liftInParent = liftInModel; - if (rootNode.GetParent() is Node3D p3 && visual.TryGetRestModel(p3, out var pModel)) - { - liftInParent = pModel.Basis.Orthonormalized().Inverse() * liftInModel; - } - rootNode.Transform = new Transform3D(rootNode.Transform.Basis, rootNode.Transform.Origin + liftInParent); - } - } - - private static Quaternion ShortestArcQuat(Vector3 from, Vector3 to) - { - float dot = Math.Clamp(from.Dot(to), -1f, 1f); - if (dot > 0.99999f) - { - return Quaternion.Identity; - } - if (dot < -0.99999f) - { - Vector3 ortho = MathF.Abs(from.X) < 0.8f ? Vector3.Right : Vector3.Up; - Vector3 axis = from.Cross(ortho).Normalized(); - return new Quaternion(axis, MathF.PI); - } - Vector3 cross = from.Cross(to); - return new Quaternion(cross.X, cross.Y, cross.Z, 1f + dot).Normalized(); - } - - private static float Sanitize(float v, float fallback, float min, float max) => - float.IsFinite(v) ? Math.Clamp(v, min, max) : fallback; - - private static Vector3 SanitizeVec(Vector3 v) => - new( - float.IsFinite(v.X) ? v.X : 0f, - float.IsFinite(v.Y) ? v.Y : 0f, - float.IsFinite(v.Z) ? v.Z : 0f); -} diff --git a/client/VehicleVisualInstance.cs b/client/VehicleVisualInstance.cs deleted file mode 100644 index 7c53e01..0000000 --- a/client/VehicleVisualInstance.cs +++ /dev/null @@ -1,1009 +0,0 @@ -using System; -using System.Collections.Generic; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client; - -public enum VehicleVisualRole -{ - Player, - Rival, - SpectatorTourist, - SpectatorPatron, - SpectatorExemplar, - SalvageDrop -} - -/// -/// Lightweight Node3D rig hierarchy for a Brokkr vehicle/mech GLB, submitting all -/// rigid limbs, detachable armor chunks, and mounted gear into -/// (zero rendering MeshInstance3D children on rigs, zero per-hit material clones). -/// -public sealed class VehicleVisualInstance -{ - public sealed class BoundJoint - { - public required string JointId; - public required Node3D Node; - public required Transform3D RestLocal; - public required Vector3 AxisInParent; - public required float MinRad; - public required float MaxRad; - } - - public sealed class StaticPartBinding - { - public required Node3D Pivot; - public required ArrayMesh Mesh; - } - - private sealed class BoundHardpoint - { - public required HardpointSpec Spec; - public required VehicleAssetCache.GlbAnchorInfo AnchorInfo; - public required Node3D AnchorNode; - public string? MountedModuleId; - public Node3D? GearNode; - public ArrayMesh? GearMesh; - public VehicleAssetCache.GearTemplate? GearTemplate; - public float HeatGlow; - } - - private sealed class CellPartBinding - { - public required Node3D Pivot; - public required ArrayMesh Mesh; - public bool Detached; - public float Scorch; - public float HeatGlow; - } - - private readonly record struct GearVisualRecipe( - string GearGlbId, - Vector3 VariantScale, - Color? PaintTint, - Color? AccentTint); - - private static readonly Color TouristGold = Color.FromHtml("#e6b838"); - private static readonly Color TouristIvory = Color.FromHtml("#f2ead8"); - - private readonly VehicleAssetCache _cache; - private readonly VehicleAssetCache.VehicleTemplate _template; - private readonly Dictionary _hardpoints = new(StringComparer.Ordinal); - private readonly List _hardpointList = new(); - private readonly List<(int X, int Y)> _activeCells = new(); - private readonly Dictionary _joints = new(StringComparer.Ordinal); - private readonly Dictionary _namedNodes = new(StringComparer.Ordinal); - private readonly Dictionary _restLocalByName = new(StringComparer.Ordinal); - private readonly Dictionary _restModelByName = new(StringComparer.Ordinal); - private readonly Dictionary _restModelByNode = new(); - private readonly List _staticParts = new(); - private readonly List[,] _cellParts; - private readonly List _allCellParts = new(); - private readonly bool[,] _strippedCells; - private readonly HashSet _shearedHardpoints = new(StringComparer.Ordinal); - private readonly VehicleRigAnimator.RigState _rigState = new(); - - private readonly VehicleVisualRole _role; - private readonly float _roleIndex; - private readonly string _chassisId; - private bool _isStaticLod; - private bool _castShadows = true; - private bool _hasAnyStrippedCell; - private float _hullScorch; - private float _hullHeatGlow; - - public static double PerfDamageHeatMs; - public static int PerfMaterialDupCount; - - private VehicleVisualInstance( - VehicleAssetCache cache, - VehicleAssetCache.VehicleTemplate template, - Node3D root, - Node3D modelRoot, - string chassisId, - VehicleVisualRole role) - { - _cache = cache; - _template = template; - Root = root; - ModelRoot = modelRoot; - _chassisId = chassisId; - _role = role; - _roleIndex = role switch - { - VehicleVisualRole.Rival => 1f, - VehicleVisualRole.SpectatorTourist => 2f, - VehicleVisualRole.SpectatorPatron => 3f, - VehicleVisualRole.SpectatorExemplar => 4f, - VehicleVisualRole.SalvageDrop => 5f, - _ => 0f - }; - - int w = template.Package.GridWidth; - int h = template.Package.GridHeight; - _cellParts = new List[w, h]; - _strippedCells = new bool[w, h]; - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - _cellParts[x, y] = new List(); - } - } - } - - public Node3D Root { get; } - public Node3D ModelRoot { get; } - public VehicleAssetCache.VehicleTemplate Template => _template; - public VehiclePackage Package => _template.Package; - public string ChassisId => _chassisId; - public string ModelId => _template.Package.Id; - public VehicleRigAnimator.RigState RigState => _rigState; - public IReadOnlyDictionary Joints => _joints; - public IReadOnlyList StaticParts => _staticParts; - public int BoundHardpointCount => _hardpoints.Count; - public bool IsStaticLod => _isStaticLod; - public bool HasAnyStrippedCell => _hasAnyStrippedCell; - public float RoleIndex => _roleIndex; - - public void SetLodState(bool useStaticLod, bool castShadows) - { - if (_role == VehicleVisualRole.SalvageDrop) - { - _isStaticLod = useStaticLod; - _castShadows = castShadows; - return; - } - - if (_hasAnyStrippedCell) - { - useStaticLod = false; - } - if (_isStaticLod != useStaticLod) - { - _isStaticLod = useStaticLod; - ModelRoot.Visible = !useStaticLod; - ModelRoot.PhysicsInterpolationMode = useStaticLod - ? Node.PhysicsInterpolationModeEnum.Off - : Node.PhysicsInterpolationModeEnum.Inherit; - ModelRoot.ProcessMode = useStaticLod - ? Node.ProcessModeEnum.Disabled - : Node.ProcessModeEnum.Inherit; - } - _castShadows = castShadows; - } - - public static VehicleVisualInstance Create( - VehicleAssetCache cache, - string chassisId, - VehicleVisualRole role, - float visualScale = 1.0f, - float? targetHalfHeight = null) - { - var template = cache.GetOrLoadVehicle(chassisId); - var pkg = template.Package; - float halfHeight = targetHalfHeight ?? (pkg.HalfHeight * visualScale); - float effectiveScale = targetHalfHeight.HasValue && pkg.HalfHeight > 1e-4f - ? visualScale * (targetHalfHeight.Value / pkg.HalfHeight) - : visualScale; - - var root = new Node3D { Name = $"Actor_{chassisId}" }; - Vector3 modelScale = new(effectiveScale, effectiveScale, effectiveScale); - // Align glTF grounded minY=0 to physics chassis bottom (-halfHeight) - Vector3 modelPos = new(0f, -halfHeight - template.MinY * effectiveScale, 0f); - - if (role == VehicleVisualRole.SalvageDrop) - { - var dropPivot = new Node3D - { - Name = $"Model_{pkg.Id}", - Scale = modelScale, - Position = modelPos - }; - root.AddChild(dropPivot); - return new VehicleVisualInstance(cache, template, root, dropPivot, chassisId, role); - } - - if (template.SceneTemplate.Duplicate() is not Node3D modelRoot) - { - throw new InvalidOperationException($"Failed to duplicate GLB scene template for '{pkg.Id}'."); - } - modelRoot.Name = $"Model_{pkg.Id}"; - modelRoot.Scale = modelScale; - modelRoot.Position = modelPos; - root.AddChild(modelRoot); - - var instance = new VehicleVisualInstance(cache, template, root, modelRoot, chassisId, role); - instance.BindAll(); - return instance; - } - - private void BindAll() - { - var pkg = _template.Package; - - // Collect cumulative pure glTF model-space transforms (minY=0, unscaled) starting at ModelRoot = Identity - var modelXforms = new Dictionary - { - [ModelRoot] = Transform3D.Identity - }; - int modelChildCount = ModelRoot.GetChildCount(); - for (int i = 0; i < modelChildCount; i++) - { - CollectNodeTransforms(ModelRoot.GetChild(i), Transform3D.Identity, modelXforms); - } - - // Bind named nodes for procedural/mechanism rigs - foreach (var (origName, relPath) in _template.NodesByOriginalName) - { - Node3D? node = ResolveRelative(ModelRoot, relPath); - if (node is not null) - { - _namedNodes[origName] = node; - _restLocalByName[origName] = node.Transform; - if (modelXforms.TryGetValue(node, out var mxf)) - { - _restModelByName[origName] = mxf; - _restModelByNode[node] = mxf; - } - } - } - - // Bind all joints from rtd.joint metadata - foreach (var (jointId, jInfo) in _template.Joints) - { - Node3D? jNode = ResolveRelative(ModelRoot, jInfo.RelativePath); - if (jNode is null) - { - throw new InvalidOperationException($"{pkg.Id}: duplicated scene missing joint node '{jInfo.NodeName}' ({jointId})."); - } - - Basis parentModelBasis = Basis.Identity; - Node? parent = jNode.GetParent(); - if (parent is not null && modelXforms.TryGetValue(parent, out var pxf)) - { - parentModelBasis = pxf.Basis.Orthonormalized(); - } - - Vector3 axisInParent = parentModelBasis.Inverse() * jInfo.Axis; - axisInParent = axisInParent.LengthSquared() > 1e-6f ? axisInParent.Normalized() : Vector3.Up; - - _joints[jointId] = new BoundJoint - { - JointId = jointId, - Node = jNode, - RestLocal = jNode.Transform, - AxisInParent = axisInParent, - MinRad = Mathf.DegToRad(jInfo.MinVal), - MaxRad = Mathf.DegToRad(jInfo.MaxVal) - }; - } - - // Bind every ChassisSpec hardpoint to its exact exterior anchor Node3D - ChassisSpec spec = pkg.ToChassisSpec(); - var pkgHpById = new Dictionary(StringComparer.Ordinal); - foreach (var rec in pkg.Hardpoints) - { - pkgHpById[rec.Id] = rec; - } - - for (int i = 0; i < spec.Hardpoints.Length; i++) - { - HardpointSpec hp = spec.Hardpoints[i]; - if (!pkgHpById.TryGetValue(hp.Id, out var rec) || - !_template.Anchors.TryGetValue(rec.AnchorId, out var anchorInfo)) - { - throw new InvalidOperationException($"{pkg.Id}: missing AnchorId for hardpoint '{hp.Id}'."); - } - - Node3D? anchorNode = ResolveRelative(ModelRoot, anchorInfo.RelativePath); - if (anchorNode is null) - { - throw new InvalidOperationException($"{pkg.Id}: duplicated scene missing anchor node '{rec.AnchorId}'."); - } - - var bh = new BoundHardpoint - { - Spec = hp, - AnchorInfo = anchorInfo, - AnchorNode = anchorNode - }; - _hardpoints[hp.Id] = bh; - _hardpointList.Add(bh); - } - - // Bind rigid static parts & detachable per-cell armor parts to their live Node3D pivots - foreach (var sp in _template.StaticRigidParts) - { - if (ResolveRelative(ModelRoot, sp.PivotPath) is { } pivot) - { - _staticParts.Add(new StaticPartBinding { Pivot = pivot, Mesh = sp.Mesh }); - } - } - - int w = pkg.GridWidth; - int h = pkg.GridHeight; - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (spec.IsActive(x, y)) - { - _activeCells.Add((x, y)); - } - } - } - foreach (var dp in _template.DetachableRigidParts) - { - if (dp.CellX < 0 || dp.CellX >= w || dp.CellY < 0 || dp.CellY >= h) - { - continue; - } - if (ResolveRelative(ModelRoot, dp.PivotPath) is { } pivot) - { - var binding = new CellPartBinding { Pivot = pivot, Mesh = dp.Mesh }; - _cellParts[dp.CellX, dp.CellY].Add(binding); - _allCellParts.Add(binding); - } - } - } - - public Node3D? GetNamedNode(string name) => - _namedNodes.TryGetValue(name, out var n) && GodotObject.IsInstanceValid(n) ? n : null; - - public bool TryGetRestLocal(string name, out Transform3D xform) => - _restLocalByName.TryGetValue(name, out xform); - - public bool TryGetRestModel(string name, out Transform3D xform) => - _restModelByName.TryGetValue(name, out xform); - - public bool TryGetRestModel(Node3D node, out Transform3D xform) => - _restModelByNode.TryGetValue(node, out xform); - - public Node3D? GetHardpointAnchorNode(string hardpointId) => - _hardpoints.TryGetValue(hardpointId, out var bh) ? bh.AnchorNode : null; - - public Node3D? GetMountedGearNode(string hardpointId) => - _hardpoints.TryGetValue(hardpointId, out var bh) && GodotObject.IsInstanceValid(bh.GearNode) ? bh.GearNode : null; - - public int CountDetachablePartsForCell(int x, int y) => - x >= 0 && x < _template.Package.GridWidth && y >= 0 && y < _template.Package.GridHeight - ? _cellParts[x, y].Count - : 0; - - public bool TryGetMountedWeaponCentroidsInModel( - string hardpointId, - string frontPartName, - string rearPartName, - out Vector3 frontInModel, - out Vector3 rearInModel) - { - frontInModel = Vector3.Zero; - rearInModel = Vector3.Zero; - if (!_hardpoints.TryGetValue(hardpointId, out var bh) || - bh.GearNode is null || - !GodotObject.IsInstanceValid(bh.GearNode) || - bh.GearTemplate is null) - { - return false; - } - if (!bh.GearTemplate.PartCentroidsLocal.TryGetValue(frontPartName, out Vector3 fLocal) || - !bh.GearTemplate.PartCentroidsLocal.TryGetValue(rearPartName, out Vector3 rLocal)) - { - return false; - } - - Transform3D gearToModel = ComputeRelativeTransform(bh.GearNode, ModelRoot); - frontInModel = gearToModel * fLocal; - rearInModel = gearToModel * rLocal; - return true; - } - - public static void ResolveDropGearVisual( - VehicleAssetCache cache, - ModuleSpec mod, - out ArrayMesh mesh, - out Vector3 scale, - out float yOffset) - { - GearVisualRecipe recipe = ResolveGearRecipe(mod); - var template = cache.GetOrLoadGear(recipe.GearGlbId); - mesh = cache.GetOrBuildGearVariantMesh(mod.Id, recipe.GearGlbId, recipe.PaintTint, recipe.AccentTint); - scale = recipe.VariantScale; - yOffset = -template.MinY * recipe.VariantScale.Y; - } - - /// - /// Synchronizes exterior gear transform anchors on all hardpoints with . - /// - public void SyncMountedGear(ChassisGrid grid) - { - foreach (var bh in _hardpoints.Values) - { - if (_shearedHardpoints.Contains(bh.Spec.Id) || !grid.IsHardpointOperational(bh.Spec)) - { - continue; - } - - MountedModule? mounted = grid.GetMountedOn(bh.Spec.Id); - string? desiredId = mounted?.Spec.Id; - - if (string.Equals(bh.MountedModuleId, desiredId, StringComparison.Ordinal)) - { - continue; - } - - if (bh.GearNode is not null && GodotObject.IsInstanceValid(bh.GearNode)) - { - bh.GearNode.GetParent()?.RemoveChild(bh.GearNode); - bh.GearNode.QueueFree(); - } - bh.GearNode = null; - bh.GearMesh = null; - bh.GearTemplate = null; - bh.HeatGlow = 0f; - bh.MountedModuleId = desiredId; - - if (mounted is null) - { - continue; - } - - Node3D gearNode = CreateGearPivotForHardpoint( - mounted.Spec, - bh.Spec, - bh.AnchorInfo, - out ArrayMesh gearMesh, - out VehicleAssetCache.GearTemplate gearTemplate); - bh.AnchorNode.AddChild(gearNode); - bh.GearNode = gearNode; - bh.GearMesh = gearMesh; - bh.GearTemplate = gearTemplate; - } - } - - /// - /// Detaches exterior armor/shroud plates when Armor[x, y] <= 0.01f, - /// shears mounted gear off non-operational hardpoints into , - /// and updates per-part scorch/heat channels for . - /// - public void SyncDamageAndHeat(ChassisGrid grid, DebrisSystem debris, Vector3 vehicleVelocity) - { - long t0 = RustToDust.Ymir.ArenaSession.PerfEnabled ? System.Diagnostics.Stopwatch.GetTimestamp() : 0; - Vector3 blastOrigin = Root.IsInsideTree() ? Root.GlobalPosition : Root.Position; - - float scorchSum = 0f; - float maxHeat = 0f; - int cellCount = _activeCells.Count; - - // 1. Part-by-cell detachment & cell scorch/heat channels - for (int c = 0; c < cellCount; c++) - { - var (x, y) = _activeCells[c]; - float armor = grid.Armor[x, y]; - float maxArmor = MathF.Max(1f, grid.MaxArmor[x, y]); - float temp = grid.Temperature[x, y]; - float dmgFrac = 1f - Math.Clamp(armor / maxArmor, 0f, 1f); - float cellScorch = Math.Clamp((dmgFrac - 0.18f) / 0.82f, 0f, 1f); - float cellHeat = Math.Clamp((temp - 65f) / 110f, 0f, 1f); - scorchSum += cellScorch; - if (cellHeat > maxHeat) maxHeat = cellHeat; - - var parts = _cellParts[x, y]; - if (!_strippedCells[x, y] && armor <= 0.01f) - { - _strippedCells[x, y] = true; - _hasAnyStrippedCell = true; - for (int i = 0; i < parts.Count; i++) - { - var pb = parts[i]; - if (!pb.Detached && GodotObject.IsInstanceValid(pb.Pivot)) - { - pb.Detached = true; - Transform3D worldXf = pb.Pivot.IsInsideTree() - ? pb.Pivot.GlobalTransform - : ComputeWorldTransformFallback(pb.Pivot); - debris.SpawnDetachedPart(pb.Mesh, worldXf, blastOrigin, vehicleVelocity, _roleIndex, impulseScale: 1.0f, applyScorch: true); - } - } - continue; - } - - for (int i = 0; i < parts.Count; i++) - { - var pb = parts[i]; - if (!pb.Detached) - { - pb.Scorch = cellScorch; - pb.HeatGlow = cellHeat; - } - } - } - - _hullScorch = cellCount > 0 ? Math.Clamp((scorchSum / cellCount) * 0.85f, 0f, 0.85f) : 0f; - _hullHeatGlow = maxHeat * 0.72f; - - // 2. Hardpoint shear & mounted gear heat glow - for (int i = 0; i < _hardpointList.Count; i++) - { - var bh = _hardpointList[i]; - if (!_shearedHardpoints.Contains(bh.Spec.Id) && !grid.IsHardpointOperational(bh.Spec)) - { - _shearedHardpoints.Add(bh.Spec.Id); - _hasAnyStrippedCell = true; - if (bh.GearNode is not null && GodotObject.IsInstanceValid(bh.GearNode) && bh.GearMesh is not null) - { - Transform3D worldXf = bh.GearNode.IsInsideTree() - ? bh.GearNode.GlobalTransform - : ComputeWorldTransformFallback(bh.GearNode); - ArrayMesh gearMesh = bh.GearMesh; - Node3D sheared = bh.GearNode; - bh.GearNode = null; - bh.GearMesh = null; - bh.GearTemplate = null; - bh.MountedModuleId = null; - bh.HeatGlow = 0f; - sheared.GetParent()?.RemoveChild(sheared); - sheared.QueueFree(); - debris.SpawnDetachedPart(gearMesh, worldXf, blastOrigin, vehicleVelocity, _roleIndex, impulseScale: 1.15f, applyScorch: true); - } - continue; - } - - if (bh.GearNode is null) - { - continue; - } - - MountedModule? mounted = grid.GetMountedOn(bh.Spec.Id); - bh.HeatGlow = mounted is not null - ? Math.Clamp((mounted.CurrentTemp - 65f) / 115f, 0f, 1f) - : 0f; - } - - if (t0 != 0) - { - PerfDamageHeatMs += (System.Diagnostics.Stopwatch.GetTimestamp() - t0) * 1000.0 / System.Diagnostics.Stopwatch.Frequency; - } - } - - public void SubmitToPool(MultiMeshPartPool pool) - { - if (!Root.Visible) - { - return; - } - - Transform3D modelWorld = ModelRoot.IsInsideTree() ? ModelRoot.GlobalTransform : Root.Transform * ModelRoot.Transform; - - if (_role == VehicleVisualRole.SalvageDrop) - { - ArrayMesh dropMesh = _isStaticLod ? _template.SingleSurfaceLodFarMesh : _template.SingleSurfaceStaticMesh; - pool.Submit(dropMesh, in modelWorld, new Color(0f, 0f, _roleIndex, 1f), _castShadows); - return; - } - - if (_isStaticLod) - { - pool.Submit(_template.SingleSurfaceLodFarMesh, in modelWorld, new Color(_hullScorch, _hullHeatGlow, _roleIndex, 1f), _castShadows); - return; - } - - for (int i = 0; i < _staticParts.Count; i++) - { - var sp = _staticParts[i]; - if (!GodotObject.IsInstanceValid(sp.Pivot)) - { - continue; - } - Transform3D xf = ReferenceEquals(sp.Pivot, ModelRoot) - ? modelWorld - : (sp.Pivot.IsInsideTree() ? sp.Pivot.GlobalTransform : ComputeWorldTransformFallback(sp.Pivot)); - pool.Submit(sp.Mesh, in xf, new Color(_hullScorch, _hullHeatGlow, _roleIndex, 1f), _castShadows); - } - - for (int i = 0; i < _allCellParts.Count; i++) - { - var pb = _allCellParts[i]; - if (pb.Detached || !GodotObject.IsInstanceValid(pb.Pivot)) - { - continue; - } - Transform3D xf = ReferenceEquals(pb.Pivot, ModelRoot) - ? modelWorld - : (pb.Pivot.IsInsideTree() ? pb.Pivot.GlobalTransform : ComputeWorldTransformFallback(pb.Pivot)); - pool.Submit(pb.Mesh, in xf, new Color(pb.Scorch, pb.HeatGlow, _roleIndex, 1f), wantsShadow: false); - } - - for (int i = 0; i < _hardpointList.Count; i++) - { - var bh = _hardpointList[i]; - if (bh.GearNode is null || bh.GearMesh is null || !GodotObject.IsInstanceValid(bh.GearNode)) - { - continue; - } - Transform3D xf = bh.GearNode.IsInsideTree() ? bh.GearNode.GlobalTransform : ComputeWorldTransformFallback(bh.GearNode); - pool.Submit(bh.GearMesh, in xf, new Color(0f, bh.HeatGlow, _roleIndex, 1f), wantsShadow: false); - } - } - - /// - /// Fast zero-allocation ray intersection against cached far-LOD triangles in space - /// so POM impact decals sit flush on sculpted armor surfaces without per-hit GPU mesh readbacks. - /// - public bool TryRayHitAttachedPart( - Vector3 rayOriginWorld, - Vector3 rayDirWorld, - out Node3D? hitPivot, - out Transform3D decalLocalToPivot, - float decalSize) - { - hitPivot = null; - decalLocalToPivot = Transform3D.Identity; - if (!Root.IsInsideTree() || !ModelRoot.IsInsideTree() || _template.FarRayTris.Length < 3) - { - return false; - } - - Transform3D modelXf = ModelRoot.GlobalTransform; - Transform3D inv = modelXf.AffineInverse(); - Vector3 locOrig = inv * rayOriginWorld; - Vector3 locDir = inv.Basis * rayDirWorld; - float dirLen = locDir.Length(); - if (dirLen < 1e-6f) - { - return false; - } - locDir /= dirLen; - - if (!RayIntersectsAabb(_template.FarRayAabb, locOrig, locDir)) - { - return false; - } - - Vector3[] tris = _template.FarRayTris; - float bestT = float.PositiveInfinity; - Vector3 bestLocalN = Vector3.Back; - - for (int t = 0; t + 2 < tris.Length; t += 3) - { - Vector3 v0 = tris[t]; - Vector3 v1 = tris[t + 1]; - Vector3 v2 = tris[t + 2]; - if (RayTriangle(locOrig, locDir, v0, v1, v2, out float hitT) && hitT < bestT) - { - Vector3 fn = (v1 - v0).Cross(v2 - v0); - if (fn.LengthSquared() > 1e-10f) - { - fn = fn.Normalized(); - if (fn.Dot(-locDir) < 0f) fn = -fn; - bestT = hitT; - bestLocalN = fn; - } - } - } - - if (!float.IsFinite(bestT)) - { - return false; - } - - Vector3 hitWorld = modelXf * (locOrig + locDir * bestT); - Vector3 normalWorld = (modelXf.Basis.Inverse().Transposed() * bestLocalN).Normalized(); - Vector3 upRef = MathF.Abs(normalWorld.Y) > 0.92f ? Vector3.Forward : Vector3.Up; - Vector3 right = upRef.Cross(normalWorld).Normalized(); - Vector3 up = normalWorld.Cross(right).Normalized(); - Transform3D worldDecalXf = new(new Basis(right * decalSize, up * decalSize, normalWorld), hitWorld); - - hitPivot = ModelRoot; - decalLocalToPivot = inv * worldDecalXf; - return true; - } - - private Node3D CreateGearPivotForHardpoint( - ModuleSpec mod, - HardpointSpec hp, - VehicleAssetCache.GlbAnchorInfo anchorInfo, - out ArrayMesh gearMesh, - out VehicleAssetCache.GearTemplate gearTemplate) - { - GearVisualRecipe recipe = ResolveGearRecipe(mod); - gearTemplate = _cache.GetOrLoadGear(recipe.GearGlbId); - gearMesh = _cache.GetOrBuildGearVariantMesh(mod.Id, recipe.GearGlbId, recipe.PaintTint, recipe.AccentTint); - var gearNode = new Node3D { Name = $"Mounted_{mod.Id}_{hp.Id}" }; - - Basis anchorModelBasis = anchorInfo.ModelSpaceTransform.Basis.Orthonormalized(); - Vector3 upOut = anchorModelBasis.Y.Normalized(); - if (upOut.LengthSquared() < 1e-6f) upOut = Vector3.Up; - - Vector3 vehForward = new(0f, 0f, 1f); - Vector3 desiredGearFwd; - - if (hp.Kind == HardpointKind.Weapon) - { - if (upOut.Z > 0.72f) - { - upOut = upOut.Y <= 0.1f ? new Vector3(0f, -1f, 0f) : new Vector3(0f, 1f, 0f); - desiredGearFwd = vehForward; - } - else - { - Vector3 proj = vehForward - upOut * vehForward.Dot(upOut); - desiredGearFwd = proj.LengthSquared() > 1e-4f - ? proj.Normalized() - : anchorModelBasis.Z.Normalized(); - } - } - else - { - if (MathF.Abs(upOut.Z) > 0.78f) - { - Vector3 upProj = Vector3.Up - upOut * Vector3.Up.Dot(upOut); - desiredGearFwd = upProj.LengthSquared() > 1e-4f ? upProj.Normalized() : Vector3.Up; - } - else - { - Vector3 proj = vehForward - upOut * vehForward.Dot(upOut); - desiredGearFwd = proj.LengthSquared() > 1e-4f ? proj.Normalized() : Vector3.Up; - } - } - - Vector3 rightX = upOut.Cross(desiredGearFwd); - rightX = rightX.LengthSquared() < 1e-5f ? Vector3.Right : rightX.Normalized(); - desiredGearFwd = rightX.Cross(upOut).Normalized(); - var desiredModelBasis = new Basis(rightX, upOut, desiredGearFwd); - - if (gearTemplate.LocalModelForward.Z < 0f) - { - desiredModelBasis *= new Basis(Vector3.Up, MathF.PI); - } - - Basis localBasis = anchorModelBasis.Inverse() * desiredModelBasis; - - float sx = MathF.Max(0.25f, anchorInfo.Size.X); - float sy = MathF.Max(0.25f, anchorInfo.Size.Y); - Vector3 fitScale; - if (hp.Kind == HardpointKind.Weapon) - { - float baseScale = Math.Clamp(MathF.Min(sx, sy) / 0.56f, 0.72f, 1.75f); - fitScale = recipe.VariantScale * baseScale; - } - else - { - float scaleX = Math.Clamp(sx / 0.48f, 0.72f, 2.15f); - float scaleZ = Math.Clamp(sy / 0.45f, 0.72f, 2.15f); - float scaleY = Math.Clamp(0.5f * (scaleX + scaleZ), 0.72f, 1.85f); - fitScale = new Vector3( - recipe.VariantScale.X * scaleX, - recipe.VariantScale.Y * scaleY, - recipe.VariantScale.Z * scaleZ); - } - - gearNode.Basis = localBasis * Basis.FromScale(fitScale); - float ySeat = -gearTemplate.MinY * fitScale.Y; - gearNode.Position = (anchorModelBasis.Inverse() * upOut) * ySeat; - return gearNode; - } - - private static GearVisualRecipe ResolveGearRecipe(ModuleSpec mod) - { - return mod.Id switch - { - "mg_762" => new("mg_762", Vector3.One, null, null), - "autocannon" => new("autocannon", Vector3.One, null, null), - "recoilless" => new("recoilless", Vector3.One, null, null), - "copper_rad" => new("copper_rad", Vector3.One, null, null), - "gilded_lance" => new("gilded_lance", Vector3.One, null, null), - "gold_radiator" => new("gold_radiator", Vector3.One, null, null), - - "flak" => new("autocannon", new Vector3(1.12f, 0.92f, 0.68f), Color.FromHtml("#5a4a3f"), Color.FromHtml("#d96c27")), - "pd_flak" => new("mg_762", new Vector3(1.22f, 1.10f, 0.85f), Color.FromHtml("#3d4440"), Color.FromHtml("#e08a4a")), - "touring_plasma" => new("gilded_lance", new Vector3(1.05f, 0.96f, 0.72f), TouristIvory, Color.FromHtml("#38c9d8")), - "aegis_pd" => new("gilded_lance", new Vector3(0.95f, 0.92f, 0.56f), TouristGold, Color.FromHtml("#38c9d8")), - "diesel_core" => new("copper_rad", new Vector3(0.92f, 1.15f, 1.05f), Color.FromHtml("#363a38"), Color.FromHtml("#b35a2b")), - "turbo_core" => new("copper_rad", new Vector3(1.12f, 1.28f, 1.38f), Color.FromHtml("#2a2f32"), Color.FromHtml("#e07024")), - "noble_core" => new("gold_radiator", new Vector3(1.10f, 1.32f, 1.38f), TouristGold, Color.FromHtml("#38c9d8")), - "welded_plate" => new("copper_rad", new Vector3(1.30f, 0.34f, 0.95f), Color.FromHtml("#4e5740"), Color.FromHtml("#6a6f66")), - "gilded_plate" => new("gold_radiator", new Vector3(1.30f, 0.34f, 0.95f), TouristIvory, TouristGold), - _ => new(mod.IsImperial ? "gilded_lance" : "mg_762", Vector3.One, null, null) - }; - } - - private static Node3D? ResolveRelative(Node3D root, NodePath relPath) - { - if (relPath.IsEmpty) - { - return null; - } - return relPath.ToString() == "." ? root : root.GetNodeOrNull(relPath); - } - - private static void CollectNodeTransforms(Node cur, Transform3D parentXf, Dictionary map) - { - Transform3D xf = cur is Node3D n3d ? parentXf * n3d.Transform : parentXf; - map[cur] = xf; - int count = cur.GetChildCount(); - for (int i = 0; i < count; i++) - { - CollectNodeTransforms(cur.GetChild(i), xf, map); - } - } - - private Transform3D ComputeWorldTransformFallback(Node3D node) - { - Transform3D xf = Transform3D.Identity; - for (Node? cur = node; cur is Node3D n3d; cur = cur.GetParent()) - { - xf = n3d.Transform * xf; - if (ReferenceEquals(cur, Root)) - { - break; - } - } - return xf; - } - - private static Transform3D ComputeRelativeTransform(Node3D node, Node3D ancestor) - { - Transform3D xf = Transform3D.Identity; - for (Node? cur = node; cur is Node3D n3d && !ReferenceEquals(cur, ancestor); cur = cur.GetParent()) - { - xf = n3d.Transform * xf; - } - return xf; - } - - /// - /// Computes the highest rendered vertex Y in local space across active rigid parts - /// and all currently mounted gear meshes. - /// - public float ComputeMountedMaxY() - { - float maxY = float.NegativeInfinity; - if (_role == VehicleVisualRole.SalvageDrop) - { - ArrayMesh m = _isStaticLod ? _template.SingleSurfaceLodFarMesh : _template.SingleSurfaceStaticMesh; - AccumulateMeshMinMaxY(m, ModelRoot.Transform, out _, out maxY); - return float.IsFinite(maxY) ? maxY : ModelRoot.Position.Y + _template.MaxY * ModelRoot.Scale.Y; - } - - for (int i = 0; i < _staticParts.Count; i++) - { - AccumulateMeshMinMaxY(_staticParts[i].Mesh, ComputeRelativeTransform(_staticParts[i].Pivot, Root), out _, out float pyMax); - if (pyMax > maxY) maxY = pyMax; - } - for (int i = 0; i < _allCellParts.Count; i++) - { - var pb = _allCellParts[i]; - if (!pb.Detached) - { - AccumulateMeshMinMaxY(pb.Mesh, ComputeRelativeTransform(pb.Pivot, Root), out _, out float cyMax); - if (cyMax > maxY) maxY = cyMax; - } - } - for (int i = 0; i < _hardpointList.Count; i++) - { - var bh = _hardpointList[i]; - if (bh.GearNode is not null && bh.GearMesh is not null && GodotObject.IsInstanceValid(bh.GearNode)) - { - AccumulateMeshMinMaxY(bh.GearMesh, ComputeRelativeTransform(bh.GearNode, Root), out _, out float gyMax); - if (gyMax > maxY) maxY = gyMax; - } - } - - return float.IsFinite(maxY) ? maxY : ModelRoot.Position.Y + _template.MaxY * ModelRoot.Scale.Y; - } - - /// - /// Computes the lowest rendered vertex Y in world/parent space (or space if ). - /// - public float ComputeMinVertexY(float baseWorldY = 0f, bool relativeToModelRoot = false) - { - float minY = float.PositiveInfinity; - Transform3D rootBase = relativeToModelRoot - ? Transform3D.Identity - : new Transform3D(Basis.Identity, new Vector3(0f, baseWorldY, 0f)) * Root.Transform; - - if (_role == VehicleVisualRole.SalvageDrop) - { - ArrayMesh m = _isStaticLod ? _template.SingleSurfaceLodFarMesh : _template.SingleSurfaceStaticMesh; - Transform3D xf = relativeToModelRoot ? Transform3D.Identity : rootBase * ModelRoot.Transform; - AccumulateMeshMinMaxY(m, xf, out minY, out _); - return minY; - } - - Node3D relTarget = relativeToModelRoot ? ModelRoot : Root; - Transform3D baseXf = relativeToModelRoot ? Transform3D.Identity : rootBase; - - for (int i = 0; i < _staticParts.Count; i++) - { - Transform3D xf = baseXf * ComputeRelativeTransform(_staticParts[i].Pivot, relTarget); - AccumulateMeshMinMaxY(_staticParts[i].Mesh, xf, out float pyMin, out _); - if (pyMin < minY) minY = pyMin; - } - for (int i = 0; i < _allCellParts.Count; i++) - { - var pb = _allCellParts[i]; - if (!pb.Detached) - { - Transform3D xf = baseXf * ComputeRelativeTransform(pb.Pivot, relTarget); - AccumulateMeshMinMaxY(pb.Mesh, xf, out float cyMin, out _); - if (cyMin < minY) minY = cyMin; - } - } - return minY; - } - - private static void AccumulateMeshMinMaxY(ArrayMesh mesh, Transform3D xform, out float minY, out float maxY) - { - minY = float.PositiveInfinity; - maxY = float.NegativeInfinity; - int surfCount = mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arrays = mesh.SurfaceGetArrays(s); - if (arrays.Count <= (int)Mesh.ArrayType.Vertex || - arrays[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arrays[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - for (int v = 0; v < verts.Length; v++) - { - float wy = (xform * verts[v]).Y; - if (wy < minY) minY = wy; - if (wy > maxY) maxY = wy; - } - } - } - - private static bool RayIntersectsAabb(Aabb aabb, Vector3 orig, Vector3 dir) - { - Vector3 min = aabb.Position; - Vector3 max = aabb.End; - float tmin = float.NegativeInfinity; - float tmax = float.PositiveInfinity; - - for (int axis = 0; axis < 3; axis++) - { - float o = orig[axis]; - float d = dir[axis]; - if (MathF.Abs(d) < 1e-7f) - { - if (o < min[axis] || o > max[axis]) return false; - } - else - { - float inv = 1f / d; - float t1 = (min[axis] - o) * inv; - float t2 = (max[axis] - o) * inv; - if (t1 > t2) (t1, t2) = (t2, t1); - tmin = MathF.Max(tmin, t1); - tmax = MathF.Min(tmax, t2); - if (tmin > tmax) return false; - } - } - return tmax >= 0f; - } - - private static bool RayTriangle(Vector3 orig, Vector3 dir, Vector3 v0, Vector3 v1, Vector3 v2, out float t) - { - t = 0f; - Vector3 e1 = v1 - v0; - Vector3 e2 = v2 - v0; - Vector3 pvec = dir.Cross(e2); - float det = e1.Dot(pvec); - if (MathF.Abs(det) < 1e-7f) return false; - float invDet = 1f / det; - Vector3 tvec = orig - v0; - float u = tvec.Dot(pvec) * invDet; - if (u < 0f || u > 1f) return false; - Vector3 qvec = tvec.Cross(e1); - float v = dir.Dot(qvec) * invDet; - if (v < 0f || u + v > 1f) return false; - t = e2.Dot(qvec) * invDet; - return t > 0.01f; - } -} diff --git a/client/decal_pom.gdshader b/client/decal_pom.gdshader deleted file mode 100644 index 7b9a1fc..0000000 --- a/client/decal_pom.gdshader +++ /dev/null @@ -1,140 +0,0 @@ -shader_type spatial; -render_mode blend_mix, depth_draw_never, cull_back; - -// OpenGL 3.3 (gl_compatibility) Parallax Occlusion Mapping (POM) decal shader for MultiMeshInstance3D. -// Renders hundreds of hard-surface vents, hatches, stencils, and live combat hits in 1 draw call. -// -// INSTANCE_CUSTOM layout: -// x = tile_index (0..15 in 4x4 trim-sheet atlas) -// y = heat_glow (0..1, incandescent glow on rolled rim & core of fresh combat hits) -// z = opacity (0..1) -// w = depth_scale (default ~0.06 when 0) -// -// Atlas textures (assets/decals/): -// albedo_tex : RGBA albedo + alpha mask -// normal_tex : tangent-space normal map (+X right, +Y down, +Z out) -// ormh_tex : R=AO, G=Roughness, B=Metallic, A=Height (1.0=flush surface, 0.0=deep recess) - -uniform sampler2D albedo_tex : source_color, filter_linear_mipmap, repeat_disable; -uniform sampler2D normal_tex : hint_normal, filter_linear_mipmap, repeat_disable; -uniform sampler2D ormh_tex : filter_linear_mipmap, repeat_disable; - -uniform bool use_instance_custom = true; -uniform float fallback_tile_index : hint_range(0.0, 15.0) = 0.0; -uniform float fallback_heat_glow : hint_range(0.0, 1.0) = 0.0; -uniform float fallback_opacity : hint_range(0.0, 1.0) = 1.0; -uniform float default_depth_scale : hint_range(0.0, 0.25) = 0.06; -uniform float normal_offset : hint_range(0.0, 0.02) = 0.004; -uniform float normal_depth : hint_range(0.0, 3.0) = 1.15; -uniform float heat_emission_energy : hint_range(0.0, 10.0) = 2.6; - -varying vec4 v_custom; - -void vertex() { - VERTEX += NORMAL * normal_offset; - if (use_instance_custom) { - v_custom = INSTANCE_CUSTOM; - } else { - v_custom = vec4(fallback_tile_index, fallback_heat_glow, fallback_opacity, default_depth_scale); - } -} - -void fragment() { - const int POM_STEPS = 10; - const float CELL_SIZE = 0.25; - - float tile_idx = floor(clamp(v_custom.x + 0.5, 0.0, 15.0)); - float heat_glow = clamp(v_custom.y, 0.0, 1.0); - float opacity = clamp(v_custom.z, 0.0, 1.0); - float depth_scale = v_custom.w > 0.0001 ? v_custom.w : default_depth_scale; - - float col_idx = mod(tile_idx, 4.0); - float row_idx = floor(tile_idx * 0.25); - vec2 cell_origin = vec2(col_idx, row_idx) * CELL_SIZE; - - // Hoist screen-space derivatives above any non-uniform control flow / discard (GLSL 330 safety) - vec2 d_uv_dx = dFdx(UV * CELL_SIZE); - vec2 d_uv_dy = dFdy(UV * CELL_SIZE); - - // Soft outer edge fade on local quad UV - float edge_fade = smoothstep(0.0, 0.04, UV.x) - * smoothstep(1.0, 0.96, UV.x) - * smoothstep(0.0, 0.04, UV.y) - * smoothstep(1.0, 0.96, UV.y); - - // Tangent-space view ray (Godot fragment VIEW, TANGENT, BINORMAL, NORMAL are all in view space) - vec3 t_dir = normalize(TANGENT); - vec3 b_dir = normalize(BINORMAL); - vec3 n_dir = normalize(NORMAL); - vec3 view_ts = normalize(vec3(dot(VIEW, t_dir), dot(VIEW, b_dir), dot(VIEW, n_dir))); - - // Clamp grazing Z so oblique rays stay well-behaved without sliding out of the tile - float vz = max(view_ts.z, 0.22); - vec2 p_dir = -(view_ts.xy / vz) * depth_scale; - - // 10 linear POM steps from surface (layer_depth=0, height=1) into recess (layer_depth=1, height=0) - float step_size = 1.0 / float(POM_STEPS); - vec2 delta_uv = p_dir * step_size; - - vec2 cur_uv = UV; - float cur_layer_depth = 0.0; - float cur_tex_depth = 1.0 - textureLod(ormh_tex, cell_origin + clamp(cur_uv, 0.002, 0.998) * CELL_SIZE, 0.0).a; - - vec2 prev_uv = cur_uv; - float prev_layer_depth = cur_layer_depth; - float prev_tex_depth = cur_tex_depth; - - for (int i = 0; i < POM_STEPS; i++) { - if (cur_layer_depth >= cur_tex_depth) { - break; - } - prev_uv = cur_uv; - prev_layer_depth = cur_layer_depth; - prev_tex_depth = cur_tex_depth; - - cur_uv += delta_uv; - cur_layer_depth += step_size; - cur_tex_depth = 1.0 - textureLod(ormh_tex, cell_origin + clamp(cur_uv, 0.002, 0.998) * CELL_SIZE, 0.0).a; - } - - // 1 secant interpolation step - float after_d = cur_tex_depth - cur_layer_depth; - float before_d = prev_tex_depth - prev_layer_depth; - float denom = after_d - before_d; - float weight = abs(denom) > 1e-5 ? clamp(after_d / denom, 0.0, 1.0) : 0.0; - vec2 final_uv = mix(cur_uv, prev_uv, weight); - - // Discard cleanly outside tile bounds so adjacent atlas cells never bleed - if (final_uv.x < 0.002 || final_uv.x > 0.998 || final_uv.y < 0.002 || final_uv.y > 0.998) { - discard; - } - - vec2 atlas_uv = cell_origin + final_uv * CELL_SIZE; - vec4 alb = textureGrad(albedo_tex, atlas_uv, d_uv_dx, d_uv_dy); - vec3 nrm_sample = textureGrad(normal_tex, atlas_uv, d_uv_dx, d_uv_dy).rgb; - vec4 ormh = textureGrad(ormh_tex, atlas_uv, d_uv_dx, d_uv_dy); - - float out_alpha = alb.a * edge_fade * opacity; - if (out_alpha < 0.015) { - discard; - } - - // Emissive rim & molten crater mask for combat hits (Row 3: tiles 12..15) - float is_combat = step(11.5, tile_idx); - // Rolled metallic lip & crater wall glow hot while keeping pitch-black bore contrast - float rim_band = smoothstep(0.94, 0.50, ormh.a) * smoothstep(0.08, 0.55, ormh.b); - float bore_inner_ring = smoothstep(0.35, 0.10, ormh.a) * smoothstep(0.01, 0.16, ormh.a); - float hot_mask = clamp((rim_band * 1.15 + bore_inner_ring * 0.45) * is_combat, 0.0, 1.0); - float hot_intensity = heat_glow * hot_mask; - vec3 hot_col = mix(vec3(0.95, 0.18, 0.02), vec3(1.0, 0.58, 0.14), smoothstep(0.25, 0.90, hot_intensity)); - - ALBEDO = alb.rgb; - ALPHA = out_alpha; - NORMAL_MAP = nrm_sample; - NORMAL_MAP_DEPTH = normal_depth; - AO = ormh.r; - AO_LIGHT_AFFECT = 0.85; - ROUGHNESS = clamp(ormh.g, 0.12, 0.98); - METALLIC = clamp(ormh.b, 0.0, 1.0); - EMISSION = hot_col * (hot_intensity * heat_emission_energy); -} diff --git a/client/inventory_grid.gdshader b/client/inventory_grid.gdshader deleted file mode 100644 index fac4847..0000000 --- a/client/inventory_grid.gdshader +++ /dev/null @@ -1,209 +0,0 @@ -shader_type canvas_item; -render_mode blend_premul_alpha; - -// Port of Aetheria's UI/Inventory Grid shader to Godot 4 gl_compatibility (OpenGL 3.3). -// Evaluates analytical corner-folded texel boxes for hull/hardpoint silhouettes, L-brackets, -// hairline rules, direct bilinear heat glow, hit-pulse flash, and 45-degree fracture hatching. -// -// data_tex (3W x H, filter_nearest): -// 3x + 0 : cell/item fill & armor tint (RGBA) -// 3x + 1 : border/bracket accent color (RGBA) -// 3x + 2 : R = 8-bit neighbor mismatch mask (N,E,S,W,NE,SE,SW,NW) -// G = flags (bit0=present, bit1=item, bit2=hover, bit3=damaged/stripped, bit4=compatible, bit5=border_radiator) -// B = reserved (0) -// A = hit-pulse flash intensity (0..1) -// temp_tex (W x H, filter_linear): -// R = normalized temperature [20C..200C -> 0..1] -// G = thermal plateau / overheat stress [0..0.5 optimal, 0.5..1.0 overheating] -// B = active cell mask - -uniform sampler2D data_tex : filter_nearest, repeat_disable; -uniform sampler2D temp_tex : filter_linear, repeat_disable; - -uniform vec2 grid_size = vec2(4.0, 5.0); -uniform vec2 rect_size = vec2(180.0, 225.0); - -// Look parameters in Aetheria texel units -uniform float icon_texel = 1.51515; -uniform float bg_texel = 1.0; -uniform float rule_inset = 1.5; -uniform float rule_width = 1.0; -uniform float arm_texels = 1.25; -uniform float fill_inset = 2.6; -uniform float softness = 1.0; -uniform float rule_alpha = 0.34; -uniform float bracket_alpha = 1.0; -uniform float fill_alpha = 0.14; - -const float FAR = 1000.0; - -float box_profile(float x, float lo, float hi, float soft) { - if (hi < lo) { - return 0.0; - } - float outside = max(max(lo - x, x - hi), 0.0); - return clamp(1.0 - outside / soft, 0.0, 1.0); -} - -float eval_layer(vec2 p, float cell_px, float texel, uint mask, bool is_item, bool is_icon, float aa_px) { - float t = min(texel, cell_px / 8.0); - bool left = p.x < cell_px * 0.5; - bool top = p.y >= cell_px * 0.5; - float max_t = max(cell_px * 0.5 / t, 4.0); - float x = clamp((left ? p.x : cell_px - p.x) / t, 0.5, max_t); - float y = clamp((top ? cell_px - p.y : p.y) / t, 0.5, max_t); - - uint v_shift = top ? 0u : 2u; - uint h_shift = left ? 3u : 1u; - uint d_shift = top ? (left ? 7u : 4u) : (left ? 6u : 5u); - bool v = ((mask >> v_shift) & 1u) != 0u; - bool h = ((mask >> h_shift) & 1u) != 0u; - bool d = ((mask >> d_shift) & 1u) != 0u; - bool concave = !v && !h && d; - - float soft = clamp(softness * aa_px / max(t, 0.25), 0.15, 2.0); - float fill_lo = fill_inset + 0.5; - float fx = h ? box_profile(x, fill_lo, FAR, soft) : 1.0; - float fy = v ? box_profile(y, fill_lo, FAR, soft) : 1.0; - float f = fx * fy; - if (concave) { - f -= box_profile(x, -FAR, fill_inset - 0.5, soft) * box_profile(y, -FAR, fill_inset - 0.5, soft); - } - f = clamp(f, 0.0, 1.0); - if (!is_icon) { - return f; - } - - float a = is_item ? fill_alpha * f : 0.0; - float ri = rule_inset; - float rlo = ri - (rule_width - 1.0) * 0.5; - float rhi = ri + (rule_width - 1.0) * 0.5; - float rx = box_profile(x, rlo, rhi, soft); - float ry = box_profile(y, rlo, rhi, soft); - float arms = arm_texels >= 1.0 ? 1.0 : 0.0; - - if (v) { - a += rule_alpha * ry * (h ? box_profile(x, ri, FAR, soft) : 1.0); - } - if (h) { - a += rule_alpha * rx * (v ? box_profile(y, ri + 1.0, FAR, soft) : 1.0); - } - if (v && h) { - a += (bracket_alpha - rule_alpha) * (ry * box_profile(x, ri, ri + arm_texels, soft) + arms * rx * box_profile(y, ri + 1.0, ri + arm_texels, soft)); - } else if (concave) { - a += bracket_alpha * (ry * box_profile(x, ri - arm_texels, ri, soft) + arms * rx * box_profile(y, ri - arm_texels, ri - 1.0, soft)); - } else if (!v && !h) { - // Faint cell subdivision hairline across matched internal cell boundaries - float sub_x = box_profile(x, 0.0, 0.65, soft); - float sub_y = box_profile(y, 0.0, 0.65, soft); - a += 0.14 * max(sub_x, sub_y); - } - return clamp(a, 0.0, 1.0); -} - -vec3 thermal_ramp(float t) { - vec3 c0 = vec3(0.11, 0.18, 0.24); // ambient cool slate - vec3 c1 = vec3(0.24, 0.48, 0.34); // warm olive - vec3 c2 = vec3(0.86, 0.64, 0.18); // optimal plateau amber-gold - vec3 c3 = vec3(0.92, 0.28, 0.14); // hot crimson-orange - vec3 c4 = vec3(1.00, 0.85, 0.58); // critical incandescent - if (t < 0.25) return mix(c0, c1, t / 0.25); - if (t < 0.55) return mix(c1, c2, (t - 0.25) / 0.30); - if (t < 0.85) return mix(c2, c3, (t - 0.55) / 0.30); - return mix(c3, c4, (t - 0.85) / 0.15); -} - -void fragment() { - vec2 safe_grid = max(grid_size, vec2(1.0)); - vec2 cell_wh = rect_size / safe_grid; - float S = min(cell_wh.x, cell_wh.y); - vec2 grid_px = safe_grid * S; - vec2 origin = (rect_size - grid_px) * 0.5; - vec2 local_px = UV * rect_size - origin; - - // Hoist derivatives and implicit-LOD texture lookup above non-uniform branches (GLSL 330 helper quads) - float aa_px = clamp(max(fwidth(UV.x) * rect_size.x, fwidth(UV.y) * rect_size.y), 0.2, 2.0); - vec4 temp_sample = texture(temp_tex, clamp(local_px / max(grid_px, vec2(1.0)), vec2(0.0), vec2(1.0))); - - vec2 cellf = floor(local_px / S); - if (cellf.x < 0.0 || cellf.y < 0.0 || cellf.x >= safe_grid.x || cellf.y >= safe_grid.y) { - COLOR = vec4(0.0); - } else { - vec2 p_godot = local_px - cellf * S; - // Flip Y inside cell to match Aetheria's y-up Layer / Pipes convention - vec2 p = vec2(p_godot.x, S - p_godot.y); - - float tex_w = safe_grid.x * 3.0; - float ty = (cellf.y + 0.5) / safe_grid.y; - vec4 cell_fill = textureLod(data_tex, vec2((cellf.x * 3.0 + 0.5) / tex_w, ty), 0.0); - vec4 border_accent = textureLod(data_tex, vec2((cellf.x * 3.0 + 1.5) / tex_w, ty), 0.0); - vec4 meta = textureLod(data_tex, vec2((cellf.x * 3.0 + 2.5) / tex_w, ty), 0.0); - - uint mask = uint(round(meta.r * 255.0)); - uint flags = uint(round(meta.g * 255.0)); - float hit_pulse = meta.a; - - if ((flags & 1u) == 0u) { - COLOR = vec4(0.0); - } else { - bool is_item = (flags & 2u) != 0u; - bool is_hover = (flags & 4u) != 0u; - bool is_damaged = (flags & 8u) != 0u; - bool is_compatible = (flags & 16u) != 0u; - - float norm_temp = temp_sample.r; - float plateau_stress = temp_sample.g; - vec3 heat_col = thermal_ramp(norm_temp); - - float a_bg = eval_layer(p, S, bg_texel, mask, false, false, aa_px) * cell_fill.a; - float a_rules = eval_layer(p, S, icon_texel, mask, is_item, true, aa_px); - - // Intact vs stripped (Armor == 0) interior fill with always-active subtle bilinear heat glow on hot cells - float hot_blend = smoothstep(0.05, 0.65, norm_temp) * 0.56; - vec3 base_rgb = mix(cell_fill.rgb, heat_col, hot_blend); - if (is_damaged) { - // Diagonal fracture/exposed-core hatching at 45 deg - float hatch_coord = (p_godot.x + p_godot.y) / max(S * 0.22, 4.0); - float hatch_dist = abs(fract(hatch_coord) - 0.5); - float hatch = 1.0 - smoothstep(0.10, 0.22, hatch_dist); - base_rgb = mix(base_rgb * 0.55, vec3(0.82, 0.20, 0.14), hatch * 0.65); - } - - // Direct bilinear thermal plateau glow over hot cells - float overheat_glow = max(plateau_stress - 0.5, 0.0) * 2.0; - base_rgb += heat_col * (0.20 * norm_temp + 0.30 * overheat_glow); - base_rgb = clamp(base_rgb, vec3(0.0), vec3(1.0)); - - if (is_hover) { - base_rgb = mix(base_rgb, vec3(0.95, 0.94, 0.88), 0.16); - } - - // Active hit-pulse impact flash - vec3 flash_col = vec3(1.0, 0.76, 0.38); - base_rgb = clamp(mix(base_rgb, flash_col, hit_pulse * 0.85), vec3(0.0), vec3(1.0)); - - vec3 accent_rgb = border_accent.rgb; - if (is_damaged) { - accent_rgb = mix(accent_rgb, vec3(0.92, 0.26, 0.18), 0.70); - } - if (is_compatible) { - float pulse = 0.72 + 0.28 * sin(TIME * 6.5); - accent_rgb = mix(accent_rgb, vec3(0.96, 0.82, 0.30), pulse); - a_rules = clamp(a_rules * 1.35, 0.0, 1.0); - } - if (is_hover) { - accent_rgb = mix(accent_rgb, vec3(1.0), 0.35); - a_rules = clamp(a_rules * 1.25, 0.0, 1.0); - } - accent_rgb = clamp(mix(accent_rgb, flash_col, hit_pulse * 0.90), vec3(0.0), vec3(1.0)); - - float icon_alpha = clamp(a_rules * border_accent.a, 0.0, 1.0); - vec3 icon_rgb = clamp(accent_rgb, vec3(0.0), vec3(1.0)); - - float out_a = clamp(icon_alpha + a_bg * (1.0 - icon_alpha), 0.0, 1.0); - vec3 out_rgb = min(icon_rgb * icon_alpha + base_rgb * a_bg * (1.0 - icon_alpha), vec3(out_a)); - out_rgb = max(out_rgb, vec3(0.0)); - COLOR = vec4(out_rgb, out_a); - } - } -} diff --git a/client/mech_paint.gdshader b/client/mech_paint.gdshader deleted file mode 100644 index 646f2c3..0000000 --- a/client/mech_paint.gdshader +++ /dev/null @@ -1,317 +0,0 @@ -shader_type spatial; -render_mode cull_back, depth_draw_opaque; - -// Real-time GLSL 330 (gl_compatibility) port of Brokkr's 6-layer MechPaint. -// Samples 3D procedural noise in rest-pose object space (v_local_pos, v_local_nrm) -// so weathering never swims during skeletal/joint animation or chassis motion. -// -// Expects baked vertex COLOR_0: -// R = geometric cavity AO (0 = deep crevice, 1 = open exposed face) -// G = convex dihedral edge curvature (0 = flat, 1 = sharp exposed edge) -// B = per-island connected-component hash (0..1) -// A = rest-pose height above ground (meters / 6.0, clamped 0..1) -// -// Live combat channels (via INSTANCE_CUSTOM or uniform fallback for non-MultiMesh): -// INSTANCE_CUSTOM.x / scorch (0..1) -> char/soot darkening + matte roughness -// INSTANCE_CUSTOM.y / heat_glow (0..1) -> incandescent orange-red emission without cloning materials - -uniform vec4 base_color : source_color = vec4(0.306, 0.341, 0.251, 1.0); -uniform float roughness : hint_range(0.0, 1.0) = 0.58; -uniform float metallic : hint_range(0.0, 1.0) = 0.28; -uniform float tone_variation : hint_range(0.0, 1.0) = 0.30; -uniform float mottle : hint_range(0.0, 2.0) = 1.0; -uniform float noise_scale : hint_range(0.1, 10.0) = 1.0; - -uniform float grime : hint_range(0.0, 2.0) = 0.90; -uniform vec4 grime_color : source_color = vec4(0.145, 0.133, 0.114, 1.0); - -uniform float streaks : hint_range(0.0, 2.0) = 0.95; -uniform float dust : hint_range(0.0, 2.0) = 0.55; -uniform vec4 dust_color : source_color = vec4(0.451, 0.431, 0.388, 1.0); - -uniform float wear : hint_range(0.0, 2.5) = 0.95; -uniform vec4 chip_color : source_color = vec4(0.460, 0.470, 0.465, 1.0); -uniform float chip_metallic : hint_range(0.0, 1.0) = 0.85; -uniform float chip_roughness : hint_range(0.0, 1.0) = 0.28; -uniform vec4 primer_color : source_color = vec4(0.345, 0.325, 0.286, 1.0); - -uniform float mud : hint_range(0.0, 2.0) = 1.0; -uniform float mud_top : hint_range(0.1, 5.0) = 1.45; -uniform vec4 mud_color : source_color = vec4(0.180, 0.148, 0.118, 1.0); -uniform float wet : hint_range(0.0, 2.0) = 0.60; -uniform float wet_top : hint_range(0.1, 6.0) = 2.80; - -uniform float scorch : hint_range(0.0, 1.0) = 0.0; -uniform float heat_glow : hint_range(0.0, 1.0) = 0.0; -uniform float heat_emission_energy : hint_range(0.0, 8.0) = 2.6; -uniform bool use_vertex_material = false; - -varying vec3 v_local_pos; -varying vec3 v_local_nrm; -varying vec4 v_color; -varying vec4 v_mat_data; -varying float v_scorch; -varying float v_heat; -varying float v_role; -varying float v_alpha; - -// Safe remapping helper supporting inverted bounds (lo > hi) without GLSL smoothstep UB. -float map_range(float v, float lo, float hi, float out_lo, float out_hi) { - float denom = hi - lo; - float t = abs(denom) > 1e-6 ? clamp((v - lo) / denom, 0.0, 1.0) : 0.0; - t = t * t * (3.0 - 2.0 * t); - return mix(out_lo, out_hi, t); -} - -float hash31(vec3 p) { - p = fract(p * vec3(0.1031, 0.1030, 0.0973)); - p += dot(p, p.yxz + 33.33); - return fract((p.x + p.y) * p.z); -} - -float noise3d(vec3 p) { - vec3 i = floor(p); - vec3 f = fract(p); - vec3 u = f * f * (3.0 - 2.0 * f); - - float n000 = hash31(i + vec3(0.0, 0.0, 0.0)); - float n100 = hash31(i + vec3(1.0, 0.0, 0.0)); - float n010 = hash31(i + vec3(0.0, 1.0, 0.0)); - float n110 = hash31(i + vec3(1.0, 1.0, 0.0)); - float n001 = hash31(i + vec3(0.0, 0.0, 1.0)); - float n101 = hash31(i + vec3(1.0, 0.0, 1.0)); - float n011 = hash31(i + vec3(0.0, 1.0, 1.0)); - float n111 = hash31(i + vec3(1.0, 1.0, 1.0)); - - float nx00 = mix(n000, n100, u.x); - float nx10 = mix(n010, n110, u.x); - float nx01 = mix(n001, n101, u.x); - float nx11 = mix(n011, n111, u.x); - float nxy0 = mix(nx00, nx10, u.y); - float nxy1 = mix(nx01, nx11, u.y); - return mix(nxy0, nxy1, u.z); -} - -float fbm2(vec3 p) { - // Rotate second octave to eliminate cubic lattice grid alignment - const mat3 rot = mat3( - vec3(0.80, -0.48, 0.36), - vec3(0.60, 0.64, -0.48), - vec3(0.00, 0.60, 0.80) - ); - float a = noise3d(p); - float b = noise3d((rot * p) * 2.17 + vec3(17.3, 9.1, 23.7)); - float c = noise3d((rot * p) * 4.61 + vec3(5.7, 31.4, 11.2)); - return a * 0.55 + b * 0.30 + c * 0.15; -} - -vec3 rgb_to_hsv(vec3 c) { - vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); - vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g)); - vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r)); - float d = q.x - min(q.w, q.y); - float e = 1.0e-6; - return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x); -} - -vec3 hsv_to_rgb(vec3 c) { - vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); - vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); - return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); -} - -void vertex() { - v_local_pos = VERTEX; - v_local_nrm = NORMAL; - v_color = COLOR; - v_mat_data = vec4(UV.x, UV.y, UV2.x, UV2.y); - v_scorch = clamp(max(INSTANCE_CUSTOM.x, scorch), 0.0, 1.0); - v_heat = clamp(max(INSTANCE_CUSTOM.y, heat_glow), 0.0, 1.0); - v_role = INSTANCE_CUSTOM.z; - v_alpha = use_vertex_material ? clamp(INSTANCE_CUSTOM.w, 0.0, 1.0) : 1.0; -} - -void resolve_role_armor(int role, out vec3 col, out float met, out float rgh) { - if (role == 1) { - col = vec3(0.109, 0.074, 0.054); met = 0.26; rgh = 0.58; // Rival (#5d4d42) - } else if (role == 2) { - col = vec3(0.791, 0.479, 0.039); met = 0.72; rgh = 0.30; // SpectatorTourist (#e6b838) - } else if (role == 3) { - col = vec3(0.026, 0.195, 0.188); met = 0.32; rgh = 0.50; // SpectatorPatron (#2d7a78) - } else if (role == 4) { - col = vec3(0.011, 0.011, 0.016); met = 0.45; rgh = 0.42; // SpectatorExemplar (#1b1b22) - } else if (role == 5) { - col = vec3(0.089, 0.105, 0.107); met = 0.55; rgh = 0.48; // SalvageDrop (#545b5c) - } else { - col = vec3(0.076, 0.095, 0.051); met = 0.28; rgh = 0.58; // Player (#4e5740) - } -} - -void resolve_role_accent(int role, out vec3 col, out float met, out float rgh, out float emit_e) { - emit_e = 0.0; - if (role == 1) { - col = vec3(0.468, 0.068, 0.032); met = 0.20; rgh = 0.46; // Rival (#b64a32) - } else if (role == 2) { - col = vec3(0.896, 0.823, 0.687); met = 0.16; rgh = 0.38; // SpectatorTourist (#f2ead8) - } else if (role == 3) { - col = vec3(0.392, 0.147, 0.037); met = 0.65; rgh = 0.36; // SpectatorPatron (#a86c36) - } else if (role == 4) { - col = vec3(0.584, 0.023, 0.023); met = 0.25; rgh = 0.36; emit_e = 0.65; // SpectatorExemplar (#c92a2a) - } else if (role == 5) { - col = vec3(0.058, 0.694, 0.807); met = 0.22; rgh = 0.34; emit_e = 0.45; // SalvageDrop (#44d9e8) - } else { - col = vec3(0.694, 0.150, 0.020); met = 0.18; rgh = 0.44; // Player (#d96c27) - } -} - -void fragment() { - if (v_alpha < 0.99) { - float dither = fract(sin(dot(floor(FRAGCOORD.xy), vec2(12.9898, 78.233))) * 43758.5453); - if (v_alpha < dither) { - discard; - } - } - - vec3 mat_base_col = base_color.rgb; - float mat_rough = roughness; - float mat_metal = metallic; - float mat_wear = wear; - float mat_mud = mud; - float mat_static_emit = 0.0; - if (use_vertex_material) { - int band = int(floor((v_mat_data.w + 0.5) * 0.5)); - mat_rough = clamp(v_mat_data.w - float(band) * 2.0, 0.08, 0.95); - mat_base_col = clamp(v_mat_data.rgb, vec3(0.0), vec3(1.0)); - int role = int(floor(v_role + 0.5)); - if (band == 0) { - mat_metal = 0.12; - } else if (band == 1) { - mat_metal = 0.55; - } else if (band == 2) { - mat_metal = 0.85; - } else if (band == 3) { - resolve_role_armor(role, mat_base_col, mat_metal, mat_rough); - } else if (band == 4) { - resolve_role_accent(role, mat_base_col, mat_metal, mat_rough, mat_static_emit); - } else if (band == 5) { - mat_metal = 0.15; - mat_static_emit = 1.85; - mat_wear = 0.0; - mat_mud = 0.0; - } else if (band == 6) { - mat_metal = 0.26; - } else { - mat_metal = 0.65; - } - } - - vec3 pos = v_local_pos * noise_scale; - vec3 nrm = normalize(v_local_nrm); - float up = nrm.y; - - float occ = clamp(v_color.r, 0.0, 1.0); - float edge = clamp(v_color.g, 0.0, 1.0); - float island_rand = clamp(v_color.b, 0.0, 1.0); - float height_m = clamp(v_color.a, 0.0, 1.0) * 6.0; - - // Shared rotated multi-scale 3D noise basis (5 lookups total vs 352 hashes across 6 layers) - const mat3 rot = mat3( - vec3(0.80, -0.48, 0.36), - vec3(0.60, 0.64, -0.48), - vec3(0.00, 0.60, 0.80) - ); - vec3 rpos = rot * pos; - float n_macro = noise3d(pos * 0.85); - float n_mid = noise3d(rpos * 3.8 + vec3(17.3, 9.1, 23.7)); - float n_fine = noise3d(pos * 10.5 + vec3(5.7, 31.4, 11.2)); - float n_speck = noise3d(rpos * 27.0 + vec3(11.1, 3.7, 19.4)); - float n_streak = noise3d(pos * vec3(13.0, 0.5, 13.0)); - - // Layer 1: Base paint + per-island tone variation + multi-octave mottle - float rand2 = fract(island_rand * 7.31 + 0.37); - vec3 hsv = rgb_to_hsv(mat_base_col); - hsv.x = fract(hsv.x + (rand2 - 0.5) * tone_variation * 0.14); - hsv.y = clamp(hsv.y * (1.0 + (rand2 - 0.5) * tone_variation * 0.75), 0.0, 1.0); - hsv.z = clamp(hsv.z * (1.0 + (island_rand * 2.0 - 1.0) * tone_variation * 0.65), 0.01, 2.0); - vec3 col = hsv_to_rgb(hsv); - - float blotch = n_macro * 0.70 + n_mid * 0.30; - float mid_n = n_mid * 0.68 + n_fine * 0.32; - float shade = map_range(blotch, 0.25, 0.75, -0.14, 0.14) - + map_range(n_speck, 0.25, 0.75, -0.07, 0.07) - + map_range(mid_n, 0.25, 0.75, -0.09, 0.09); - col *= clamp(1.0 + shade * mottle, 0.55, 1.35); - - // Layer 2: Cavity grime darkening + roughness boost from (1 - AO) - float cavity = clamp(map_range(occ, 0.90, 0.42, 0.0, 1.0) * map_range(mid_n, 0.30, 0.65, 0.45, 1.0) * grime, 0.0, 1.0); - float film = clamp(map_range(n_macro * 0.5 + n_mid * 0.5, 0.54, 0.72, 0.0, 1.0) * 0.30 * grime, 0.0, 1.0); - float grime_amt = max(cavity, film); - col = mix(col, grime_color.rgb, min(grime_amt, 0.85)); - - // Layer 3: Vertical rain/oil streaks on upright surfaces boosted by cavity - float upright = map_range(abs(up), 0.80, 0.35, 0.0, 1.0); - float under = map_range(occ, 0.96, 0.65, 0.40, 1.0); - float broken = map_range(n_macro, 0.35, 0.55, 0.15, 1.0); - float streak_mix = n_streak * 0.72 + n_fine * 0.28; - float dark_run = clamp(map_range(streak_mix, 0.52, 0.68, 0.0, 1.0) * upright * under * broken * streaks, 0.0, 1.0); - float pale_run = clamp(map_range(1.0 - streak_mix, 0.62, 0.76, 0.0, 1.0) * upright * 0.28 * streaks, 0.0, 1.0); - col = mix(col, dust_color.rgb, pale_run); - col = mix(col, grime_color.rgb, dark_run * 0.85); - - // Layer 4: Pale dust on upward-facing normals (v_local_nrm.y) - float dust_amt = clamp(map_range(up, 0.45, 0.95, 0.0, 1.0) * map_range(mid_n, 0.25, 0.70, 0.25, 1.0) * dust * 0.55, 0.0, 1.0); - col = mix(col, dust_color.rgb, dust_amt); - - // Layer 5: Metallic edge chipping + thin primer_color halo from edge_curvature * noise - float exposed = map_range(occ, 0.42, 0.88, 0.0, 1.0); - float edge_sharp = pow(edge, 1.85); - float chip_n = map_range(n_mid * 0.6 + n_fine * 0.4, 0.30, 0.72, 0.0, 0.44) - + map_range(n_speck, 0.30, 0.70, -0.06, 0.06); - float wear_level = chip_n + edge_sharp * exposed * mat_wear * 0.56; - float scuff = map_range(mid_n, 0.68, 0.72, 0.0, 1.0) * clamp(mat_wear / 1.8, 0.0, 1.0) * 0.55; - float chip_metal_mask = clamp(max(map_range(wear_level, 0.76, 0.80, 0.0, 1.0), scuff * 0.85), 0.0, 1.0); - float primer_mask = clamp(max(map_range(wear_level, 0.71, 0.75, 0.0, 1.0), scuff), 0.0, 1.0); - col = mix(col, primer_color.rgb, primer_mask * 0.75); - col = mix(col, chip_color.rgb, chip_metal_mask); - - // Layer 6: Lower-hull/foot mud & wet gloss driven by rest_height (COLOR.a) - float wet_amt = clamp(map_range(height_m, wet_top, 0.0, 0.0, 1.0) * wet * clamp(mat_mud, 0.0, 1.0), 0.0, 1.0); - col *= (1.0 - 0.50 * wet_amt); - float mud_n = n_macro * 0.35 + n_mid * 0.65; - float thick = map_range(height_m, mud_top, 0.0, 0.0, 1.0) - * map_range(mud_n, 0.35, 0.62, 0.1, 1.5) - * map_range(occ, 0.95, 0.50, 0.7, 1.6) * mat_mud; - float splash = map_range(n_fine, 0.62, 0.66, 0.0, 1.0) - * map_range(height_m, mud_top * 2.2, mud_top * 0.4, 0.0, 1.0) * mat_mud * 0.85; - float mud_amt = clamp(max(map_range(thick, 0.20, 0.50, 0.0, 1.0), splash), 0.0, 1.0); - col = mix(col, mud_color.rgb * map_range(mud_n, 0.30, 0.70, 0.70, 1.30), mud_amt); - - // PBR metallic & roughness synthesis - float out_metallic = mix(mat_metal, chip_metallic, chip_metal_mask); - out_metallic *= (1.0 - mud_amt) * (1.0 - grime_amt * 0.70); - - float out_rough = mat_rough + grime_amt * 0.22 + (1.0 - occ) * 0.12 * clamp(grime, 0.0, 1.0); - out_rough = mix(out_rough, chip_roughness, chip_metal_mask); - out_rough -= wet_amt * 0.18; - out_rough += mud_amt * 0.18; - out_rough = clamp(out_rough, 0.12, 0.98); - - // Live combat channel 1: scorch (char/soot darkening + matte roughness) - float soot_pat = mix(0.65, 1.0, mid_n); - float scorch_mask = clamp(v_scorch * soot_pat, 0.0, 1.0); - col = mix(col, vec3(0.022, 0.018, 0.016), scorch_mask * 0.88); - out_metallic *= (1.0 - scorch_mask * 0.75); - out_rough = mix(out_rough, 0.94, scorch_mask); - - // Live combat channel 2: heat_glow (incandescent orange-red emission without cloning material) - float heat_mod = mix(0.25, 1.15, pow(edge, 1.4) * 0.6 + mid_n * 0.4); - float h_val = clamp(v_heat * heat_mod, 0.0, 1.0); - vec3 heat_col = mix(vec3(0.85, 0.12, 0.01), vec3(1.0, 0.52, 0.10), smoothstep(0.25, 0.95, h_val)); - - ALBEDO = col; - METALLIC = clamp(out_metallic, 0.0, 1.0); - ROUGHNESS = out_rough; - AO = mix(1.0, occ, 0.65); - AO_LIGHT_AFFECT = 0.65; - EMISSION = mat_base_col * mat_static_emit + heat_col * (pow(v_heat, 1.35) * heat_mod * heat_emission_energy); -} diff --git a/client/panel_chrome.gdshader b/client/panel_chrome.gdshader deleted file mode 100644 index 2aa8a0f..0000000 --- a/client/panel_chrome.gdshader +++ /dev/null @@ -1,80 +0,0 @@ -shader_type canvas_item; -render_mode blend_premul_alpha; - -// Resolution-independent industrial panel chrome using the same analytical corner-folded -// Box / L-bracket + hairline border + inset fill math as inventory_grid.gdshader (1x1 cell). -// Stays razor-sharp at 720p, 1080p, 1440p, and 4K. - -uniform vec2 rect_size = vec2(320.0, 160.0); -uniform float corner_len = 12.0; -uniform float border_px = 1.5; -uniform float fill_inset = 2.0; -uniform float rule_inset = 1.5; -uniform float rule_alpha = 0.55; -uniform float bracket_alpha = 1.0; -uniform float top_bar_px = 2.0; -uniform float scanline_strength = 0.045; - -uniform vec4 bg_color : source_color = vec4(0.075, 0.086, 0.075, 0.88); -uniform vec4 border_color : source_color = vec4(0.243, 0.275, 0.220, 1.0); -uniform vec4 accent_color : source_color = vec4(0.878, 0.541, 0.290, 1.0); - -const float FAR = 10000.0; - -float box_profile(float x, float lo, float hi, float soft) { - if (hi < lo) { - return 0.0; - } - float outside = max(max(lo - x, x - hi), 0.0); - return clamp(1.0 - outside / max(soft, 0.05), 0.0, 1.0); -} - -void fragment() { - vec2 size = max(rect_size, vec2(4.0)); - vec2 p = UV * size; - float aa = clamp(max(fwidth(UV.x) * size.x, fwidth(UV.y) * size.y), 0.2, 2.0); - - // Fold into nearest corner quadrant (1x1 cell, all 4 cardinal edges active) - bool left = p.x < size.x * 0.5; - bool top = p.y < size.y * 0.5; - float x = max(left ? p.x : size.x - p.x, 0.5 * aa); - float y = max(top ? p.y : size.y - p.y, 0.5 * aa); - - // Inset background fill - float fx = box_profile(x, fill_inset, FAR, aa); - float fy = box_profile(y, fill_inset, FAR, aa); - float fill_mask = fx * fy; - - // Hairline border and corner L-brackets (logical thickness stays fixed in rect_size units) - float ri = rule_inset; - float half_w = max(border_px - 1.0, 0.0) * 0.5; - float rlo = ri - half_w; - float rhi = ri + half_w; - float rx = box_profile(x, rlo, rhi, aa); - float ry = box_profile(y, rlo, rhi, aa); - - float rule_mask = max(ry * box_profile(x, rlo, FAR, aa), rx * box_profile(y, rlo, FAR, aa)); - float clen = min(corner_len, min(size.x, size.y) * 0.35); - float bracket_mask = max(ry * box_profile(x, rlo, ri + clen, aa), rx * box_profile(y, rlo, ri + clen, aa)); - - // Subtle top-bar & micro-scanline accent inside the fill - float top_bar = box_profile(p.y, fill_inset + 0.5, fill_inset + 0.5 + top_bar_px, aa) * fx; - float scan = 1.0 - scanline_strength * (0.5 + 0.5 * sin(p.y * 2.0943951)); - - vec3 fill_rgb = mix(bg_color.rgb * scan, accent_color.rgb, top_bar * 0.24); - float fill_a = fill_mask * bg_color.a; - - float edge_rule = clamp(rule_mask - bracket_mask, 0.0, 1.0) * rule_alpha * border_color.a; - float edge_bracket = bracket_mask * bracket_alpha * accent_color.a; - - vec3 rgb = fill_rgb * fill_a; - float alpha = fill_a; - - rgb = border_color.rgb * edge_rule + rgb * (1.0 - edge_rule); - alpha = edge_rule + alpha * (1.0 - edge_rule); - - rgb = accent_color.rgb * edge_bracket + rgb * (1.0 - edge_bracket); - alpha = edge_bracket + alpha * (1.0 - edge_bracket); - - COLOR = vec4(rgb, clamp(alpha, 0.0, 1.0)); -} diff --git a/client/project.godot b/client/project.godot deleted file mode 100644 index d214e57..0000000 --- a/client/project.godot +++ /dev/null @@ -1,33 +0,0 @@ -; Engine configuration file. -; It's best edited using the editor UI and not directly, -; since the parameters that go here are not all obvious. - -config_version=5 - -[application] - -config/name="Rust to Dust" -run/main_scene="res://Main.tscn" -config/features=PackedStringArray("4.7", "C#") - -[display] - -window/size/viewport_width=1280 -window/size/viewport_height=720 -window/stretch/mode="canvas_items" - -[dotnet] - -project/assembly_name="RustToDust.Client" - -[physics] - -; Godot's physics is switched off: Ymir is the only physics world. ArenaSession ticks at 60 Hz. -3d/physics_engine="Dummy" -common/physics_ticks_per_second=60 -common/physics_interpolation=true - -[rendering] - -renderer/rendering_method="gl_compatibility" -renderer/rendering_method.mobile="gl_compatibility" diff --git a/client/terrain_brush.gdshader b/client/terrain_brush.gdshader deleted file mode 100644 index eb66b71..0000000 --- a/client/terrain_brush.gdshader +++ /dev/null @@ -1,67 +0,0 @@ -shader_type canvas_item; -render_mode blend_add; - -// Encodes positive height deltas into R ([-18m, +52m] => span 70m), -// roughness delta into G, scorch/track wear into B, and ALWAYS A = 1.0 -// (required for gl_compatibility TransparentBg=false blend equations). -uniform int brush_kind = 0; -uniform float height_delta = 0.0; -uniform float height_span = 70.0; - -void fragment() { - vec2 uv_local = UV * 2.0 - 1.0; - float u = uv_local.x; - float v = uv_local.y; - float r2 = u * u + v * v; - if (r2 >= 1.0) { - discard; - } - - float pos_dh = 0.0; - float pos_dg = 0.0; - float d_scorch = 0.0; - - if (brush_kind == 0) { - // DuneRidge (positive) - float env = 1.0 - r2; - env *= env; - float ridge = max(0.0, 1.0 - u * u); - float asym = 1.0 + 0.32 * u; - pos_dh = max(0.0, height_delta) * env * (0.35 + 0.65 * ridge) * asym; - pos_dg = 0.02 * env; - } else if (brush_kind == 1) { - // Mesa - float r = sqrt(r2); - float t = clamp((1.0 - r) / 0.45, 0.0, 1.0); - float plateau = t * t * (3.0 - 2.0 * t); - pos_dh = max(0.0, height_delta) * plateau; - } else if (brush_kind == 2) { - // SalvagePad (positive part) - float env = 1.0 - r2; - env *= env; - pos_dh = max(0.0, height_delta) * env; - pos_dg = 0.03 * env; - } else if (brush_kind == 4) { - // Crater ejecta rim + slag/scorch - float r = sqrt(r2); - float depth = abs(height_delta); - float rim_t = sin(3.14159265 * clamp((r - 0.55) / 0.45, 0.0, 1.0)); - pos_dh = 0.32 * depth * rim_t * rim_t; - pos_dg = 0.04 * (1.0 - r); - d_scorch = 0.78 * clamp(1.0 - r * 0.9, 0.0, 1.0); - } else if (brush_kind == 5) { - // Track wear - float env = 1.0 - r2; - env *= env; - d_scorch = 0.32 * env; - } else if (brush_kind == 6) { - // Scorch - float r = sqrt(r2); - float mask = clamp(1.0 - r, 0.0, 1.0); - mask = mask * mask; - pos_dg = 0.02 * mask; - d_scorch = 0.85 * mask; - } - - COLOR = vec4(pos_dh / height_span, pos_dg, d_scorch, 1.0); -} diff --git a/client/terrain_brush_albedo.gdshader b/client/terrain_brush_albedo.gdshader deleted file mode 100644 index 3b1cdf8..0000000 --- a/client/terrain_brush_albedo.gdshader +++ /dev/null @@ -1,73 +0,0 @@ -shader_type canvas_item; -render_mode blend_mix; - -uniform int brush_kind = 0; -uniform vec3 brush_albedo = vec3(0.72, 0.53, 0.33); -uniform float height_delta = 0.0; - -void fragment() { - vec2 uv_local = UV * 2.0 - 1.0; - float u = uv_local.x; - float v = uv_local.y; - float r2 = u * u + v * v; - if (r2 >= 1.0) { - discard; - } - - vec3 col = brush_albedo; - float alpha = 0.0; - - if (brush_kind == 0) { - // DuneRidge: windward sunlit crest vs dry wash - float env = 1.0 - r2; - env *= env; - float ridge = max(0.0, 1.0 - u * u); - col = mix(brush_albedo * 0.90, brush_albedo * 1.12, ridge); - alpha = env * 0.72; - } else if (brush_kind == 1) { - // Mesa: rust-basalt plateau + stratified skirt - float r = sqrt(r2); - float t = clamp((1.0 - r) / 0.45, 0.0, 1.0); - float plateau = t * t * (3.0 - 2.0 * t); - float cliff_band = clamp(1.0 - abs(r - 0.74) * 5.0, 0.0, 1.0); - col = mix(brush_albedo, brush_albedo * 0.68, cliff_band); - alpha = clamp(plateau + cliff_band * 0.5, 0.0, 0.94); - } else if (brush_kind == 2) { - // SalvagePad: compacted gravel & weathered concrete slab - float env = 1.0 - r2; - env *= env; - float border = smoothstep(0.75, 0.92, sqrt(r2)); - col = mix(brush_albedo, vec3(0.32, 0.28, 0.24), border * 0.45); - alpha = clamp(env * 1.15, 0.0, 0.88); - } else if (brush_kind == 3) { - // Road: twin packed dirt ruts running longitudinally along u (cross-track offset abs(v)) - float env = 1.0 - r2; - env *= env; - float rut = smoothstep(0.15, 0.45, abs(v)) * (1.0 - smoothstep(0.60, 0.92, abs(v))); - col = mix(brush_albedo, brush_albedo * 0.76, rut); - alpha = env * (0.45 + 0.35 * rut); - } else if (brush_kind == 4) { - // Crater: charred pit center + bright rust ejecta rim - float r = sqrt(r2); - float pit = clamp(1.0 - r / 0.62, 0.0, 1.0); - float rim = sin(3.14159265 * clamp((r - 0.55) / 0.45, 0.0, 1.0)); - vec3 ejecta = vec3(0.62, 0.38, 0.22); - col = mix(ejecta, brush_albedo, clamp(pit * 1.3, 0.0, 1.0)); - alpha = clamp(max(pit * 0.94, rim * rim * 0.72), 0.0, 0.95); - } else if (brush_kind == 5) { - // Track: twin tire ruts along local X - float env = 1.0 - r2; - env *= env; - float treads = smoothstep(0.18, 0.45, abs(v)) * (1.0 - smoothstep(0.62, 0.92, abs(v))); - col = brush_albedo; - alpha = env * treads * 0.62; - } else if (brush_kind == 6) { - // Scorch - float r = sqrt(r2); - float mask = clamp(1.0 - r, 0.0, 1.0); - col = brush_albedo; - alpha = mask * mask * 0.88; - } - - COLOR = vec4(col, alpha); -} diff --git a/client/terrain_brush_sub.gdshader b/client/terrain_brush_sub.gdshader deleted file mode 100644 index 660e195..0000000 --- a/client/terrain_brush_sub.gdshader +++ /dev/null @@ -1,41 +0,0 @@ -shader_type canvas_item; -render_mode blend_sub; - -// Encodes negative height deltas (crater pits, dry washes, road ruts, tire ruts) into R. -uniform int brush_kind = 0; -uniform float height_delta = 0.0; -uniform float height_span = 70.0; - -void fragment() { - vec2 uv_local = UV * 2.0 - 1.0; - float u = uv_local.x; - float v = uv_local.y; - float r2 = u * u + v * v; - if (r2 >= 1.0) { - discard; - } - - float neg_dh = 0.0; - float neg_dg = 0.0; - if (brush_kind == 0) { - // Dry wash (negative DuneRidge) - float env = 1.0 - r2; - env *= env; - float ridge = max(0.0, 1.0 - u * u); - float asym = 1.0 + 0.32 * u; - neg_dh = max(0.0, -height_delta) * env * (0.35 + 0.65 * ridge) * asym; - } else if (brush_kind == 2 || brush_kind == 3 || brush_kind == 5) { - // SalvagePad (<0), Road, Track rut - float env = 1.0 - r2; - env *= env; - neg_dh = max(0.0, -height_delta) * env; - } else if (brush_kind == 4) { - // Crater pit - float r = sqrt(r2); - float depth = abs(height_delta); - float pit_t = clamp(1.0 - r / 0.62, 0.0, 1.0); - neg_dh = depth * pit_t * pit_t * (3.0 - 2.0 * pit_t); - } - - COLOR = vec4(neg_dh / height_span, neg_dg, 0.0, 1.0); -} diff --git a/client/terrain_surface.gdshader b/client/terrain_surface.gdshader deleted file mode 100644 index eaf2609..0000000 --- a/client/terrain_surface.gdshader +++ /dev/null @@ -1,56 +0,0 @@ -shader_type spatial; -render_mode cull_back, depth_draw_opaque; - -uniform sampler2D height_tex : filter_linear, repeat_disable; -uniform sampler2D albedo_tex : filter_linear, repeat_disable; -uniform float height_min = -18.0; -uniform float height_max = 52.0; -uniform float tile_size = 192.0; -uniform float inner_span = 253.0; -uniform float tex_size = 256.0; -uniform float gutter_offset = 1.5; - -float decode_height(float h_norm) { - return mix(height_min, height_max, clamp(h_norm, 0.0, 1.0)); -} - -float hash21(vec2 p) { - p = fract(p * vec2(123.34, 456.21)); - p += dot(p, p + 45.32); - return fract(p.x * p.y); -} - -vec2 to_baked_uv(vec2 mesh_uv) { - return (mesh_uv * inner_span + gutter_offset) / tex_size; -} - -void vertex() { - float h_norm = textureLod(height_tex, to_baked_uv(UV), 0.0).r; - VERTEX.y += decode_height(h_norm); -} - -void fragment() { - vec2 uv_baked = to_baked_uv(UV); - float texel_step = 1.0 / tex_size; - float world_step = tile_size / inner_span; - - float hL = decode_height(texture(height_tex, uv_baked - vec2(texel_step, 0.0)).r); - float hR = decode_height(texture(height_tex, uv_baked + vec2(texel_step, 0.0)).r); - float hD = decode_height(texture(height_tex, uv_baked - vec2(0.0, texel_step)).r); - float hU = decode_height(texture(height_tex, uv_baked + vec2(0.0, texel_step)).r); - - vec3 world_normal = normalize(vec3(hL - hR, 2.0 * world_step, hD - hU)); - NORMAL = normalize((VIEW_MATRIX * vec4(world_normal, 0.0)).xyz); - - vec4 mat = texture(height_tex, uv_baked); - vec3 alb = texture(albedo_tex, uv_baked).rgb; - - // Subtle desert sand grain so dunes read crisply under sunlight - float grain = (hash21(floor(UV * 768.0)) - 0.5) * 0.045; - float scorch = clamp(mat.b, 0.0, 1.0); - alb = clamp(alb + vec3(grain), 0.0, 1.0) * (1.0 - 0.30 * scorch); - - ALBEDO = alb; - ROUGHNESS = clamp(mat.g, 0.25, 1.0); - METALLIC = 0.05; -} diff --git a/client/tests/Smoke.cs b/client/tests/Smoke.cs deleted file mode 100644 index c500d18..0000000 --- a/client/tests/Smoke.cs +++ /dev/null @@ -1,1479 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Godot; -using RustToDust.Core; - -namespace RustToDust.Client.Tests; - -/// -/// Headless Godot smoke test: instantiates Main, drives 60 frames with throttle + fire + crater stamp, -/// verifies terrain tile baking and Ymir physics integration, and exits with code 0 on pass. -/// godot --headless --path client res://tests/Smoke.tscn -/// -public partial class Smoke : Node -{ - private const double WatchdogSeconds = 60.0; - - private readonly List _failures = new(); - private Main _main = null!; - private bool _done; - - public override void _Ready() => _ = RunAsync(); - - public override void _Process(double delta) - { - if (!_done && Time.GetTicksMsec() > WatchdogSeconds * 1000.0) - { - Check(false, $"Smoke watchdog timed out after {WatchdogSeconds}s"); - Finish(); - } - } - - private async Task RunAsync() - { - try - { - _main = GD.Load("res://Main.tscn").Instantiate
(); - AddChild(_main); - - if (_main.Failure is { } failure) - { - Check(false, "Main failed to initialize ArenaSession: " + failure); - } - else - { - await RunScenarioAsync(); - } - } - catch (Exception ex) - { - Check(false, ex.ToString()); - } - - Finish(); - } - - private async Task RunScenarioAsync() - { - Check(Engine.PhysicsTicksPerSecond == 60, $"Expected 60 physics ticks/sec, got {Engine.PhysicsTicksPerSecond}"); - Check((string)ProjectSettings.GetSetting("physics/3d/physics_engine") == "Dummy", "Godot 3D physics_engine is not Dummy"); - Check(!_main.GetWorld3D().Space.IsValid, "Godot should have no active 3D physics space"); - Check(_main.Terrain.BakedTileCount == 64, $"Expected 64 baked terrain tiles, got {_main.Terrain.BakedTileCount}"); - - var player = _main.Session.State.Player; - float startX = player.X; - float startZ = player.Z; - - _main.SetScriptedInput(new PlayerInput( - Throttle: 1f, - Steer: 0.25f, - AimWorldX: startX + 35f, - AimWorldZ: startZ + 10f, - Fire: true, - InteractPickup: false, - Brake: false)); - - for (int i = 0; i < 60; i++) - { - await ToSignal(GetTree(), SceneTree.SignalName.PhysicsFrame); - if (_main.Failure is { } f) - { - Check(false, "Session failure during physics loop: " + f); - return; - } - } - - float dx = player.X - startX; - float dz = player.Z - startZ; - float displacement = MathF.Sqrt(dx * dx + dz * dz); - Check(displacement > 3f, $"Expected player displacement > 3m after 60 frames, got {displacement:F2}m"); - Check(!float.IsNaN(player.X) && !float.IsNaN(player.Y) && !float.IsNaN(player.Z), "Player position became NaN"); - - // Pause physics during the isolated crater check so AI contender track stamps in other tiles do not race it. - _main.SetScriptedInput(null); - _main.SetPhysicsProcess(false); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - bool isHeadless = DisplayServer.GetName() == "headless"; - int rebakesBefore = _main.Terrain.DirtyRebakes; - float cpuBefore = _main.Session.State.Terrain.SampleHeight(-96f, -96f); - float gpuBefore = 0f; - if (!isHeadless) - { - if (_main.Terrain.TryGetHeightImageFormat(out var imgFormat)) - { - GD.Print($"SMOKE INFO: HeightViewport format={imgFormat}"); - } - - bool hasGpuBefore = _main.Terrain.TrySampleBakedHeight(-96f, -96f, out gpuBefore); - Check(hasGpuBefore, "Expected GPU HeightViewport readback to succeed before crater"); - if (hasGpuBefore) - { - float beforeErr = MathF.Abs(gpuBefore - cpuBefore); - GD.Print($"SMOKE INFO: Crater-site pre-stamp cpu={cpuBefore:F4}m gpu={gpuBefore:F4}m err={beforeErr:F4}m"); - Check(beforeErr <= 0.20f, - $"Expected baked GPU height ({gpuBefore:F4}m) to match CPU height ({cpuBefore:F4}m) before crater within 0.20m"); - } - - // Verify brushed terrain relief (tallest Mesa/DuneRidge center) so a flat-map bug can never pass - TerrainBrush? reliefBrush = null; - float bestHillCpu = 0f; - foreach (var b in _main.Session.State.Terrain.Brushes) - { - if (b.Kind == TerrainBrushKind.Mesa || (b.Kind == TerrainBrushKind.DuneRidge && b.HeightDelta > 0f)) - { - float h = _main.Session.State.Terrain.SampleHeight(b.X, b.Z); - if (h > bestHillCpu) - { - bestHillCpu = h; - reliefBrush = b; - } - } - } - - Check(reliefBrush.HasValue && bestHillCpu > 10f, "Expected brushed terrain relief > 10m in generated arena"); - if (reliefBrush.HasValue) - { - var rb = reliefBrush.Value; - bool hasGpuHill = _main.Terrain.TrySampleBakedHeight(rb.X, rb.Z, out float gpuHill); - Check(hasGpuHill, "Expected GPU HeightViewport readback to succeed on brushed relief hill/mesa"); - if (hasGpuHill) - { - float hillErr = MathF.Abs(gpuHill - bestHillCpu); - GD.Print($"SMOKE INFO: Relief {rb.Kind} at ({rb.X:F1},{rb.Z:F1}) cpu={bestHillCpu:F4}m gpu={gpuHill:F4}m err={hillErr:F4}m"); - Check(gpuHill > 10f, $"Expected GPU baked hill height > 10m, got {gpuHill:F4}m"); - Check(hillErr <= 0.20f, - $"Expected GPU hill height ({gpuHill:F4}m) to match CPU ({bestHillCpu:F4}m) within 0.20m"); - } - } - - // Verify tile seam continuity across interior tile boundaries (< 0.01m) - float maxSeamErr = 0f; - float[] boundaries = { -192f, 0f, 192f }; - float[] offsets = { -280f, -96f, 96f, 280f }; - foreach (float bCoord in boundaries) - { - foreach (float ortho in offsets) - { - if (_main.Terrain.TrySampleBakedHeight(bCoord - 0.0001f, ortho, out float hL) && - _main.Terrain.TrySampleBakedHeight(bCoord + 0.0001f, ortho, out float hR)) - { - maxSeamErr = MathF.Max(maxSeamErr, MathF.Abs(hL - hR)); - } - if (_main.Terrain.TrySampleBakedHeight(ortho, bCoord - 0.0001f, out float hD) && - _main.Terrain.TrySampleBakedHeight(ortho, bCoord + 0.0001f, out float hU)) - { - maxSeamErr = MathF.Max(maxSeamErr, MathF.Abs(hD - hU)); - } - } - } - GD.Print($"SMOKE INFO: Max tile seam error={maxSeamErr:F5}m"); - Check(maxSeamErr < 0.01f, $"Expected tile seam error < 0.01m, got {maxSeamErr:F5}m"); - } - - _main.Session.State.Terrain.StampCrater(-96f, -96f, radius: 5f, depth: 1.4f); - _main.Terrain.Sync(_main.Session.State.Terrain); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - float cpuAfter = _main.Session.State.Terrain.SampleHeight(-96f, -96f); - Check(cpuAfter < cpuBefore - 0.8f, - $"Expected CPU terrain height to drop after crater stamp (before {cpuBefore:F2}m, after {cpuAfter:F2}m)"); - Check(_main.Terrain.DirtyRebakes == rebakesBefore + 1, - $"Expected 1 dirty tile rebake from isolated crater stamp, got {_main.Terrain.DirtyRebakes - rebakesBefore}"); - - if (!isHeadless) - { - bool hasGpuAfter = _main.Terrain.TrySampleBakedHeight(-96f, -96f, out float gpuAfter); - Check(hasGpuAfter, "Expected GPU HeightViewport readback to succeed after crater"); - if (hasGpuAfter) - { - float afterErr = MathF.Abs(gpuAfter - cpuAfter); - GD.Print($"SMOKE INFO: Crater-site post-stamp cpu={cpuAfter:F4}m gpu={gpuAfter:F4}m err={afterErr:F4}m"); - Check(afterErr <= 0.20f, - $"Expected baked GPU height ({gpuAfter:F4}m) to match CPU height ({cpuAfter:F4}m) after crater within 0.20m"); - Check(gpuAfter < gpuBefore - 0.8f, - $"Expected baked GPU height to drop after crater (before {gpuBefore:F4}m, after {gpuAfter:F4}m)"); - } - } - - // Regression check (Finding 4): 4-tile boundary crater at (0, 0) bakes all 4 tiles on Sync#1 (<= 0.20m error on all 4 quadrants) - // and passive Track throttling preserves DirtyTileMask until all tiles are baked without skipping via _rebakeCursor. - { - // Flush any lingering track rebakes first so baseline is clean - for (int flush = 0; flush < 32 && _main.Session.State.Terrain.DirtyTileMask != 0UL; flush++) - { - _main.Terrain.Sync(_main.Session.State.Terrain); - } - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - (float Qx, float Qz)[] quadrants = { (-1f, -1f), (1f, -1f), (-1f, 1f), (1f, 1f) }; - float[] qGpuBefore = new float[4]; - if (!isHeadless) - { - for (int q = 0; q < 4; q++) - { - Check(_main.Terrain.TrySampleBakedHeight(quadrants[q].Qx, quadrants[q].Qz, out qGpuBefore[q]), - $"Expected GPU readback before 4-tile boundary crater at quadrant {q}"); - } - } - - int rebakes4Before = _main.Terrain.DirtyRebakes; - _main.Session.State.Terrain.StampCrater(0f, 0f, radius: 6f, depth: 1.4f); - _main.Terrain.Sync(_main.Session.State.Terrain); // Sync#1 - Check(_main.Terrain.DirtyRebakes == rebakes4Before + 4, - $"Expected 4-tile boundary crater at (0,0) to bake all 4 tiles on Sync#1, got {_main.Terrain.DirtyRebakes - rebakes4Before}"); - Check(_main.Session.State.Terrain.StructuralDirtyTileMask == 0UL, - "Expected StructuralDirtyTileMask == 0 after Sync#1 on 4-tile boundary crater"); - - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - if (!isHeadless) - { - for (int q = 0; q < 4; q++) - { - float qCpu = _main.Session.State.Terrain.SampleHeight(quadrants[q].Qx, quadrants[q].Qz); - bool ok = _main.Terrain.TrySampleBakedHeight(quadrants[q].Qx, quadrants[q].Qz, out float qGpu); - Check(ok, $"Expected GPU readback on quadrant {q} after 4-tile boundary crater"); - if (ok) - { - float qErr = MathF.Abs(qGpu - qCpu); - GD.Print($"SMOKE INFO: 4-tile crater Q{q} ({quadrants[q].Qx},{quadrants[q].Qz}) cpu={qCpu:F4}m gpu={qGpu:F4}m err={qErr:F4}m"); - Check(qErr <= 0.20f, $"4-tile crater quadrant {q} GPU error {qErr:F4}m > 0.20m"); - Check(qGpu < qGpuBefore[q] - 0.35f, $"4-tile crater quadrant {q} did not depress on Sync#1 (before={qGpuBefore[q]:F4}, after={qGpu:F4})"); - } - } - } - - // Stamp 3 passive tracks in adjacent tiles so _rebakeCursor must advance across Sync#1 and Sync#2 without skipping - int rebakesTrackBefore = _main.Terrain.DirtyRebakes; - _main.Session.State.Terrain.StampTrack(-480f, -480f, 0f, 2f, 3f); - _main.Session.State.Terrain.StampTrack(-288f, -480f, 0f, 2f, 3f); - _main.Session.State.Terrain.StampTrack(-96f, -480f, 0f, 2f, 3f); - _main.Terrain.Sync(_main.Session.State.Terrain); - Check(_main.Terrain.DirtyRebakes == rebakesTrackBefore + 2, - $"Expected Sync#1 to throttle 3 passive tracks to 2 rebakes, got {_main.Terrain.DirtyRebakes - rebakesTrackBefore}"); - Check(_main.Session.State.Terrain.DirtyTileMask != 0UL, - "Expected DirtyTileMask to stay non-zero while 1 passive track tile remains dirty"); - _main.Terrain.Sync(_main.Session.State.Terrain); - Check(_main.Terrain.DirtyRebakes == rebakesTrackBefore + 3, - $"Expected Sync#2 to bake remaining 3rd passive track tile without _rebakeCursor skip, got {_main.Terrain.DirtyRebakes - rebakesTrackBefore}"); - Check(_main.Session.State.Terrain.DirtyTileMask == 0UL, - "Expected DirtyTileMask == 0 after all passive track tiles baked"); - } - - _main.SetPhysicsProcess(true); - - await VerifyHudAndShadersAsync(isHeadless); - await VerifyCut3bVehiclesAndMechanismsAsync(); - await MaybeCapturePreviewAsync(isHeadless); - await VerifyMaxLoadPaladinGarageAsync(); - } - - private async Task VerifyHudAndShadersAsync(bool isHeadless) - { - var invShader = _main.Hud.Schematic.ShaderMaterial.Shader; - Check(invShader is not null && !string.IsNullOrWhiteSpace(invShader.Code), - "inventory_grid.gdshader failed to load"); - - int chromeCount = 0; - foreach (var mat in _main.Hud.GetChromeMaterials()) - { - chromeCount++; - Check(mat.Shader is not null && !string.IsNullOrWhiteSpace(mat.Shader.Code), - $"panel_chrome.gdshader failed to load on HUD panel #{chromeCount}"); - } - Check(chromeCount == 5, $"Expected 5 ChromePanel materials on HUD, got {chromeCount}"); - - // Pack a real Ironclad chassis with mounted modules, thermal gradient, stripped cell, and active hit-pulse - var testGrid = new ChassisGrid(Catalog.Ironclad); - Check(testGrid.TryMount(Catalog.Recoilless, "hp.weapon.main"), "Expected Recoilless to mount on hp.weapon.main"); - Check(testGrid.TryMount(Catalog.Mg762, "hp.weapon.coax"), "Expected Mg762 to mount on hp.weapon.coax"); - Check(testGrid.TryMount(Catalog.TurboCore, "hp.engine.rear"), "Expected TurboCore to mount on hp.engine.rear"); - Check(testGrid.TryMount(Catalog.CopperRad, "hp.radiator.l"), "Expected CopperRad to mount on hp.radiator.l"); - Check(testGrid.TryMount(Catalog.WeldedPlate, "hp.armor.front"), "Expected WeldedPlate to mount on hp.armor.front"); - testGrid.InjectHardpointHeat("hp.engine.rear", 1800f); - testGrid.InjectHardpointHeat("hp.weapon.main", 900f); - testGrid.StepHeat(0.25f); - testGrid.Armor[0, 0] = 0f; // stripped armor cell - - var schematic = _main.Hud.Schematic; - schematic.SetGrid(testGrid); - schematic.TriggerHitPulse(1, 1, 1f); - - // Hit-testing verification: center of cell (1, 1) must map to (1, 1) and hardpoint "hp.weapon.main" - schematic.ComputeCellLayout(out float cellSize, out Vector2 origin); - Check(cellSize > 10f, $"Expected InventoryGridControl cellSize > 10px, got {cellSize:F2}"); - Vector2 probePos = origin + new Vector2(1.5f * cellSize, 1.5f * cellSize); - bool hitCell = schematic.TryGetCellAt(probePos, out var mappedCell); - Check(hitCell && mappedCell == new Vector2I(1, 1), - $"Expected TryGetCellAt to map center of (1,1) to (1,1), got hit={hitCell} cell={mappedCell}"); - var mappedHp = schematic.GetHardpointAt(1, 1); - Check(mappedHp is { Id: "hp.weapon.main" }, - $"Expected GetHardpointAt(1,1) to return hp.weapon.main, got {mappedHp?.Id ?? "null"}"); - - // Regression check (Finding 3): same-dimension SwapChassis updates _hardpointLookup and clears hover state - schematic._GuiInput(new InputEventMouseMotion { Position = probePos }); - Check(schematic.HoveredCell == new Vector2I(1, 1) && schematic.HoveredHardpoint is { Id: "hp.weapon.main" }, - $"Expected hover on (1,1)/hp.weapon.main before SwapChassis, got cell={schematic.HoveredCell} hp={schematic.HoveredHardpoint?.Id ?? "null"}"); - - bool hoverResetEmitted = false; - void OnSwapHoverChanged(Vector2I? cell, HardpointSpec? hp) - { - if (cell is null && hp is null) - { - hoverResetEmitted = true; - } - } - schematic.HoverChanged += OnSwapHoverChanged; - var altTankSpec = Catalog.Ironclad with - { - Id = "ironclad_alt", - Hardpoints = new[] - { - new HardpointSpec("wpn_swapped", HardpointKind.Weapon, 1, 1, 2, 2, 18f) - } - }; - testGrid.SwapChassis(altTankSpec); - schematic.SetGrid(testGrid); - schematic.HoverChanged -= OnSwapHoverChanged; - - Check(schematic.GetHardpointAt(1, 1) is { Id: "wpn_swapped" }, - $"Expected GetHardpointAt(1,1) to update to wpn_swapped after same-dimension SwapChassis, got {schematic.GetHardpointAt(1, 1)?.Id ?? "null"}"); - Check(schematic.GetHardpointAt(0, 1) is null, - $"Expected old hardpoint hp.weapon.coax at (0,1) to clear after SwapChassis, got {schematic.GetHardpointAt(0, 1)?.Id ?? "null"}"); - Check(schematic.HoveredCell is null && schematic.HoveredHardpoint is null && hoverResetEmitted, - $"Expected SwapChassis to clear hover and emit HoverChanged(null, null), cell={schematic.HoveredCell} emitted={hoverResetEmitted}"); - - // Re-seed Ironclad grid for GPU tests below - testGrid = new ChassisGrid(Catalog.Ironclad); - Check(testGrid.TryMount(Catalog.Recoilless, "hp.weapon.main"), "Expected Recoilless to remount on hp.weapon.main"); - Check(testGrid.TryMount(Catalog.Mg762, "hp.weapon.coax"), "Expected Mg762 to remount on hp.weapon.coax"); - Check(testGrid.TryMount(Catalog.TurboCore, "hp.engine.rear"), "Expected TurboCore to remount on hp.engine.rear"); - Check(testGrid.TryMount(Catalog.CopperRad, "hp.radiator.l"), "Expected CopperRad to remount on hp.radiator.l"); - Check(testGrid.TryMount(Catalog.WeldedPlate, "hp.armor.front"), "Expected WeldedPlate to remount on hp.armor.front"); - testGrid.InjectHardpointHeat("hp.engine.rear", 1800f); - testGrid.InjectHardpointHeat("hp.weapon.main", 900f); - testGrid.StepHeat(0.25f); - testGrid.Armor[0, 0] = 0f; - - // Restore live player grid to HUD and verify layout has no overlaps or clipping - _main.Hud.Sync(_main.Session); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - Vector2 vpSize = GetViewport().GetVisibleRect().Size; - Check(!_main.Hud.HasPanelOverlapOrClip(vpSize), $"Compact HUD panels overlapped or clipped at {vpSize}"); - _main.Hud.ToggleGarage(); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - Check(!_main.Hud.HasPanelOverlapOrClip(vpSize), $"Garage HUD panels overlapped or clipped at {vpSize}"); - _main.Hud.ToggleGarage(); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - if (isHeadless) - { - return; - } - - // GPU verification on OpenGL 3.3: render isolated InventoryGridControl (ambient vs live bilinear heat) & panel_chrome.gdshader - var gridVp = new SubViewport - { - Size = new Vector2I(240, 240), - TransparentBg = true, - RenderTargetUpdateMode = SubViewport.UpdateMode.Always - }; - var vpGrid = new InventoryGridControl - { - Size = new Vector2(240f, 240f), - CustomMinimumSize = new Vector2(240f, 240f) - }; - gridVp.AddChild(vpGrid); - AddChild(gridVp); - - var coolGrid = new ChassisGrid(Catalog.Ironclad); - coolGrid.TryMount(Catalog.Recoilless, "hp.weapon.main"); - coolGrid.TryMount(Catalog.Mg762, "hp.weapon.coax"); - coolGrid.TryMount(Catalog.TurboCore, "hp.engine.rear"); - coolGrid.TryMount(Catalog.CopperRad, "hp.radiator.l"); - coolGrid.TryMount(Catalog.WeldedPlate, "hp.armor.front"); - coolGrid.Armor[0, 0] = 0f; - - vpGrid.SetGrid(coolGrid); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var coolImg = gridVp.GetTexture().GetImage(); - int coolOpaque = CountNonZeroAlphaPixels(coolImg, 0.08f); - GD.Print($"SMOKE INFO: InventoryGrid GPU cool opaque pixels={coolOpaque}"); - Check(coolOpaque > 4000, $"Expected > 4000 rendered pixels from InventoryGrid shader, got {coolOpaque}"); - - vpGrid.SetGrid(testGrid); - vpGrid.TriggerHitPulse(1, 1, 1f); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var hotImg = gridVp.GetTexture().GetImage(); - int hotOpaque = CountNonZeroAlphaPixels(hotImg, 0.08f); - int heatDiff = CountDifferentPixels(coolImg, hotImg, 0.05f); - GD.Print($"SMOKE INFO: InventoryGrid GPU hot opaque={hotOpaque}, diff vs cool={heatDiff}"); - Check(hotOpaque > 4000, $"Expected > 4000 rendered pixels from heated InventoryGrid shader, got {hotOpaque}"); - Check(heatDiff > 400, $"Expected always-active temp_tex + hit pulse to visibly change > 400 pixels, got {heatDiff}"); - - // Finding 2 GPU check: overheated (350C..550C+) must obey blend_premul_alpha (out_rgb <= out_a) - testGrid.InjectHardpointHeat("hp.engine.rear", 45000f); - testGrid.InjectHardpointHeat("hp.weapon.main", 25000f); - testGrid.StepHeat(0.05f); - float hotTemp = testGrid.Temperature[1, 3]; - Check(hotTemp >= 350f, $"Expected overheated cell >= 350C for premul test, got {hotTemp:F1}C"); - vpGrid.SetGrid(testGrid); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var overheatImg = gridVp.GetTexture().GetImage(); - int premulViolations = CountPremulViolations(overheatImg, 0.01f); - GD.Print($"SMOKE INFO: InventoryGrid GPU overheat ({hotTemp:F1}C) premul violations={premulViolations}"); - Check(premulViolations == 0, $"Expected 0 blend_premul_alpha violations (max(RGB) > A + 0.01) on overheated grid, got {premulViolations}"); - - // Finding 1 GPU check: asymmetric heated Raptor chassis must leave 0 lit pixels in inactive cell holes - var raptorGrid = new ChassisGrid(Catalog.Raptor); - Check(raptorGrid.TryMount(Catalog.CopperRad, "hp.radiator.sh_l"), "Expected CopperRad on Raptor hp.radiator.sh_l"); - Check(raptorGrid.TryMount(Catalog.CopperRad, "hp.radiator.sh_r"), "Expected CopperRad on Raptor hp.radiator.sh_r"); - Check(raptorGrid.TryMount(Catalog.Autocannon, "hp.weapon.arm_l"), "Expected Autocannon on Raptor hp.weapon.arm_l"); - Check(raptorGrid.TryMount(Catalog.TurboCore, "hp.engine.chest"), "Expected TurboCore on Raptor hp.engine.chest"); - Check(raptorGrid.TryMount(Catalog.Autocannon, "hp.weapon.arm_r"), "Expected Autocannon on Raptor hp.weapon.arm_r"); - raptorGrid.InjectHardpointHeat("hp.engine.chest", 1800f); - raptorGrid.StepHeat(0.25f); - - vpGrid.SetGrid(raptorGrid); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var raptorImg = gridVp.GetTexture().GetImage(); - int raptorHoleScanned = 0; - int raptorHoleLit = 0; - int rw = raptorImg.GetWidth(); - int rh = raptorImg.GetHeight(); - for (int py = 0; py < rh; py++) - { - for (int px = 0; px < rw; px++) - { - if (vpGrid.TryGetCellAt(new Vector2(px + 0.5f, py + 0.5f), out var cell) && !Catalog.Raptor.IsActive(cell.X, cell.Y)) - { - raptorHoleScanned++; - Color c = raptorImg.GetPixel(px, py); - if (MathF.Max(MathF.Max(c.R, c.G), MathF.Max(c.B, c.A)) > 0.001f) - { - raptorHoleLit++; - } - } - } - } - GD.Print($"SMOKE INFO: Asymmetric Raptor hole lit pixels={raptorHoleLit} (scanned {raptorHoleScanned} hole px)"); - Check(raptorHoleScanned > 1000, $"Expected > 1000 inactive hole pixels scanned on Raptor, got {raptorHoleScanned}"); - Check(raptorHoleLit == 0, $"Expected 0 lit/opaque pixels in inactive Raptor cell holes, got {raptorHoleLit}"); - - // Finding 5 GPU check: LabelsOverlay redraws on temp-only change & compatibility highlights update when Cargo[0] swaps at unchanged index 0 - { - raptorGrid.Cargo.Clear(); - Check(raptorGrid.TryAddCargo(Catalog.Autocannon), "Expected Autocannon in Raptor Cargo[0]"); - vpGrid.SetGrid(raptorGrid, selectedCargoIndex: 0); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - int drawCountBeforeTemp = vpGrid.LabelsDrawCount; - string? tagBeforeTemp = vpGrid.GetLastDrawnLabel("hp.engine.chest"); - var cargoImgWeapon = gridVp.GetTexture().GetImage(); - - // Temp-only change (no armor hit, no mount change) - raptorGrid.InjectHardpointHeat("hp.engine.chest", 4200f); - raptorGrid.StepHeat(0.1f); - vpGrid.SetGrid(raptorGrid, selectedCargoIndex: 0); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - int drawCountAfterTemp = vpGrid.LabelsDrawCount; - string? tagAfterTemp = vpGrid.GetLastDrawnLabel("hp.engine.chest"); - Check(drawCountAfterTemp > drawCountBeforeTemp, - $"Expected LabelsOverlay to redraw on temp-only change ({drawCountBeforeTemp} -> {drawCountAfterTemp})"); - Check(!string.Equals(tagBeforeTemp, tagAfterTemp, StringComparison.Ordinal), - $"Expected engine temp label text to update on temp-only change ('{tagBeforeTemp}' -> '{tagAfterTemp}')"); - - // Cargo[0] replacement at unchanged selectedCargoIndex == 0 (Weapon -> Radiator) - raptorGrid.Cargo[0] = Catalog.CopperRad; - vpGrid.SetGrid(raptorGrid, selectedCargoIndex: 0); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var cargoImgRad = gridVp.GetTexture().GetImage(); - int cargoDiff = CountDifferentPixels(cargoImgWeapon, cargoImgRad, 0.05f); - GD.Print($"SMOKE INFO: InventoryGrid Cargo[0] swap diff pixels={cargoDiff}, label '{tagBeforeTemp}'->'{tagAfterTemp}'"); - Check(cargoDiff > 50, - $"Expected Cargo[0] replacement at unchanged index 0 to update compatibility highlight pixels (>50), got {cargoDiff}"); - } - - gridVp.QueueFree(); - - // GPU verification for panel_chrome.gdshader - var chromeVp = new SubViewport - { - Size = new Vector2I(240, 120), - TransparentBg = true, - RenderTargetUpdateMode = SubViewport.UpdateMode.Always - }; - var chromeShader = GD.Load("res://panel_chrome.gdshader"); - var chromeMat = new ShaderMaterial { Shader = chromeShader }; - chromeMat.SetShaderParameter("rect_size", new Vector2(240f, 120f)); - chromeMat.SetShaderParameter("accent_color", Color.FromHtml("#e08a4a")); - var chromeImgTex = Image.CreateEmpty(1, 1, false, Image.Format.Rgba8); - chromeImgTex.SetPixel(0, 0, Colors.White); - var chromeRect = new TextureRect - { - Texture = ImageTexture.CreateFromImage(chromeImgTex), - Size = new Vector2(240f, 120f), - ExpandMode = TextureRect.ExpandModeEnum.IgnoreSize, - StretchMode = TextureRect.StretchModeEnum.Scale, - Material = chromeMat - }; - chromeVp.AddChild(chromeRect); - AddChild(chromeVp); - - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var chromeImg = chromeVp.GetTexture().GetImage(); - int chromeOpaque = CountNonZeroAlphaPixels(chromeImg, 0.08f); - Color cornerPx = chromeImg.GetPixel(2, 2); - Color centerPx = chromeImg.GetPixel(120, 60); - GD.Print($"SMOKE INFO: panel_chrome GPU opaque={chromeOpaque}, corner={cornerPx}, center={centerPx}"); - Check(chromeOpaque > 10000, $"Expected > 10000 rendered pixels from panel_chrome.gdshader, got {chromeOpaque}"); - Check(cornerPx.R > centerPx.R + 0.25f, - $"Expected L-bracket corner pixel ({cornerPx}) to be accented brighter than panel center ({centerPx})"); - - chromeVp.QueueFree(); - } - - private async Task MaybeCapturePreviewAsync(bool isHeadless) - { - if (isHeadless) return; - - string? previewPath = null; - foreach (string arg in OS.GetCmdlineUserArgs()) - { - const string prefix = "--capture-preview="; - if (arg.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) - { - previewPath = arg[prefix.Length..]; - break; - } - } - - if (string.IsNullOrWhiteSpace(previewPath)) - { - return; - } - - if (!_main.Hud.GarageExpanded) - { - _main.Hud.ToggleGarage(); - } - - // Seed realistic combat telemetry so the preview clearly showcases armor stripping, hit-flash, cargo rack, and thermal heat - var player = _main.Session.State.Player; - var grid = player.Grid; - grid.TryAddCargo(Catalog.TouringPlasma); - grid.TryAddCargo(Catalog.GoldRadiator); - grid.InjectHardpointHeat("hp.engine.rear", 1100f); - grid.InjectHardpointHeat("hp.weapon.roof", 750f); - grid.StepHeat(0.15f); - grid.Armor[0, 0] = 0f; - - // Place two nearby rival contenders cleanly in the desert ahead of the player so the preview shows multiple Brokkr GLBs grounded on terrain - float fwdX = MathF.Sin(_main.CameraYaw); - float fwdZ = MathF.Cos(_main.CameraYaw); - float rightX = -fwdZ; - float rightZ = fwdX; - if (_main.Session.State.Contenders.Count > 2) - { - var r1 = _main.Session.State.Contenders[1]; - if (r1.Alive) - { - _main.Session.SetContenderPose(r1.Id, player.X + fwdX * 19f - rightX * 5.5f, player.Z + fwdZ * 19f - rightZ * 5.5f, _main.CameraYaw + MathF.PI * 0.82f); - } - var r2 = _main.Session.State.Contenders[2]; - if (r2.Alive) - { - _main.Session.SetContenderPose(r2.Id, player.X + fwdX * 26f + rightX * 8.5f, player.Z + fwdZ * 26f + rightZ * 8.5f, _main.CameraYaw - MathF.PI * 0.72f); - } - } - - _main.Arena.Sync(_main.Session, 1.5f, 1f / 60f); - _main.Hud.Sync(_main.Session); - _main.Hud.Schematic.TriggerHitPulse(1, 0, 0.9f); - - if (_main.Arena.GetContenderVisual(player.Id) is { } pVis) - { - Vector3 vehFwd = pVis.Root.GlobalTransform.Basis.Z.Normalized(); - if (pVis.GetMountedGearNode("hp.weapon.roof") is { } roofGun) - { - Vector3 gunFwd = roofGun.GlobalTransform.Basis.Z.Normalized(); - GD.Print($"SMOKE INFO: Preview Jackal yaw={player.Yaw:F3} vehFwd={vehFwd} roofGunFwd={gunFwd} dot={vehFwd.Dot(gunFwd):F3}"); - } - } - - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - var frameImg = GetViewport().GetTexture().GetImage(); - var err = frameImg.SavePng(previewPath); - GD.Print($"SMOKE INFO: Saved preview screenshot ({frameImg.GetWidth()}x{frameImg.GetHeight()}) to {previewPath} (err={err})"); - Check(err == Error.Ok, $"Failed to save preview screenshot to {previewPath}: {err}"); - } - - private async Task VerifyCut3bVehiclesAndMechanismsAsync() - { - var cache = _main.Arena.AssetCache; - cache.PreloadAll(); - - Check(cache.Vehicles.Count == 15, $"Expected 15 cached vehicle GLBs, got {cache.Vehicles.Count}"); - Check(cache.Gear.Count == 6, $"Expected 6 cached gear GLBs, got {cache.Gear.Count}"); - - // 1. All 15 vehicles bind 100% of hardpoint AnchorIds and attach/unmount gear cleanly - foreach (var spec in Catalog.AllChassis) - { - var pkg = Catalog.TryGetPackage(spec.Id); - Check(pkg is not null, $"Missing VehiclePackage for '{spec.Id}'"); - if (pkg is null) continue; - - var vis = VehicleVisualInstance.Create(cache, spec.Id, VehicleVisualRole.Player); - Check(CountMeshInstances(vis.Root) == 0, - $"Expected zero MeshInstance3D children on MultiMesh rig '{spec.Id}', got {CountMeshInstances(vis.Root)}"); - Check(vis.BoundHardpointCount == spec.Hardpoints.Length, - $"Expected {spec.Hardpoints.Length} bound hardpoints on '{spec.Id}', got {vis.BoundHardpointCount}"); - Check(vis.Joints.Count == pkg.Joints.Count, - $"Expected {pkg.Joints.Count} bound joints on '{spec.Id}', got {vis.Joints.Count}"); - Check(MathF.Abs(vis.Template.MinY) < 0.05f, - $"Expected grounded GLB MinY ~ 0 on '{spec.Id}', got {vis.Template.MinY:F4}"); - - var grid = Catalog.CreateWithDefaultLoadout(spec); - vis.SyncMountedGear(grid); - int mountedMeshes = 0; - foreach (var m in grid.Mounted) - { - var gNode = vis.GetMountedGearNode(m.HardpointId); - if (gNode is not null) - { - mountedMeshes++; - if (m.Spec.Kind == HardpointKind.Weapon) - { - (string frontPart, string rearPart) = m.Spec.Id switch - { - "mg_762" or "pd_flak" => ("barrel_inner", "receiver"), - "autocannon" or "flak" => ("muzzle_brake_L", "gun_housing"), - "recoilless" => ("sight_tube", "breech_band"), - _ => ("condenser_ring_2", "ivory_cowl") - }; - bool hasCentroids = vis.TryGetMountedWeaponCentroidsInModel( - m.HardpointId, frontPart, rearPart, out Vector3 frontC, out Vector3 rearC); - Check(hasCentroids, - $"Missing weapon submeshes '{frontPart}'/'{rearPart}' on '{spec.Id}.{m.HardpointId}' ({m.Spec.Id})"); - if (hasCentroids) - { - Vector3 muzzleDir = (frontC - rearC).Normalized(); - if (m.Spec.Id == "recoilless") - { - GD.Print($"SMOKE INFO: recoilless {spec.Id}.{m.HardpointId} sight_tube={frontC} breech={rearC} dir={muzzleDir}"); - Check(frontC.Z > rearC.Z + 0.20f, - $"Expected recoilless sight_tube (+Z) ahead of breech_band on '{spec.Id}.{m.HardpointId}', got sight={frontC}, breech={rearC}"); - } - Check(muzzleDir.Z > 0.75f, - $"Expected weapon '{m.Spec.Id}' on '{spec.Id}.{m.HardpointId}' mesh geometry to point forward (+Z), got dir={muzzleDir}"); - } - } - } - } - Check(mountedMeshes == grid.Mounted.Count && mountedMeshes > 0, - $"Expected all {grid.Mounted.Count} default modules on '{spec.Id}' to attach visible gear meshes, got {mountedMeshes}"); - - // Unmount first module and confirm gear node is removed cleanly - if (grid.Mounted.Count > 0) - { - string removedHp = grid.Mounted[0].HardpointId; - grid.Mounted.RemoveAt(0); - vis.SyncMountedGear(grid); - Check(vis.GetMountedGearNode(removedHp) is null, - $"Expected gear node on '{spec.Id}.{removedHp}' to be removed after unmount"); - } - - vis.Root.QueueFree(); - } - - // 2. Rig animator produces real non-zero transforms (> 0.001 rad) with zero NaNs across all mobility archetypes - VerifyRigMotion(cache, "jackal", "joint.wheel_fl", - new VehicleRigDriveInput(new Vector3(0f, 0f, 14f), 0f, 0f, 0f, -1f, 1f, 0f, 1f, 1f / 60f), - minRotRad: 0.001f); - VerifyRigMotion(cache, "hornet", "joint.rotor_l", - new VehicleRigDriveInput(new Vector3(0f, 0f, 10f), 0f, 0f, 0f, 0f, 1f, 1f, 1f, 1f / 60f), - minRotRad: 0.001f); - VerifyRigMotion(cache, "anvil", "joint.turret_yaw", - new VehicleRigDriveInput(Vector3.Zero, 0f, 0.85f, 0f, 0f, 0f, 0f, 1f, 1f / 60f), - minRotRad: 0.001f); - VerifyRigMotion(cache, "manticore", "joint.tail_yaw", - new VehicleRigDriveInput(new Vector3(0f, 0f, 6f), 0f, 0.70f, 18f, 0f, 0.8f, 0f, 1f, 1f / 60f), - minRotRad: 0.001f); - - // Breaker: verify oleo strut slide + scissor torque links + recess ram aiming - { - var breakerVis = VehicleVisualInstance.Create(cache, "breaker", VehicleVisualRole.Player); - Node3D? oleo = breakerVis.GetNamedNode("LegL.Oleo"); - Node3D? scissorUp = breakerVis.GetNamedNode("LegL.TorqueUp"); - Node3D? ram0 = breakerVis.GetNamedNode("LegL.RecessRam0"); - Check(oleo is not null && scissorUp is not null && ram0 is not null, - "Expected Breaker LegL.Oleo, LegL.TorqueUp, and LegL.RecessRam0 nodes to resolve"); - if (oleo is not null && scissorUp is not null && ram0 is not null) - { - Transform3D oleo0 = oleo.Transform; - Transform3D sc0 = scissorUp.Transform; - Transform3D ramRest = ram0.Transform; - var inp1 = new VehicleRigDriveInput(new Vector3(0f, -6f, 8f), 0f, 0.4f, 10f, 0f, 1f, 0f, 1f, 1f / 60f); - for (int s = 0; s < 10; s++) VehicleRigAnimator.Update(breakerVis, in inp1, Basis.Identity); - var inp2 = new VehicleRigDriveInput(new Vector3(0f, 3f, 8f), 0f, 0.4f, 10f, 0f, 1f, 0f, 1f, 1f / 60f); - for (int s = 0; s < 10; s++) VehicleRigAnimator.Update(breakerVis, in inp2, Basis.Identity); - - float oleoDelta = (oleo.Transform.Origin - oleo0.Origin).Length(); - float scDelta = sc0.Basis.GetRotationQuaternion().AngleTo(scissorUp.Transform.Basis.GetRotationQuaternion()); - float ramDelta = ramRest.Basis.GetRotationQuaternion().AngleTo(ram0.Transform.Basis.GetRotationQuaternion()); - GD.Print($"SMOKE INFO: Breaker mech deltas oleo={oleoDelta:F4}m scissor={scDelta:F4}rad ram={ramDelta:F4}rad"); - Check(oleoDelta > 0.0005f && !HasNaN(oleo.Transform), $"Expected Breaker LegL.Oleo motion > 0.0005m, got {oleoDelta:F5}"); - Check(scDelta > 0.001f && !HasNaN(scissorUp.Transform), $"Expected Breaker LegL.TorqueUp scissor rotation > 0.001rad, got {scDelta:F5}"); - Check(ramDelta > 0.001f && !HasNaN(ram0.Transform), $"Expected Breaker LegL.RecessRam0 aim rotation > 0.001rad, got {ramDelta:F5}"); - } - breakerVis.Root.QueueFree(); - } - - // 3. Part-by-cell armor detachment + hardpoint gear shear into DebrisSystem - { - var debris = new DebrisSystem { Name = "SmokeDebrisTest" }; - AddChild(debris); - var anvilGrid = Catalog.CreateWithDefaultLoadout(Catalog.Anvil); - var anvilVis = VehicleVisualInstance.Create(cache, "anvil", VehicleVisualRole.Player); - AddChild(anvilVis.Root); - anvilVis.SyncMountedGear(anvilGrid); - anvilVis.SyncDamageAndHeat(anvilGrid, debris, Vector3.Zero); - Check(debris.ActiveCount == 0, $"Expected 0 debris before armor strip, got {debris.ActiveCount}"); - - // Pick a cell that has detachable armor/shroud plates - int targetCx = -1, targetCy = -1; - for (int cy = 0; cy < anvilGrid.Spec.Height && targetCx < 0; cy++) - { - for (int cx = 0; cx < anvilGrid.Spec.Width; cx++) - { - if (anvilVis.CountDetachablePartsForCell(cx, cy) > 0) - { - targetCx = cx; - targetCy = cy; - break; - } - } - } - Check(targetCx >= 0, "Expected Anvil to have >= 1 cell with detachable armor/shroud parts"); - - // Strip that armor cell AND strip weapon hardpoint hp.weapon.siege_l - if (targetCx >= 0) - { - anvilGrid.Armor[targetCx, targetCy] = 0f; - } - var siegeHp = anvilGrid.FindHardpoint("hp.weapon.siege_l")!; - for (int dy = 0; dy < siegeHp.Height; dy++) - { - for (int dx = 0; dx < siegeHp.Width; dx++) - { - anvilGrid.Armor[siegeHp.X + dx, siegeHp.Y + dy] = 0f; - } - } - - anvilVis.SyncDamageAndHeat(anvilGrid, debris, new Vector3(2f, 0f, 4f)); - Check(debris.ActiveCount >= 2, - $"Expected >= 2 debris pieces (armor plate + sheared weapon gear), got {debris.ActiveCount}"); - Check(anvilVis.GetMountedGearNode("hp.weapon.siege_l") is null, - "Expected hp.weapon.siege_l gear to shear off when hardpoint becomes non-operational"); - - if (debris.TryGetPiecePosition(0, out Vector3 p0)) - { - for (int s = 0; s < 25; s++) - { - debris.Step(1f / 60f, _main.Session.State.Terrain); - } - debris.TryGetPiecePosition(0, out Vector3 p1); - float moved = p1.DistanceTo(p0); - Check(moved > 0.1f && p1.IsFinite(), - $"Expected debris piece to travel/fall > 0.1m under blast + gravity, got {moved:F3}m"); - } - - anvilVis.Root.QueueFree(); - debris.QueueFree(); - } - - // 4. Full Paladin hull + gear strip detaches every merged cell armor chunk + mounted gear under 256 cap - { - var debris = new DebrisSystem { Name = "SmokePaladinDebrisTest" }; - AddChild(debris); - var palGrid = Catalog.CreateWithDefaultLoadout(Catalog.Paladin); - var palVis = VehicleVisualInstance.Create(cache, "paladin", VehicleVisualRole.Player); - AddChild(palVis.Root); - palVis.SyncMountedGear(palGrid); - - int activeCellCount = 0; - int expectedCellChunks = 0; - for (int cy = 0; cy < palGrid.Spec.Height; cy++) - { - for (int cx = 0; cx < palGrid.Spec.Width; cx++) - { - if (palGrid.Spec.IsActive(cx, cy)) - { - activeCellCount++; - expectedCellChunks += palVis.CountDetachablePartsForCell(cx, cy); - } - palGrid.Armor[cx, cy] = 0f; - } - } - int expectedTotal = expectedCellChunks + palGrid.Mounted.Count; - palVis.SyncDamageAndHeat(palGrid, debris, new Vector3(1f, 0f, 3f)); - GD.Print($"SMOKE INFO: Full Paladin strip debris.ActiveCount={debris.ActiveCount} (activeCells={activeCellCount}, cellChunks={expectedCellChunks}, mounted={palGrid.Mounted.Count})"); - Check(debris.ActiveCount >= activeCellCount && debris.ActiveCount == expectedTotal && debris.ActiveCount <= 256, - $"Expected full Paladin strip to detach {expectedTotal} (>= {activeCellCount} active cells) pieces under 256 cap, got {debris.ActiveCount}"); - palVis.Root.QueueFree(); - debris.QueueFree(); - } - - // 5. All 15 ChassisDrop salvage wrecks ground within 0.05m of terrain & PickedUp frees drops cleanly - { - var drops = _main.Session.State.GroundDrops; - int baseCount = drops.Count; - _main.Arena.Sync(_main.Session, 1.0f, 1f / 60f); - int trackedBefore = _main.Arena.ActiveDropVisualCount; - - int nextId = 90000; - var added = new List(Catalog.AllChassis.Count); - float maxGroundErr = 0f; - for (int i = 0; i < Catalog.AllChassis.Count; i++) - { - var spec = Catalog.AllChassis[i]; - float dx = -80f + i * 11f; - float dz = -40f; - var d = new GroundDrop(nextId++, dx, dz, spec, null); - drops.Add(d); - added.Add(d); - } - - _main.Arena.Sync(_main.Session, 1.0f, 1f / 60f); - Check(_main.Arena.ActiveDropVisualCount == trackedBefore + added.Count, - $"Expected {trackedBefore + added.Count} tracked drop visuals, got {_main.Arena.ActiveDropVisualCount}"); - - for (int i = 0; i < added.Count; i++) - { - var d = added[i]; - bool hasDrop = _main.Arena.TryGetChassisDropVisual(d.Id, out var dropVis, out _); - Check(hasDrop && dropVis is not null, $"Missing ChassisDrop visual for Drop_{d.Id} ('{d.Chassis!.Id}')"); - if (hasDrop && dropVis is not null) - { - dropVis.SetLodState(useStaticLod: false, castShadows: false); - float minWorldY = dropVis.ComputeMinVertexY(); - float terrainY = _main.Session.State.Terrain.SampleHeight(d.X, d.Z); - float err = MathF.Abs(minWorldY - terrainY); - if (err > maxGroundErr) maxGroundErr = err; - Check(err <= 0.05f, - $"ChassisDrop '{d.Chassis!.Id}' buried/floating: minWorldY={minWorldY:F4}m terrainY={terrainY:F4}m err={err:F4}m"); - } - } - GD.Print($"SMOKE INFO: ChassisDrop max ground err={maxGroundErr:F4}m across {added.Count} chassis"); - - // Also verify far LOD (SingleSurfaceLodFarMesh) ChassisDrop grounding stays <= 0.05m across all 15 chassis - float maxFarGroundErr = 0f; - for (int i = 0; i < added.Count; i++) - { - var d = added[i]; - if (_main.Arena.TryGetChassisDropVisual(d.Id, out var dropVis, out _) && dropVis is not null) - { - dropVis.SetLodState(useStaticLod: true, castShadows: false); - float minFarWorldY = dropVis.ComputeMinVertexY(); - float terrainY = _main.Session.State.Terrain.SampleHeight(d.X, d.Z); - float err = MathF.Abs(minFarWorldY - terrainY); - if (err > maxFarGroundErr) maxFarGroundErr = err; - Check(err <= 0.05f, - $"Far LOD ChassisDrop '{d.Chassis!.Id}' buried/floating: minFarWorldY={minFarWorldY:F4}m terrainY={terrainY:F4}m err={err:F4}m"); - } - } - GD.Print($"SMOKE INFO: Far LOD ChassisDrop max ground err={maxFarGroundErr:F4}m across {added.Count} chassis"); - - for (int i = 0; i < added.Count; i++) - { - added[i].PickedUp = true; - } - _main.Arena.Sync(_main.Session, 1.1f, 1f / 60f); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - Check(_main.Arena.ActiveDropVisualCount == trackedBefore, - $"Expected picked-up drops removed from _dropVisuals ({trackedBefore}), got {_main.Arena.ActiveDropVisualCount}"); - - drops.RemoveRange(baseCount, added.Count); - } - - // 6. All 7 walkers stay grounded (minVertexY - restMinY >= -0.05m) and swing along +Z/-Z through a full stride cycle - { - var walkerChecks = new (string Id, string? FootNode, string? PelvisNode, bool CheckSagittal)[] - { - ("raptor", "LegL.Cannon", "Pelvis", true), - ("spectre", "LegL.Cannon", "Pelvis", true), - ("manticore", "FootFL", "Hull", true), - ("bastion", "Ankle.fl", "Trunk", true), - ("breaker", "LegL.Foot", "Pelvis", true), - ("paladin", "LegL.Ankle", "Pelvis", true), - ("kestrel", null, null, false), - }; - - foreach (var (wId, footNodeName, pelvisNodeName, checkSagittal) in walkerChecks) - { - var vis = VehicleVisualInstance.Create(cache, wId, VehicleVisualRole.Player); - float restMinY = vis.ComputeMinVertexY(relativeToModelRoot: true); - float worstRelMinY = float.PositiveInfinity; - float minFootZ = float.PositiveInfinity, maxFootZ = float.NegativeInfinity; - float minFootX = float.PositiveInfinity, maxFootX = float.NegativeInfinity; - Node3D? footNode = footNodeName is not null ? vis.GetNamedNode(footNodeName) : null; - Node3D? pelvisNode = pelvisNodeName is not null ? vis.GetNamedNode(pelvisNodeName) : null; - - var walkInp = new VehicleRigDriveInput( - new Vector3(0f, 0f, 8f), 0f, 0f, 0f, 0f, 1f, 0f, 1f, 0.05f); - - for (int step = 0; step < 48; step++) - { - VehicleRigAnimator.Update(vis, in walkInp, Basis.Identity); - float curMinY = vis.ComputeMinVertexY(relativeToModelRoot: true); - float relMinY = curMinY - restMinY; - if (relMinY < worstRelMinY) worstRelMinY = relMinY; - Check(!float.IsNaN(curMinY), $"NaN vertex Y on walker '{wId}' step {step}"); - - if (footNode is not null && pelvisNode is not null) - { - Vector3 fPos = TransformPointToAncestor(footNode, pelvisNode, Vector3.Zero); - if (fPos.Z < minFootZ) minFootZ = fPos.Z; - if (fPos.Z > maxFootZ) maxFootZ = fPos.Z; - if (fPos.X < minFootX) minFootX = fPos.X; - if (fPos.X > maxFootX) maxFootX = fPos.X; - } - } - - float zSpan = footNode is not null ? maxFootZ - minFootZ : 0f; - float xSpan = footNode is not null ? maxFootX - minFootX : 0f; - GD.Print($"SMOKE INFO: Walker {wId} stride minFootY={worstRelMinY:F4}m zSpan={zSpan:F3}m xSpan={xSpan:F3}m"); - Check(worstRelMinY >= -0.05f, - $"Walker '{wId}' foot plunged below rest floor: minRelY={worstRelMinY:F4}m"); - if (checkSagittal && footNode is not null) - { - Check(zSpan > 0.12f, - $"Expected walker '{wId}' foot '{footNodeName}' to stride along Z > 0.12m, got {zSpan:F3}m"); - Check(xSpan < 0.03f, - $"Expected walker '{wId}' foot '{footNodeName}' to swing cleanly in sagittal plane (xSpan < 0.03m), got {xSpan:F3}m"); - } - vis.Root.QueueFree(); - } - } - - // 7. VehicleRigAnimator.Update with dt == 0 is a strict no-op unless snap == true - { - var anvilVis = VehicleVisualInstance.Create(cache, "anvil", VehicleVisualRole.Player); - var driveInp = new VehicleRigDriveInput( - new Vector3(0f, 0f, 6f), 0f, 0.2f, 5f, 0.2f, 0.5f, 0f, 1f, 1f / 60f); - for (int s = 0; s < 10; s++) - { - VehicleRigAnimator.Update(anvilVis, in driveInp, Basis.Identity); - } - - var beforeTransforms = new Dictionary(); - foreach (var (jid, j) in anvilVis.Joints) - { - beforeTransforms[jid] = j.Node.Transform; - } - - var zeroDtInp = new VehicleRigDriveInput( - new Vector3(0f, 0f, 12f), 0f, 1.9f, 35f, -1f, 1f, 0f, 1f, 0f); - VehicleRigAnimator.Update(anvilVis, in zeroDtInp, Basis.Identity); - - float maxDelta = 0f; - foreach (var (jid, before) in beforeTransforms) - { - Transform3D after = anvilVis.Joints[jid].Node.Transform; - float dOrigin = (after.Origin - before.Origin).Length(); - float dRot = before.Basis.GetRotationQuaternion().AngleTo(after.Basis.GetRotationQuaternion()); - maxDelta = MathF.Max(maxDelta, MathF.Max(dOrigin, dRot)); - } - - VehicleRigAnimator.Update(anvilVis, in zeroDtInp, Basis.Identity, snap: true); - Transform3D snapped = anvilVis.Joints["joint.turret_yaw"].Node.Transform; - float snapDelta = beforeTransforms["joint.turret_yaw"].Basis.GetRotationQuaternion() - .AngleTo(snapped.Basis.GetRotationQuaternion()); - - GD.Print($"SMOKE INFO: Rig dt=0 maxDelta={maxDelta:F6} snapDelta={snapDelta:F4}rad"); - Check(maxDelta < 1e-6f, $"Expected dt == 0 Update (snap=false) to be a strict no-op, got maxDelta={maxDelta:F6}"); - Check(snapDelta > 0.5f, $"Expected dt == 0 Update (snap=true) to snap turret cleanly, got snapDelta={snapDelta:F4}rad"); - anvilVis.Root.QueueFree(); - } - - // 8. Spectator halo sits >= 0.75m above mounted dorsal gear (including Patron with turbo_core) - { - _main.Arena.Sync(_main.Session, 1.5f, 1f / 60f); - bool sawPatron = false; - foreach (var s in _main.Session.State.Spectators.Spectators) - { - if (!s.Alive) continue; - var vis = _main.Arena.GetSpectatorVisual(s.Id); - float? haloY = _main.Arena.GetSpectatorHaloLocalY(s.Id); - Check(vis is not null && haloY.HasValue, $"Missing spectator visual/halo for spectator #{s.Id}"); - if (vis is not null && haloY.HasValue) - { - float topY = vis.ComputeMountedMaxY(); - float clearance = haloY.Value - topY; - if (s.Tier == SpectatorTier.Patron) - { - sawPatron = true; - GD.Print($"SMOKE INFO: Spectator #{s.Id} ({s.Tier}/{s.Grid.Spec.Id}) mountedMaxY={topY:F3}m haloY={haloY.Value:F3}m clearance={clearance:F3}m"); - } - Check(clearance >= 0.74f, - $"Spectator #{s.Id} ({s.Tier}/{s.Grid.Spec.Id}) halo clearance < 0.74m: topY={topY:F3}m haloY={haloY.Value:F3}m clearance={clearance:F3}m"); - } - } - Check(sawPatron, "Expected at least one alive Patron spectator in arena"); - } - - // 9. Finding 3: Stripped distant rig (180m) detaches debris immediately without popping armor back on at far LOD - { - var debris = new DebrisSystem { Name = "SmokeDistantStripTest" }; - AddChild(debris); - var specGrid = Catalog.CreateWithDefaultLoadout(Catalog.Anvil); - var specVis = VehicleVisualInstance.Create(cache, "anvil", VehicleVisualRole.SpectatorPatron); - specVis.Root.Position = new Vector3(0f, 0f, 180f); - AddChild(specVis.Root); - specVis.SyncMountedGear(specGrid); - specVis.SetLodState(useStaticLod: true, castShadows: false); - Check(specVis.IsStaticLod && !specVis.ModelRoot.Visible, - "Expected intact distant rig at 180m to start in static far LOD"); - - int stripCx = -1, stripCy = -1; - for (int cy = 0; cy < specGrid.Spec.Height && stripCx < 0; cy++) - { - for (int cx = 0; cx < specGrid.Spec.Width; cx++) - { - if (specVis.CountDetachablePartsForCell(cx, cy) > 0) - { - stripCx = cx; - stripCy = cy; - break; - } - } - } - Check(stripCx >= 0, "Expected Anvil distant rig to have detachable cell parts"); - if (stripCx >= 0) - { - specGrid.Armor[stripCx, stripCy] = 0f; - } - - specVis.SyncDamageAndHeat(specGrid, debris, Vector3.Zero); - specVis.SetLodState(useStaticLod: true, castShadows: false); - Check(debris.ActiveCount >= 1, - $"Expected distant stripped rig at 180m to detach debris immediately, got {debris.ActiveCount}"); - Check(specVis.HasAnyStrippedCell && !specVis.IsStaticLod && specVis.ModelRoot.Visible, - "Expected distant stripped rig to keep ModelRoot visible without popping armor back on at far LOD"); - - specVis.Root.QueueFree(); - debris.QueueFree(); - } - - // 10. MultiMeshPartPool & PomDecalPool sanity: live arena submits into MultiMeshPartPool and PomDecalPool stamps impacts cleanly - { - _main.Arena.PomDecals.StampTestDecal( - new Vector3(_main.Session.State.Player.X + 2f, _main.Session.State.Terrain.SampleHeight(_main.Session.State.Player.X + 2f, _main.Session.State.Player.Z) + 0.03f, _main.Session.State.Player.Z), - Vector3.Up, 1.2f, tileIndex: 14); - _main.Arena.Sync(_main.Session, 1.6f, 1f / 60f); - Check(_main.Arena.PartPool.TotalSubmittedInstances > 0, - $"Expected MultiMeshPartPool to submit active instances, got {_main.Arena.PartPool.TotalSubmittedInstances}"); - Check(_main.Arena.PomDecals.ActiveCount >= 1, - $"Expected PomDecalPool to hold >= 1 active decal, got {_main.Arena.PomDecals.ActiveCount}"); - - _main.Hud.PushTestHitArc(_main.Session.State.Player.X + 20f, _main.Session.State.Player.Z + 10f, WeaponVisualClass.Explosive); - Check(_main.Hud.ActiveHitArcCount >= 1, "Expected CrosshairOverlay to accept incoming hit arc"); - } - - // 11. Finding 1: Merged MultiMeshPartPool meshes preserve real non-white material albedos and intact COLOR_0.R AO - { - foreach (string vid in new[] { "paladin", "jackal" }) - { - var tpl = cache.Vehicles[vid]; - var meshesToCheck = new List { tpl.SingleSurfaceStaticMesh }; - for (int i = 0; i < tpl.StaticRigidParts.Count; i++) meshesToCheck.Add(tpl.StaticRigidParts[i].Mesh); - for (int i = 0; i < tpl.DetachableRigidParts.Count; i++) meshesToCheck.Add(tpl.DetachableRigidParts[i].Mesh); - - float minAo = 1f; - float maxAo = 0f; - int whiteNeutralVerts = 0; - int darkNeutralVerts = 0; - int armorBandVerts = 0; - int totalVerts = 0; - - for (int m = 0; m < meshesToCheck.Count; m++) - { - ArrayMesh am = meshesToCheck[m]; - for (int s = 0; s < am.GetSurfaceCount(); s++) - { - var arr = am.SurfaceGetArrays(s); - if (arr.Count <= (int)Mesh.ArrayType.Color || - arr[(int)Mesh.ArrayType.Color].VariantType != Variant.Type.PackedColorArray || - arr[(int)Mesh.ArrayType.TexUV].VariantType != Variant.Type.PackedVector2Array || - arr[(int)Mesh.ArrayType.TexUV2].VariantType != Variant.Type.PackedVector2Array) - { - Check(false, $"Merged MultiMesh '{vid}' missing Color/UV/UV2 arrays"); - continue; - } - - Color[] cols = arr[(int)Mesh.ArrayType.Color].AsColorArray(); - Vector2[] uv0 = arr[(int)Mesh.ArrayType.TexUV].AsVector2Array(); - Vector2[] uv1 = arr[(int)Mesh.ArrayType.TexUV2].AsVector2Array(); - for (int v = 0; v < cols.Length; v++) - { - totalVerts++; - float ao = cols[v].R; - if (ao < minAo) minAo = ao; - if (ao > maxAo) maxAo = ao; - - int band = (int)MathF.Floor((uv1[v].Y + 0.5f) * 0.5f); - float r = uv0[v].X; - float g = uv0[v].Y; - float b = uv1[v].X; - if (band < 3) - { - if (r > 0.95f && g > 0.95f && b > 0.95f) whiteNeutralVerts++; - if (MathF.Max(r, MathF.Max(g, b)) < 0.15f) darkNeutralVerts++; - } - else if (band == 3) - { - armorBandVerts++; - } - } - } - } - - GD.Print($"SMOKE INFO: MechPaint '{vid}' verts={totalVerts} COLOR_0.R=[{minAo:F4}, {maxAo:F4}] whiteNeutral={whiteNeutralVerts} darkNeutral={darkNeutralVerts} armorBand={armorBandVerts}"); - Check(totalVerts > 0 && minAo >= 0.03f && maxAo > 0.90f, - $"Expected '{vid}' COLOR_0.R AO intact (min >= 0.03, max > 0.90), got [{minAo:F4}, {maxAo:F4}]"); - Check(whiteNeutralVerts == 0, - $"Expected zero white-washed band 0..2 vertices on '{vid}', got {whiteNeutralVerts}"); - Check(darkNeutralVerts > 0 && armorBandVerts > 0, - $"Expected both dark non-white rubber/gunmetal ({darkNeutralVerts}) and olive armor ({armorBandVerts}) vertices on '{vid}'"); - } - Check(VehicleVisualInstance.PerfMaterialDupCount == 0, - $"Expected zero StandardMaterial3D duplicates, got {VehicleVisualInstance.PerfMaterialDupCount}"); - } - - // 12. Finding 2: Monotonic TracerEvent.Id spawns muzzle flash + recoilless smoke puffs ONCE regardless of TTL or FPS - { - var tracers = _main.Session.State.Tracers; - tracers.Clear(); - _main.Arena.Sync(_main.Session, 1.69f, 0f); - int vfxBefore = _main.Arena.TransientVfxCount; - - int tracerId = _main.Session.State.AllocateTracerId(); - Vector3 pPos = new(_main.Session.State.Player.X, _main.Session.State.Player.Y, _main.Session.State.Player.Z); - tracers.Add(new TracerEvent( - pPos.X, pPos.Y + 1f, pPos.Z, - pPos.X + 20f, pPos.Y + 1f, pPos.Z, - 0xFFEEDDAAu, - 0.03f, // Low TTL (< old 0.085f threshold) simulating <=30 FPS decay - WeaponVisualClass.Explosive, - "recoilless", - tracerId)); - - _main.Arena.Sync(_main.Session, 1.70f, 0f); - int vfxAfterFirst = _main.Arena.TransientVfxCount; - Check(vfxAfterFirst == vfxBefore + 5 && _main.Arena.LastSpawnedTracerId == tracerId, - $"Expected recoilless tracer #{tracerId} with Ttl=0.03 to spawn 1 muzzle + 4 smoke puffs (+5 VFX), got +{vfxAfterFirst - vfxBefore} (lastId={_main.Arena.LastSpawnedTracerId})"); - - // Re-sync with dt=0 (simulating >=60/120 FPS seeing the same TracerEvent again): must NOT re-emit - _main.Arena.Sync(_main.Session, 1.71f, 0f); - _main.Arena.Sync(_main.Session, 1.72f, 0f); - Check(_main.Arena.TransientVfxCount == vfxAfterFirst, - $"Expected same TracerEvent #{tracerId} across repeated render frames to spawn VFX once, got {vfxAfterFirst} -> {_main.Arena.TransientVfxCount}"); - tracers.Clear(); - } - - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - } - - private void VerifyRigMotion( - VehicleAssetCache cache, - string vehicleId, - string jointId, - VehicleRigDriveInput input, - float minRotRad) - { - var vis = VehicleVisualInstance.Create(cache, vehicleId, VehicleVisualRole.Player); - Check(vis.Joints.TryGetValue(jointId, out var j), $"Missing joint '{jointId}' on '{vehicleId}'"); - if (j is not null) - { - Transform3D before = j.Node.Transform; - for (int s = 0; s < 20; s++) - { - VehicleRigAnimator.Update(vis, in input, Basis.Identity); - } - Transform3D after = j.Node.Transform; - float deltaRad = before.Basis.GetRotationQuaternion().AngleTo(after.Basis.GetRotationQuaternion()); - GD.Print($"SMOKE INFO: Rig {vehicleId}.{jointId} delta={deltaRad:F4}rad"); - Check(deltaRad > minRotRad && !HasNaN(after), - $"Expected {vehicleId}.{jointId} rotation delta > {minRotRad:F4}rad with zero NaNs, got {deltaRad:F5}"); - } - vis.Root.QueueFree(); - } - - private static int CountMeshInstances(Node cur) - { - int count = cur is MeshInstance3D ? 1 : 0; - for (int i = 0; i < cur.GetChildCount(); i++) - { - count += CountMeshInstances(cur.GetChild(i)); - } - return count; - } - - private static Vector3 TransformPointToAncestor(Node3D node, Node3D ancestor, Vector3 localPt) - { - Transform3D xf = Transform3D.Identity; - for (Node? cur = node; cur is Node3D n3d && cur != ancestor; cur = cur.GetParent()) - { - xf = n3d.Transform * xf; - } - return xf * localPt; - } - - private static Vector3? ComputeSubtreeVertexCentroidInAncestor(Node3D subRoot, Node3D ancestor, string partName) - { - Vector3 sum = Vector3.Zero; - int count = 0; - AccumulatePartCentroidRecursive(subRoot, ancestor, partName, ref sum, ref count); - return count > 0 ? sum / count : null; - } - - private static void AccumulatePartCentroidRecursive( - Node cur, - Node3D ancestor, - string partName, - ref Vector3 sum, - ref int count) - { - if (cur is MeshInstance3D mi && mi.Mesh is { } mesh && - mi.Name.ToString().Equals(partName, StringComparison.OrdinalIgnoreCase)) - { - Transform3D toAnc = Transform3D.Identity; - for (Node? p = mi; p is Node3D n3d && p != ancestor; p = p.GetParent()) - { - toAnc = n3d.Transform * toAnc; - } - int surfCount = mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arrays = mesh.SurfaceGetArrays(s); - if (arrays.Count <= (int)Mesh.ArrayType.Vertex || - arrays[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arrays[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - for (int v = 0; v < verts.Length; v++) - { - sum += toAnc * verts[v]; - count++; - } - } - } - - for (int i = 0; i < cur.GetChildCount(); i++) - { - AccumulatePartCentroidRecursive(cur.GetChild(i), ancestor, partName, ref sum, ref count); - } - } - - private static float ComputeSubtreeMinWorldY(Node3D root, float baseWorldY, bool relativeToModelRoot = false) - { - float minY = float.PositiveInfinity; - if (relativeToModelRoot) - { - Transform3D id = Transform3D.Identity; - for (int i = 0; i < root.GetChildCount(); i++) - { - AccumulateMinYRecursive(root.GetChild(i), id, ref minY); - } - } - else - { - AccumulateMinYRecursive(root, new Transform3D(Basis.Identity, new Vector3(0f, baseWorldY, 0f)), ref minY); - } - return minY; - } - - private static void AccumulateMinYRecursive(Node cur, Transform3D parentXf, ref float minY) - { - Transform3D xf = cur is Node3D n3d ? parentXf * n3d.Transform : parentXf; - if (cur is MeshInstance3D mi && mi.Mesh is { } mesh) - { - int surfCount = mesh.GetSurfaceCount(); - for (int s = 0; s < surfCount; s++) - { - var arrays = mesh.SurfaceGetArrays(s); - if (arrays.Count <= (int)Mesh.ArrayType.Vertex || - arrays[(int)Mesh.ArrayType.Vertex].VariantType != Variant.Type.PackedVector3Array) - { - continue; - } - Vector3[] verts = arrays[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - for (int v = 0; v < verts.Length; v++) - { - float wy = (xf * verts[v]).Y; - if (wy < minY) - { - minY = wy; - } - } - } - } - for (int i = 0; i < cur.GetChildCount(); i++) - { - AccumulateMinYRecursive(cur.GetChild(i), xf, ref minY); - } - } - - private static bool HasNaN(Transform3D t) - { - return !t.Origin.IsFinite() - || !t.Basis.X.IsFinite() - || !t.Basis.Y.IsFinite() - || !t.Basis.Z.IsFinite(); - } - - private async Task VerifyMaxLoadPaladinGarageAsync() - { - var grid = _main.Session.State.Player.Grid; - grid.SwapChassis(Catalog.Paladin); - Check(grid.TryMount(Catalog.TouringPlasma, "hp.weapon.sh_l"), "Expected TouringPlasma on Paladin hp.weapon.sh_l"); - Check(grid.TryMount(Catalog.WeldedPlate, "hp.armor.torso"), "Expected WeldedPlate on Paladin hp.armor.torso"); - Check(grid.TryMount(Catalog.TouringPlasma, "hp.weapon.sh_r"), "Expected TouringPlasma on Paladin hp.weapon.sh_r"); - Check(grid.TryMount(Catalog.GildedLance, "hp.weapon.arm_l"), "Expected GildedLance on Paladin hp.weapon.arm_l"); - Check(grid.TryMount(Catalog.NobleCore, "hp.engine.chest"), "Expected NobleCore on Paladin hp.engine.chest"); - Check(grid.TryMount(Catalog.GildedLance, "hp.weapon.arm_r"), "Expected GildedLance on Paladin hp.weapon.arm_r"); - Check(grid.TryMount(Catalog.GoldRadiator, "hp.radiator.back_l"), "Expected GoldRadiator on Paladin hp.radiator.back_l"); - Check(grid.TryMount(Catalog.WeldedPlate, "hp.armor.legs"), "Expected WeldedPlate on Paladin hp.armor.legs"); - Check(grid.TryMount(Catalog.GoldRadiator, "hp.radiator.back_r"), "Expected GoldRadiator on Paladin hp.radiator.back_r"); - - grid.Cargo.Clear(); - var cargoSpecs = new[] - { - Catalog.TouringPlasma, Catalog.GoldRadiator, Catalog.GildedLance, - Catalog.NobleCore, Catalog.Recoilless, Catalog.Autocannon, - Catalog.TurboCore, Catalog.CopperRad, Catalog.WeldedPlate - }; - for (int i = 0; i < cargoSpecs.Length; i++) - { - Check(grid.TryAddCargo(cargoSpecs[i]), $"Expected cargo slot #{i} ({cargoSpecs[i].Name}) to fit on Paladin"); - } - - if (!_main.Hud.GarageExpanded) - { - _main.Hud.ToggleGarage(); - } - _main.Hud.Sync(_main.Session); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - - Vector2 vpSize = GetViewport().GetVisibleRect().Size; - Rect2 blRect = _main.Hud.BottomLeftPanelRect; - Rect2 chyronRect = _main.Hud.ChyronPanelRect; - float chyronGap = chyronRect.Position.X - blRect.End.X; - GD.Print($"SMOKE INFO: Max-load Paladin Garage rect={blRect}, chyron gap={chyronGap:F1}px at {vpSize}"); - - Check(!_main.Hud.HasPanelOverlapOrClip(vpSize), $"Max-load Paladin Garage panels overlapped or clipped at {vpSize}"); - Check(blRect.End.X <= 610f, $"Expected max-load Paladin Garage End.X <= 610px, got {blRect.End.X:F1}"); - Check(!blRect.HasPoint(vpSize * 0.5f), $"Expected max-load Paladin Garage not to cover viewport center {vpSize * 0.5f}, rect={blRect}"); - Check(chyronGap > 80f, $"Expected > 80px breathing room between Garage and Chyron, got {chyronGap:F1}px"); - - _main.Hud.ToggleGarage(); - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - } - - private static int CountPremulViolations(Image img, float tolerance) - { - int count = 0; - int w = img.GetWidth(); - int h = img.GetHeight(); - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - Color c = img.GetPixel(x, y); - float maxRgb = MathF.Max(c.R, MathF.Max(c.G, c.B)); - if (maxRgb > c.A + tolerance) - { - count++; - } - } - } - return count; - } - - private static int CountNonZeroAlphaPixels(Image img, float minAlpha) - { - int count = 0; - int w = img.GetWidth(); - int h = img.GetHeight(); - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (img.GetPixel(x, y).A > minAlpha) count++; - } - } - return count; - } - - private static int CountDifferentPixels(Image a, Image b, float threshold) - { - int count = 0; - int w = Math.Min(a.GetWidth(), b.GetWidth()); - int h = Math.Min(a.GetHeight(), b.GetHeight()); - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - Color ca = a.GetPixel(x, y); - Color cb = b.GetPixel(x, y); - float diff = MathF.Abs(ca.R - cb.R) + MathF.Abs(ca.G - cb.G) + MathF.Abs(ca.B - cb.B) + MathF.Abs(ca.A - cb.A); - if (diff > threshold) count++; - } - } - return count; - } - - private void Check(bool condition, string message) - { - if (!condition) - { - _failures.Add(message); - } - } - - private void Finish() - { - if (_done) return; - _done = true; - foreach (var f in _failures) - { - GD.PrintErr("SMOKE FAIL: " + f); - } - GD.Print(_failures.Count == 0 ? "SMOKE PASS" : $"SMOKE FAILED ({_failures.Count})"); - GetTree().Quit(_failures.Count == 0 ? 0 : 1); - } -} diff --git a/client/tests/Smoke.tscn b/client/tests/Smoke.tscn deleted file mode 100644 index d05be64..0000000 --- a/client/tests/Smoke.tscn +++ /dev/null @@ -1,6 +0,0 @@ -[gd_scene load_steps=2 format=3] - -[ext_resource type="Script" path="res://tests/Smoke.cs" id="1"] - -[node name="Smoke" type="Node"] -script = ExtResource("1") diff --git a/client/tests/VisualProbe.cs b/client/tests/VisualProbe.cs deleted file mode 100644 index 05cb784..0000000 --- a/client/tests/VisualProbe.cs +++ /dev/null @@ -1,553 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using Godot; - -namespace RustToDust.Client.Tests; - -/// -/// Live OpenGL 3.3 (gl_compatibility) visual verification probe for: -/// - Baked COLOR_0 vertex weathering (AO, edge curvature, per-island hash, rest height) -/// - Brokkr 6-layer MechPaint spatial shader (mech_paint.gdshader) + INSTANCE_CUSTOM scorch/heat -/// - 4x4 POM MultiMesh decal atlas + decal_pom.gdshader in 1 draw call -/// Captures a 1280x720 preview PNG to tools/decals/previews/visual_substrate_preview.png and %TEMP%. -/// -public partial class VisualProbe : Node3D -{ - private readonly List _failures = new(); - private readonly List _disposables = new(); - - public override void _Ready() => _ = RunAsync(); - - public override void _ExitTree() - { - foreach (var d in _disposables) - { - d.Dispose(); - } - _disposables.Clear(); - } - - private void Check(bool cond, string msg) - { - if (!cond) - { - _failures.Add(msg); - GD.PushError("VISUAL_PROBE FAIL: " + msg); - } - } - - private async Task RunAsync() - { - int exitCode = 0; - try - { - string repoRoot = Path.GetFullPath(Path.Combine(ProjectSettings.GlobalizePath("res://"), "..")); - string decalsDir = Path.Combine(repoRoot, "assets", "decals"); - string previewRepoPath = Path.Combine(repoRoot, "tools", "decals", "previews", "visual_substrate_preview.png"); - string previewTempPath = Path.Combine(Path.GetTempPath(), "visual_substrate_preview.png"); - - SetupEnvironment(); - - var mechShader = GD.Load("res://mech_paint.gdshader"); - var decalShader = GD.Load("res://decal_pom.gdshader"); - Check(mechShader is not null, "Failed to load res://mech_paint.gdshader"); - Check(decalShader is not null, "Failed to load res://decal_pom.gdshader"); - if (mechShader is null || decalShader is null) - { - Finish(1); - return; - } - - ImageTexture albedoTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_albedo.png")); - ImageTexture normalTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_normal.png")); - ImageTexture ormhTex = LoadTextureWithMips(Path.Combine(decalsDir, "decal_atlas_ormh.png")); - - var cache = new VehicleAssetCache(); - _disposables.Add(cache); - var paladinTpl = cache.GetOrLoadVehicle("paladin"); - var jackalTpl = cache.GetOrLoadVehicle("jackal"); - - VerifyBakedVertexColors("paladin", paladinTpl.BakedStaticMesh); - VerifyBakedVertexColors("jackal", jackalTpl.BakedStaticMesh); - - // Ground desert pad - var groundMesh = new PlaneMesh { Size = new Vector2(48f, 48f) }; - var groundMat = new StandardMaterial3D - { - AlbedoColor = new Color(0.42f, 0.34f, 0.24f), - Roughness = 0.94f, - Metallic = 0.02f - }; - AddChild(new MeshInstance3D { Name = "DesertPad", Mesh = groundMesh, MaterialOverride = groundMat }); - - // Shared MechPaint ShaderMaterial variants (zero per-hit cloning) - var paladinArmorMat = MakeMechPaintMat(mechShader, new Color(0.306f, 0.341f, 0.251f), metallic: 0.22f, roughness: 0.58f, wear: 1.05f, grime: 0.95f, mud: 1.15f); - var jackalArmorMat = MakeMechPaintMat(mechShader, new Color(0.388f, 0.345f, 0.255f), metallic: 0.20f, roughness: 0.56f, wear: 1.15f, grime: 0.95f, mud: 1.25f, mudTop: 0.95f); - var gunmetalMat = MakeMechPaintMat(mechShader, new Color(0.173f, 0.188f, 0.180f), metallic: 0.78f, roughness: 0.42f, wear: 0.80f, grime: 1.10f, mud: 1.05f); - var copperMat = MakeMechPaintMat(mechShader, new Color(0.612f, 0.353f, 0.204f), metallic: 0.86f, roughness: 0.34f, wear: 0.65f, grime: 0.90f, mud: 0.80f); - var orangeMat = MakeMechPaintMat(mechShader, new Color(0.851f, 0.424f, 0.153f), metallic: 0.18f, roughness: 0.44f, wear: 1.10f, grime: 0.85f, mud: 0.90f); - var markMat = MakeMechPaintMat(mechShader, new Color(0.760f, 0.730f, 0.640f), metallic: 0.10f, roughness: 0.62f, wear: 0.95f, grime: 0.80f, mud: 0.80f); - - // Spawn Paladin (left-center, 3/4 view toward camera) - var paladinMesh = (ArrayMesh)paladinTpl.BakedStaticMesh.Duplicate(); - ApplyMechPaintSurfaces(paladinMesh, paladinArmorMat, gunmetalMat, copperMat, orangeMat, markMat); - var paladinXf = new Transform3D(new Basis(Vector3.Up, Mathf.DegToRad(24f)), new Vector3(-2.8f, 0f, -2.4f)); - var paladinMi = new MeshInstance3D - { - Name = "PaladinWeathered", - Mesh = paladinMesh, - Transform = paladinXf - }; - AddChild(paladinMi); - - // Spawn Jackal (right-midground, angled 3/4 toward camera) - var jackalMesh = (ArrayMesh)jackalTpl.BakedStaticMesh.Duplicate(); - ApplyMechPaintSurfaces(jackalMesh, jackalArmorMat, gunmetalMat, copperMat, orangeMat, markMat); - var jackalXf = new Transform3D(new Basis(Vector3.Up, Mathf.DegToRad(-38f)), new Vector3(3.4f, 0f, 1.2f)); - var jackalMi = new MeshInstance3D - { - Name = "JackalWeathered", - Mesh = jackalMesh, - Transform = jackalXf - }; - AddChild(jackalMi); - - // Foreground angled Armor Showcase Slab (MechPaint via MultiMesh showing clean vs INSTANCE_CUSTOM scorch+heat) - var slabMesh = BuildBeveledShowcaseSlab(3.2f, 1.26f, 0.14f); - var slabMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = slabMesh, - InstanceCount = 2 - }; - var slabXf0 = new Transform3D(new Basis(Vector3.Up, Mathf.DegToRad(14f)) * new Basis(Vector3.Right, Mathf.DegToRad(-22f)), new Vector3(1.15f, 1.85f, 6.2f)); - var slabXf1 = new Transform3D(new Basis(Vector3.Up, Mathf.DegToRad(-18f)) * new Basis(Vector3.Right, Mathf.DegToRad(-18f)) * Basis.FromScale(new Vector3(0.45f, 0.55f, 1.0f)), new Vector3(5.35f, 0.85f, 3.8f)); - slabMm.SetInstanceTransform(0, slabXf0); - slabMm.SetInstanceCustomData(0, new Color(0.0f, 0.0f, 0f, 0f)); // clean weathered chest-height plate - slabMm.SetInstanceTransform(1, slabXf1); - slabMm.SetInstanceCustomData(1, new Color(0.90f, 0.48f, 0f, 0f)); // live combat scorch + heat_glow without cloning! - - var slabMmi = new MultiMeshInstance3D - { - Name = "ShowcaseArmorPlates", - Multimesh = slabMm, - MaterialOverride = paladinArmorMat - }; - AddChild(slabMmi); - - // Build 1 single MultiMeshInstance3D batch of POM decals across Paladin, Jackal, and the Showcase Slab - var decalMat = new ShaderMaterial { Shader = decalShader }; - decalMat.SetShaderParameter("albedo_tex", albedoTex); - decalMat.SetShaderParameter("normal_tex", normalTex); - decalMat.SetShaderParameter("ormh_tex", ormhTex); - decalMat.SetShaderParameter("use_instance_custom", true); - decalMat.SetShaderParameter("default_depth_scale", 0.06f); - decalMat.SetShaderParameter("normal_offset", 0.004f); - - var decalPlacements = new List<(Transform3D Xform, Color Custom)>(); - - // Showcase slab POM decals (close 3/4 grazing angle so 3D depth & hot rims are unmistakable) - AddSlabDecal(decalPlacements, slabXf0, -1.16f, 0.30f, 0.07f, 0.48f, tile: 0, heat: 0.0f, opacity: 1.0f, depth: 0.080f); // louvered vent - AddSlabDecal(decalPlacements, slabXf0, -0.58f, 0.30f, 0.07f, 0.48f, tile: 1, heat: 0.0f, opacity: 1.0f, depth: 0.080f); // bolted hatch - AddSlabDecal(decalPlacements, slabXf0, 0.00f, 0.30f, 0.07f, 0.48f, tile: 3, heat: 0.0f, opacity: 1.0f, depth: 0.080f); // slotted intake grille - AddSlabDecal(decalPlacements, slabXf0, 0.58f, 0.30f, 0.07f, 0.48f, tile: 5, heat: 0.0f, opacity: 1.0f, depth: 0.070f); // welded patch - AddSlabDecal(decalPlacements, slabXf0, 1.16f, 0.30f, 0.07f, 0.46f, tile: 8, heat: 0.0f, opacity: 0.96f, depth: 0.03f); // stencil "03" - - AddSlabDecal(decalPlacements, slabXf0, -1.16f, -0.30f, 0.07f, 0.48f, tile: 6, heat: 0.0f, opacity: 1.0f, depth: 0.085f); // lift-lug pocket - AddSlabDecal(decalPlacements, slabXf0, -0.58f, -0.30f, 0.07f, 0.48f, tile: 7, heat: 0.0f, opacity: 0.96f, depth: 0.04f); // hazard chevron - AddSlabDecal(decalPlacements, slabXf0, 0.00f, -0.30f, 0.07f, 0.50f, tile: 12, heat: 0.95f, opacity: 1.0f, depth: 0.095f); // glowing AP hole - AddSlabDecal(decalPlacements, slabXf0, 0.58f, -0.30f, 0.07f, 0.50f, tile: 13, heat: 0.75f, opacity: 1.0f, depth: 0.085f); // shrapnel gouge - AddSlabDecal(decalPlacements, slabXf0, 1.16f, -0.30f, 0.07f, 0.50f, tile: 14, heat: 0.92f, opacity: 1.0f, depth: 0.090f); // molten plasma crater - - // Raycast flush decals directly onto Paladin armor surfaces - TryAddRayDecal(decalPlacements, paladinMesh, paladinXf, new Vector3(-2.6f, 8.2f, 3.0f), new Vector3(0f, -0.05f, -1f), 0.72f, tile: 0, heat: 0.0f, opacity: 1.0f, depth: 0.07f); - TryAddRayDecal(decalPlacements, paladinMesh, paladinXf, new Vector3(-1.5f, 8.8f, 3.0f), new Vector3(-0.2f, -0.05f, -1f), 0.65f, tile: 8, heat: 0.0f, opacity: 0.95f, depth: 0.03f); - TryAddRayDecal(decalPlacements, paladinMesh, paladinXf, new Vector3(-2.8f, 7.1f, 3.0f), new Vector3(0.05f, 0f, -1f), 0.72f, tile: 12, heat: 0.95f, opacity: 1.0f, depth: 0.09f); - TryAddRayDecal(decalPlacements, paladinMesh, paladinXf, new Vector3(-3.6f, 7.8f, 3.0f), new Vector3(0.25f, 0f, -1f), 0.65f, tile: 10, heat: 0.0f, opacity: 0.95f, depth: 0.03f); - - // Raycast flush decals onto Jackal armor surfaces - TryAddRayDecal(decalPlacements, jackalMesh, jackalXf, new Vector3(3.4f, 3.0f, 1.5f), new Vector3(0f, -1f, 0.1f), 0.55f, tile: 9, heat: 0.0f, opacity: 0.95f, depth: 0.03f); - TryAddRayDecal(decalPlacements, jackalMesh, jackalXf, new Vector3(3.1f, 2.5f, 2.1f), new Vector3(0.2f, -0.8f, -0.5f), 0.50f, tile: 14, heat: 0.85f, opacity: 1.0f, depth: 0.08f); - - var decalQuad = new QuadMesh { Size = Vector2.One }; - var decalMm = new MultiMesh - { - TransformFormat = MultiMesh.TransformFormatEnum.Transform3D, - UseCustomData = true, - Mesh = decalQuad, - InstanceCount = decalPlacements.Count - }; - for (int i = 0; i < decalPlacements.Count; i++) - { - decalMm.SetInstanceTransform(i, decalPlacements[i].Xform); - decalMm.SetInstanceCustomData(i, decalPlacements[i].Custom); - } - var decalMmi = new MultiMeshInstance3D - { - Name = "PomDecalsBatch", - Multimesh = decalMm, - MaterialOverride = decalMat, - CastShadow = GeometryInstance3D.ShadowCastingSetting.Off - }; - AddChild(decalMmi); - - // Camera framing full Paladin (head to feet) + Jackal + close grazing showcase slab - var cam = new Camera3D - { - Name = "ProbeCamera", - Current = true, - Fov = 48f, - Near = 0.08f, - Far = 200f - }; - AddChild(cam); - cam.GlobalPosition = new Vector3(2.8f, 4.3f, 13.4f); - cam.LookAt(new Vector3(0.0f, 4.4f, 0.2f), Vector3.Up); - - // Wait several rendered frames so OpenGL 3.3 compiles all shaders and finishes drawing - for (int f = 0; f < 6; f++) - { - await ToSignal(GetTree(), SceneTree.SignalName.ProcessFrame); - } - - if (DisplayServer.GetName() != "headless") - { - Image? cap = GetViewport().GetTexture()?.GetImage(); - Check(cap is not null && cap.GetWidth() == 1280 && cap.GetHeight() == 720, - $"Expected 1280x720 viewport capture, got {cap?.GetWidth()}x{cap?.GetHeight()}"); - if (cap is not null) - { - Directory.CreateDirectory(Path.GetDirectoryName(previewRepoPath)!); - cap.SavePng(previewRepoPath); - cap.SavePng(previewTempPath); - GD.Print($"VISUAL_PROBE SAVED: {previewRepoPath}"); - GD.Print($"VISUAL_PROBE SAVED: {previewTempPath}"); - } - } - - double drawCalls = RenderingServer.GetRenderingInfo(RenderingServer.RenderingInfo.TotalDrawCallsInFrame); - GD.Print($"VISUAL_PROBE INFO: renderer={RenderingServer.GetVideoAdapterName()} drawCalls={drawCalls} pomDecals={decalPlacements.Count}"); - Check(_failures.Count == 0, $"Encountered {_failures.Count} failures"); - } - catch (Exception ex) - { - Check(false, ex.ToString()); - } - - exitCode = _failures.Count == 0 ? 0 : 1; - GD.Print(exitCode == 0 ? "VISUAL_PROBE RESULT: PASS" : $"VISUAL_PROBE RESULT: FAIL ({_failures.Count})"); - Finish(exitCode); - } - - private void Finish(int code) - { - GetTree().Quit(code); - } - - private void SetupEnvironment() - { - var sun = new DirectionalLight3D - { - Name = "DesertSun", - LightColor = new Color(1.0f, 0.93f, 0.82f), - LightEnergy = 1.85f, - ShadowEnabled = true, - DirectionalShadowMode = DirectionalLight3D.ShadowMode.Parallel2Splits, - RotationDegrees = new Vector3(-38f, 36f, 0f) - }; - AddChild(sun); - - // Cool oblique fill light so POM recesses & metal rims catch clear specular highlights - var fill = new DirectionalLight3D - { - Name = "SkyFill", - LightColor = new Color(0.68f, 0.80f, 0.98f), - LightEnergy = 0.55f, - ShadowEnabled = false, - RotationDegrees = new Vector3(-25f, -125f, 0f) - }; - AddChild(fill); - - var skyMat = new ProceduralSkyMaterial - { - SkyTopColor = new Color(0.24f, 0.34f, 0.44f), - SkyHorizonColor = new Color(0.76f, 0.56f, 0.37f), - GroundBottomColor = new Color(0.28f, 0.20f, 0.14f), - GroundHorizonColor = new Color(0.68f, 0.48f, 0.32f) - }; - var env = new Godot.Environment - { - BackgroundMode = Godot.Environment.BGMode.Sky, - Sky = new Sky { SkyMaterial = skyMat }, - AmbientLightSource = Godot.Environment.AmbientSource.Sky, - AmbientLightEnergy = 0.65f - }; - AddChild(new WorldEnvironment { Name = "WorldEnv", Environment = env }); - } - - private void VerifyBakedVertexColors(string name, ArrayMesh mesh) - { - int surfCount = mesh.GetSurfaceCount(); - bool foundColor = false; - float minR = 1f, maxR = 0f, minG = 1f, maxG = 0f, minB = 1f, maxB = 0f, minA = 1f, maxA = 0f; - int totalVerts = 0; - for (int s = 0; s < surfCount; s++) - { - var arrays = mesh.SurfaceGetArrays(s); - if (arrays.Count > (int)Mesh.ArrayType.Color && - arrays[(int)Mesh.ArrayType.Color].VariantType == Variant.Type.PackedColorArray) - { - Color[] cols = arrays[(int)Mesh.ArrayType.Color].AsColorArray(); - foundColor = true; - totalVerts += cols.Length; - foreach (Color c in cols) - { - if (c.R < minR) minR = c.R; if (c.R > maxR) maxR = c.R; - if (c.G < minG) minG = c.G; if (c.G > maxG) maxG = c.G; - if (c.B < minB) minB = c.B; if (c.B > maxB) maxB = c.B; - if (c.A < minA) minA = c.A; if (c.A > maxA) maxA = c.A; - } - } - } - GD.Print($"COLOR_0 [{name}]: verts={totalVerts} AO=[{minR:F2},{maxR:F2}] Edge=[{minG:F2},{maxG:F2}] Island=[{minB:F2},{maxB:F2}] Height=[{minA:F2},{maxA:F2}]"); - Check(foundColor && totalVerts > 0, $"{name} missing baked COLOR_0 array"); - Check(minR < 0.35f && maxR > 0.85f, $"{name} AO range too narrow [{minR:F2},{maxR:F2}]"); - Check(maxG > 0.65f, $"{name} Edge curvature max too low ({maxG:F2})"); - Check(maxA - minA > 0.15f, $"{name} Rest height span too small [{minA:F2},{maxA:F2}]"); - } - - private static ImageTexture LoadTextureWithMips(string path) - { - var img = Image.LoadFromFile(path); - if (img is null) - { - throw new FileNotFoundException($"Could not load texture '{path}'", path); - } - img.GenerateMipmaps(); - return ImageTexture.CreateFromImage(img); - } - - private static ShaderMaterial MakeMechPaintMat( - Shader shader, - Color baseColor, - float metallic, - float roughness, - float wear, - float grime, - float mud, - float mudTop = 1.45f) - { - var mat = new ShaderMaterial { Shader = shader }; - mat.SetShaderParameter("base_color", baseColor); - mat.SetShaderParameter("metallic", metallic); - mat.SetShaderParameter("roughness", roughness); - mat.SetShaderParameter("wear", wear); - mat.SetShaderParameter("grime", grime); - mat.SetShaderParameter("mud", mud); - mat.SetShaderParameter("mud_top", mudTop); - return mat; - } - - private static void ApplyMechPaintSurfaces( - ArrayMesh mesh, - ShaderMaterial armorMat, - ShaderMaterial gunmetalMat, - ShaderMaterial copperMat, - ShaderMaterial orangeMat, - ShaderMaterial markMat) - { - int n = mesh.GetSurfaceCount(); - for (int s = 0; s < n; s++) - { - Material? orig = mesh.SurfaceGetMaterial(s); - string mName = (orig?.ResourceName ?? string.Empty).ToLowerInvariant(); - if (mName.Contains("glass") || mName.Contains("lamp") || mName.Contains("glow") || mName.Contains("cyan")) - { - continue; - } - if (mName.Contains("copper")) - { - mesh.SurfaceSetMaterial(s, copperMat); - } - else if (mName.Contains("signal") || mName.Contains("orange")) - { - mesh.SurfaceSetMaterial(s, orangeMat); - } - else if (mName.Contains("mark") || mName.Contains("stencil")) - { - mesh.SurfaceSetMaterial(s, markMat); - } - else if (mName.Contains("gunmetal") || mName.Contains("metal") || mName.Contains("steel") || mName.Contains("socket") || mName.Contains("pit") || mName.Contains("rubber")) - { - mesh.SurfaceSetMaterial(s, gunmetalMat); - } - else - { - mesh.SurfaceSetMaterial(s, armorMat); - } - } - } - - private static ArrayMesh BuildBeveledShowcaseSlab(float w, float h, float d) - { - // Build a subdivided box with baked COLOR_0 (flat faces G=0, sharp edges G=1, AO=0.9, island=0.42) - float hw = w * 0.5f, hh = h * 0.5f, hd = d * 0.5f; - var st = new SurfaceTool(); - st.Begin(Mesh.PrimitiveType.Triangles); - - void AddQuad(Vector3 a, Vector3 b, Vector3 c, Vector3 dPt, Vector3 nrm, float edgeA, float edgeB, float edgeC, float edgeD) - { - void V(Vector3 p, Vector2 uv, float edge) - { - float restH = Math.Clamp((p.Y + 4.2f) / 6.0f, 0f, 1f); - st.SetColor(new Color(0.92f, edge, 0.42f, restH)); - st.SetNormal(nrm); - st.SetUV(uv); - st.AddVertex(p); - } - // Clockwise front-face winding for Godot Spatial cull_back - V(a, new Vector2(0, 1), edgeA); - V(c, new Vector2(1, 0), edgeC); - V(b, new Vector2(1, 1), edgeB); - V(a, new Vector2(0, 1), edgeA); - V(dPt, new Vector2(0, 0), edgeD); - V(c, new Vector2(1, 0), edgeC); - } - - // Front (+Z) subdivided 3x1 so center interior vertices have edge=0 and outer corners have edge=0.95 - float x0 = -hw, x1 = -hw * 0.72f, x2 = hw * 0.72f, x3 = hw; - float y0 = -hh, y1 = -hh * 0.65f, y2 = hh * 0.65f, y3 = hh; - float[] xs = { x0, x1, x2, x3 }; - float[] ys = { y0, y1, y2, y3 }; - float[,] edges = { - { 0.95f, 0.85f, 0.85f, 0.95f }, - { 0.85f, 0.00f, 0.00f, 0.85f }, - { 0.85f, 0.00f, 0.00f, 0.85f }, - { 0.95f, 0.85f, 0.85f, 0.95f }, - }; - for (int iy = 0; iy < 3; iy++) - { - for (int ix = 0; ix < 3; ix++) - { - AddQuad( - new Vector3(xs[ix], ys[iy], hd), - new Vector3(xs[ix + 1], ys[iy], hd), - new Vector3(xs[ix + 1], ys[iy + 1], hd), - new Vector3(xs[ix], ys[iy + 1], hd), - Vector3.Back, - edges[iy, ix], edges[iy, ix + 1], edges[iy + 1, ix + 1], edges[iy + 1, ix]); - } - } - // Back & sides - AddQuad(new Vector3(hw, -hh, -hd), new Vector3(-hw, -hh, -hd), new Vector3(-hw, hh, -hd), new Vector3(hw, hh, -hd), Vector3.Forward, 0.9f, 0.9f, 0.9f, 0.9f); - AddQuad(new Vector3(-hw, hh, hd), new Vector3(hw, hh, hd), new Vector3(hw, hh, -hd), new Vector3(-hw, hh, -hd), Vector3.Up, 0.95f, 0.95f, 0.95f, 0.95f); - AddQuad(new Vector3(-hw, -hh, -hd), new Vector3(hw, -hh, -hd), new Vector3(hw, -hh, hd), new Vector3(-hw, -hh, hd), Vector3.Down, 0.95f, 0.95f, 0.95f, 0.95f); - AddQuad(new Vector3(-hw, -hh, -hd), new Vector3(-hw, -hh, hd), new Vector3(-hw, hh, hd), new Vector3(-hw, hh, -hd), Vector3.Left, 0.95f, 0.95f, 0.95f, 0.95f); - AddQuad(new Vector3(hw, -hh, hd), new Vector3(hw, -hh, -hd), new Vector3(hw, hh, -hd), new Vector3(hw, hh, hd), Vector3.Right, 0.95f, 0.95f, 0.95f, 0.95f); - st.GenerateTangents(); - return st.Commit(); - } - - private static void AddSlabDecal( - List<(Transform3D, Color)> list, - Transform3D slabXf, - float lx, - float ly, - float lz, - float size, - int tile, - float heat, - float opacity, - float depth) - { - var localXf = new Transform3D(Basis.FromScale(new Vector3(size, size, 1f)), new Vector3(lx, ly, lz)); - list.Add((slabXf * localXf, new Color(tile, heat, opacity, depth))); - } - - private static void TryAddRayDecal( - List<(Transform3D, Color)> list, - ArrayMesh mesh, - Transform3D meshXf, - Vector3 worldOrigin, - Vector3 worldDir, - float size, - int tile, - float heat, - float opacity, - float depth) - { - Transform3D inv = meshXf.AffineInverse(); - Vector3 localOrigin = inv * worldOrigin; - Vector3 localDir = (inv.Basis * worldDir).Normalized(); - - float bestT = float.PositiveInfinity; - Vector3 bestN = Vector3.Back; - - for (int s = 0; s < mesh.GetSurfaceCount(); s++) - { - var arr = mesh.SurfaceGetArrays(s); - if (arr.Count <= (int)Mesh.ArrayType.Vertex) continue; - Vector3[] verts = arr[(int)Mesh.ArrayType.Vertex].AsVector3Array(); - int[]? indices = arr.Count > (int)Mesh.ArrayType.Index && arr[(int)Mesh.ArrayType.Index].VariantType == Variant.Type.PackedInt32Array - ? arr[(int)Mesh.ArrayType.Index].AsInt32Array() - : null; - int triCount = (indices is not null ? indices.Length : verts.Length) / 3; - for (int t = 0; t < triCount; t++) - { - int i0 = indices is not null ? indices[t * 3] : t * 3; - int i1 = indices is not null ? indices[t * 3 + 1] : t * 3 + 1; - int i2 = indices is not null ? indices[t * 3 + 2] : t * 3 + 2; - Vector3 v0 = verts[i0], v1 = verts[i1], v2 = verts[i2]; - if (RayTriangle(localOrigin, localDir, v0, v1, v2, out float hitT)) - { - if (hitT < bestT) - { - Vector3 fn = (v1 - v0).Cross(v2 - v0); - if (fn.LengthSquared() > 1e-10f) - { - fn = fn.Normalized(); - if (fn.Dot(-localDir) < 0f) fn = -fn; - bestT = hitT; - bestN = fn; - } - } - } - } - } - - if (!float.IsFinite(bestT)) - { - return; - } - - Vector3 worldHit = meshXf * (localOrigin + localDir * bestT); - Vector3 worldN = (meshXf.Basis.Inverse().Transposed() * bestN).Normalized(); - Vector3 upRef = MathF.Abs(worldN.Y) > 0.92f ? Vector3.Forward : Vector3.Up; - Vector3 right = upRef.Cross(worldN).Normalized(); - Vector3 up = worldN.Cross(right).Normalized(); - var basis = new Basis(right * size, up * size, worldN); - list.Add((new Transform3D(basis, worldHit), new Color(tile, heat, opacity, depth))); - } - - private static bool RayTriangle(Vector3 orig, Vector3 dir, Vector3 v0, Vector3 v1, Vector3 v2, out float t) - { - t = 0f; - Vector3 e1 = v1 - v0; - Vector3 e2 = v2 - v0; - Vector3 pvec = dir.Cross(e2); - float det = e1.Dot(pvec); - if (MathF.Abs(det) < 1e-7f) return false; - float invDet = 1f / det; - Vector3 tvec = orig - v0; - float u = tvec.Dot(pvec) * invDet; - if (u < 0f || u > 1f) return false; - Vector3 qvec = tvec.Cross(e1); - float v = dir.Dot(qvec) * invDet; - if (v < 0f || u + v > 1f) return false; - t = e2.Dot(qvec) * invDet; - return t > 0.01f; - } -} diff --git a/client/tests/VisualProbe.tscn b/client/tests/VisualProbe.tscn deleted file mode 100644 index 1b39cde..0000000 --- a/client/tests/VisualProbe.tscn +++ /dev/null @@ -1,6 +0,0 @@ -[gd_scene load_steps=2 format=3] - -[ext_resource type="Script" path="res://tests/VisualProbe.cs" id="1"] - -[node name="VisualProbe" type="Node3D"] -script = ExtResource("1") diff --git a/src/RustToDust.Core/Broadcast.cs b/src/RustToDust.Core/Broadcast.cs deleted file mode 100644 index 25e3226..0000000 --- a/src/RustToDust.Core/Broadcast.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System.Collections.Generic; - -namespace RustToDust.Core -{ - public enum BroadcastKind - { - MatchStart, - TouristPull, - ExemplarWakeup, - PatronClearance, - ChassisSwap, - QuickBolt, - Overheat, - Elimination, - Victory - } - - public readonly record struct BroadcastLine(float Timestamp, BroadcastKind Kind, string Text); - - public sealed class BroadcastFeed - { - private const int MaxLines = 32; - private readonly List _lines = new(); - - public IReadOnlyList Lines => _lines; - public BroadcastLine? Latest => _lines.Count > 0 ? _lines[_lines.Count - 1] : null; - public long Version { get; private set; } - - public void Emit(float timestamp, BroadcastKind kind, string text) - { - if (_lines.Count >= MaxLines) - { - _lines.RemoveAt(0); - } - _lines.Add(new BroadcastLine(timestamp, kind, text)); - Version++; - } - - public void EmitMatchStart(float timestamp) => - Emit(timestamp, BroadcastKind.MatchStart, - "Imperial Broadcast opens the desert ring. Twelve unvarnished rigs enter for the gallery's amusement."); - - public void EmitTouristPull(float timestamp, int contenderId) => - Emit(timestamp, BroadcastKind.TouristPull, - $"Contender {contenderId + 1:00} fires on a gilded tourist — crude, lucrative, and deeply impolite."); - - public void EmitExemplarWakeup(float timestamp, int contenderId) => - Emit(timestamp, BroadcastKind.ExemplarWakeup, - $"An ornate exemplar accepts the provocation of Contender {contenderId + 1:00}. The gallery hushes."); - - public void EmitPatronClearance(float timestamp, int contenderId) => - Emit(timestamp, BroadcastKind.PatronClearance, - $"Contender {contenderId + 1:00} breaches the perimeter line; ring patrons take clearance to correct their posture."); - - public void EmitChassisSwap(float timestamp, int contenderId, string chassisName) => - Emit(timestamp, BroadcastKind.ChassisSwap, - $"Contender {contenderId + 1:00} sheds a ruin and mounts a {chassisName}. Vulgar improvisation, yet watchable."); - - public void EmitQuickBolt(float timestamp, int contenderId, string moduleName, string hardpointId) => - Emit(timestamp, BroadcastKind.QuickBolt, - $"Contender {contenderId + 1:00} quick-bolts {moduleName} onto {hardpointId} mid-run. Crude fieldcraft, live fire ready."); - - public void EmitOverheat(float timestamp, int contenderId) => - Emit(timestamp, BroadcastKind.Overheat, - $"Contender {contenderId + 1:00} glows past the thermal plateau — the crowd admires the smoke."); - - public void EmitElimination(float timestamp, string killerLabel, string victimLabel, bool bySpectator) - { - string line = bySpectator - ? $"{killerLabel} restores boundary decorum over {victimLabel}. Order keeps its shine." - : $"{killerLabel} performs a decisive eviction on {victimLabel}. The gallery notes the sincerity."; - Emit(timestamp, BroadcastKind.Elimination, line); - } - - public void EmitVictory(float timestamp, int winnerId) => - Emit(timestamp, BroadcastKind.Victory, - $"Contender {winnerId + 1:00} outlasts the dust and the gallery's patience. Broadcast closes with reluctant applause."); - } -} diff --git a/src/RustToDust.Core/Catalog.cs b/src/RustToDust.Core/Catalog.cs deleted file mode 100644 index 77a7160..0000000 --- a/src/RustToDust.Core/Catalog.cs +++ /dev/null @@ -1,494 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace RustToDust.Core -{ - public static class Catalog - { - private static readonly Dictionary _packagesById; - private static readonly Dictionary _chassisById; - private static readonly IReadOnlyList _allChassis; - - static Catalog() - { - var loaded = VehicleCatalogLoader.LoadAll(); - _packagesById = new Dictionary(StringComparer.OrdinalIgnoreCase); - _chassisById = new Dictionary(StringComparer.OrdinalIgnoreCase); - var list = new List(loaded.Count); - - foreach (var (pkg, spec) in loaded) - { - _packagesById[pkg.Id] = pkg; - _chassisById[spec.Id] = spec; - list.Add(spec); - } - - _allChassis = list.AsReadOnly(); - } - - private static ChassisSpec RequireChassis(string id) => - _chassisById.TryGetValue(id, out var spec) - ? spec - : throw new KeyNotFoundException($"Missing chassis '{id}' in loaded vehicle.cc catalog."); - - // ---------------- CHASSIS (15 BROKKR PACKAGES LOADED FROM .CC) ---------------- - - public static ChassisSpec Jackal => RequireChassis("jackal"); - public static ChassisSpec Mule => RequireChassis("mule"); - public static ChassisSpec Ferret => RequireChassis("ferret"); - public static ChassisSpec Hornet => RequireChassis("hornet"); - public static ChassisSpec Mammoth => RequireChassis("mammoth"); - public static ChassisSpec Ironclad => RequireChassis("ironclad"); - public static ChassisSpec Anvil => RequireChassis("anvil"); - public static ChassisSpec Condor => RequireChassis("condor"); - public static ChassisSpec Breaker => RequireChassis("breaker"); - public static ChassisSpec Paladin => RequireChassis("paladin"); - public static ChassisSpec Raptor => RequireChassis("raptor"); - public static ChassisSpec Manticore => RequireChassis("manticore"); - public static ChassisSpec Bastion => RequireChassis("bastion"); - public static ChassisSpec Spectre => RequireChassis("spectre"); - public static ChassisSpec Kestrel => RequireChassis("kestrel"); - - // Backward-compatible aliases for legacy Cut 1/2 call sites - public static ChassisSpec Buggy => Jackal; - public static ChassisSpec Technical => Mule; - public static ChassisSpec Tank => Anvil; - - public static IReadOnlyList AllChassis => _allChassis; - public static IReadOnlyDictionary ChassisById => _chassisById; - public static IReadOnlyDictionary PackagesById => _packagesById; - - public static VehiclePackage? TryGetPackage(string id) => - _packagesById.TryGetValue(id, out var pkg) ? pkg : null; - - // ---------------- HUMAN SALVAGE MODULES (9) ---------------- - - public static readonly ModuleSpec Mg762 = new( - Id: "mg_762", - Name: "7.62 Machine Gun", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 5f, - Conductivity: 9f, - OptimalTemp: 65f, - PlateauWidth: 70f, - MinTemp: 0f, - MaxTemp: 155f, - HeatOutput: 34f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 12f, - WeaponRange: 165f, - FireCooldown: 0.22f, - ProjectileSpeed: 220f, - SpreadRad: 0.035f, - BurstCount: 1); - - public static readonly ModuleSpec Autocannon = new( - Id: "autocannon", - Name: "Twin 20mm Autocannon", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 2, - IsImperial: false, - ThermalMass: 10f, - Conductivity: 10f, - OptimalTemp: 75f, - PlateauWidth: 70f, - MinTemp: 0f, - MaxTemp: 170f, - HeatOutput: 75f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 22f, - WeaponRange: 210f, - FireCooldown: 0.34f, - ProjectileSpeed: 250f, - SpreadRad: 0.025f, - BurstCount: 2); - - public static readonly ModuleSpec Flak = new( - Id: "flak", - Name: "Scrap Flak Scattergun", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 6f, - Conductivity: 8f, - OptimalTemp: 65f, - PlateauWidth: 70f, - MinTemp: 0f, - MaxTemp: 165f, - HeatOutput: 90f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 8.5f, - WeaponRange: 105f, - FireCooldown: 0.65f, - ProjectileSpeed: 185f, - SpreadRad: 0.14f, - BurstCount: 5); - - public static readonly ModuleSpec PointDefenseFlak = new( - Id: "pd_flak", - Name: "Flak Point-Defense", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 6f, - Conductivity: 10f, - OptimalTemp: 65f, - PlateauWidth: 80f, - MinTemp: 0f, - MaxTemp: 165f, - HeatOutput: 24f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 11f, - WeaponRange: 175f, - FireCooldown: 0.24f, - ProjectileSpeed: 340f, - SpreadRad: 0.045f, - BurstCount: 3, - IsWideArc: true, - MinPitchDeg: -10f, - MaxPitchDeg: 85f); - - public static readonly ModuleSpec Recoilless = new( - Id: "recoilless", - Name: "105mm Recoilless Rifle", - Kind: HardpointKind.Weapon, - Width: 2, - Height: 2, - IsImperial: false, - ThermalMass: 18f, - Conductivity: 11f, - OptimalTemp: 75f, - PlateauWidth: 80f, - MinTemp: 0f, - MaxTemp: 185f, - HeatOutput: 190f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 85f, - WeaponRange: 265f, - FireCooldown: 1.45f, - ProjectileSpeed: 280f, - SpreadRad: 0.01f, - BurstCount: 1); - - public static readonly ModuleSpec DieselCore = new( - Id: "diesel_core", - Name: "Salvaged Diesel Core", - Kind: HardpointKind.Engine, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 9f, - Conductivity: 9f, - OptimalTemp: 60f, - PlateauWidth: 80f, - MinTemp: 0f, - MaxTemp: 150f, - HeatOutput: 45f, - CoolingPower: 0f, - ThrustBonus: 4500f, - TurnBonus: 0.4f, - ArmorBonus: 0f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly ModuleSpec TurboCore = new( - Id: "turbo_core", - Name: "Supercharged V8", - Kind: HardpointKind.Engine, - Width: 1, - Height: 2, - IsImperial: false, - ThermalMass: 14f, - Conductivity: 10f, - OptimalTemp: 75f, - PlateauWidth: 70f, - MinTemp: 0f, - MaxTemp: 170f, - HeatOutput: 85f, - CoolingPower: 0f, - ThrustBonus: 12500f, - TurnBonus: 0.9f, - ArmorBonus: 0f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly ModuleSpec CopperRad = new( - Id: "copper_rad", - Name: "Copper Fin Radiator", - Kind: HardpointKind.Radiator, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 6f, - Conductivity: 15f, - OptimalTemp: 85f, - PlateauWidth: 90f, - MinTemp: 0f, - MaxTemp: 210f, - HeatOutput: 0f, - CoolingPower: 120f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly ModuleSpec WeldedPlate = new( - Id: "welded_plate", - Name: "Welded Scrap Plate", - Kind: HardpointKind.Armor, - Width: 1, - Height: 1, - IsImperial: false, - ThermalMass: 12f, - Conductivity: 6f, - OptimalTemp: 60f, - PlateauWidth: 120f, - MinTemp: -20f, - MaxTemp: 240f, - HeatOutput: 0f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 45f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - // ---------------- IMPERIAL TOURIST HIGH-END MODULES (6) ---------------- - - public static readonly ModuleSpec GildedLance = new( - Id: "gilded_lance", - Name: "Gilded Thermal Lance", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 2, - IsImperial: true, - ThermalMass: 11f, - Conductivity: 14f, - OptimalTemp: 90f, - PlateauWidth: 80f, - MinTemp: 0f, - MaxTemp: 210f, - HeatOutput: 95f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 54f, - WeaponRange: 285f, - FireCooldown: 0.55f, - ProjectileSpeed: 400f, - SpreadRad: 0.004f, - BurstCount: 1); - - public static readonly ModuleSpec TouringPlasma = new( - Id: "touring_plasma", - Name: "Touring Plasma Repeater", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 1, - IsImperial: true, - ThermalMass: 8f, - Conductivity: 14f, - OptimalTemp: 95f, - PlateauWidth: 80f, - MinTemp: 0f, - MaxTemp: 205f, - HeatOutput: 68f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 26f, - WeaponRange: 210f, - FireCooldown: 0.18f, - ProjectileSpeed: 310f, - SpreadRad: 0.02f, - BurstCount: 1); - - public static readonly ModuleSpec ImperialAegisPd = new( - Id: "aegis_pd", - Name: "Aegis Imperial PD", - Kind: HardpointKind.Weapon, - Width: 1, - Height: 1, - IsImperial: true, - ThermalMass: 8f, - Conductivity: 16f, - OptimalTemp: 90f, - PlateauWidth: 90f, - MinTemp: 0f, - MaxTemp: 215f, - HeatOutput: 26f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 16f, - WeaponRange: 215f, - FireCooldown: 0.16f, - ProjectileSpeed: 420f, - SpreadRad: 0.015f, - BurstCount: 2, - IsWideArc: true, - MinPitchDeg: -10f, - MaxPitchDeg: 85f); - - public static readonly ModuleSpec GoldRadiator = new( - Id: "gold_radiator", - Name: "Gold-Leaf Phase Radiator", - Kind: HardpointKind.Radiator, - Width: 1, - Height: 1, - IsImperial: true, - ThermalMass: 7f, - Conductivity: 24f, - OptimalTemp: 100f, - PlateauWidth: 110f, - MinTemp: 0f, - MaxTemp: 260f, - HeatOutput: 0f, - CoolingPower: 290f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 0f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly ModuleSpec NobleCore = new( - Id: "noble_core", - Name: "Overclocked Noble Core", - Kind: HardpointKind.Engine, - Width: 1, - Height: 2, - IsImperial: true, - ThermalMass: 15f, - Conductivity: 16f, - OptimalTemp: 105f, - PlateauWidth: 90f, - MinTemp: 0f, - MaxTemp: 225f, - HeatOutput: 110f, - CoolingPower: 0f, - ThrustBonus: 19500f, - TurnBonus: 1.45f, - ArmorBonus: 0f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly ModuleSpec GildedPlate = new( - Id: "gilded_plate", - Name: "Gilded Ceramic Plate", - Kind: HardpointKind.Armor, - Width: 1, - Height: 1, - IsImperial: true, - ThermalMass: 16f, - Conductivity: 4f, - OptimalTemp: 80f, - PlateauWidth: 140f, - MinTemp: -20f, - MaxTemp: 280f, - HeatOutput: 0f, - CoolingPower: 0f, - ThrustBonus: 0f, - TurnBonus: 0f, - ArmorBonus: 85f, - WeaponDamage: 0f, - WeaponRange: 0f, - FireCooldown: 0f, - ProjectileSpeed: 0f, - SpreadRad: 0f, - BurstCount: 0); - - public static readonly IReadOnlyList HumanModules = new[] - { - Mg762, Autocannon, Flak, PointDefenseFlak, Recoilless, DieselCore, TurboCore, CopperRad, WeldedPlate - }; - - public static readonly IReadOnlyList ImperialModules = new[] - { - GildedLance, TouringPlasma, ImperialAegisPd, GoldRadiator, NobleCore, GildedPlate - }; - - public static readonly IReadOnlyList AllModules = new[] - { - Mg762, Autocannon, Flak, PointDefenseFlak, Recoilless, DieselCore, TurboCore, CopperRad, WeldedPlate, - GildedLance, TouringPlasma, ImperialAegisPd, GoldRadiator, NobleCore, GildedPlate - }; - - public static readonly IReadOnlyDictionary ModulesById = - AllModules.ToDictionary(m => m.Id, StringComparer.OrdinalIgnoreCase); - - public static ChassisGrid CreateStarterBuggy() - { - var grid = new ChassisGrid(Jackal); - grid.TryMount(Mg762, "hp.weapon.roof"); - grid.TryMount(DieselCore, "hp.engine.rear"); - grid.TryMount(CopperRad, "hp.radiator.rear"); - return grid; - } - - public static ChassisGrid CreateWithDefaultLoadout(ChassisSpec spec) - { - var grid = new ChassisGrid(spec); - if (_packagesById.TryGetValue(spec.Id, out var pkg)) - { - foreach (var kvp in pkg.DefaultLoadout) - { - if (ModulesById.TryGetValue(kvp.Value, out var mod)) - { - grid.TryMount(mod, kvp.Key); - } - } - } - return grid; - } - } -} diff --git a/src/RustToDust.Core/GridChassis.cs b/src/RustToDust.Core/GridChassis.cs deleted file mode 100644 index 742154a..0000000 --- a/src/RustToDust.Core/GridChassis.cs +++ /dev/null @@ -1,1007 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace RustToDust.Core -{ - public enum GridPlane - { - Dorsal, - Coronal - } - - public enum MobilityKind - { - Wheeled, - Tracked, - Vtol, - Walker - } - - public enum HardpointKind - { - Weapon, - Engine, - Radiator, - Armor, - Utility - } - - public sealed record HardpointSpec( - string Id, - HardpointKind Kind, - int X, - int Y, - int Width, - int Height, - float ArmorBonus, - float MinPitchDeg = -15f, - float MaxPitchDeg = 45f, - bool IsWideArc = false); - - public sealed record ModuleSpec( - string Id, - string Name, - HardpointKind Kind, - int Width, - int Height, - bool IsImperial, - float ThermalMass, - float Conductivity, - float OptimalTemp, - float PlateauWidth, - float MinTemp, - float MaxTemp, - float HeatOutput, - float CoolingPower, - float ThrustBonus, - float TurnBonus, - float ArmorBonus, - float WeaponDamage, - float WeaponRange, - float FireCooldown, - float ProjectileSpeed, - float SpreadRad, - int BurstCount, - bool IsWideArc = false, - float MinPitchDeg = -15f, - float MaxPitchDeg = 45f) - { - /// - /// Exact Aetheria trapezoidal plateau curve: - /// 0 outside [MinTemp, MaxTemp], 1 on [OptimalTemp - PlateauWidth/2, OptimalTemp + PlateauWidth/2], - /// linear ramp between bounds and plateau. - /// - public float Performance(float temperature) - { - if (temperature <= MinTemp || temperature >= MaxTemp) - { - return 0f; - } - - float halfPlateau = PlateauWidth * 0.5f; - float lowPlateau = OptimalTemp - halfPlateau; - float highPlateau = OptimalTemp + halfPlateau; - - if (temperature >= lowPlateau && temperature <= highPlateau) - { - return 1f; - } - - if (temperature < lowPlateau) - { - float span = MathF.Max(1e-5f, lowPlateau - MinTemp); - return Math.Clamp((temperature - MinTemp) / span, 0f, 1f); - } - - float upperSpan = MathF.Max(1e-5f, MaxTemp - highPlateau); - return Math.Clamp((MaxTemp - temperature) / upperSpan, 0f, 1f); - } - } - - public sealed record ChassisSpec( - string Id, - string Name, - GridPlane Plane, - int Width, - int Height, - bool[] Mask, - HardpointSpec[] Hardpoints, - float HullConductivity, - float BaseCellThermalMass, - float BaseCellArmor, - float MassKg, - float BaseThrust, - float BaseTurnRate, - float MaxSpeed, - float HalfWidth, - float HalfHeight, - float HalfLength, - int CargoCapacity, - MobilityKind Mobility = MobilityKind.Wheeled, - float HoverMaxAltitudeM = 0f, - string VehicleClass = "") - { - public bool IsWalker => - Mobility == MobilityKind.Walker || - Plane == GridPlane.Coronal || - string.Equals(Id, "manticore", StringComparison.OrdinalIgnoreCase) || - string.Equals(Id, "bastion", StringComparison.OrdinalIgnoreCase); - - public bool IsVtol => Mobility == MobilityKind.Vtol; - - public bool IsActive(int x, int y) => - x >= 0 && x < Width && y >= 0 && y < Height && Mask[y * Width + x]; - } - - public sealed class MountedModule - { - public MountedModule(ModuleSpec spec, string hardpointId, float initialTemp) - { - Spec = spec; - HardpointId = hardpointId; - CurrentTemp = initialTemp; - CurrentPerformance = spec.Performance(initialTemp); - } - - public ModuleSpec Spec { get; } - public string HardpointId { get; } - public float Cooldown { get; set; } - public float CurrentTemp { get; set; } - public float CurrentPerformance { get; set; } - } - - public readonly record struct HitResult( - int CellX, - int CellY, - float ArmorDamage, - float CoreDamage, - bool CoreDestroyed); - - public sealed class ChassisGrid - { - public const float AmbientTemp = 20f; - public const float RadiationExponent = 1.6f; - public const float RadiationMultiplier = 0.015f; - - private static readonly (int Dx, int Dy)[] CardinalOffsets = - { - (1, 0), (-1, 0), (0, 1), (0, -1) - }; - - private float[,] _netHeat; - private float[,] _cellThermalMass; - private float[,] _cellConductivity; - - public ChassisGrid(ChassisSpec spec) - { - Spec = spec ?? throw new ArgumentNullException(nameof(spec)); - Temperature = new float[spec.Width, spec.Height]; - Armor = new float[spec.Width, spec.Height]; - MaxArmor = new float[spec.Width, spec.Height]; - BorderCells = new bool[spec.Width, spec.Height]; - _netHeat = new float[spec.Width, spec.Height]; - _cellThermalMass = new float[spec.Width, spec.Height]; - _cellConductivity = new float[spec.Width, spec.Height]; - InitializeGridState(spec, preserveCoreRatio: false, previousRatio: 1f); - } - - public ChassisSpec Spec { get; private set; } - public float[,] Temperature { get; private set; } - public float[,] Armor { get; private set; } - public float[,] MaxArmor { get; private set; } - public bool[,] BorderCells { get; private set; } - public List Mounted { get; } = new(); - public List Cargo { get; } = new(); - - public float CoreHp { get; private set; } - public float MaxCoreHp { get; private set; } - public bool IsDestroyed => CoreHp <= 0f; - public int HitSequence { get; private set; } - public int LastHitX { get; private set; } - public int LastHitY { get; private set; } - - public static bool CanFit(HardpointSpec hp, ModuleSpec mod) => - mod.Kind == hp.Kind && mod.Width <= hp.Width && mod.Height <= hp.Height; - - public HardpointSpec? FindHardpoint(string hardpointId) - { - for (int i = 0; i < Spec.Hardpoints.Length; i++) - { - if (Spec.Hardpoints[i].Id == hardpointId) - { - return Spec.Hardpoints[i]; - } - } - return null; - } - - public bool IsHardpointOperational(HardpointSpec hp) - { - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int x = hp.X + dx; - int y = hp.Y + dy; - if (Spec.IsActive(x, y) && Armor[x, y] > 0.01f) - { - return true; - } - } - } - return false; - } - - public bool IsHardpointOperational(string hardpointId) => - FindHardpoint(hardpointId) is { } hp && IsHardpointOperational(hp); - - public MountedModule? GetMountedOn(string hardpointId) - { - for (int i = 0; i < Mounted.Count; i++) - { - if (Mounted[i].HardpointId == hardpointId) - { - return Mounted[i]; - } - } - return null; - } - - public bool TryMount(ModuleSpec mod, string hardpointId, List? displacedOut = null) - { - var hp = FindHardpoint(hardpointId); - if (hp is null || !CanFit(hp, mod)) - { - return false; - } - - var existing = GetMountedOn(hardpointId); - if (existing is not null) - { - Mounted.Remove(existing); - if (Cargo.Count < Spec.CargoCapacity) - { - Cargo.Add(existing.Spec); - } - else - { - displacedOut?.Add(existing.Spec); - } - } - - float avgTemp = GetHardpointAverageTemp(hp); - Mounted.Add(new MountedModule(mod, hardpointId, avgTemp)); - RecalculateArmorAndThermal(grantNewArmorDelta: true); - return true; - } - - public bool TryEquipFromCargo(int cargoIndex, string hardpointId, List? displacedOut = null) - { - if (cargoIndex < 0 || cargoIndex >= Cargo.Count) - { - return false; - } - - var mod = Cargo[cargoIndex]; - var hp = FindHardpoint(hardpointId); - if (hp is null || !CanFit(hp, mod)) - { - return false; - } - - Cargo.RemoveAt(cargoIndex); - if (!TryMount(mod, hardpointId, displacedOut)) - { - Cargo.Insert(cargoIndex, mod); - return false; - } - return true; - } - - public bool TryAddCargo(ModuleSpec mod) - { - if (Cargo.Count >= Spec.CargoCapacity) - { - return false; - } - Cargo.Add(mod); - return true; - } - - public HardpointSpec? FindFirstEmptyCompatibleHardpoint(ModuleSpec mod) - { - for (int i = 0; i < Spec.Hardpoints.Length; i++) - { - var hp = Spec.Hardpoints[i]; - if (GetMountedOn(hp.Id) is null && CanFit(hp, mod)) - { - return hp; - } - } - return null; - } - - public bool TryQuickBoltOrCargo(ModuleSpec mod, out string? boltedHardpointId) - { - var freeHp = FindFirstEmptyCompatibleHardpoint(mod); - if (freeHp is not null && TryMount(mod, freeHp.Id)) - { - boltedHardpointId = freeHp.Id; - return true; - } - - boltedHardpointId = null; - return TryAddCargo(mod); - } - - public void InjectHeat(int x, int y, float heat) - { - if (!Spec.IsActive(x, y) || heat == 0f) - { - return; - } - float tm = MathF.Max(1f, _cellThermalMass[x, y]); - Temperature[x, y] = MathF.Max(AmbientTemp, Temperature[x, y] + heat / tm); - } - - public void InjectHardpointHeat(string hardpointId, float heat) - { - var hp = FindHardpoint(hardpointId); - if (hp is null || heat == 0f) - { - return; - } - - int activeCells = CountActiveCellsInHardpoint(hp); - if (activeCells == 0) - { - return; - } - - float perCell = heat / activeCells; - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int x = hp.X + dx; - int y = hp.Y + dy; - if (Spec.IsActive(x, y)) - { - InjectHeat(x, y, perCell); - } - } - } - } - - public void StepHeat(float dt) - { - if (dt <= 0f) - { - return; - } - - int w = Spec.Width; - int h = Spec.Height; - int substeps = Math.Max(1, (int)MathF.Ceiling(dt / 0.02f)); - float subDt = dt / substeps; - - for (int step = 0; step < substeps; step++) - { - Array.Clear(_netHeat, 0, _netHeat.Length); - - // 4-neighbor weighted conduction (conservative pairwise transfer) - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - - float t = Temperature[x, y]; - float c = _cellConductivity[x, y]; - - if (x + 1 < w && Spec.IsActive(x + 1, y)) - { - float pairCond = 0.5f * (c + _cellConductivity[x + 1, y]); - float flow = pairCond * (Temperature[x + 1, y] - t) * subDt; - _netHeat[x, y] += flow; - _netHeat[x + 1, y] -= flow; - } - - if (y + 1 < h && Spec.IsActive(x, y + 1)) - { - float pairCond = 0.5f * (c + _cellConductivity[x, y + 1]); - float flow = pairCond * (Temperature[x, y + 1] - t) * subDt; - _netHeat[x, y] += flow; - _netHeat[x, y + 1] -= flow; - } - } - } - - // Border-only radiative cooling - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y) || !BorderCells[x, y]) - { - continue; - } - - float t = MathF.Max(0f, Temperature[x, y]); - float radLoss = MathF.Pow(t, RadiationExponent) * RadiationMultiplier * subDt; - _netHeat[x, y] -= radLoss; - } - } - - // Active radiator cooling scaled by radiator's Performance(temp) - for (int i = 0; i < Mounted.Count; i++) - { - var mod = Mounted[i]; - if (mod.Spec.Kind != HardpointKind.Radiator || mod.Spec.CoolingPower <= 0f) - { - continue; - } - - var hp = FindHardpoint(mod.HardpointId); - if (hp is null) - { - continue; - } - - float perf = mod.Spec.Performance(mod.CurrentTemp); - if (perf <= 0f) - { - continue; - } - - int activeCells = CountActiveCellsInHardpoint(hp); - if (activeCells == 0) - { - continue; - } - - float coolPerCell = (mod.Spec.CoolingPower * perf * subDt) / activeCells; - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int cx = hp.X + dx; - int cy = hp.Y + dy; - if (Spec.IsActive(cx, cy)) - { - _netHeat[cx, cy] -= coolPerCell; - } - } - } - } - - // Integrate temperature with desert ambient floor - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - Temperature[x, y] = AmbientTemp; - continue; - } - - float tm = MathF.Max(1f, _cellThermalMass[x, y]); - float next = Temperature[x, y] + _netHeat[x, y] / tm; - Temperature[x, y] = MathF.Max(AmbientTemp, next); - } - } - - UpdateMountedTelemetry(); - } - } - - public HitResult ApplyHit(float localRight, float localForward, float localHeightNorm, float damage, float heatTransfer) - { - (int cx, int cy) = ResolveHitCell(localRight, localForward, localHeightNorm); - if (!Spec.IsActive(cx, cy)) - { - return new HitResult(0, 0, 0f, 0f, IsDestroyed); - } - - if (heatTransfer > 0f) - { - InjectHeat(cx, cy, heatTransfer); - } - - float absorbed = MathF.Min(Armor[cx, cy], MathF.Max(0f, damage)); - Armor[cx, cy] -= absorbed; - float spill = MathF.Max(0f, damage - absorbed); - - if (spill > 0f && CoreHp > 0f) - { - CoreHp = MathF.Max(0f, CoreHp - spill); - } - - HitSequence++; - LastHitX = cx; - LastHitY = cy; - - return new HitResult(cx, cy, absorbed, spill, IsDestroyed); - } - - public List SwapChassis(ChassisSpec next) - { - if (next is null) - { - throw new ArgumentNullException(nameof(next)); - } - - var previousMounted = new List(Mounted.Count); - for (int i = 0; i < Mounted.Count; i++) - { - previousMounted.Add(Mounted[i].Spec); - } - var previousCargo = new List(Cargo); - float coreRatio = MaxCoreHp > 0f ? CoreHp / MaxCoreHp : 1f; - - Mounted.Clear(); - Cargo.Clear(); - - Spec = next; - Temperature = new float[next.Width, next.Height]; - Armor = new float[next.Width, next.Height]; - MaxArmor = new float[next.Width, next.Height]; - BorderCells = new bool[next.Width, next.Height]; - _netHeat = new float[next.Width, next.Height]; - _cellThermalMass = new float[next.Width, next.Height]; - _cellConductivity = new float[next.Width, next.Height]; - - InitializeGridState(next, preserveCoreRatio: true, previousRatio: MathF.Max(0.75f, coreRatio)); - - var dropped = new List(); - - // Transfer every mounted module that fits a free hardpoint on the new chassis - foreach (var mod in previousMounted) - { - HardpointSpec? chosen = null; - for (int i = 0; i < next.Hardpoints.Length; i++) - { - var hp = next.Hardpoints[i]; - if (GetMountedOn(hp.Id) is null && CanFit(hp, mod)) - { - chosen = hp; - break; - } - } - - if (chosen is not null) - { - Mounted.Add(new MountedModule(mod, chosen.Id, AmbientTemp)); - } - else if (Cargo.Count < next.CargoCapacity) - { - Cargo.Add(mod); - } - else - { - dropped.Add(mod); - } - } - - foreach (var item in previousCargo) - { - if (Cargo.Count < next.CargoCapacity) - { - Cargo.Add(item); - } - else - { - dropped.Add(item); - } - } - - RecalculateArmorAndThermal(grantNewArmorDelta: true); - UpdateMountedTelemetry(); - return dropped; - } - - public float LegIntegrity - { - get - { - if (Spec.Plane != GridPlane.Coronal) - { - return 1f; - } - - int legStartY = Math.Max(0, Spec.Height - 2); - float cur = 0f; - float max = 0f; - for (int y = legStartY; y < Spec.Height; y++) - { - for (int x = 0; x < Spec.Width; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - cur += Armor[x, y]; - max += MaxArmor[x, y]; - } - } - - if (max <= 0f) - { - return 1f; - } - - float ratio = Math.Clamp(cur / max, 0f, 1f); - return 0.25f + 0.75f * ratio; - } - } - - public float ComputeEngineThermalPerformance() - { - float sum = 0f; - int count = 0; - for (int i = 0; i < Mounted.Count; i++) - { - var m = Mounted[i]; - if (m.Spec.Kind == HardpointKind.Engine) - { - sum += m.CurrentPerformance; - count++; - } - } - return count > 0 ? Math.Clamp(sum / count, 0f, 1f) : 0.4f; - } - - public float ComputeDriveThrust() - { - float engineThrust = 0f; - float enginePerfSum = 0f; - int engineCount = 0; - - for (int i = 0; i < Mounted.Count; i++) - { - var m = Mounted[i]; - if (m.Spec.Kind == HardpointKind.Engine) - { - engineThrust += m.Spec.ThrustBonus * m.CurrentPerformance; - enginePerfSum += m.CurrentPerformance; - engineCount++; - } - } - - float baseFactor = engineCount > 0 ? Math.Clamp(enginePerfSum / engineCount, 0.25f, 1f) : 0.4f; - return (Spec.BaseThrust * baseFactor + engineThrust) * LegIntegrity; - } - - public float ComputeTurnRate() - { - float bonus = 0f; - float enginePerfSum = 0f; - int engineCount = 0; - - for (int i = 0; i < Mounted.Count; i++) - { - var m = Mounted[i]; - if (m.Spec.Kind == HardpointKind.Engine) - { - bonus += m.Spec.TurnBonus * m.CurrentPerformance; - enginePerfSum += m.CurrentPerformance; - engineCount++; - } - } - - float baseFactor = engineCount > 0 ? Math.Clamp(enginePerfSum / engineCount, 0.35f, 1f) : 0.5f; - return (Spec.BaseTurnRate * baseFactor + bonus) * (0.5f + 0.5f * LegIntegrity); - } - - public float TotalArmorRatio() - { - float cur = 0f; - float max = 0f; - for (int y = 0; y < Spec.Height; y++) - { - for (int x = 0; x < Spec.Width; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - cur += Armor[x, y]; - max += MaxArmor[x, y]; - } - } - return max > 0f ? cur / max : 0f; - } - - private (int X, int Y) ResolveHitCell(float localRight, float localForward, float localHeightNorm) - { - int w = Spec.Width; - int h = Spec.Height; - - if (Spec.Plane == GridPlane.Coronal) - { - float targetX = (Math.Clamp(localRight, -1f, 1f) * 0.5f + 0.5f) * (w - 1); - float targetY = (1f - Math.Clamp(localHeightNorm, 0f, 1f)) * (h - 1); - - int bestX = 0; - int bestY = 0; - float bestDistSq = float.PositiveInfinity; - - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - float dx = x - targetX; - float dy = y - targetY; - float d2 = dx * dx + dy * dy; - if (d2 < bestDistSq) - { - bestDistSq = d2; - bestX = x; - bestY = y; - } - } - } - return (bestX, bestY); - } - - // GridPlane.Dorsal: map (localRight, localForward) onto the outer active cell facing the hit. - // Row y=0 is front (+localForward), row y=Height-1 is rear (-localForward). - float dirX = localRight; - float dirY = -localForward; - float len = MathF.Sqrt(dirX * dirX + dirY * dirY); - if (len < 1e-4f) - { - dirX = 0f; - dirY = -1f; - } - else - { - dirX /= len; - dirY /= len; - } - - int bestDx = 0; - int bestDy = 0; - float bestScore = float.NegativeInfinity; - - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - - float nx = (x + 0.5f) / w - 0.5f; - float ny = (y + 0.5f) / h - 0.5f; - - float proj = nx * dirX + ny * dirY; - float alignPenalty = ((nx - dirX * 0.5f) * (nx - dirX * 0.5f) + (ny - dirY * 0.5f) * (ny - dirY * 0.5f)) * 0.05f; - float borderBoost = BorderCells[x, y] ? 0.1f : 0f; - float score = proj + borderBoost - alignPenalty; - - if (score > bestScore) - { - bestScore = score; - bestDx = x; - bestDy = y; - } - } - } - - return (bestDx, bestDy); - } - - private void InitializeGridState(ChassisSpec spec, bool preserveCoreRatio, float previousRatio) - { - int activeCount = 0; - for (int y = 0; y < spec.Height; y++) - { - for (int x = 0; x < spec.Width; x++) - { - Temperature[x, y] = AmbientTemp; - if (!spec.IsActive(x, y)) - { - BorderCells[x, y] = false; - continue; - } - - activeCount++; - bool isBorder = false; - for (int i = 0; i < CardinalOffsets.Length; i++) - { - int nx = x + CardinalOffsets[i].Dx; - int ny = y + CardinalOffsets[i].Dy; - if (!spec.IsActive(nx, ny)) - { - isBorder = true; - break; - } - } - BorderCells[x, y] = isBorder; - } - } - - MaxCoreHp = 100f + activeCount * 8f + spec.BaseCellArmor * 2.5f; - CoreHp = preserveCoreRatio ? MaxCoreHp * Math.Clamp(previousRatio, 0.05f, 1f) : MaxCoreHp; - - RecalculateArmorAndThermal(grantNewArmorDelta: false); - for (int y = 0; y < spec.Height; y++) - { - for (int x = 0; x < spec.Width; x++) - { - Armor[x, y] = MaxArmor[x, y]; - } - } - } - - private void RecalculateArmorAndThermal(bool grantNewArmorDelta) - { - int w = Spec.Width; - int h = Spec.Height; - - float[,] previousMax = (float[,])MaxArmor.Clone(); - - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - MaxArmor[x, y] = 0f; - Armor[x, y] = 0f; - _cellThermalMass[x, y] = 1f; - _cellConductivity[x, y] = 0f; - continue; - } - - MaxArmor[x, y] = Spec.BaseCellArmor; - _cellThermalMass[x, y] = Spec.BaseCellThermalMass; - _cellConductivity[x, y] = Spec.HullConductivity; - } - } - - for (int i = 0; i < Spec.Hardpoints.Length; i++) - { - var hp = Spec.Hardpoints[i]; - if (hp.ArmorBonus == 0f) - { - continue; - } - - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int x = hp.X + dx; - int y = hp.Y + dy; - if (Spec.IsActive(x, y)) - { - MaxArmor[x, y] += hp.ArmorBonus; - } - } - } - } - - for (int i = 0; i < Mounted.Count; i++) - { - var mod = Mounted[i]; - var hp = FindHardpoint(mod.HardpointId); - if (hp is null) - { - continue; - } - - int activeCells = CountActiveCellsInHardpoint(hp); - if (activeCells == 0) - { - continue; - } - - float tmShare = mod.Spec.ThermalMass / activeCells; - float armorShare = mod.Spec.ArmorBonus / activeCells; - - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int x = hp.X + dx; - int y = hp.Y + dy; - if (!Spec.IsActive(x, y)) - { - continue; - } - - _cellThermalMass[x, y] += tmShare; - _cellConductivity[x, y] = MathF.Max(_cellConductivity[x, y], mod.Spec.Conductivity); - MaxArmor[x, y] += armorShare; - } - } - } - - if (grantNewArmorDelta) - { - for (int y = 0; y < h; y++) - { - for (int x = 0; x < w; x++) - { - if (!Spec.IsActive(x, y)) - { - continue; - } - float delta = MaxArmor[x, y] - previousMax[x, y]; - if (delta > 0f) - { - Armor[x, y] = MathF.Min(MaxArmor[x, y], Armor[x, y] + delta); - } - else - { - Armor[x, y] = MathF.Min(Armor[x, y], MaxArmor[x, y]); - } - } - } - } - } - - private int CountActiveCellsInHardpoint(HardpointSpec hp) - { - int count = 0; - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - if (Spec.IsActive(hp.X + dx, hp.Y + dy)) - { - count++; - } - } - } - return count; - } - - private float GetHardpointAverageTemp(HardpointSpec hp) - { - float sum = 0f; - int count = 0; - for (int dy = 0; dy < hp.Height; dy++) - { - for (int dx = 0; dx < hp.Width; dx++) - { - int x = hp.X + dx; - int y = hp.Y + dy; - if (Spec.IsActive(x, y)) - { - sum += Temperature[x, y]; - count++; - } - } - } - return count > 0 ? sum / count : AmbientTemp; - } - - private void UpdateMountedTelemetry() - { - for (int i = 0; i < Mounted.Count; i++) - { - var mod = Mounted[i]; - var hp = FindHardpoint(mod.HardpointId); - if (hp is null) - { - continue; - } - float avgTemp = GetHardpointAverageTemp(hp); - mod.CurrentTemp = avgTemp; - mod.CurrentPerformance = mod.Spec.Performance(avgTemp); - } - } - } -} diff --git a/src/RustToDust.Core/MatchRules.cs b/src/RustToDust.Core/MatchRules.cs deleted file mode 100644 index 6d982d7..0000000 --- a/src/RustToDust.Core/MatchRules.cs +++ /dev/null @@ -1,522 +0,0 @@ -using System; -using System.Numerics; - -namespace RustToDust.Core -{ - public delegate bool LineOfSightCheck(float ax, float ay, float az, float bx, float by, float bz); - - public static class MatchRules - { - public const float VtolMinClearanceAgl = 2.5f; - - public static float GetObserverEyeY(float y, float halfHeight) => y + halfHeight * 1.4f; - public static float GetTargetAimY(float y, float halfHeight) => y + halfHeight * 0.35f; - - public static (float MinPitchDeg, float MaxPitchDeg) GetEffectivePitchArc(HardpointSpec hp, ModuleSpec? mod) - { - if (mod is not null && mod.IsWideArc) - { - return (MathF.Min(hp.MinPitchDeg, mod.MinPitchDeg), MathF.Max(hp.MaxPitchDeg, mod.MaxPitchDeg)); - } - if (hp.IsWideArc) - { - return (MathF.Min(hp.MinPitchDeg, -10f), MathF.Max(hp.MaxPitchDeg, 85f)); - } - return (hp.MinPitchDeg, hp.MaxPitchDeg); - } - - public static float ComputeLocalPitchDeg(Vector3 aimDelta, Quaternion chassisQuat) - { - Vector3 local = Vector3.Transform(aimDelta, Quaternion.Conjugate(chassisQuat)); - float horiz = MathF.Sqrt(local.X * local.X + local.Z * local.Z); - return MathF.Atan2(local.Y, horiz) * (180f / MathF.PI); - } - - public static float NormalizeAngle(float rad) - { - if (!float.IsFinite(rad)) - { - return 0f; - } - rad = MathF.IEEERemainder(rad, MathF.Tau); - if (rad > MathF.PI) rad -= MathF.Tau; - if (rad < -MathF.PI) rad += MathF.Tau; - return rad; - } - - public static void ApplyPlayerInput(MatchState state, PlayerInput input) - { - var player = state.Player; - if (!player.Alive) - { - player.ThrottleCmd = 0f; - player.SteerCmd = 0f; - player.VerticalThrottleCmd = 0f; - player.FireCmd = false; - player.BrakeCmd = true; - return; - } - - player.ThrottleCmd = Math.Clamp(input.Throttle, -1f, 1f); - player.SteerCmd = Math.Clamp(input.Steer, -1f, 1f); - player.VerticalThrottleCmd = Math.Clamp(input.VerticalThrottle, -1f, 1f); - player.AimX = input.AimWorldX; - player.AimY = input.AimWorldY; - player.AimZ = input.AimWorldZ; - player.FireCmd = input.Fire; - player.BrakeCmd = input.Brake; - - if (input.InteractPickup) - { - state.TryInteractNearestDrop(0); - } - } - - public static void UpdateAiContenders(MatchState state, float dt, LineOfSightCheck? hasLos = null, int tickIndex = -1) - { - float safeLimit = MathF.Max(30f, state.Spectators.SafeRadius - 25f); - - for (int i = 0; i < state.Contenders.Count; i++) - { - var ai = state.Contenders[i]; - if (ai.IsPlayer || !ai.Alive) - { - continue; - } - - ai.AiScavengeCooldown = MathF.Max(0f, ai.AiScavengeCooldown - dt); - AutoEquipAiCargo(state, ai); - - float distFromCenter = MathF.Sqrt(ai.X * ai.X + ai.Z * ai.Z); - float goalX = 0f; - float goalZ = 0f; - bool hasGoal = false; - bool wantFire = false; - float aimX = ai.X + MathF.Sin(ai.Yaw) * 25f; - float aimZ = ai.Z + MathF.Cos(ai.Yaw) * 25f; - - // 1. Stay inside the shrinking Safe Circle - if (distFromCenter > safeLimit) - { - goalX = 0f; - goalZ = 0f; - hasGoal = true; - } - - // 2. Find nearest hostile contender with actual live line-of-sight every tick - ContenderState? target = null; - float bestEnemyDistSq = 215f * 215f; - float aiEyeY = GetObserverEyeY(ai.Y, ai.Grid.Spec.HalfHeight); - for (int j = 0; j < state.Contenders.Count; j++) - { - var other = state.Contenders[j]; - if (other.Id == ai.Id || !other.Alive) - { - continue; - } - - float dx = other.X - ai.X; - float dz = other.Z - ai.Z; - float d2 = dx * dx + dz * dz; - if (d2 >= bestEnemyDistSq) - { - continue; - } - - if (hasLos is not null && - !hasLos(ai.X, aiEyeY, ai.Z, other.X, GetTargetAimY(other.Y, other.Grid.Spec.HalfHeight), other.Z)) - { - continue; - } - - bestEnemyDistSq = d2; - target = other; - } - ai.AiTargetContenderId = target?.Id; - - // 3. Scavenge nearby upgrades when safe - if (!hasGoal && ai.AiScavengeCooldown <= 0f) - { - GroundDrop? bestDrop = null; - float bestDropDistSq = 85f * 85f; - for (int d = 0; d < state.GroundDrops.Count; d++) - { - var drop = state.GroundDrops[d]; - if (drop.PickedUp) - { - continue; - } - - if (drop.Chassis is not null && drop.Chassis.MassKg <= ai.Grid.Spec.MassKg) - { - continue; - } - - float dx = drop.X - ai.X; - float dz = drop.Z - ai.Z; - float d2 = dx * dx + dz * dz; - if (d2 < bestDropDistSq) - { - bestDropDistSq = d2; - bestDrop = drop; - } - } - - if (bestDrop is not null) - { - goalX = bestDrop.X; - goalZ = bestDrop.Z; - hasGoal = true; - - if (bestDropDistSq <= MatchState.PickupRadius * MatchState.PickupRadius) - { - if (bestDrop.Module is not null) - { - state.TryPickupNearbyModule(ai.Id); - } - else if (bestDrop.Chassis is not null) - { - state.TrySwapNearbyChassis(ai.Id); - } - ai.AiScavengeCooldown = 2.5f; - } - } - } - - // 4. Combat or third-party gunfire investigation - if (target is not null) - { - aimX = target.X; - aimZ = target.Z; - float dist = MathF.Sqrt(bestEnemyDistSq); - wantFire = dist <= 165f; - - if (!hasGoal) - { - if (dist > 75f) - { - goalX = target.X; - goalZ = target.Z; - } - else - { - // Orbit target instead of ramming headlong - float tangentAngle = MathF.Atan2(ai.Z - target.Z, ai.X - target.X) + 0.7f; - goalX = target.X + MathF.Cos(tangentAngle) * 52f; - goalZ = target.Z + MathF.Sin(tangentAngle) * 52f; - } - hasGoal = true; - } - } - else if (!hasGoal && state.LastGunfireX.HasValue && state.LastGunfireZ.HasValue && - state.Time - state.LastGunfireTime < 12f) - { - float gdx = state.LastGunfireX.Value - ai.X; - float gdz = state.LastGunfireZ.Value - ai.Z; - if (gdx * gdx + gdz * gdz <= 340f * 340f) - { - goalX = state.LastGunfireX.Value; - goalZ = state.LastGunfireZ.Value; - hasGoal = true; - } - } - - if (!hasGoal) - { - float patrolAngle = ai.Id * 0.9f + state.Time * 0.12f; - float r = MathF.Min(safeLimit * 0.65f, 190f); - goalX = MathF.Cos(patrolAngle) * r; - goalZ = MathF.Sin(patrolAngle) * r; - } - - float toGoalX = goalX - ai.X; - float toGoalZ = goalZ - ai.Z; - float desiredYaw = MathF.Atan2(toGoalX, toGoalZ); - float yawError = NormalizeAngle(desiredYaw - ai.Yaw); - - ai.SteerCmd = Math.Clamp(yawError * 1.8f, -1f, 1f); - ai.ThrottleCmd = MathF.Abs(yawError) > 1.25f ? 0.35f : 0.85f; - ai.BrakeCmd = false; - if (ai.Grid.Spec.IsVtol) - { - float groundH = state.Terrain.SampleHeight(ai.X, ai.Z); - float currentAgl = ai.Y - ai.Grid.Spec.HalfHeight - groundH; - float desiredAgl = target is null - ? MathF.Min(ai.Grid.Spec.HoverMaxAltitudeM * 0.6f, 22f) - : MathF.Min(ai.Grid.Spec.HoverMaxAltitudeM * 0.45f, 14f + 4f * MathF.Sin(state.Time * 0.9f + ai.Id)); - ai.VerticalThrottleCmd = Math.Clamp((desiredAgl - currentAgl) * 0.25f, -1f, 1f); - } - else - { - ai.VerticalThrottleCmd = 0f; - } - ai.AimX = aimX; - ai.AimY = target is not null ? GetTargetAimY(target.Y, target.Grid.Spec.HalfHeight) : float.NaN; - ai.AimZ = aimZ; - ai.FireCmd = wantFire; - } - } - - public static void ComputeSpectatorBehavior( - SpectatorState spec, - MatchState state, - out float goalX, - out float goalZ, - out float aimX, - out float aimZ, - out bool shouldFire) - { - if (spec.Stance == SpectatorStance.Neutral || !spec.TargetContenderId.HasValue) - { - (goalX, goalZ) = state.Spectators.GetNeutralGoal(spec, state.Terrain, state.ArenaCoverBoxes); - aimX = 0f; - aimZ = 0f; - shouldFire = false; - return; - } - - ContenderState? target = null; - int targetId = spec.TargetContenderId.Value; - if (targetId >= 0 && targetId < state.Contenders.Count) - { - target = state.Contenders[targetId]; - } - - if (target is null || !target.Alive) - { - (goalX, goalZ) = state.Spectators.GetNeutralGoal(spec, state.Terrain, state.ArenaCoverBoxes); - aimX = 0f; - aimZ = 0f; - shouldFire = false; - return; - } - - // Occluded behind terrain/cover: never shoot through rock! Never fall back to live target.X/Z while occluded. - if (!spec.HasTargetLos) - { - shouldFire = false; - bool hasMemory = spec.TimeSinceLastSeen < SpectatorRing.TargetMemoryDuration; - float focusX = spec.LastKnownTargetX; - float focusZ = spec.LastKnownTargetZ; - aimX = focusX; - aimZ = focusZ; - - if (!hasMemory) - { - var (anchorX, anchorZ) = state.Spectators.GetNeutralGoal(spec, state.Terrain, state.ArenaCoverBoxes); - float toFocusX = focusX - spec.X; - float toFocusZ = focusZ - spec.Z; - float toFocusLen = MathF.Sqrt(toFocusX * toFocusX + toFocusZ * toFocusZ); - bool hasValidFocus = (focusX != 0f || focusZ != 0f) && toFocusLen > 12f && toFocusLen < 240f; - float centerX = hasValidFocus ? focusX : anchorX; - float centerZ = hasValidFocus ? focusZ : anchorZ; - - float bestX = centerX; - float bestZ = centerZ; - float bestH = state.Terrain.SampleHeight(bestX, bestZ); - float maxBound = TerrainField.HalfExtent - 18f; - for (int k = 0; k < 4; k++) - { - float ang = spec.Id * 0.7f + k * (MathF.PI * 0.5f); - float cx = Math.Clamp(centerX + MathF.Cos(ang) * 26f, -maxBound, maxBound); - float cz = Math.Clamp(centerZ + MathF.Sin(ang) * 26f, -maxBound, maxBound); - float h = state.Terrain.SampleHeight(cx, cz); - if (h > bestH) - { - bestH = h; - bestX = cx; - bestZ = cz; - } - } - - goalX = bestX; - goalZ = bestZ; - return; - } - - float fdx = focusX - spec.X; - float fdz = focusZ - spec.Z; - float fLen = MathF.Sqrt(fdx * fdx + fdz * fdz); - if (fLen < 1f) - { - (goalX, goalZ) = state.Spectators.GetNeutralGoal(spec, state.Terrain, state.ArenaCoverBoxes); - return; - } - - float dirX = fdx / fLen; - float dirZ = fdz / fLen; - float perpX = -dirZ; - float perpZ = dirX; - float sideSign = (spec.Id & 1) == 0 ? 1f : -1f; - - // Evaluate flanking steps (left flank, right flank, crest-climb toward last-known position) - float step = MathF.Min(42f, fLen * 0.65f); - float cand1X = spec.X + (dirX * 0.65f + perpX * 0.76f * sideSign) * step; - float cand1Z = spec.Z + (dirZ * 0.65f + perpZ * 0.76f * sideSign) * step; - float cand2X = spec.X + (dirX * 0.65f - perpX * 0.76f * sideSign) * step; - float cand2Z = spec.Z + (dirZ * 0.65f - perpZ * 0.76f * sideSign) * step; - - float h1 = state.Terrain.SampleHeight(cand1X, cand1Z); - float h2 = state.Terrain.SampleHeight(cand2X, cand2Z); - - // Prefer the flanking shoulder that gets higher ground (sightline over ridge) unless it is a steep cliff - if (h1 >= h2) - { - goalX = cand1X; - goalZ = cand1Z; - } - else - { - goalX = cand2X; - goalZ = cand2Z; - } - return; - } - - aimX = target.X; - aimZ = target.Z; - - float dx = target.X - spec.X; - float dz = target.Z - spec.Z; - float dist = MathF.Sqrt(dx * dx + dz * dz); - - if (dist > spec.PreferredRange) - { - goalX = target.X; - goalZ = target.Z; - } - else - { - float angle = MathF.Atan2(spec.Z - target.Z, spec.X - target.X) + (spec.Tier == SpectatorTier.Exemplar ? 0.9f : 0.4f); - goalX = target.X + MathF.Cos(angle) * (spec.PreferredRange * 0.85f); - goalZ = target.Z + MathF.Sin(angle) * (spec.PreferredRange * 0.85f); - } - - shouldFire = dist <= 255f; - - // Tourists self-throttle when their Imperial weapons run hot - if (shouldFire && spec.Tier == SpectatorTier.Tourist) - { - for (int i = 0; i < spec.Grid.Mounted.Count; i++) - { - var m = spec.Grid.Mounted[i]; - if (m.Spec.Kind == HardpointKind.Weapon && - m.CurrentTemp > m.Spec.OptimalTemp + m.Spec.PlateauWidth * 0.45f) - { - shouldFire = false; - break; - } - } - } - } - - public static void AdvanceTracers(MatchState state, float dt) - { - for (int i = state.Tracers.Count - 1; i >= 0; i--) - { - var t = state.Tracers[i]; - float nextTtl = t.Ttl - dt; - if (nextTtl <= 0f) - { - state.Tracers.RemoveAt(i); - } - else - { - state.Tracers[i] = t with { Ttl = nextTtl }; - } - } - } - - public static void AdvanceHitEvents(MatchState state, float dt) - { - for (int i = state.HitEvents.Count - 1; i >= 0; i--) - { - var h = state.HitEvents[i]; - float nextTtl = h.Ttl - dt; - if (nextTtl <= 0f) - { - state.HitEvents.RemoveAt(i); - } - else - { - state.HitEvents[i] = h with { Ttl = nextTtl }; - } - } - } - - public static void UpdateMatchOutcome(MatchState state) - { - if (state.Phase != MatchPhase.Active) - { - return; - } - - if (!state.Player.Alive) - { - state.Phase = MatchPhase.Defeat; - return; - } - - int aliveCount = 0; - for (int i = 0; i < state.Contenders.Count; i++) - { - if (state.Contenders[i].Alive) - { - aliveCount++; - } - } - - if (aliveCount <= 1 && state.Player.Alive) - { - state.Phase = MatchPhase.Victory; - state.Broadcast.EmitVictory(state.Time, state.Player.Id); - } - } - - private static void AutoEquipAiCargo(MatchState state, ContenderState ai) - { - if (ai.Grid.Cargo.Count == 0) - { - return; - } - - for (int c = ai.Grid.Cargo.Count - 1; c >= 0; c--) - { - var item = ai.Grid.Cargo[c]; - for (int h = 0; h < ai.Grid.Spec.Hardpoints.Length; h++) - { - var hp = ai.Grid.Spec.Hardpoints[h]; - if (!ChassisGrid.CanFit(hp, item)) - { - continue; - } - - var mounted = ai.Grid.GetMountedOn(hp.Id); - if (mounted is null || IsBetterModule(item, mounted.Spec)) - { - state.TryEquipCargo(ai.Id, c, hp.Id); - break; - } - } - } - } - - private static bool IsBetterModule(ModuleSpec candidate, ModuleSpec current) - { - if (candidate.IsImperial && !current.IsImperial) - { - return true; - } - - return candidate.Kind switch - { - HardpointKind.Weapon => candidate.WeaponDamage * MathF.Max(1, candidate.BurstCount) > - current.WeaponDamage * MathF.Max(1, current.BurstCount), - HardpointKind.Engine => candidate.ThrustBonus > current.ThrustBonus, - HardpointKind.Radiator => candidate.CoolingPower > current.CoolingPower, - HardpointKind.Armor => candidate.ArmorBonus > current.ArmorBonus, - _ => false - }; - } - } -} diff --git a/src/RustToDust.Core/MatchState.cs b/src/RustToDust.Core/MatchState.cs deleted file mode 100644 index 13018ff..0000000 --- a/src/RustToDust.Core/MatchState.cs +++ /dev/null @@ -1,654 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace RustToDust.Core -{ - public enum MatchPhase - { - Active, - Victory, - Defeat - } - - public readonly record struct PlayerInput( - float Throttle, - float Steer, - float AimWorldX, - float AimWorldZ, - bool Fire, - bool InteractPickup, - bool Brake, - float AimWorldY = float.NaN, - float VerticalThrottle = 0f); - - public enum WeaponVisualClass - { - KineticLight, - Autocannon, - Explosive, - ThermalBeam - } - - public enum HitTargetKind - { - Terrain, - StaticCover, - Contender, - Spectator - } - - public readonly record struct TracerEvent( - float StartX, - float StartY, - float StartZ, - float EndX, - float EndY, - float EndZ, - uint ColorRgba, - float Ttl, - WeaponVisualClass WeaponClass = WeaponVisualClass.KineticLight, - string WeaponId = "", - int Id = 0); - - public readonly record struct HitFeedbackEvent( - long EventId, - float HitX, - float HitY, - float HitZ, - float NormalX, - float NormalY, - float NormalZ, - float SourceX, - float SourceY, - float SourceZ, - HitTargetKind TargetKind, - int TargetId, - int CellX, - int CellY, - WeaponVisualClass WeaponClass, - string WeaponId, - bool IsAirburst, - float Ttl); - - public readonly record struct ArenaBoxSpec( - float X, - float Y, - float Z, - float HalfX, - float HalfY, - float HalfZ, - bool IsBoundary); - - public sealed class PlayerContactMemory - { - public bool VisibleToPlayer { get; set; } - public float LastSeenAge { get; set; } = float.PositiveInfinity; - public float LastSeenX { get; set; } - public float LastSeenZ { get; set; } - public bool HasEverBeenSeen { get; set; } - public bool FaintHorizonPing { get; set; } - } - - public sealed class GroundDrop - { - public GroundDrop(int id, float x, float z, ChassisSpec? chassis, ModuleSpec? module) - { - Id = id; - X = x; - Z = z; - Chassis = chassis; - Module = module; - } - - public int Id { get; } - public float X { get; } - public float Z { get; } - public ChassisSpec? Chassis { get; } - public ModuleSpec? Module { get; } - public bool PickedUp { get; set; } - } - - public sealed class ContenderState - { - public ContenderState(int id, string name, bool isPlayer, ChassisGrid grid, float x, float z, float yaw) - { - Id = id; - Name = name; - IsPlayer = isPlayer; - Grid = grid; - X = x; - Y = grid.Spec.HalfHeight + 0.1f; - Z = z; - Yaw = yaw; - AimX = x + MathF.Sin(yaw) * 20f; - AimY = Y; - AimZ = z + MathF.Cos(yaw) * 20f; - } - - public int Id { get; } - public string Name { get; } - public bool IsPlayer { get; } - public ChassisGrid Grid { get; } - public float X { get; set; } - public float Y { get; set; } - public float Z { get; set; } - public float Yaw { get; set; } - public float AimX { get; set; } - public float AimY { get; set; } - public float AimZ { get; set; } - public float Speed { get; set; } - public int Kills { get; set; } - public bool OverheatWarned { get; set; } - - public float ThrottleCmd { get; set; } - public float SteerCmd { get; set; } - public float VerticalThrottleCmd { get; set; } - public float TargetHoverAltAgl { get; set; } = 3.0f; - public bool FireCmd { get; set; } - public bool BrakeCmd { get; set; } - public float AiScavengeCooldown { get; set; } - public int? AiTargetContenderId { get; set; } - public bool AllWeaponsOutOfArc { get; set; } - public int OutOfArcWeaponCount { get; set; } - public int InArcWeaponCount { get; set; } - public int DisabledWeaponCount { get; set; } - - public bool Alive => !Grid.IsDestroyed; - } - - public sealed class MatchState - { - public const int ContenderCount = 12; - public const float ArenaHalfExtent = 772f; - public const float PickupRadius = 7.0f; - public const float ContactGhostDuration = 5.0f; - public const float TouristHorizonMaxRange = 420f; - - private int _nextDropId = 1; - private long _nextHitEventId = 1; - private int _nextTracerId = 1; - - public MatchState(int seed = 42) - { - Seed = seed; - Rng = new Random(seed); - Spectators = new SpectatorRing(seed + 101); - Broadcast = new BroadcastFeed(); - var rawCover = BuildCoverBoxes(); - Terrain = TerrainField.Generate((ulong)seed, rawCover); - ArenaCoverBoxes = SeatBoxesOnTerrain(rawCover, Terrain); - ArenaBoundaryBoxes = BuildBoundaryBoxes(); - - SpawnContenders(); - ScatterInitialLoot(); - Broadcast.EmitMatchStart(0f); - } - - public int Seed { get; } - public Random Rng { get; } - public float Time { get; set; } - public MatchPhase Phase { get; set; } = MatchPhase.Active; - - public TerrainField Terrain { get; } - public List Contenders { get; } = new(); - public SpectatorRing Spectators { get; } - public List GroundDrops { get; } = new(); - public List Tracers { get; } = new(); - public List HitEvents { get; } = new(); - public BroadcastFeed Broadcast { get; } - public IReadOnlyList ArenaCoverBoxes { get; } - public IReadOnlyList ArenaBoundaryBoxes { get; } - - public Dictionary ContenderContacts { get; } = new(); - public Dictionary SpectatorContacts { get; } = new(); - public int PlayerDetectedByCount { get; set; } - - public float? LastGunfireX { get; set; } - public float? LastGunfireZ { get; set; } - public float LastGunfireTime { get; set; } = -100f; - - public ContenderState Player => Contenders[0]; - - public event Action? ChassisSwapped; - - public long AllocateHitEventId() => _nextHitEventId++; - public int AllocateTracerId() => _nextTracerId++; - - public static WeaponVisualClass ClassifyWeaponVisual(string weaponId) => weaponId switch - { - "autocannon" => WeaponVisualClass.Autocannon, - "flak" or "recoilless" => WeaponVisualClass.Explosive, - "gilded_lance" or "touring_plasma" or "aegis_pd" => WeaponVisualClass.ThermalBeam, - _ => WeaponVisualClass.KineticLight - }; - - public static bool IsContactOnRadar(PlayerContactMemory? mem) - { - if (mem is null) - { - return false; - } - return mem.VisibleToPlayer || mem.FaintHorizonPing || (mem.HasEverBeenSeen && mem.LastSeenAge <= ContactGhostDuration); - } - - public PlayerContactMemory GetOrCreateContenderContact(int contenderId) - { - if (!ContenderContacts.TryGetValue(contenderId, out var mem)) - { - mem = new PlayerContactMemory(); - ContenderContacts[contenderId] = mem; - } - return mem; - } - - public PlayerContactMemory GetOrCreateSpectatorContact(int spectatorId) - { - if (!SpectatorContacts.TryGetValue(spectatorId, out var mem)) - { - mem = new PlayerContactMemory(); - SpectatorContacts[spectatorId] = mem; - } - return mem; - } - - public GroundDrop SpawnModuleDrop(float x, float z, ModuleSpec module) - { - var drop = new GroundDrop(_nextDropId++, x, z, null, module); - GroundDrops.Add(drop); - return drop; - } - - public GroundDrop SpawnChassisDrop(float x, float z, ChassisSpec chassis) - { - var drop = new GroundDrop(_nextDropId++, x, z, chassis, null); - GroundDrops.Add(drop); - return drop; - } - - public bool TryEquipCargo(int cargoIndex, string hardpointId) => - TryEquipCargo(0, cargoIndex, hardpointId); - - public bool TryEquipCargo(int contenderId, int cargoIndex, string hardpointId) - { - if (contenderId < 0 || contenderId >= Contenders.Count) - { - return false; - } - - var contender = Contenders[contenderId]; - if (!contender.Alive) - { - return false; - } - - var displaced = new List(); - bool ok = contender.Grid.TryEquipFromCargo(cargoIndex, hardpointId, displaced); - if (!ok) - { - return false; - } - - for (int i = 0; i < displaced.Count; i++) - { - SpawnModuleDrop(contender.X + 1.5f, contender.Z + 1.5f, displaced[i]); - } - return true; - } - - public GroundDrop? FindNearestInteractableDrop(int contenderId = 0) - { - if (contenderId < 0 || contenderId >= Contenders.Count) - { - return null; - } - - var contender = Contenders[contenderId]; - if (!contender.Alive) - { - return null; - } - - GroundDrop? nearest = null; - float bestDistSq = PickupRadius * PickupRadius; - - for (int i = 0; i < GroundDrops.Count; i++) - { - var d = GroundDrops[i]; - if (d.PickedUp || (d.Module is null && d.Chassis is null)) - { - continue; - } - - float dx = d.X - contender.X; - float dz = d.Z - contender.Z; - float d2 = dx * dx + dz * dz; - if (d2 <= bestDistSq) - { - bestDistSq = d2; - nearest = d; - } - } - - return nearest; - } - - public bool TryInteractNearestDrop(int contenderId = 0) - { - var nearest = FindNearestInteractableDrop(contenderId); - if (nearest is null) - { - return false; - } - - var contender = Contenders[contenderId]; - if (nearest.Module is not null) - { - return ExecuteModuleDropPickup(contenderId, contender, nearest); - } - if (nearest.Chassis is not null) - { - return ExecuteChassisDropSwap(contender, nearest); - } - return false; - } - - public bool TryPickupNearbyModule(int contenderId = 0) - { - if (contenderId < 0 || contenderId >= Contenders.Count) - { - return false; - } - - var contender = Contenders[contenderId]; - if (!contender.Alive) - { - return false; - } - - GroundDrop? nearest = null; - float bestDistSq = PickupRadius * PickupRadius; - - for (int i = 0; i < GroundDrops.Count; i++) - { - var d = GroundDrops[i]; - if (d.PickedUp || d.Module is null) - { - continue; - } - - float dx = d.X - contender.X; - float dz = d.Z - contender.Z; - float d2 = dx * dx + dz * dz; - if (d2 <= bestDistSq) - { - bestDistSq = d2; - nearest = d; - } - } - - return nearest is not null && ExecuteModuleDropPickup(contenderId, contender, nearest); - } - - public bool TrySwapNearbyChassis(int contenderId = 0) - { - if (contenderId < 0 || contenderId >= Contenders.Count) - { - return false; - } - - var contender = Contenders[contenderId]; - if (!contender.Alive) - { - return false; - } - - GroundDrop? nearest = null; - float bestDistSq = PickupRadius * PickupRadius; - - for (int i = 0; i < GroundDrops.Count; i++) - { - var d = GroundDrops[i]; - if (d.PickedUp || d.Chassis is null) - { - continue; - } - - float dx = d.X - contender.X; - float dz = d.Z - contender.Z; - float d2 = dx * dx + dz * dz; - if (d2 <= bestDistSq) - { - bestDistSq = d2; - nearest = d; - } - } - - return nearest is not null && ExecuteChassisDropSwap(contender, nearest); - } - - private bool ExecuteModuleDropPickup(int contenderId, ContenderState contender, GroundDrop drop) - { - if (drop.Module is null) - { - return false; - } - - if (!contender.Grid.TryQuickBoltOrCargo(drop.Module, out string? boltedHardpointId)) - { - return false; - } - - drop.PickedUp = true; - if (boltedHardpointId is not null) - { - Broadcast.EmitQuickBolt(Time, contenderId, drop.Module.Name, boltedHardpointId); - } - return true; - } - - private bool ExecuteChassisDropSwap(ContenderState contender, GroundDrop drop) - { - if (drop.Chassis is null) - { - return false; - } - - var oldChassis = contender.Grid.Spec; - var overflow = contender.Grid.SwapChassis(drop.Chassis); - drop.PickedUp = true; - - SpawnChassisDrop(contender.X - 2.2f, contender.Z - 2.2f, oldChassis); - for (int i = 0; i < overflow.Count; i++) - { - SpawnModuleDrop(contender.X + 1.5f + i * 0.7f, contender.Z - 1.5f, overflow[i]); - } - - contender.TargetHoverAltAgl = contender.Grid.Spec.IsVtol ? 10.0f : 3.0f; - contender.VerticalThrottleCmd = 0f; - contender.Y = Terrain.SampleHeight(contender.X, contender.Z) + contender.Grid.Spec.HalfHeight + - (contender.Grid.Spec.IsVtol ? contender.TargetHoverAltAgl : 0.15f); - contender.AiScavengeCooldown = 4.0f; - Broadcast.EmitChassisSwap(Time, contender.Id, contender.Grid.Spec.Name); - ChassisSwapped?.Invoke(contender); - return true; - } - - private void SpawnContenders() - { - var aiRoster = new List(Catalog.AllChassis); - for (int k = aiRoster.Count - 1; k > 0; k--) - { - int j = Rng.Next(k + 1); - (aiRoster[k], aiRoster[j]) = (aiRoster[j], aiRoster[k]); - } - - // Spawn 12 contenders (player + 11 AI) spread across r ~ 240..460m (well inside SafeRadius = 560m) - for (int i = 0; i < ContenderCount; i++) - { - float angle = (i / (float)ContenderCount) * MathF.Tau + (float)(Rng.NextDouble() - 0.5) * 0.16f; - float baseR = 250f + (float)Rng.NextDouble() * 195f; - float x = MathF.Cos(angle) * baseR; - float z = MathF.Sin(angle) * baseR; - - // Nudge radially inside [240, 460] if landing on a steep mesa cliff edge - for (int step = 0; step < 8; step++) - { - var (_, ny, _) = Terrain.SampleNormal(x, z); - if (ny >= 0.88f) - { - break; - } - float r = 245f + ((baseR - 245f + step * 28f) % 210f); - x = MathF.Cos(angle) * r; - z = MathF.Sin(angle) * r; - } - - float yaw = MathF.Atan2(-x, -z); - string name = i == 0 ? "Contender 01 (You)" : $"Contender {i + 1:00}"; - var grid = i == 0 - ? Catalog.CreateStarterBuggy() - : Catalog.CreateWithDefaultLoadout(aiRoster[(i - 1) % aiRoster.Count]); - var contender = new ContenderState(i, name, i == 0, grid, x, z, yaw); - if (grid.Spec.IsVtol) - { - contender.TargetHoverAltAgl = 10f; - } - contender.Y = Terrain.SampleHeight(x, z) + contender.Grid.Spec.HalfHeight + - (grid.Spec.IsVtol ? contender.TargetHoverAltAgl : 0.15f); - contender.AimY = contender.Y; - Contenders.Add(contender); - if (i > 0) - { - ContenderContacts[i] = new PlayerContactMemory(); - } - } - - for (int i = 0; i < Spectators.Spectators.Count; i++) - { - SpectatorContacts[Spectators.Spectators[i].Id] = new PlayerContactMemory(); - } - } - - private void ScatterInitialLoot() - { - // 14 deterministic salvageable chassis wrecks covering all non-starter vehicles in the 15-vehicle roster - var chassisPool = new List(Catalog.AllChassis.Count); - for (int i = 0; i < Catalog.AllChassis.Count; i++) - { - var c = Catalog.AllChassis[i]; - if (!string.Equals(c.Id, Catalog.Jackal.Id, StringComparison.OrdinalIgnoreCase)) - { - chassisPool.Add(c); - } - } - - for (int i = 0; i < chassisPool.Count; i++) - { - float angle = (i / (float)chassisPool.Count) * MathF.Tau + 0.35f; - float r = i >= chassisPool.Count - 3 ? (55f + (i % 3) * 18f) : (135f + (i % 4) * 85f); - SpawnChassisDrop(MathF.Cos(angle) * r, MathF.Sin(angle) * r, chassisPool[i]); - } - - // 26 ground salvage module drops spread across canyons, passes, and ruins (including 1x1 Wide-Arc PD!) - ModuleSpec[] salvagePool = - { - Catalog.Autocannon, Catalog.Flak, Catalog.PointDefenseFlak, Catalog.Recoilless, - Catalog.TurboCore, Catalog.CopperRad, Catalog.WeldedPlate, Catalog.Mg762, - Catalog.DieselCore, Catalog.PointDefenseFlak, Catalog.Autocannon, Catalog.Flak, - Catalog.Recoilless, Catalog.TurboCore, Catalog.CopperRad, Catalog.WeldedPlate, - Catalog.Autocannon, Catalog.PointDefenseFlak, Catalog.Recoilless, Catalog.Flak, - Catalog.TurboCore, Catalog.CopperRad, Catalog.WeldedPlate, Catalog.Mg762, - Catalog.Autocannon, Catalog.ImperialAegisPd - }; - - for (int i = 0; i < salvagePool.Length; i++) - { - float angle = (i / (float)salvagePool.Length) * MathF.Tau + 0.19f; - float r = 75f + (i % 5) * 95f; - SpawnModuleDrop(MathF.Cos(angle) * r, MathF.Sin(angle) * r, salvagePool[i]); - } - } - - private static IReadOnlyList BuildCoverBoxes() - { - // 36 deterministic ruin walls / cover blocks spaced >= 90m apart across the 1.5km valley - var boxes = new List(36); - - // Inner plaza ring (4 blocks at r = 68m) - for (int i = 0; i < 4; i++) - { - float a = (i / 4f) * MathF.Tau + 0.35f; - bool rot = i % 2 == 0; - boxes.Add(new ArenaBoxSpec( - MathF.Cos(a) * 68f, 2.0f, MathF.Sin(a) * 68f, - rot ? 5.2f : 1.6f, 2.0f, rot ? 1.6f : 5.2f, false)); - } - - // Inner-mid ruins (8 blocks at r = 175m) - for (int i = 0; i < 8; i++) - { - float a = (i / 8f) * MathF.Tau + 0.15f; - bool bunker = i % 3 == 0; - boxes.Add(new ArenaBoxSpec( - MathF.Cos(a) * 175f, 2.3f, MathF.Sin(a) * 175f, - bunker ? 3.8f : (i % 2 == 0 ? 5.8f : 1.8f), - 2.3f, - bunker ? 3.8f : (i % 2 == 0 ? 1.8f : 5.8f), - false)); - } - - // Mid-valley pass ruins (12 blocks at r = 335m) - for (int i = 0; i < 12; i++) - { - float a = (i / 12f) * MathF.Tau + 0.22f; - bool bunker = i % 2 == 0; - boxes.Add(new ArenaBoxSpec( - MathF.Cos(a) * 335f, 2.4f, MathF.Sin(a) * 335f, - bunker ? 4.0f : 6.0f, 2.4f, bunker ? 4.0f : 1.8f, false)); - } - - // Outer rim ruins (12 blocks at r = 515m) - for (int i = 0; i < 12; i++) - { - float a = (i / 12f) * MathF.Tau + 0.08f; - bool tall = i % 3 == 0; - boxes.Add(new ArenaBoxSpec( - MathF.Cos(a) * 515f, tall ? 2.8f : 2.2f, MathF.Sin(a) * 515f, - tall ? 3.6f : 5.6f, tall ? 2.8f : 2.2f, tall ? 3.6f : 1.8f, false)); - } - - return boxes; - } - - private static IReadOnlyList SeatBoxesOnTerrain(IReadOnlyList raw, TerrainField terrain) - { - var seated = new ArenaBoxSpec[raw.Count]; - for (int i = 0; i < raw.Count; i++) - { - var b = raw[i]; - float minY = terrain.SampleHeight(b.X, b.Z); - minY = MathF.Min(minY, terrain.SampleHeight(b.X - b.HalfX, b.Z - b.HalfZ)); - minY = MathF.Min(minY, terrain.SampleHeight(b.X + b.HalfX, b.Z - b.HalfZ)); - minY = MathF.Min(minY, terrain.SampleHeight(b.X - b.HalfX, b.Z + b.HalfZ)); - minY = MathF.Min(minY, terrain.SampleHeight(b.X + b.HalfX, b.Z + b.HalfZ)); - seated[i] = b with { Y = minY + b.HalfY }; - } - return seated; - } - - private static IReadOnlyList BuildBoundaryBoxes() - { - const float wallY = 12f; - const float wallHalfH = 60f; - const float wallHalfThick = 4f; - const float span = ArenaHalfExtent + wallHalfThick; - return new ArenaBoxSpec[] - { - new(0f, wallY, ArenaHalfExtent, span, wallHalfH, wallHalfThick, true), - new(0f, wallY, -ArenaHalfExtent, span, wallHalfH, wallHalfThick, true), - new(ArenaHalfExtent, wallY, 0f, wallHalfThick, wallHalfH, span, true), - new(-ArenaHalfExtent, wallY, 0f, wallHalfThick, wallHalfH, span, true) - }; - } - } -} diff --git a/src/RustToDust.Core/RustToDust.Core.csproj b/src/RustToDust.Core/RustToDust.Core.csproj deleted file mode 100644 index 04d0cf7..0000000 --- a/src/RustToDust.Core/RustToDust.Core.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net8.0 - enable - disable - - - - - - - - diff --git a/src/RustToDust.Core/SpectatorRing.cs b/src/RustToDust.Core/SpectatorRing.cs deleted file mode 100644 index f07d3bd..0000000 --- a/src/RustToDust.Core/SpectatorRing.cs +++ /dev/null @@ -1,824 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace RustToDust.Core -{ - public enum SpectatorTier - { - Tourist, - Patron, - Exemplar - } - - public enum SpectatorStance - { - Neutral, - Cleared, - Provoked - } - - public readonly record struct RingContact(int Id, float X, float Z, bool Alive, float Y = 0f, float HalfHeight = 1f); - - public sealed class SpectatorState - { - public SpectatorState( - int id, - SpectatorTier tier, - ChassisGrid grid, - float ringAngle, - float ringOffset, - float radarSignature, - float aimSpreadRad, - float maxSpeed, - float preferredRange) - { - Id = id; - Tier = tier; - Grid = grid; - RingAngle = ringAngle; - RingOffset = ringOffset; - RadarSignature = radarSignature; - AimSpreadRad = aimSpreadRad; - MaxSpeed = maxSpeed; - PreferredRange = preferredRange; - } - - public int Id { get; } - public SpectatorTier Tier { get; } - public ChassisGrid Grid { get; } - public float RingAngle { get; set; } - public float RingOffset { get; } - public float RadarSignature { get; } - public float AimSpreadRad { get; } - public float MaxSpeed { get; } - public float PreferredRange { get; } - - public SpectatorStance Stance { get; set; } = SpectatorStance.Neutral; - public int? TargetContenderId { get; set; } - public bool BroadcastWakeupEmitted { get; set; } - - public bool HasTargetLos { get; set; } - public float LastKnownTargetX { get; set; } - public float LastKnownTargetY { get; set; } - public float LastKnownTargetZ { get; set; } - public float TimeSinceLastSeen { get; set; } = float.PositiveInfinity; - - public bool HasNeutralAnchor { get; set; } - public float NeutralAnchorX { get; set; } - public float NeutralAnchorZ { get; set; } - public float NeutralAnchorSafeRadius { get; set; } - - public float X { get; set; } - public float Y { get; set; } - public float Z { get; set; } - public float Yaw { get; set; } - public bool Alive => !Grid.IsDestroyed; - } - - public sealed class SpectatorRing - { - public const float InitialRadius = 560f; - public const float MinRadius = 85f; - public const float GraceDuration = 30f; - public const float ShrinkDuration = 360f; - public const int DefaultSpectatorCount = 56; - public const float TargetMemoryDuration = 4.0f; - - private sealed class ContenderAwareness - { - public bool HasKnownPos; - public float LastKnownX; - public float LastKnownY; - public float LastKnownZ; - public float TimeSinceSeen = TargetMemoryDuration + 1f; - } - - private readonly List _spectators = new(); - private readonly Dictionary _aliveById = new(); - private readonly Dictionary _awarenessByContender = new(); - - public SpectatorRing(int seed = 1337, int count = DefaultSpectatorCount) - { - var rng = new Random(seed); - SafeRadius = InitialRadius; - SpawnRing(rng, count); - } - - public float SafeRadius { get; private set; } - public IReadOnlyList Spectators => _spectators; - - public void UpdateSafeRadius(float matchTime) - { - if (matchTime <= GraceDuration) - { - SafeRadius = InitialRadius; - return; - } - - float t = Math.Clamp((matchTime - GraceDuration) / ShrinkDuration, 0f, 1f); - SafeRadius = InitialRadius + (MinRadius - InitialRadius) * t; - } - - public void UpdateClearance(ReadOnlySpan contenders) => - UpdateClearance(contenders, 0f, null); - - public void UpdateClearance( - ReadOnlySpan contenders, - float dt, - Func? hasLos, - int tickIndex = -1) - { - _aliveById.Clear(); - for (int i = 0; i < contenders.Length; i++) - { - _aliveById[contenders[i].Id] = contenders[i].Alive; - } - - // Step 1: Update per-contender ring awareness ONLY from spectators with live LOS. - for (int c = 0; c < contenders.Length; c++) - { - var contender = contenders[c]; - var aw = GetOrCreateAwareness(contender.Id); - if (!contender.Alive || ComputeOutsideDist(contender) <= 0f) - { - aw.HasKnownPos = false; - aw.TimeSinceSeen = TargetMemoryDuration + 1f; - continue; - } - - aw.TimeSinceSeen += dt; - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive) - { - continue; - } - - if (hasLos is null || hasLos(spec, contender)) - { - aw.HasKnownPos = true; - aw.LastKnownX = contender.X; - aw.LastKnownY = contender.Y; - aw.LastKnownZ = contender.Z; - aw.TimeSinceSeen = 0f; - break; - } - } - } - - // Step 2: Maintain existing Provoked and Cleared assignments sticky while target is valid. - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive) - { - ResetToNeutral(spec); - continue; - } - - if (spec.Stance == SpectatorStance.Provoked) - { - if (!spec.TargetContenderId.HasValue || - !TryFindAliveContact(contenders, spec.TargetContenderId.Value, out var contact)) - { - ResetToNeutral(spec); - } - else - { - UpdateWatcherTracking(spec, contact, dt, hasLos); - } - } - else if (spec.Stance == SpectatorStance.Cleared) - { - if (!spec.TargetContenderId.HasValue || - !TryFindAliveContact(contenders, spec.TargetContenderId.Value, out var contact) || - ComputeOutsideDist(contact) <= 0f) - { - ResetToNeutral(spec); - } - else - { - UpdateWatcherTracking(spec, contact, dt, hasLos); - } - } - else - { - spec.TargetContenderId = null; - spec.HasTargetLos = false; - spec.TimeSinceLastSeen = TargetMemoryDuration + 1f; - } - } - - // Step 3: Balance Cleared assignments per outside contender without reading occluded coords. - for (int c = 0; c < contenders.Length; c++) - { - var contender = contenders[c]; - if (!contender.Alive) - { - continue; - } - - float outsideDist = ComputeOutsideDist(contender); - if (outsideDist <= 0f) - { - continue; - } - - int allowedCleared = Math.Min(8, 1 + (int)(outsideDist / 12f)); - int currentCleared = CountClearedFor(contender.Id); - - // Drop excess if outsideDist shrank (prefer dropping stale no-LOS watchers first). - while (currentCleared > allowedCleared) - { - int dropIdx = FindExcessClearedToDrop(contender.Id); - if (dropIdx < 0) - { - break; - } - ResetToNeutral(_spectators[dropIdx]); - currentCleared--; - } - - // If full with a stale expired no-LOS watcher while a Neutral watcher has live LOS, rotate one slot. - if (currentCleared == allowedCleared && hasLos is not null && AnyNeutralHasLos(contender, hasLos)) - { - int staleIdx = FindStaleNoLosCleared(contender.Id); - if (staleIdx >= 0) - { - ResetToNeutral(_spectators[staleIdx]); - currentCleared--; - } - } - - // Pass 1: Spectators with direct live LOS to the offender (nearest open-LOS watcher first). - while (currentCleared < allowedCleared) - { - int bestIdx = -1; - float bestDistSq = float.PositiveInfinity; - - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive || spec.Stance != SpectatorStance.Neutral) - { - continue; - } - - float dx = spec.X - contender.X; - float dz = spec.Z - contender.Z; - float d2 = dx * dx + dz * dz; - if (d2 >= bestDistSq) - { - continue; - } - - if (hasLos is not null && !hasLos(spec, contender)) - { - continue; - } - - bestDistSq = d2; - bestIdx = i; - } - - if (bestIdx < 0) - { - break; - } - - var chosen = _spectators[bestIdx]; - chosen.Stance = SpectatorStance.Cleared; - chosen.TargetContenderId = contender.Id; - chosen.HasTargetLos = true; - chosen.LastKnownTargetX = contender.X; - chosen.LastKnownTargetY = contender.Y; - chosen.LastKnownTargetZ = contender.Z; - chosen.TimeSinceLastSeen = 0f; - currentCleared++; - } - - // Pass 2: Reinforce from already-observed LastKnownPos ONLY (never read live occluded contender.X/Z). - if (currentCleared < allowedCleared && - hasLos is not null && - _awarenessByContender.TryGetValue(contender.Id, out var aw) && - aw.HasKnownPos) - { - const float maxPass2RadiusSq = 240f * 240f; - while (currentCleared < allowedCleared) - { - int bestIdx = -1; - float bestDistSq = float.PositiveInfinity; - - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive || spec.Stance != SpectatorStance.Neutral) - { - continue; - } - - float dx = spec.X - aw.LastKnownX; - float dz = spec.Z - aw.LastKnownZ; - float d2 = dx * dx + dz * dz; - if (d2 <= maxPass2RadiusSq && d2 < bestDistSq) - { - bestDistSq = d2; - bestIdx = i; - } - } - - if (bestIdx < 0) - { - break; - } - - var chosen = _spectators[bestIdx]; - chosen.Stance = SpectatorStance.Cleared; - chosen.TargetContenderId = contender.Id; - chosen.HasTargetLos = false; - chosen.LastKnownTargetX = aw.LastKnownX; - chosen.LastKnownTargetY = aw.LastKnownY; - chosen.LastKnownTargetZ = aw.LastKnownZ; - chosen.TimeSinceLastSeen = aw.TimeSinceSeen; - currentCleared++; - } - } - } - } - - public bool OnSpectatorDamaged( - SpectatorState spectator, - int attackerContenderId, - float? incomingDirX = null, - float? incomingDirZ = null) - { - if (!spectator.Alive) - { - return false; - } - - if (spectator.Stance == SpectatorStance.Neutral || spectator.Stance == SpectatorStance.Cleared) - { - bool sameTargetWithFreshMemory = spectator.TargetContenderId == attackerContenderId && - (spectator.HasTargetLos || spectator.TimeSinceLastSeen < TargetMemoryDuration); - - spectator.Stance = SpectatorStance.Provoked; - spectator.TargetContenderId = attackerContenderId; - - if (!sameTargetWithFreshMemory) - { - spectator.HasTargetLos = false; - if (_awarenessByContender.TryGetValue(attackerContenderId, out var aw) && - aw.HasKnownPos && - aw.TimeSinceSeen < TargetMemoryDuration) - { - spectator.LastKnownTargetX = aw.LastKnownX; - spectator.LastKnownTargetY = aw.LastKnownY; - spectator.LastKnownTargetZ = aw.LastKnownZ; - spectator.TimeSinceLastSeen = aw.TimeSinceSeen; - } - else if (incomingDirX.HasValue && incomingDirZ.HasValue) - { - float dLen = MathF.Sqrt(incomingDirX.Value * incomingDirX.Value + incomingDirZ.Value * incomingDirZ.Value); - float nx = dLen > 1e-4f ? incomingDirX.Value / dLen : MathF.Sin(spectator.Yaw); - float nz = dLen > 1e-4f ? incomingDirZ.Value / dLen : MathF.Cos(spectator.Yaw); - spectator.LastKnownTargetX = spectator.X + nx * 60f; - spectator.LastKnownTargetY = spectator.Y; - spectator.LastKnownTargetZ = spectator.Z + nz * 60f; - spectator.TimeSinceLastSeen = 0.5f; - } - else - { - spectator.LastKnownTargetX = spectator.X + MathF.Sin(spectator.Yaw) * 40f; - spectator.LastKnownTargetY = spectator.Y; - spectator.LastKnownTargetZ = spectator.Z + MathF.Cos(spectator.Yaw) * 40f; - spectator.TimeSinceLastSeen = TargetMemoryDuration; - } - } - return true; - } - - return false; - } - - private ContenderAwareness GetOrCreateAwareness(int contenderId) - { - if (!_awarenessByContender.TryGetValue(contenderId, out var aw)) - { - aw = new ContenderAwareness(); - _awarenessByContender[contenderId] = aw; - } - return aw; - } - - private float ComputeOutsideDist(in RingContact contact) - { - float distFromCenter = MathF.Sqrt(contact.X * contact.X + contact.Z * contact.Z); - return MathF.Max(0f, distFromCenter - SafeRadius); - } - - private static void ResetToNeutral(SpectatorState spec) - { - spec.Stance = SpectatorStance.Neutral; - spec.TargetContenderId = null; - spec.HasTargetLos = false; - spec.TimeSinceLastSeen = TargetMemoryDuration + 1f; - } - - private static void UpdateWatcherTracking( - SpectatorState spec, - in RingContact contact, - float dt, - Func? hasLos) - { - bool los = hasLos is null || hasLos(spec, contact); - if (los) - { - spec.HasTargetLos = true; - spec.LastKnownTargetX = contact.X; - spec.LastKnownTargetY = contact.Y; - spec.LastKnownTargetZ = contact.Z; - spec.TimeSinceLastSeen = 0f; - } - else - { - spec.HasTargetLos = false; - spec.TimeSinceLastSeen += dt; - } - } - - private static bool TryFindAliveContact(ReadOnlySpan contenders, int id, out RingContact contact) - { - for (int i = 0; i < contenders.Length; i++) - { - if (contenders[i].Id == id && contenders[i].Alive) - { - contact = contenders[i]; - return true; - } - } - contact = default; - return false; - } - - private int FindExcessClearedToDrop(int contenderId) - { - int bestIdx = -1; - bool bestNoLos = false; - float bestAge = -1f; - float bestDistSq = -1f; - - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive || spec.Stance != SpectatorStance.Cleared || spec.TargetContenderId != contenderId) - { - continue; - } - - bool noLos = !spec.HasTargetLos; - float age = spec.TimeSinceLastSeen; - float dx = spec.X - spec.LastKnownTargetX; - float dz = spec.Z - spec.LastKnownTargetZ; - float d2 = dx * dx + dz * dz; - - if (bestIdx < 0 || - (noLos && !bestNoLos) || - (noLos == bestNoLos && (age > bestAge + 1e-4f || (MathF.Abs(age - bestAge) <= 1e-4f && d2 > bestDistSq)))) - { - bestIdx = i; - bestNoLos = noLos; - bestAge = age; - bestDistSq = d2; - } - } - - return bestIdx; - } - - private bool AnyNeutralHasLos(in RingContact contender, Func hasLos) - { - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (spec.Alive && spec.Stance == SpectatorStance.Neutral && - hasLos(spec, contender)) - { - return true; - } - } - return false; - } - - private int FindStaleNoLosCleared(int contenderId) - { - int bestIdx = -1; - float bestAge = TargetMemoryDuration; - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (spec.Alive && - spec.Stance == SpectatorStance.Cleared && - spec.TargetContenderId == contenderId && - !spec.HasTargetLos && - spec.TimeSinceLastSeen >= bestAge) - { - bestAge = spec.TimeSinceLastSeen; - bestIdx = i; - } - } - return bestIdx; - } - - public void AdvancePerimeterOrbits(float dt) - { - for (int i = 0; i < _spectators.Count; i++) - { - var spec = _spectators[i]; - if (!spec.Alive || spec.Stance != SpectatorStance.Neutral) - { - continue; - } - - // Only ostentatious Tourists orbit continuously in plain sight; - // Patrons and Exemplars hold their chosen high-ground / ambush positions. - if (spec.Tier == SpectatorTier.Tourist) - { - spec.RingAngle += 0.02f * dt; - } - } - } - - public (float X, float Z) GetPerimeterSlot(SpectatorState spec) - { - float r = SafeRadius + spec.RingOffset; - return (MathF.Cos(spec.RingAngle) * r, MathF.Sin(spec.RingAngle) * r); - } - - public (float X, float Z) GetNeutralGoal( - SpectatorState spec, - TerrainField? terrain, - IReadOnlyList? coverBoxes) - { - if (spec.Tier == SpectatorTier.Tourist || terrain is null) - { - return GetPerimeterSlot(spec); - } - - if (spec.HasNeutralAnchor && MathF.Abs(SafeRadius - spec.NeutralAnchorSafeRadius) < 8f) - { - return (spec.NeutralAnchorX, spec.NeutralAnchorZ); - } - - float bestX = MathF.Cos(spec.RingAngle) * (SafeRadius + spec.RingOffset); - float bestZ = MathF.Sin(spec.RingAngle) * (SafeRadius + spec.RingOffset); - float bestScore = float.NegativeInfinity; - float maxBound = TerrainField.HalfExtent - 18f; - - for (int ai = -3; ai <= 3; ai++) - { - float angle = spec.RingAngle + ai * 0.075f; - float cosA = MathF.Cos(angle); - float sinA = MathF.Sin(angle); - - for (int ri = 0; ri < 3; ri++) - { - float r = SafeRadius + 18f + ri * 26f; - float cx = Math.Clamp(cosA * r, -maxBound, maxBound); - float cz = Math.Clamp(sinA * r, -maxBound, maxBound); - - float distLen = MathF.Sqrt(cx * cx + cz * cz); - float inX = distLen > 1f ? -cx / distLen : 0f; - float inZ = distLen > 1f ? -cz / distLen : -1f; - - float hHere = terrain.SampleHeight(cx, cz); - float hInward = terrain.SampleHeight(cx + inX * 26f, cz + inZ * 26f); - - float score; - if (spec.Tier == SpectatorTier.Patron) - { - // Patrons claim elevated vantage points overlooking the arena interior - score = hHere * 2.0f + MathF.Max(0f, hHere - hInward) * 1.1f; - } - else - { - // Exemplars seek reverse-slope / low-profile / cover-adjacent ambush spots - float reverseSlope = MathF.Max(0f, hInward - hHere) * 3.0f; - float lowProfile = -hHere * 0.8f; - float coverBonus = 0f; - if (coverBoxes is not null) - { - for (int b = 0; b < coverBoxes.Count; b++) - { - var box = coverBoxes[b]; - float bx = box.X - cx; - float bz = box.Z - cz; - float bDist2 = bx * bx + bz * bz; - if (bDist2 < 28f * 28f && bDist2 > 4f * 4f) - { - // Prefer cover standing between the exemplar and the interior - float forwardDot = bx * inX + bz * inZ; - if (forwardDot > 2f) - { - coverBonus = 14f; - break; - } - } - } - } - score = reverseSlope + lowProfile + coverBonus; - } - - if (score > bestScore) - { - bestScore = score; - bestX = cx; - bestZ = cz; - } - } - } - - spec.NeutralAnchorX = bestX; - spec.NeutralAnchorZ = bestZ; - spec.NeutralAnchorSafeRadius = SafeRadius; - spec.HasNeutralAnchor = true; - return (bestX, bestZ); - } - - public int CountClearedFor(int contenderId) - { - int count = 0; - for (int i = 0; i < _spectators.Count; i++) - { - var s = _spectators[i]; - if (s.Alive && s.Stance == SpectatorStance.Cleared && s.TargetContenderId == contenderId) - { - count++; - } - } - return count; - } - - public int CountProvokedFor(int contenderId) - { - int count = 0; - for (int i = 0; i < _spectators.Count; i++) - { - var s = _spectators[i]; - if (s.Alive && s.Stance == SpectatorStance.Provoked && s.TargetContenderId == contenderId) - { - count++; - } - } - return count; - } - - public static List RollSalvageDrops(SpectatorState spec, Random rng) - { - var drops = new List(); - switch (spec.Tier) - { - case SpectatorTier.Tourist: - { - int count = rng.Next(1, 3); - for (int i = 0; i < count; i++) - { - drops.Add(Catalog.ImperialModules[rng.Next(Catalog.ImperialModules.Count)]); - } - break; - } - case SpectatorTier.Patron: - { - if (rng.NextDouble() < 0.5) - { - drops.Add(Catalog.ImperialModules[rng.Next(Catalog.ImperialModules.Count)]); - } - else - { - drops.Add(Catalog.HumanModules[rng.Next(Catalog.HumanModules.Count)]); - } - break; - } - case SpectatorTier.Exemplar: - { - if (rng.NextDouble() < 0.4) - { - drops.Add(Catalog.WeldedPlate); - } - break; - } - } - return drops; - } - - private void SpawnRing(Random rng, int count) - { - int touristCount = (int)MathF.Round(count * 0.45f); - int patronCount = (int)MathF.Round(count * 0.35f); - - var tiers = new List(count); - for (int i = 0; i < count; i++) - { - if (i < touristCount) tiers.Add(SpectatorTier.Tourist); - else if (i < touristCount + patronCount) tiers.Add(SpectatorTier.Patron); - else tiers.Add(SpectatorTier.Exemplar); - } - - for (int i = tiers.Count - 1; i > 0; i--) - { - int j = rng.Next(i + 1); - (tiers[i], tiers[j]) = (tiers[j], tiers[i]); - } - - for (int i = 0; i < count; i++) - { - float angle = (i / (float)count) * MathF.Tau; - float ringOffset = 25f + (float)rng.NextDouble() * 50f; - var tier = tiers[i]; - - var spec = CreateSpectator(1000 + i, tier, angle, ringOffset); - (float px, float pz) = GetPerimeterSlot(spec); - spec.X = px; - spec.Y = spec.Grid.Spec.HalfHeight + 0.1f; - spec.Z = pz; - spec.Yaw = MathF.Atan2(-px, -pz); - _spectators.Add(spec); - } - } - - private static void MountRequired(ChassisGrid grid, ModuleSpec mod, string hardpointId) - { - if (!grid.TryMount(mod, hardpointId)) - { - throw new InvalidOperationException( - $"Failed to mount '{mod.Id}' onto '{grid.Spec.Id}.{hardpointId}'."); - } - } - - private static SpectatorState CreateSpectator(int id, SpectatorTier tier, float angle, float ringOffset) - { - switch (tier) - { - case SpectatorTier.Tourist: - { - var grid = new ChassisGrid(Catalog.Paladin); - MountRequired(grid, Catalog.GildedLance, "hp.weapon.arm_l"); - MountRequired(grid, Catalog.ImperialAegisPd, "hp.weapon.sh_l"); - MountRequired(grid, Catalog.TouringPlasma, "hp.weapon.sh_r"); - MountRequired(grid, Catalog.NobleCore, "hp.engine.chest"); - MountRequired(grid, Catalog.GoldRadiator, "hp.radiator.back_l"); - MountRequired(grid, Catalog.GildedPlate, "hp.armor.torso"); - return new SpectatorState( - id, tier, grid, angle, ringOffset, - radarSignature: 1.0f, - aimSpreadRad: 0.14f, - maxSpeed: 18f, - preferredRange: 95f); - } - case SpectatorTier.Patron: - { - var grid = new ChassisGrid(Catalog.Raptor); - MountRequired(grid, Catalog.Autocannon, "hp.weapon.arm_l"); - MountRequired(grid, Catalog.Flak, "hp.weapon.arm_r"); - MountRequired(grid, Catalog.TurboCore, "hp.engine.chest"); - MountRequired(grid, Catalog.CopperRad, "hp.radiator.sh_l"); - return new SpectatorState( - id, tier, grid, angle, ringOffset, - radarSignature: 0.6f, - aimSpreadRad: 0.055f, - maxSpeed: 26f, - preferredRange: 82f); - } - default: // Exemplar - { - var exemplarSpec = Catalog.Raptor with - { - Id = "exemplar_frame", - Name = "Exemplar Frame", - BaseCellArmor = 22f, - MassKg = 1150f, - BaseThrust = 26000f, - BaseTurnRate = 6.2f, - MaxSpeed = 40f, - HalfWidth = 0.8f, - HalfHeight = 1.55f, - HalfLength = 0.8f - }; - var grid = new ChassisGrid(exemplarSpec); - MountRequired(grid, Catalog.GildedLance, "hp.weapon.arm_r"); - MountRequired(grid, Catalog.TouringPlasma, "hp.weapon.arm_l"); - MountRequired(grid, Catalog.NobleCore, "hp.engine.chest"); - MountRequired(grid, Catalog.GoldRadiator, "hp.radiator.sh_l"); - MountRequired(grid, Catalog.GoldRadiator, "hp.radiator.sh_r"); - return new SpectatorState( - id, tier, grid, angle, ringOffset, - radarSignature: 0.18f, - aimSpreadRad: 0.006f, - maxSpeed: 40f, - preferredRange: 58f); - } - } - } - } -} diff --git a/src/RustToDust.Core/TerrainField.cs b/src/RustToDust.Core/TerrainField.cs deleted file mode 100644 index 035e149..0000000 --- a/src/RustToDust.Core/TerrainField.cs +++ /dev/null @@ -1,904 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace RustToDust.Core -{ - public enum TerrainBrushKind - { - DuneRidge, - Mesa, - SalvagePad, - Road, - Crater, - Track, - Scorch - } - - public readonly record struct TerrainBrush( - int Id, - TerrainBrushKind Kind, - float X, - float Z, - float RotationRad, - float RadiusX, - float RadiusZ, - float HeightDelta, - float Roughness, - float Metallic, - float AlbedoR, - float AlbedoG, - float AlbedoB, - bool Dynamic); - - public sealed class TerrainField - { - public const float ArenaSize = 1536f; - public const float HalfExtent = 768f; - public const int TileGridCount = 8; - public const float TileSize = ArenaSize / TileGridCount; // 192m - private const int AccelGridCount = 64; - private const float AccelCellSize = ArenaSize / AccelGridCount; // 24m - private const int AccelCellCount = AccelGridCount * AccelGridCount; - public const float MinWorldHeight = -18f; - public const float MaxWorldHeight = 52f; - public const float HeightSpan = MaxWorldHeight - MinWorldHeight; // 70m - public const int MaxDynamicDecals = 256; - - private readonly record struct BrushPrecomp( - float CosR, - float SinR, - float InvRx, - float InvRz, - float MaxRadiusSq) - { - public static BrushPrecomp From(in TerrainBrush b) - { - float maxR = MathF.Max(0.1f, MathF.Max(b.RadiusX, b.RadiusZ)); - return new BrushPrecomp( - MathF.Cos(b.RotationRad), - MathF.Sin(b.RotationRad), - 1f / MathF.Max(0.1f, b.RadiusX), - 1f / MathF.Max(0.1f, b.RadiusZ), - maxR * maxR); - } - } - - private readonly List _brushes = new(); - private readonly List _brushPrecomps = new(); - private readonly List[,] _tileBrushIndices = new List[TileGridCount, TileGridCount]; - private readonly List[] _cellBrushIndices = new List[AccelCellCount]; - private readonly float[] _cellMaxHeight = new float[AccelCellCount]; - private readonly Queue _dynamicDecalSlots = new(); - private int _nextBrushId = 1; - - public TerrainField(ulong seed) - { - Seed = seed; - TileVersions = new int[TileGridCount, TileGridCount]; - for (int tz = 0; tz < TileGridCount; tz++) - { - for (int tx = 0; tx < TileGridCount; tx++) - { - _tileBrushIndices[tx, tz] = new List(32); - } - } - for (int c = 0; c < AccelCellCount; c++) - { - _cellBrushIndices[c] = new List(4); - } - } - - public ulong Seed { get; } - public IReadOnlyList Brushes => _brushes; - public int[,] TileVersions { get; } - public ulong DirtyTileMask { get; private set; } - public ulong StructuralDirtyTileMask { get; private set; } - - public void ClearDirtyMask() - { - DirtyTileMask = 0UL; - StructuralDirtyTileMask = 0UL; - } - - public void ClearStructuralDirtyTile(int tx, int tz) => - StructuralDirtyTileMask &= ~(1UL << (tz * TileGridCount + tx)); - - public IReadOnlyList GetTileBrushIndices(int tx, int tz) => _tileBrushIndices[tx, tz]; - - public static TerrainField Generate(ulong seed, IReadOnlyList coverBoxes) - { - var field = new TerrainField(seed); - var rng = new Random((int)(seed ^ (seed >> 32))); - - // 1. Flat compacted salvage pads around cover ruins & center plaza (keeps cover seated cleanly near ~0m) - field.AddBrush(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.SalvagePad, - X: 0f, - Z: 0f, - RotationRad: 0f, - RadiusX: 28f, - RadiusZ: 28f, - HeightDelta: 0.20f, - Roughness: 0.90f, - Metallic: 0.05f, - AlbedoR: 0.44f, - AlbedoG: 0.40f, - AlbedoB: 0.35f, - Dynamic: false)); - - for (int i = 0; i < coverBoxes.Count; i++) - { - var box = coverBoxes[i]; - float padR = MathF.Max(box.HalfX, box.HalfZ) + 12f; - field.AddBrush(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.SalvagePad, - X: box.X, - Z: box.Z, - RotationRad: 0f, - RadiusX: padR, - RadiusZ: padR, - HeightDelta: 0.10f + (float)rng.NextDouble() * 0.25f, - Roughness: 0.92f, - Metallic: 0.04f, - AlbedoR: 0.42f, - AlbedoG: 0.38f, - AlbedoB: 0.34f, - Dynamic: false)); - } - - // 2. Dirt track ring segments around the mid-valley loop (r ~ 260..290m) - const int roadCount = 16; - for (int i = 0; i < roadCount; i++) - { - float angle = (i / (float)roadCount) * MathF.Tau + 0.14f; - float r = 275f + (float)(rng.NextDouble() * 20.0 - 10.0); - float rx = MathF.Cos(angle) * r; - float rz = MathF.Sin(angle) * r; - float tangentRot = angle + MathF.PI * 0.5f; - field.AddBrush(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.Road, - X: rx, - Z: rz, - RotationRad: tangentRot, - RadiusX: 64f, - RadiusZ: 11f, - HeightDelta: -0.22f, - Roughness: 0.94f, - Metallic: 0.02f, - AlbedoR: 0.56f, - AlbedoG: 0.40f, - AlbedoB: 0.25f, - Dynamic: false)); - } - - // 3. Tall flat-topped rust mesas & buttes (+22m..+44m, radius 45..110m) for huge landmarks and full hull-down cover - int mesaCount = 0; - int attempts = 0; - while (mesaCount < 14 && attempts < 500) - { - attempts++; - float angle = (float)(rng.NextDouble() * MathF.Tau); - float dist = 125f + (float)rng.NextDouble() * 520f; - float x = MathF.Cos(angle) * dist; - float z = MathF.Sin(angle) * dist; - float rx = 45f + (float)rng.NextDouble() * 65f; - float rz = 45f + (float)rng.NextDouble() * 65f; - - if (MathF.Abs(field.SampleHeight(x, z)) > 4.0f) - { - continue; - } - - var candidate = new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.Mesa, - X: x, - Z: z, - RotationRad: (float)(rng.NextDouble() * MathF.PI), - RadiusX: rx, - RadiusZ: rz, - HeightDelta: 22f + (float)rng.NextDouble() * 22f, - Roughness: 0.86f, - Metallic: 0.08f, - AlbedoR: 0.48f, - AlbedoG: 0.25f, - AlbedoB: 0.17f, - Dynamic: false); - - if (!IsBrushClearOfCover(in candidate, coverBoxes)) - { - continue; - } - - field.AddBrush(candidate); - mesaCount++; - } - - // 4. Sweeping high sand dune ridges (+10m..+26m, RadiusX 90..180m, RadiusZ 30..65m) forming blind crests - int duneCount = 0; - attempts = 0; - while (duneCount < 30 && attempts < 700) - { - attempts++; - float x = (float)(rng.NextDouble() * 1280.0 - 640.0); - float z = (float)(rng.NextDouble() * 1280.0 - 640.0); - float radiusX = 90f + (float)rng.NextDouble() * 90f; - float radiusZ = 30f + (float)rng.NextDouble() * 35f; - - if (field.SampleHeight(x, z) > 15f) - { - continue; - } - - float heightDelta = 10f + (float)rng.NextDouble() * 16f; - float rot = (float)(rng.NextDouble() * MathF.PI); - var candidate = new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.DuneRidge, - X: x, - Z: z, - RotationRad: rot, - RadiusX: radiusX, - RadiusZ: radiusZ, - HeightDelta: heightDelta, - Roughness: 0.89f, - Metallic: 0.02f, - AlbedoR: 0.78f, - AlbedoG: 0.56f, - AlbedoB: 0.34f, - Dynamic: false); - - if (!IsBrushClearOfCover(in candidate, coverBoxes)) - { - continue; - } - - field.AddBrush(candidate); - duneCount++; - } - - // 5. Deep dry canyons / arroyos (-8m..-16m carved washes) letting buggies run concealed below the skyline - int canyonCount = 0; - attempts = 0; - while (canyonCount < 12 && attempts < 450) - { - attempts++; - float x = (float)(rng.NextDouble() * 1160.0 - 580.0); - float z = (float)(rng.NextDouble() * 1160.0 - 580.0); - float radiusX = 42f + (float)rng.NextDouble() * 34f; - float radiusZ = 115f + (float)rng.NextDouble() * 85f; - - float curH = field.SampleHeight(x, z); - if (curH < -2.5f || curH > 12f) - { - continue; - } - - float heightDelta = -(8f + (float)rng.NextDouble() * 7.5f); - float rot = (float)(rng.NextDouble() * MathF.PI); - var candidate = new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.DuneRidge, - X: x, - Z: z, - RotationRad: rot, - RadiusX: radiusX, - RadiusZ: radiusZ, - HeightDelta: heightDelta, - Roughness: 0.96f, - Metallic: 0.02f, - AlbedoR: 0.54f, - AlbedoG: 0.38f, - AlbedoB: 0.25f, - Dynamic: false); - - if (!IsBrushClearOfCover(in candidate, coverBoxes)) - { - continue; - } - - field.AddBrush(candidate); - canyonCount++; - } - - // Bump all initial tile versions to 1 so clients detect initial bake needed - for (int tz = 0; tz < TileGridCount; tz++) - { - for (int tx = 0; tx < TileGridCount; tx++) - { - field.TileVersions[tx, tz] = 1; - field.DirtyTileMask |= 1UL << (tz * TileGridCount + tx); - } - } - - return field; - } - - public void StampCrater(float x, float z, float radius, float depth) - { - float clampedR = Math.Clamp(radius, 1.2f, 16f); - float clampedDepth = Math.Clamp(MathF.Abs(depth), 0.15f, 4.5f); - AddBrush(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.Crater, - X: x, - Z: z, - RotationRad: 0f, - RadiusX: clampedR, - RadiusZ: clampedR, - HeightDelta: -clampedDepth, - Roughness: 0.96f, - Metallic: 0.12f, - AlbedoR: 0.15f, - AlbedoG: 0.12f, - AlbedoB: 0.10f, - Dynamic: true)); - } - - public void StampTrack(float x, float z, float yaw, float width, float length) - { - SetDynamicDecal(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.Track, - X: x, - Z: z, - RotationRad: -yaw + MathF.PI * 0.5f, - RadiusX: Math.Clamp(length * 0.5f, 0.8f, 6f), - RadiusZ: Math.Clamp(width * 0.5f, 0.5f, 4f), - HeightDelta: -0.04f, - Roughness: 0.95f, - Metallic: 0.02f, - AlbedoR: 0.42f, - AlbedoG: 0.29f, - AlbedoB: 0.18f, - Dynamic: true)); - } - - public void StampScorch(float x, float z, float radius) - { - float r = Math.Clamp(radius, 0.8f, 10f); - SetDynamicDecal(new TerrainBrush( - Id: 0, - Kind: TerrainBrushKind.Scorch, - X: x, - Z: z, - RotationRad: 0f, - RadiusX: r, - RadiusZ: r, - HeightDelta: 0f, - Roughness: 0.95f, - Metallic: 0.10f, - AlbedoR: 0.14f, - AlbedoG: 0.11f, - AlbedoB: 0.10f, - Dynamic: true)); - } - - public float SampleHeight(float x, float z) - { - float cx = Math.Clamp(x, -HalfExtent, HalfExtent); - float cz = Math.Clamp(z, -HalfExtent, HalfExtent); - WorldToAccelCell(cx, cz, out int acx, out int acz); - - var indices = _cellBrushIndices[acz * AccelGridCount + acx]; - if (indices.Count == 0) - { - return 0f; - } - - float h = 0f; - for (int i = 0; i < indices.Count; i++) - { - int idx = indices[i]; - var b = _brushes[idx]; - h += EvaluateBrushHeightFast(in b, _brushPrecomps[idx], cx, cz); - } - - return Math.Clamp(h, MinWorldHeight, MaxWorldHeight); - } - - public (float Nx, float Ny, float Nz) SampleNormal(float x, float z) - { - const float eps = 0.5f; - float hL = SampleHeight(x - eps, z); - float hR = SampleHeight(x + eps, z); - float hD = SampleHeight(x, z - eps); - float hU = SampleHeight(x, z + eps); - - float nx = hL - hR; - float ny = 2f * eps; - float nz = hD - hU; - float len = MathF.Sqrt(nx * nx + ny * ny + nz * nz); - if (len < 1e-5f) - { - return (0f, 1f, 0f); - } - return (nx / len, ny / len, nz / len); - } - - public bool Raycast( - float ox, float oy, float oz, - float dx, float dy, float dz, - float maxDistance, - out float hitX, out float hitY, out float hitZ, out float hitDist) - { - float prevT = 0f; - float prevDiff = oy - SampleHeight(ox, oz); - if (prevDiff <= 0f) - { - hitX = ox; - hitY = oy; - hitZ = oz; - hitDist = 0f; - return true; - } - - float t = 1.5f; - while (prevT < maxDistance) - { - float ct = MathF.Min(t, maxDistance); - float px = ox + dx * ct; - float py = oy + dy * ct; - float pz = oz + dz * ct; - - float cx = Math.Clamp(px, -HalfExtent, HalfExtent); - float cz = Math.Clamp(pz, -HalfExtent, HalfExtent); - WorldToAccelCell(cx, cz, out int acx, out int acz); - float cellMax = _cellMaxHeight[acz * AccelGridCount + acx] + 0.02f; - - // Fast-skip consecutive cells strictly below the ray without sampling brushes - while (py > cellMax + 0.02f && - ct < maxDistance && - px >= -HalfExtent && px <= HalfExtent && - pz >= -HalfExtent && pz <= HalfExtent) - { - float cellMinX = -HalfExtent + acx * AccelCellSize; - float cellMaxX = cellMinX + AccelCellSize; - float cellMinZ = -HalfExtent + acz * AccelCellSize; - float cellMaxZ = cellMinZ + AccelCellSize; - float txExit = dx > 1e-6f ? (cellMaxX - px) / dx : (dx < -1e-6f ? (cellMinX - px) / dx : float.PositiveInfinity); - float tzExit = dz > 1e-6f ? (cellMaxZ - pz) / dz : (dz < -1e-6f ? (cellMinZ - pz) / dz : float.PositiveInfinity); - float tExit = MathF.Min(txExit, tzExit); - float advance = MathF.Min(tExit + 0.02f, maxDistance - ct); - if (advance <= 0.02f) - { - break; - } - float ey = py + dy * advance; - if (ey <= cellMax + 0.02f) - { - break; - } - prevT = ct + MathF.Min(tExit, maxDistance - ct); - ct += advance; - px = ox + dx * ct; - py = oy + dy * ct; - pz = oz + dz * ct; - cx = Math.Clamp(px, -HalfExtent, HalfExtent); - cz = Math.Clamp(pz, -HalfExtent, HalfExtent); - WorldToAccelCell(cx, cz, out acx, out acz); - cellMax = _cellMaxHeight[acz * AccelGridCount + acx] + 0.02f; - } - - if (py <= cellMax) - { - float diff = py - SampleHeight(px, pz); - if (diff <= 0f) - { - // Binary refine between prevT and ct - float lo = prevT; - float hi = ct; - for (int iter = 0; iter < 5; iter++) - { - float mid = 0.5f * (lo + hi); - float mx = ox + dx * mid; - float my = oy + dy * mid; - float mz = oz + dz * mid; - if (my - SampleHeight(mx, mz) > 0f) - { - lo = mid; - } - else - { - hi = mid; - } - } - - hitDist = 0.5f * (lo + hi); - hitX = ox + dx * hitDist; - hitZ = oz + dz * hitDist; - hitY = SampleHeight(hitX, hitZ); - return true; - } - } - - prevT = ct; - if (ct >= maxDistance) - { - break; - } - - float step = ct < 160f ? 1.5f : 2.5f; - t = ct + step; - } - - hitX = 0f; - hitY = 0f; - hitZ = 0f; - hitDist = maxDistance; - return false; - } - - private static float EvaluateBrushHeightFast(in TerrainBrush b, in BrushPrecomp p, float worldX, float worldZ) - { - float dx = worldX - b.X; - float dz = worldZ - b.Z; - if (dx * dx + dz * dz >= p.MaxRadiusSq) - { - return 0f; - } - - float lx = dx * p.CosR + dz * p.SinR; - float lz = -dx * p.SinR + dz * p.CosR; - - float u = lx * p.InvRx; - float v = lz * p.InvRz; - float r2 = u * u + v * v; - if (r2 >= 1f) - { - return 0f; - } - - return EvaluateBrushKernel(in b, u, r2); - } - - public static float EvaluateBrushHeight(in TerrainBrush b, float worldX, float worldZ) - { - float dx = worldX - b.X; - float dz = worldZ - b.Z; - float cosR = MathF.Cos(b.RotationRad); - float sinR = MathF.Sin(b.RotationRad); - float lx = dx * cosR + dz * sinR; - float lz = -dx * sinR + dz * cosR; - - float u = lx / MathF.Max(0.1f, b.RadiusX); - float v = lz / MathF.Max(0.1f, b.RadiusZ); - float r2 = u * u + v * v; - if (r2 >= 1f) - { - return 0f; - } - - return EvaluateBrushKernel(in b, u, r2); - } - - private static float EvaluateBrushKernel(in TerrainBrush b, float u, float r2) - { - switch (b.Kind) - { - case TerrainBrushKind.DuneRidge: - { - float env = 1f - r2; - env *= env; - float ridge = MathF.Max(0f, 1f - u * u); - float asym = 1f + 0.32f * u; - return b.HeightDelta * env * (0.35f + 0.65f * ridge) * asym; - } - case TerrainBrushKind.Mesa: - { - float r = MathF.Sqrt(r2); - float t = Math.Clamp((1f - r) / 0.45f, 0f, 1f); - float plateau = t * t * (3f - 2f * t); - return b.HeightDelta * plateau; - } - case TerrainBrushKind.SalvagePad: - case TerrainBrushKind.Road: - case TerrainBrushKind.Track: - { - float env = 1f - r2; - return b.HeightDelta * env * env; - } - case TerrainBrushKind.Crater: - { - float r = MathF.Sqrt(r2); - float depth = MathF.Abs(b.HeightDelta); - float pitT = Math.Clamp(1f - r / 0.62f, 0f, 1f); - float pit = -depth * pitT * pitT * (3f - 2f * pitT); - float rimT = MathF.Sin(MathF.PI * Math.Clamp((r - 0.55f) / 0.45f, 0f, 1f)); - float rim = (0.32f * depth) * rimT * rimT; - return pit + rim; - } - default: - return 0f; - } - } - - private TerrainBrush AddBrush(TerrainBrush template) - { - var brush = template with { Id = _nextBrushId++ }; - int index = _brushes.Count; - _brushes.Add(brush); - _brushPrecomps.Add(BrushPrecomp.From(in brush)); - RegisterBrushInTiles(index, in brush, incrementTileVersion: true); - return brush; - } - - private TerrainBrush SetDynamicDecal(TerrainBrush template) - { - var brush = template with { Id = _nextBrushId++ }; - if (_dynamicDecalSlots.Count >= MaxDynamicDecals) - { - int slot = _dynamicDecalSlots.Dequeue(); - var prev = _brushes[slot]; - UnregisterBrushFromTiles(slot, in prev); - _brushes[slot] = brush; - _brushPrecomps[slot] = BrushPrecomp.From(in brush); - RegisterBrushInTiles(slot, in brush, incrementTileVersion: true); - _dynamicDecalSlots.Enqueue(slot); - return brush; - } - - int index = _brushes.Count; - _brushes.Add(brush); - _brushPrecomps.Add(BrushPrecomp.From(in brush)); - RegisterBrushInTiles(index, in brush, incrementTileVersion: true); - _dynamicDecalSlots.Enqueue(index); - return brush; - } - - private static bool TryGetBrushCellBounds( - in TerrainBrush b, - in BrushPrecomp p, - int cx, int cz, - out float cellMaxPositiveHeight) - { - float minX = -HalfExtent + cx * AccelCellSize; - float maxX = minX + AccelCellSize; - float minZ = -HalfExtent + cz * AccelCellSize; - float maxZ = minZ + AccelCellSize; - - // Project all 4 cell corners into brush local (lx, lz) - float dx0 = minX - b.X, dx1 = maxX - b.X; - float dz0 = minZ - b.Z, dz1 = maxZ - b.Z; - float lx00 = dx0 * p.CosR + dz0 * p.SinR; - float lx10 = dx1 * p.CosR + dz0 * p.SinR; - float lx01 = dx0 * p.CosR + dz1 * p.SinR; - float lx11 = dx1 * p.CosR + dz1 * p.SinR; - - float lz00 = -dx0 * p.SinR + dz0 * p.CosR; - float lz10 = -dx1 * p.SinR + dz0 * p.CosR; - float lz01 = -dx0 * p.SinR + dz1 * p.CosR; - float lz11 = -dx1 * p.SinR + dz1 * p.CosR; - - float minLx = MathF.Min(MathF.Min(lx00, lx10), MathF.Min(lx01, lx11)); - float maxLx = MathF.Max(MathF.Max(lx00, lx10), MathF.Max(lx01, lx11)); - float minLz = MathF.Min(MathF.Min(lz00, lz10), MathF.Min(lz01, lz11)); - float maxLz = MathF.Max(MathF.Max(lz00, lz10), MathF.Max(lz01, lz11)); - - float absMinLx = (minLx <= 0f && maxLx >= 0f) ? 0f : MathF.Min(MathF.Abs(minLx), MathF.Abs(maxLx)); - float absMinLz = (minLz <= 0f && maxLz >= 0f) ? 0f : MathF.Min(MathF.Abs(minLz), MathF.Abs(maxLz)); - - float minU = absMinLx * p.InvRx; - float minV = absMinLz * p.InvRz; - float minR2 = minU * minU + minV * minV; - if (minR2 >= 1f) - { - cellMaxPositiveHeight = 0f; - return false; - } - - switch (b.Kind) - { - case TerrainBrushKind.DuneRidge: - { - if (b.HeightDelta <= 0f) - { - cellMaxPositiveHeight = 0f; - } - else - { - float env = 1f - minR2; - env *= env; - float ridge = MathF.Max(0f, 1f - minU * minU); - float maxAsym = MathF.Max(0f, 1f + 0.32f * (maxLx * p.InvRx)); - cellMaxPositiveHeight = b.HeightDelta * env * (0.35f + 0.65f * ridge) * maxAsym; - } - break; - } - case TerrainBrushKind.Mesa: - { - if (b.HeightDelta <= 0f) - { - cellMaxPositiveHeight = 0f; - } - else - { - float r = MathF.Sqrt(minR2); - float t = Math.Clamp((1f - r) / 0.45f, 0f, 1f); - cellMaxPositiveHeight = b.HeightDelta * t * t * (3f - 2f * t); - } - break; - } - case TerrainBrushKind.SalvagePad: - case TerrainBrushKind.Road: - case TerrainBrushKind.Track: - { - if (b.HeightDelta <= 0f) - { - cellMaxPositiveHeight = 0f; - } - else - { - float env = 1f - minR2; - cellMaxPositiveHeight = b.HeightDelta * env * env; - } - break; - } - case TerrainBrushKind.Crater: - cellMaxPositiveHeight = 0.33f * MathF.Abs(b.HeightDelta); - break; - default: - cellMaxPositiveHeight = 0f; - break; - } - - return true; - } - - private void RecomputeCellMaxHeight(int cx, int cz) - { - float sum = 0f; - int cellIdx = cz * AccelGridCount + cx; - var indices = _cellBrushIndices[cellIdx]; - for (int i = 0; i < indices.Count; i++) - { - int bIdx = indices[i]; - if (TryGetBrushCellBounds(_brushes[bIdx], _brushPrecomps[bIdx], cx, cz, out float h)) - { - sum += h; - } - } - _cellMaxHeight[cellIdx] = Math.Min(MaxWorldHeight, sum); - } - - private void RegisterBrushInTiles(int index, in TerrainBrush brush, bool incrementTileVersion) - { - bool isStructural = brush.Kind != TerrainBrushKind.Track && brush.Kind != TerrainBrushKind.Scorch; - GetBrushTileBounds(in brush, out int minTx, out int maxTx, out int minTz, out int maxTz); - for (int tz = minTz; tz <= maxTz; tz++) - { - for (int tx = minTx; tx <= maxTx; tx++) - { - _tileBrushIndices[tx, tz].Add(index); - if (incrementTileVersion) - { - TileVersions[tx, tz]++; - ulong bit = 1UL << (tz * TileGridCount + tx); - DirtyTileMask |= bit; - if (isStructural) - { - StructuralDirtyTileMask |= bit; - } - } - } - } - - if (brush.Kind != TerrainBrushKind.Scorch) - { - var precomp = _brushPrecomps[index]; - GetBrushAccelBounds(in brush, out int minCx, out int maxCx, out int minCz, out int maxCz); - for (int cz = minCz; cz <= maxCz; cz++) - { - for (int cx = minCx; cx <= maxCx; cx++) - { - if (TryGetBrushCellBounds(in brush, in precomp, cx, cz, out float cellMaxPos)) - { - int cellIdx = cz * AccelGridCount + cx; - _cellBrushIndices[cellIdx].Add(index); - _cellMaxHeight[cellIdx] = Math.Min(MaxWorldHeight, _cellMaxHeight[cellIdx] + cellMaxPos); - } - } - } - } - } - - private void UnregisterBrushFromTiles(int index, in TerrainBrush brush) - { - bool isStructural = brush.Kind != TerrainBrushKind.Track && brush.Kind != TerrainBrushKind.Scorch; - GetBrushTileBounds(in brush, out int minTx, out int maxTx, out int minTz, out int maxTz); - for (int tz = minTz; tz <= maxTz; tz++) - { - for (int tx = minTx; tx <= maxTx; tx++) - { - _tileBrushIndices[tx, tz].Remove(index); - TileVersions[tx, tz]++; - ulong bit = 1UL << (tz * TileGridCount + tx); - DirtyTileMask |= bit; - if (isStructural) - { - StructuralDirtyTileMask |= bit; - } - } - } - - if (brush.Kind != TerrainBrushKind.Scorch) - { - GetBrushAccelBounds(in brush, out int minCx, out int maxCx, out int minCz, out int maxCz); - for (int cz = minCz; cz <= maxCz; cz++) - { - for (int cx = minCx; cx <= maxCx; cx++) - { - int cellIdx = cz * AccelGridCount + cx; - _cellBrushIndices[cellIdx].Remove(index); - RecomputeCellMaxHeight(cx, cz); - } - } - } - } - - private static void GetBrushAccelBounds(in TerrainBrush brush, out int minCx, out int maxCx, out int minCz, out int maxCz) - { - float extent = MathF.Max(0.1f, MathF.Max(brush.RadiusX, brush.RadiusZ)) + 0.1f; - WorldToAccelCell(Math.Clamp(brush.X - extent, -HalfExtent, HalfExtent), Math.Clamp(brush.Z - extent, -HalfExtent, HalfExtent), out minCx, out minCz); - WorldToAccelCell(Math.Clamp(brush.X + extent, -HalfExtent, HalfExtent), Math.Clamp(brush.Z + extent, -HalfExtent, HalfExtent), out maxCx, out maxCz); - } - - private static void WorldToAccelCell(float x, float z, out int cx, out int cz) - { - float nx = (x + HalfExtent) / AccelCellSize; - float nz = (z + HalfExtent) / AccelCellSize; - cx = Math.Clamp((int)MathF.Floor(nx), 0, AccelGridCount - 1); - cz = Math.Clamp((int)MathF.Floor(nz), 0, AccelGridCount - 1); - } - - private static void GetBrushTileBounds(in TerrainBrush brush, out int minTx, out int maxTx, out int minTz, out int maxTz) - { - const float gutterPaddingMeters = 3.5f; - float extent = MathF.Sqrt(brush.RadiusX * brush.RadiusX + brush.RadiusZ * brush.RadiusZ) + gutterPaddingMeters; - float minX = brush.X - extent; - float maxX = brush.X + extent; - float minZ = brush.Z - extent; - float maxZ = brush.Z + extent; - - WorldToTile(Math.Clamp(minX, -HalfExtent, HalfExtent), Math.Clamp(minZ, -HalfExtent, HalfExtent), out minTx, out minTz); - WorldToTile(Math.Clamp(maxX, -HalfExtent, HalfExtent), Math.Clamp(maxZ, -HalfExtent, HalfExtent), out maxTx, out maxTz); - } - - public static void WorldToTile(float x, float z, out int tx, out int tz) - { - float nx = (x + HalfExtent) / TileSize; - float nz = (z + HalfExtent) / TileSize; - tx = Math.Clamp((int)MathF.Floor(nx), 0, TileGridCount - 1); - tz = Math.Clamp((int)MathF.Floor(nz), 0, TileGridCount - 1); - } - - private static bool IsBrushClearOfCover(in TerrainBrush candidate, IReadOnlyList coverBoxes) - { - if (MathF.Abs(EvaluateBrushHeight(in candidate, 0f, 0f)) > 0.25f) - { - return false; - } - - const float margin = 2.0f; - for (int i = 0; i < coverBoxes.Count; i++) - { - var c = coverBoxes[i]; - float hx = c.HalfX + margin; - float hz = c.HalfZ + margin; - - if (MathF.Abs(EvaluateBrushHeight(in candidate, c.X, c.Z)) > 0.25f || - MathF.Abs(EvaluateBrushHeight(in candidate, c.X - hx, c.Z - hz)) > 0.25f || - MathF.Abs(EvaluateBrushHeight(in candidate, c.X + hx, c.Z - hz)) > 0.25f || - MathF.Abs(EvaluateBrushHeight(in candidate, c.X - hx, c.Z + hz)) > 0.25f || - MathF.Abs(EvaluateBrushHeight(in candidate, c.X + hx, c.Z + hz)) > 0.25f) - { - return false; - } - } - return true; - } - } -} diff --git a/src/RustToDust.Core/VehicleCatalogLoader.cs b/src/RustToDust.Core/VehicleCatalogLoader.cs deleted file mode 100644 index 3336ffe..0000000 --- a/src/RustToDust.Core/VehicleCatalogLoader.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; - -namespace RustToDust.Core -{ - public static class VehicleCatalogLoader - { - public static string LocateVehiclesDirectory() - { - string? envRoot = Environment.GetEnvironmentVariable("RTD_ASSETS_DIR"); - if (!string.IsNullOrWhiteSpace(envRoot)) - { - string envVehicles = Path.Combine(envRoot, "vehicles"); - if (HasVehiclePackages(envVehicles)) - { - return Path.GetFullPath(envVehicles); - } - } - - foreach (string start in new[] { AppContext.BaseDirectory, Directory.GetCurrentDirectory() }) - { - if (string.IsNullOrWhiteSpace(start) || !Directory.Exists(start)) - { - continue; - } - - var dir = new DirectoryInfo(Path.GetFullPath(start)); - while (dir is not null) - { - string candidate = Path.Combine(dir.FullName, "assets", "vehicles"); - if (HasVehiclePackages(candidate)) - { - return candidate; - } - dir = dir.Parent; - } - } - - throw new DirectoryNotFoundException( - $"Could not locate 'assets/vehicles' containing vehicle.cc packages from BaseDirectory '{AppContext.BaseDirectory}' or CurrentDirectory '{Directory.GetCurrentDirectory()}'."); - } - - private static bool HasVehiclePackages(string vehiclesDir) - { - if (!Directory.Exists(vehiclesDir)) - { - return false; - } - return Directory.EnumerateFiles(vehiclesDir, "vehicle.cc", SearchOption.AllDirectories).Any(); - } - - public static IReadOnlyList<(VehiclePackage Package, ChassisSpec Spec)> LoadAll(string? vehiclesDirectory = null) - { - string root = vehiclesDirectory ?? LocateVehiclesDirectory(); - if (!Directory.Exists(root)) - { - throw new DirectoryNotFoundException($"Vehicles directory not found: {root}"); - } - - var results = new List<(VehiclePackage Package, ChassisSpec Spec)>(); - foreach (string dir in Directory.GetDirectories(root).OrderBy(d => d, StringComparer.Ordinal)) - { - string ccPath = Path.Combine(dir, "vehicle.cc"); - if (!File.Exists(ccPath)) - { - continue; - } - - var pkg = VehiclePackageStore.Read(ccPath); - var spec = pkg.ToChassisSpec(); - results.Add((pkg, spec)); - } - - if (results.Count == 0) - { - throw new InvalidOperationException($"No vehicle.cc archives found under {root}."); - } - - return results; - } - } -} diff --git a/src/RustToDust.Core/VehiclePackage.cs b/src/RustToDust.Core/VehiclePackage.cs deleted file mode 100644 index 2d8a0b0..0000000 --- a/src/RustToDust.Core/VehiclePackage.cs +++ /dev/null @@ -1,339 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using GameCult.Caching; -using GameCult.Caching.MessagePack; -using MessagePack; - -namespace RustToDust.Core -{ - [CultDocument("rtd.vehicle_package", "1"), MessagePackObject] - public sealed class VehiclePackage - { - [CultName, Key(0)] public string Id { get; set; } = string.Empty; - [Key(1)] public string Name { get; set; } = string.Empty; - [Key(2)] public string VehicleClass { get; set; } = string.Empty; - [Key(3)] public MobilityKind Mobility { get; set; } - [Key(4)] public GridPlane Plane { get; set; } - [Key(5)] public int GridWidth { get; set; } - [Key(6)] public int GridHeight { get; set; } - [Key(7)] public string[] Mask { get; set; } = Array.Empty(); - [Key(8)] public float MassKg { get; set; } - [Key(9)] public float MaxSpeed { get; set; } - [Key(10)] public float TurnRate { get; set; } - [Key(11)] public float ThrustNewtons { get; set; } - [Key(12)] public float HoverMaxAltitudeM { get; set; } - [Key(13)] public float ArmorPerCell { get; set; } - [Key(14)] public float Conductivity { get; set; } - [Key(15)] public int CargoCapacity { get; set; } - [Key(16)] public float HalfWidth { get; set; } - [Key(17)] public float HalfHeight { get; set; } - [Key(18)] public float HalfLength { get; set; } - [Key(19)] public string ModelAsset { get; set; } = string.Empty; - [Key(20)] public Dictionary DefaultLoadout { get; set; } = new(); - [Key(21)] public List Hardpoints { get; set; } = new(); - [Key(22)] public List Joints { get; set; } = new(); - [Key(23)] public VehicleMechanismsRecord? Mechanisms { get; set; } - [Key(24)] public List PartCells { get; set; } = new(); - [Key(25)] public float BaseCellThermalMass { get; set; } = 12f; - - public ChassisSpec ToChassisSpec() - { - bool[] boolMask = ParseMaskRows(Mask, GridWidth, GridHeight); - var hps = new HardpointSpec[Hardpoints.Count]; - for (int i = 0; i < Hardpoints.Count; i++) - { - var hp = Hardpoints[i]; - hps[i] = new HardpointSpec( - Id: hp.Id, - Kind: hp.Kind, - X: hp.X, - Y: hp.Y, - Width: hp.W, - Height: hp.H, - ArmorBonus: hp.ArmorBonus, - MinPitchDeg: hp.MinPitchDeg, - MaxPitchDeg: hp.MaxPitchDeg, - IsWideArc: hp.IsWideArc); - } - - return new ChassisSpec( - Id: Id, - Name: Name, - Plane: Plane, - Width: GridWidth, - Height: GridHeight, - Mask: boolMask, - Hardpoints: hps, - HullConductivity: Conductivity, - BaseCellThermalMass: BaseCellThermalMass, - BaseCellArmor: ArmorPerCell, - MassKg: MassKg, - BaseThrust: ThrustNewtons, - BaseTurnRate: TurnRate, - MaxSpeed: MaxSpeed, - HalfWidth: HalfWidth, - HalfHeight: HalfHeight, - HalfLength: HalfLength, - CargoCapacity: CargoCapacity, - Mobility: Mobility, - HoverMaxAltitudeM: HoverMaxAltitudeM, - VehicleClass: VehicleClass); - } - - public static bool[] ParseMaskRows(string[] rows, int width, int height) - { - if (rows.Length != height) - { - throw new InvalidOperationException($"Mask row count {rows.Length} != GridHeight {height}."); - } - - var mask = new bool[width * height]; - for (int y = 0; y < height; y++) - { - if (rows[y].Length != width) - { - throw new InvalidOperationException($"Mask row {y} length {rows[y].Length} != GridWidth {width}."); - } - for (int x = 0; x < width; x++) - { - mask[y * width + x] = rows[y][x] == '#'; - } - } - return mask; - } - } - - [MessagePackObject] - public sealed class VehicleHardpointRecord - { - [Key(0)] public string Id { get; set; } = string.Empty; - [Key(1)] public string AnchorId { get; set; } = string.Empty; - [Key(2)] public HardpointKind Kind { get; set; } - [Key(3)] public int X { get; set; } - [Key(4)] public int Y { get; set; } - [Key(5)] public int W { get; set; } - [Key(6)] public int H { get; set; } - [Key(7)] public float MinPitchDeg { get; set; } - [Key(8)] public float MaxPitchDeg { get; set; } - [Key(9)] public bool IsWideArc { get; set; } - [Key(10)] public float ArmorBonus { get; set; } - [Key(11), CultElementId(nameof(Id))] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class VehicleJointRecord - { - [Key(0)] public string Id { get; set; } = string.Empty; - [Key(1)] public string NodeName { get; set; } = string.Empty; - [Key(2)] public float[] Axis { get; set; } = Array.Empty(); - [Key(3)] public float MinVal { get; set; } - [Key(4)] public float MaxVal { get; set; } - [Key(5), CultElementId(nameof(Id))] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class VehiclePartCellRecord - { - [Key(0)] public string NodeName { get; set; } = string.Empty; - [Key(1)] public int CellX { get; set; } - [Key(2)] public int CellY { get; set; } - [Key(3)] public string Kind { get; set; } = string.Empty; - [Key(4), CultElementId] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class VehicleMechanismsRecord - { - [Key(0)] public string Frame { get; set; } = string.Empty; - [Key(1)] public float[] RootOrigin { get; set; } = Array.Empty(); - [Key(2)] public List Dofs { get; set; } = new(); - [Key(3)] public List Rams { get; set; } = new(); - [Key(4)] public List Scissors { get; set; } = new(); - [Key(5)] public List Struts { get; set; } = new(); - } - - [MessagePackObject] - public sealed class MechanismDofRecord - { - [Key(0)] public string Name { get; set; } = string.Empty; - [Key(1)] public int Parent { get; set; } - [Key(2)] public string Kind { get; set; } = string.Empty; - [Key(3)] public string? Mechanism { get; set; } - [Key(4)] public string? Side { get; set; } - [Key(5)] public float[] Origin { get; set; } = Array.Empty(); - [Key(6)] public float[] Axis { get; set; } = Array.Empty(); - [Key(7)] public float Lo { get; set; } - [Key(8)] public float Hi { get; set; } - [Key(9)] public int Depth { get; set; } - [Key(10)] public string? StoppedBy { get; set; } - [Key(11)] public float? ComplianceDampingRatio { get; set; } - [Key(12)] public float? ComplianceHertz { get; set; } - [Key(13), CultElementId(nameof(Name))] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class MechanismRamRecord - { - [Key(0)] public string Name { get; set; } = string.Empty; - [Key(1)] public string BarrelBone { get; set; } = string.Empty; - [Key(2)] public string RodBone { get; set; } = string.Empty; - [Key(3)] public string[] Spans { get; set; } = Array.Empty(); - [Key(4)] public float Bore { get; set; } - [Key(5)] public float Body { get; set; } - [Key(6)] public float Inner { get; set; } - [Key(7)] public float Extension { get; set; } - [Key(8)] public float Rest { get; set; } - [Key(9)] public float[] Stroke { get; set; } = Array.Empty(); - [Key(10)] public int? AParentDof { get; set; } - [Key(11)] public float[]? APos { get; set; } - [Key(12)] public int? BParentDof { get; set; } - [Key(13)] public float[]? BPos { get; set; } - [Key(14)] public float[]? PinDir { get; set; } - [Key(15), CultElementId(nameof(Name))] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class MechanismScissorRecord - { - [Key(0)] public string Name { get; set; } = string.Empty; - [Key(1)] public string UpperBone { get; set; } = string.Empty; - [Key(2)] public string LowerBone { get; set; } = string.Empty; - [Key(3)] public float Arm { get; set; } - [Key(4)] public int? AParentDof { get; set; } - [Key(5)] public float[]? APos { get; set; } - [Key(6)] public int? BParentDof { get; set; } - [Key(7)] public float[]? BPos { get; set; } - [Key(8)] public float[]? OutDir { get; set; } - [Key(9), CultElementId(nameof(Name))] public string ElementId { get; set; } = string.Empty; - } - - [MessagePackObject] - public sealed class MechanismStrutRecord - { - [Key(0)] public string Name { get; set; } = string.Empty; - [Key(1)] public string? Side { get; set; } - [Key(2)] public string Dof { get; set; } = string.Empty; - [Key(3)] public float Travel { get; set; } - [Key(4)] public float Hertz { get; set; } - [Key(5)] public float DampingRatio { get; set; } - [Key(6), CultElementId(nameof(Name))] public string ElementId { get; set; } = string.Empty; - } - - public static class VehiclePackageStore - { - public static CultDocumentRegistry Registry { get; } = - CultDocumentRegistry.ForTypes(new[] { typeof(VehiclePackage) }); - - public static CultRecordKey PackageKey(string id) => new("vehicle:" + id); - - public static CultCache Open(string path, bool writable = false) - { - var options = new CultCacheOpenOptions - { - Registry = Registry, - ReadOnly = !writable, - FlushOnDispose = false, - StoreFlushOnDispose = false, - UseDirectoryStore = false - }; - return CultCacheMessagePack.Create(path, options); - } - - public static VehiclePackage Read(string path) - { - if (!File.Exists(path)) - { - throw new FileNotFoundException($"Vehicle package archive not found: {path}", path); - } - - using var cache = Open(path, writable: false); - var records = cache.GetAll().ToArray(); - if (records.Length != 1) - { - throw new InvalidOperationException($"{path} must contain exactly 1 VehiclePackage record, found {records.Length}."); - } - - var pkg = records[0]; - Validate(pkg, path); - return pkg; - } - - public static void Write(string path, VehiclePackage pkg) - { - if (pkg is null) throw new ArgumentNullException(nameof(pkg)); - Validate(pkg, path); - - string fullPath = Path.GetFullPath(path); - string dir = Path.GetDirectoryName(fullPath) ?? "."; - Directory.CreateDirectory(dir); - - string workspace = fullPath + "." + Guid.NewGuid().ToString("N") + ".tmp"; - string tempFile = Path.Combine(workspace, "vehicle.cc"); - try - { - Directory.CreateDirectory(workspace); - using (var cache = Open(tempFile, writable: true)) - { - cache.UpsertAsync(typeof(VehiclePackage), pkg, PackageKey(pkg.Id)).GetAwaiter().GetResult(); - cache.FlushAsync().GetAwaiter().GetResult(); - } - - if (File.Exists(fullPath)) - { - File.Replace(tempFile, fullPath, null); - } - else - { - File.Move(tempFile, fullPath); - } - } - finally - { - if (Directory.Exists(workspace)) - { - Directory.Delete(workspace, recursive: true); - } - } - } - - public static void Validate(VehiclePackage pkg, string sourcePath) - { - if (string.IsNullOrWhiteSpace(pkg.Id)) - throw new InvalidOperationException($"{sourcePath}: VehiclePackage.Id is empty."); - if (string.IsNullOrWhiteSpace(pkg.ModelAsset)) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: ModelAsset is empty."); - if (pkg.GridWidth <= 0 || pkg.GridHeight <= 0) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: invalid grid dimensions {pkg.GridWidth}x{pkg.GridHeight}."); - - bool[] mask = VehiclePackage.ParseMaskRows(pkg.Mask, pkg.GridWidth, pkg.GridHeight); - foreach (var hp in pkg.Hardpoints) - { - if (string.IsNullOrWhiteSpace(hp.Id) || string.IsNullOrWhiteSpace(hp.AnchorId)) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: hardpoint has empty Id or AnchorId."); - if (hp.X < 0 || hp.Y < 0 || hp.W <= 0 || hp.H <= 0 || hp.X + hp.W > pkg.GridWidth || hp.Y + hp.H > pkg.GridHeight) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: hardpoint {hp.Id} out of grid bounds."); - for (int cy = hp.Y; cy < hp.Y + hp.H; cy++) - { - for (int cx = hp.X; cx < hp.X + hp.W; cx++) - { - if (!mask[cy * pkg.GridWidth + cx]) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: hardpoint {hp.Id} covers inactive cell ({cx},{cy})."); - } - } - } - - if (pkg.PartCells.Count == 0) - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: PartCells is empty."); - - foreach (var pc in pkg.PartCells) - { - if (pc.CellX < 0 || pc.CellX >= pkg.GridWidth || pc.CellY < 0 || pc.CellY >= pkg.GridHeight || !mask[pc.CellY * pkg.GridWidth + pc.CellX]) - { - throw new InvalidOperationException($"{sourcePath}: {pkg.Id}: PartCell '{pc.NodeName}' mapped to inactive/out-of-bounds cell ({pc.CellX},{pc.CellY})."); - } - } - } - } -} diff --git a/src/RustToDust.Ymir/ArenaSession.cs b/src/RustToDust.Ymir/ArenaSession.cs deleted file mode 100644 index c98ee09..0000000 --- a/src/RustToDust.Ymir/ArenaSession.cs +++ /dev/null @@ -1,2022 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Numerics; -using RustToDust.Core; -using Ymir.Box3D; - -namespace RustToDust.Ymir -{ - public sealed class ArenaSession : IDisposable - { - public const float FixedDt = 1f / 60f; - public const int SubStepCount = 4; - public const int WorldBodyCapacity = 384; - - private const ulong GroundStableId = 1; - private const ulong StaticBoxStableIdBase = 10; - public const ulong ContenderStableIdBase = 1000; - private const ulong SpectatorStableIdBase = 3000; - - private readonly Box3DSoaWorld _world; - private readonly Dictionary _contenderBodies = new(); - private readonly Dictionary _spectatorBodies = new(); - private readonly Dictionary _entityByStableId = new(); - private readonly float[] _trackDistAccum = new float[MatchState.ContenderCount]; - private bool _disposed; - - public ArenaSession(int seed = 42) - { - State = new MatchState(seed); - State.ChassisSwapped += OnContenderChassisSwapped; - - _world = new Box3DSoaWorld( - capacity: WorldBodyCapacity, - gravityX: 0f, - gravityY: -20f, - gravityZ: 0f); - - BuildStaticArena(); - SpawnContenderBodies(); - SpawnSpectatorBodies(); - UpdatePlayerDetectionMemory(); - } - - public static bool PerfEnabled; - public static double PerfRingMs; - public static double PerfAiMs; - public static double PerfDriveMs; - public static double PerfWorldMs; - public static double PerfBodySyncMs; - public static double PerfDetectMs; - public static double PerfWeaponsMs; - - public MatchState State { get; } - public Box3DSoaWorld World => _world; - - public bool TryEquipCargo(int cargoIndex, string hardpointId) => - State.TryEquipCargo(cargoIndex, hardpointId); - - public bool TrySwapNearbyChassis() => - State.TrySwapNearbyChassis(0); - - public Box3DSoaBodyHandle? GetContenderBody(int contenderId) => - _contenderBodies.TryGetValue(contenderId, out var h) ? h : null; - - public Box3DSoaBodyHandle? GetSpectatorBody(int spectatorId) => - _spectatorBodies.TryGetValue(spectatorId, out var h) ? h : null; - - public void SetContenderPose(int contenderId, float x, float z, float? yaw = null) - { - if (contenderId < 0 || contenderId >= State.Contenders.Count) - { - return; - } - var c = State.Contenders[contenderId]; - c.X = x; - c.Z = z; - if (yaw.HasValue) c.Yaw = yaw.Value; - - if (_contenderBodies.TryGetValue(contenderId, out var oldHandle)) - { - _world.RemoveBody(oldHandle); - _contenderBodies.Remove(contenderId); - } - if (c.Alive) - { - SpawnContenderBody(c); - } - } - - public void SetSpectatorPose(int spectatorId, float x, float z, float? yaw = null) - { - SpectatorState? spec = null; - int index = -1; - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - if (State.Spectators.Spectators[i].Id == spectatorId) - { - spec = State.Spectators.Spectators[i]; - index = i; - break; - } - } - if (spec is null) - { - return; - } - - spec.X = x; - spec.Z = z; - if (yaw.HasValue) spec.Yaw = yaw.Value; - - if (_spectatorBodies.TryGetValue(spectatorId, out var oldHandle)) - { - _world.RemoveBody(oldHandle); - _spectatorBodies.Remove(spectatorId); - } - if (spec.Alive) - { - SpawnSpectatorBody(index, spec); - } - } - - public bool HasLineOfSight(float ax, float ay, float az, float bx, float by, float bz) - { - var delta = new Vector3(bx - ax, by - ay, bz - az); - float dist = delta.Length(); - if (dist <= 0.25f) - { - return true; - } - - Vector3 dir = delta / dist; - // Only static cover/boundary boxes and terrain block LOS; check fast static AABBs first. - if (IntersectsAnyStaticBox(ax, ay, az, dir.X, dir.Y, dir.Z, dist)) - { - return false; - } - - return !State.Terrain.Raycast( - ax, ay, az, - dir.X, dir.Y, dir.Z, - MathF.Max(0.1f, dist - 0.5f), - out _, out _, out _, out _); - } - - private bool IntersectsAnyStaticBox(float ox, float oy, float oz, float dx, float dy, float dz, float maxDist) - { - var boxes = State.ArenaCoverBoxes; - for (int i = 0; i < boxes.Count; i++) - { - var b = boxes[i]; - if (RayIntersectsAabb(ox, oy, oz, dx, dy, dz, maxDist, b)) - { - return true; - } - } - var bounds = State.ArenaBoundaryBoxes; - for (int i = 0; i < bounds.Count; i++) - { - var b = bounds[i]; - if (RayIntersectsAabb(ox, oy, oz, dx, dy, dz, maxDist, b)) - { - return true; - } - } - return false; - } - - private static bool RayIntersectsAabb( - float ox, float oy, float oz, - float dx, float dy, float dz, - float maxDist, - in ArenaBoxSpec box) - { - float tMin = 0f; - float tMax = maxDist; - - if (!SlabTest(ox, dx, box.X - box.HalfX, box.X + box.HalfX, ref tMin, ref tMax)) return false; - if (!SlabTest(oy, dy, box.Y - box.HalfY, box.Y + box.HalfY, ref tMin, ref tMax)) return false; - if (!SlabTest(oz, dz, box.Z - box.HalfZ, box.Z + box.HalfZ, ref tMin, ref tMax)) return false; - return tMax >= tMin; - } - - private static bool SlabTest(float o, float d, float minB, float maxB, ref float tMin, ref float tMax) - { - if (MathF.Abs(d) < 1e-6f) - { - return o >= minB && o <= maxB; - } - float invD = 1f / d; - float t1 = (minB - o) * invD; - float t2 = (maxB - o) * invD; - if (t1 > t2) (t1, t2) = (t2, t1); - tMin = MathF.Max(tMin, t1); - tMax = MathF.Min(tMax, t2); - return tMax >= tMin; - } - - public void Step(PlayerInput input) - { - ObjectDisposedException.ThrowIf(_disposed, this); - - State.Time += FixedDt; - MatchRules.AdvanceTracers(State, FixedDt); - MatchRules.AdvanceHitEvents(State, FixedDt); - State.Spectators.UpdateSafeRadius(State.Time); - State.Spectators.AdvancePerimeterOrbits(FixedDt); - - if (!PerfEnabled) - { - UpdateRingClearance(); - MatchRules.ApplyPlayerInput(State, input); - MatchRules.UpdateAiContenders(State, FixedDt, HasLineOfSight); - - ApplyPhysicsDrives(); - _world.Step(FixedDt, SubStepCount); - SyncBodiesFromWorld(); - - UpdatePlayerDetectionMemory(); - StepThermalAndCooldowns(); - ProcessWeapons(); - MatchRules.UpdateMatchOutcome(State); - return; - } - - double toMs = 1000.0 / Stopwatch.Frequency; - long t0 = Stopwatch.GetTimestamp(); - UpdateRingClearance(); - long t1 = Stopwatch.GetTimestamp(); - MatchRules.ApplyPlayerInput(State, input); - MatchRules.UpdateAiContenders(State, FixedDt, HasLineOfSight); - long t2 = Stopwatch.GetTimestamp(); - ApplyPhysicsDrives(); - long t3 = Stopwatch.GetTimestamp(); - _world.Step(FixedDt, SubStepCount); - long t4 = Stopwatch.GetTimestamp(); - SyncBodiesFromWorld(); - long t5 = Stopwatch.GetTimestamp(); - UpdatePlayerDetectionMemory(); - long t6 = Stopwatch.GetTimestamp(); - StepThermalAndCooldowns(); - ProcessWeapons(); - long t7 = Stopwatch.GetTimestamp(); - MatchRules.UpdateMatchOutcome(State); - - PerfRingMs += (t1 - t0) * toMs; - PerfAiMs += (t2 - t1) * toMs; - PerfDriveMs += (t3 - t2) * toMs; - PerfWorldMs += (t4 - t3) * toMs; - PerfBodySyncMs += (t5 - t4) * toMs; - PerfDetectMs += (t6 - t5) * toMs; - PerfWeaponsMs += (t7 - t6) * toMs; - } - - private void BuildStaticArena() - { - // Safety floor slab at y = -20m below the lowest possible terrain valley (-18m); - // primary terrain support comes from 4-corner spring-damper sampling of State.Terrain. - _world.AddStaticBox( - GroundStableId, - (0f, -20f, 0f), - (800f, 1f, 800f), - friction: 0.25f, - restitution: 0.05f); - - ulong nextId = StaticBoxStableIdBase; - for (int i = 0; i < State.ArenaBoundaryBoxes.Count; i++) - { - var b = State.ArenaBoundaryBoxes[i]; - _world.AddStaticBox( - nextId++, - (b.X, b.Y, b.Z), - (b.HalfX, b.HalfY, b.HalfZ), - friction: 0.35f, - restitution: 0.1f); - } - - for (int i = 0; i < State.ArenaCoverBoxes.Count; i++) - { - var b = State.ArenaCoverBoxes[i]; - _world.AddStaticBox( - nextId++, - (b.X, b.Y, b.Z), - (b.HalfX, b.HalfY, b.HalfZ), - friction: 0.4f, - restitution: 0.05f); - } - } - - private void SpawnContenderBodies() - { - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - SpawnContenderBody(c); - } - } - - private void SpawnContenderBody(ContenderState c) - { - var spec = c.Grid.Spec; - float volume = 8f * spec.HalfWidth * spec.HalfHeight * spec.HalfLength; - float density = spec.MassKg / MathF.Max(0.1f, volume); - var q = Quaternion.CreateFromAxisAngle(Vector3.UnitY, c.Yaw); - ulong stableId = ContenderStableIdBase + (ulong)c.Id; - float clearance = spec.IsVtol - ? Math.Clamp(c.TargetHoverAltAgl, MatchRules.VtolMinClearanceAgl, MathF.Max(MatchRules.VtolMinClearanceAgl, spec.HoverMaxAltitudeM)) - : 0.15f; - float spawnY = State.Terrain.SampleHeight(c.X, c.Z) + spec.HalfHeight + clearance; - c.Y = spawnY; - - var handle = _world.AddBox( - stableId, - (c.X, spawnY, c.Z), - (spec.HalfWidth, spec.HalfHeight, spec.HalfLength), - density, - (q.X, q.Y, q.Z, q.W), - friction: 0.2f, - restitution: 0.1f); - - _contenderBodies[c.Id] = handle; - _entityByStableId[stableId] = (true, c.Id); - } - - private void OnContenderChassisSwapped(ContenderState c) - { - if (_contenderBodies.TryGetValue(c.Id, out var oldHandle)) - { - _world.RemoveBody(oldHandle); - _contenderBodies.Remove(c.Id); - } - if (c.Alive) - { - SpawnContenderBody(c); - } - } - - private void SpawnSpectatorBodies() - { - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - SpawnSpectatorBody(i, State.Spectators.Spectators[i]); - } - } - - private void SpawnSpectatorBody(int index, SpectatorState s) - { - var spec = s.Grid.Spec; - float volume = 8f * spec.HalfWidth * spec.HalfHeight * spec.HalfLength; - float density = spec.MassKg / MathF.Max(0.1f, volume); - var q = Quaternion.CreateFromAxisAngle(Vector3.UnitY, s.Yaw); - ulong stableId = SpectatorStableIdBase + (ulong)s.Id; - float spawnY = State.Terrain.SampleHeight(s.X, s.Z) + spec.HalfHeight + 0.15f; - s.Y = spawnY; - - var handle = _world.AddBox( - stableId, - (s.X, spawnY, s.Z), - (spec.HalfWidth, spec.HalfHeight, spec.HalfLength), - density, - (q.X, q.Y, q.Z, q.W), - friction: 0.2f, - restitution: 0.1f); - - _spectatorBodies[s.Id] = handle; - _entityByStableId[stableId] = (false, index); - } - - private void UpdateRingClearance() - { - Span contacts = stackalloc RingContact[State.Contenders.Count]; - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - contacts[i] = new RingContact(c.Id, c.X, c.Z, c.Alive, c.Y, c.Grid.Spec.HalfHeight); - } - State.Spectators.UpdateClearance(contacts, FixedDt, HasSpectatorLos); - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (s.Alive && s.Stance != SpectatorStance.Neutral && !s.BroadcastWakeupEmitted && s.TargetContenderId.HasValue) - { - s.BroadcastWakeupEmitted = true; - if (s.Stance == SpectatorStance.Provoked) - { - if (s.Tier == SpectatorTier.Tourist) - { - State.Broadcast.EmitTouristPull(State.Time, s.TargetContenderId.Value); - } - else if (s.Tier == SpectatorTier.Exemplar) - { - State.Broadcast.EmitExemplarWakeup(State.Time, s.TargetContenderId.Value); - } - } - else if (s.Tier == SpectatorTier.Patron) - { - State.Broadcast.EmitPatronClearance(State.Time, s.TargetContenderId.Value); - } - } - else if (s.Stance == SpectatorStance.Neutral) - { - s.BroadcastWakeupEmitted = false; - } - } - } - - private bool HasSpectatorLos(SpectatorState spec, RingContact target) - { - return HasLineOfSight( - spec.X, MatchRules.GetObserverEyeY(spec.Y, spec.Grid.Spec.HalfHeight), spec.Z, - target.X, MatchRules.GetTargetAimY(target.Y, target.HalfHeight), target.Z); - } - - private void ApplyPhysicsDrives() - { - var view = _world.View; - - // Contenders - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (!c.Alive || !_contenderBodies.TryGetValue(c.Id, out var handle)) - { - continue; - } - - int lane = handle.Lane; - float mass = view.Mass[lane]; - if (mass <= 0f) - { - continue; - } - - var pos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var vel = new Vector3(view.VelocityX[lane], view.VelocityY[lane], view.VelocityZ[lane]); - var angVel = new Vector3(view.AngularVelocityX[lane], view.AngularVelocityY[lane], view.AngularVelocityZ[lane]); - - if (c.Grid.Spec.IsVtol) - { - ApplyVtolFlightDrive(c, lane, mass, pos, q, vel, angVel, view); - continue; - } - - ComputeTerrainSupport( - pos, q, vel, angVel, mass, c.Grid.Spec, - out Vector3 supportForce, - out Vector3 supportTorque, - out Vector3 terrainNormal, - out int groundedCorners); - - var forward = Vector3.Transform(Vector3.UnitZ, q); - forward.Y = 0f; - if (forward.LengthSquared() < 1e-4f) forward = Vector3.UnitZ; - else forward = Vector3.Normalize(forward); - - var right = Vector3.Cross(forward, Vector3.UnitY); - var up = Vector3.Transform(Vector3.UnitY, q); - - Vector3 driveForward = forward; - Vector3 driveRight = right; - if (groundedCorners > 0) - { - Vector3 fSlope = forward - terrainNormal * Vector3.Dot(forward, terrainNormal); - if (fSlope.LengthSquared() > 1e-4f) driveForward = Vector3.Normalize(fSlope); - Vector3 rSlope = right - terrainNormal * Vector3.Dot(right, terrainNormal); - if (rSlope.LengthSquared() > 1e-4f) driveRight = Vector3.Normalize(rSlope); - } - - float thrust = c.Grid.ComputeDriveThrust(); - float maxSpeed = MathF.Max(4f, c.Grid.Spec.MaxSpeed); - float forwardSpeed = Vector3.Dot(vel, driveForward); - float lateralSpeed = Vector3.Dot(vel, driveRight); - float gripScale = groundedCorners > 0 ? (0.4f + 0.6f * (groundedCorners / 4f)) : 0.12f; - - Vector3 force = supportForce; - // On steep cliffs (ny < 0.78), strip inward horizontal thrust so vehicles slide along the slope instead of burrowing - Vector3 effectiveDriveFwd = driveForward; - if (groundedCorners > 0 && terrainNormal.Y < 0.78f) - { - Vector3 cliffHoriz = new Vector3(terrainNormal.X, 0f, terrainNormal.Z); - if (cliffHoriz.LengthSquared() > 1e-4f) - { - cliffHoriz = Vector3.Normalize(cliffHoriz); - float intoCliff = Vector3.Dot(effectiveDriveFwd, cliffHoriz); - if (intoCliff < 0f) - { - effectiveDriveFwd -= cliffHoriz * intoCliff; - effectiveDriveFwd.Y = MathF.Min(effectiveDriveFwd.Y, 0.25f); - } - } - } - // Drive thrust along slope-aligned forward with smooth terminal velocity drag at MaxSpeed - force += effectiveDriveFwd * (c.ThrottleCmd * thrust - (thrust / maxSpeed) * forwardSpeed) * gripScale; - // Lateral tire / stride grip - force -= driveRight * (lateralSpeed * mass * 8.5f * gripScale); - - if (c.BrakeCmd && groundedCorners > 0) - { - var horizVel = new Vector3(vel.X, 0f, vel.Z); - force -= horizVel * (mass * 7f); - } - - // Engine heat from throttle - if (MathF.Abs(c.ThrottleCmd) > 0.05f) - { - for (int m = 0; m < c.Grid.Mounted.Count; m++) - { - var mod = c.Grid.Mounted[m]; - if (mod.Spec.Kind == HardpointKind.Engine && mod.Spec.HeatOutput > 0f) - { - c.Grid.InjectHardpointHeat(mod.HardpointId, mod.Spec.HeatOutput * MathF.Abs(c.ThrottleCmd) * FixedDt); - } - } - } - - float turnRate = c.Grid.ComputeTurnRate(); - // Steer > 0 turns right (clockwise looking from +Y down => negative Y torque when +Z is forward) - float targetYawVel = -c.SteerCmd * turnRate; - float hx = view.Size0[lane]; - float hz = view.Size2[lane]; - float iy = mass * (hx * hx + hz * hz) / 3f; - - Vector3 torque = ComputeRightingTorque(c.Grid.Spec, q, up, angVel, mass, terrainNormal, supportTorque, terrainBlend: 0.85f); - torque.Y = iy * (targetYawVel - angVel.Y) * 8f; - - view.ForceX[lane] = force.X; - view.ForceY[lane] = force.Y; - view.ForceZ[lane] = force.Z; - view.TorqueX[lane] = torque.X; - view.TorqueY[lane] = torque.Y; - view.TorqueZ[lane] = torque.Z; - } - - // Spectators - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (!s.Alive || !_spectatorBodies.TryGetValue(s.Id, out var handle)) - { - continue; - } - - int lane = handle.Lane; - float mass = view.Mass[lane]; - if (mass <= 0f) - { - continue; - } - - MatchRules.ComputeSpectatorBehavior(s, State, out float goalX, out float goalZ, out float aimX, out float aimZ, out _); - - var pos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var vel = new Vector3(view.VelocityX[lane], view.VelocityY[lane], view.VelocityZ[lane]); - var angVel = new Vector3(view.AngularVelocityX[lane], view.AngularVelocityY[lane], view.AngularVelocityZ[lane]); - var up = Vector3.Transform(Vector3.UnitY, q); - - ComputeTerrainSupport( - pos, q, vel, angVel, mass, s.Grid.Spec, - out Vector3 supportForce, - out Vector3 supportTorque, - out Vector3 terrainNormal, - out _); - - Vector3 toGoal = new Vector3(goalX - pos.X, 0f, goalZ - pos.Z); - float dist = toGoal.Length(); - Vector3 desiredVel = dist > 0.5f ? Vector3.Normalize(toGoal) * MathF.Min(s.MaxSpeed, dist * 1.5f) : Vector3.Zero; - Vector3 horizVel = new Vector3(vel.X, 0f, vel.Z); - Vector3 force = supportForce + (desiredVel - horizVel) * (mass * 4.5f); - - float desiredYaw = s.Stance == SpectatorStance.Neutral - ? MathF.Atan2(-pos.X, -pos.Z) - : MathF.Atan2(aimX - pos.X, aimZ - pos.Z); - var forward = Vector3.Transform(Vector3.UnitZ, q); - float currentYaw = MathF.Atan2(forward.X, forward.Z); - float yawErr = MatchRules.NormalizeAngle(desiredYaw - currentYaw); - - float hx = view.Size0[lane]; - float hz = view.Size2[lane]; - float iy = mass * (hx * hx + hz * hz) / 3f; - - Vector3 torque = ComputeRightingTorque(s.Grid.Spec, q, up, angVel, mass, terrainNormal, supportTorque, terrainBlend: 0.7f); - torque.Y = iy * (Math.Clamp(yawErr * 3f, -5f, 5f) - angVel.Y) * 8f; - - view.ForceX[lane] = force.X; - view.ForceY[lane] = force.Y; - view.ForceZ[lane] = force.Z; - view.TorqueX[lane] = torque.X; - view.TorqueY[lane] = torque.Y; - view.TorqueZ[lane] = torque.Z; - } - } - - private void ApplyVtolFlightDrive( - ContenderState c, - int lane, - float mass, - Vector3 pos, - Quaternion q, - Vector3 vel, - Vector3 angVel, - Box3DSoaView view) - { - var spec = c.Grid.Spec; - float minAlt = MatchRules.VtolMinClearanceAgl; - float maxAlt = MathF.Max(minAlt, spec.HoverMaxAltitudeM); - const float verticalSpeed = 14f; - float enginePerf = c.Grid.ComputeEngineThermalPerformance(); - c.TargetHoverAltAgl = Math.Clamp(c.TargetHoverAltAgl + c.VerticalThrottleCmd * verticalSpeed * FixedDt, minAlt, maxAlt); - - var forward = Vector3.Transform(Vector3.UnitZ, q); - forward.Y = 0f; - if (forward.LengthSquared() < 1e-4f) forward = Vector3.UnitZ; - else forward = Vector3.Normalize(forward); - var right = Vector3.Cross(forward, Vector3.UnitY); - var up = Vector3.Transform(Vector3.UnitY, q); - - Vector3 horizVel = new Vector3(vel.X, 0f, vel.Z); - float perimDist = MathF.Max(spec.HalfWidth, spec.HalfLength) + 2.5f; - - // Sample terrain at center, 4-point perimeter (HalfLength + 2.5m), and horizontal velocity lookahead (0.20s, 0.35s) - float ghCenter = State.Terrain.SampleHeight(pos.X, pos.Z); - float ghFront = State.Terrain.SampleHeight(pos.X + forward.X * perimDist, pos.Z + forward.Z * perimDist); - float ghBack = State.Terrain.SampleHeight(pos.X - forward.X * perimDist, pos.Z - forward.Z * perimDist); - float ghRight = State.Terrain.SampleHeight(pos.X + right.X * perimDist, pos.Z + right.Z * perimDist); - float ghLeft = State.Terrain.SampleHeight(pos.X - right.X * perimDist, pos.Z - right.Z * perimDist); - float ghLook1 = State.Terrain.SampleHeight(pos.X + horizVel.X * 0.20f, pos.Z + horizVel.Z * 0.20f); - float ghLook2 = State.Terrain.SampleHeight(pos.X + horizVel.X * 0.35f, pos.Z + horizVel.Z * 0.35f); - float ghSafe = MathF.Max( - ghCenter, - MathF.Max( - MathF.Max(ghFront, ghBack), - MathF.Max(MathF.Max(ghRight, ghLeft), MathF.Max(ghLook1, ghLook2)))); - - float ghHullMax = MathF.Max( - ghCenter, - MathF.Max( - MathF.Max( - State.Terrain.SampleHeight(pos.X + forward.X * spec.HalfLength, pos.Z + forward.Z * spec.HalfLength), - State.Terrain.SampleHeight(pos.X - forward.X * spec.HalfLength, pos.Z - forward.Z * spec.HalfLength)), - MathF.Max( - State.Terrain.SampleHeight(pos.X + right.X * spec.HalfWidth, pos.Z + right.Z * spec.HalfWidth), - State.Terrain.SampleHeight(pos.X - right.X * spec.HalfWidth, pos.Z - right.Z * spec.HalfWidth)))); - - var (tnx, tny, tnz) = State.Terrain.SampleNormal(pos.X, pos.Z); - var terrainNormal = new Vector3(tnx, tny, tnz); - - float bottomY = pos.Y - spec.HalfHeight; - float bottomAgl = bottomY - ghHullMax; - float targetCenterY = ghSafe + spec.HalfHeight + c.TargetHoverAltAgl; - float altErr = targetCenterY - pos.Y; - - // Hover lift authority scales with engine thermal performance (overheated 0.00 -> loses climb authority and sinks gently) - float hoverSupportFrac = Math.Clamp(enginePerf / 0.25f, 0f, 1f); - float baseHoverAccel = 20f * (0.85f + 0.15f * hoverSupportFrac); - float altGain = 32f * enginePerf; - float maxEngineLift = mass * (17.5f + 30.5f * enginePerf); - float headroom = MathF.Max(0f, maxAlt - bottomAgl); - float maxSafeClimbVel = MathF.Sqrt(2f * 16f * headroom); - float desiredVelY = 0f; - if (c.VerticalThrottleCmd > 0f && c.TargetHoverAltAgl < maxAlt - 0.05f) - { - desiredVelY = MathF.Min(c.VerticalThrottleCmd * verticalSpeed * enginePerf, maxSafeClimbVel); - } - else if (c.VerticalThrottleCmd < 0f && c.TargetHoverAltAgl > minAlt + 0.05f) - { - desiredVelY = c.VerticalThrottleCmd * verticalSpeed; - } - // Clamp downward hover thrust >= 0 (gravity-only descent — never slam down when flying off a cliff) - float rawHover = mass * (baseHoverAccel + altErr * altGain - (vel.Y - desiredVelY) * 14f); - if (c.VerticalThrottleCmd > 0f && vel.Y > maxSafeClimbVel && bottomAgl > minAlt) - { - rawHover = MathF.Min(rawHover, mass * 16f); - } - float hoverForceY = Math.Clamp(rawHover, 0f, maxEngineLift); - - // Ground-proximity cushion + hard arrest whenever bottom clearance drops below VtolMinClearanceAgl (2.5m) - if (bottomAgl < minAlt) - { - hoverForceY += mass * (minAlt - bottomAgl) * 35f; - if (bottomAgl < 1.2f) - { - hoverForceY += mass * (1.2f - bottomAgl) * 140f; - } - if (vel.Y < 0f) - { - float availDist = MathF.Max(0.15f, bottomAgl - 0.65f); - float reqDecel = (vel.Y * vel.Y) / (2f * availDist) + 20f; - float arrestAccel = MathF.Min(reqDecel, (-vel.Y / FixedDt) + 20f); - hoverForceY += mass * arrestAccel; - } - } - - float thrust = c.Grid.ComputeDriveThrust(); - float maxSpeed = MathF.Max(6f, spec.MaxSpeed); - float forwardSpeed = Vector3.Dot(horizVel, forward); - float lateralSpeed = Vector3.Dot(horizVel, right); - - Vector3 force = Vector3.UnitY * hoverForceY; - - // Steep-cliff deflection: never fly through solid terrain walls - float vDotN = Vector3.Dot(vel, terrainNormal); - if (bottomAgl < minAlt && vDotN < 0f) - { - float deflectMag = MathF.Min(-vDotN * mass * 28f, -vDotN * mass / FixedDt); - force += terrainNormal * deflectMag; - } - - // Direction-agnostic cliff-approach braking (protects forward, reverse, and strafing into steep mesas) - float ghLookMax = MathF.Max(ghLook1, ghLook2); - float lookClearance = bottomY - ghLookMax; - Vector3 driveForce = forward * (c.ThrottleCmd * thrust) - forward * ((thrust / maxSpeed) * forwardSpeed); - - if (ghLookMax > ghCenter + 0.8f && lookClearance < minAlt + 2.0f) - { - float brakeFrac = Math.Clamp(((minAlt + 2.0f) - lookClearance) / 4.0f, 0f, 1f); - float horizSpeed = horizVel.Length(); - if (horizSpeed > 0.1f) - { - Vector3 horizDir = horizVel / horizSpeed; - float intoLook = Vector3.Dot(driveForce, horizDir); - if (intoLook > 0f) - { - driveForce -= horizDir * (intoLook * brakeFrac * 0.95f); - } - float maxBrake = (horizSpeed * mass) / FixedDt; - float desiredBrake = horizSpeed * mass * 16f * brakeFrac; - force -= horizDir * MathF.Min(desiredBrake, maxBrake); - } - } - - Vector3 cliffPush = Vector3.Zero; - if (ghFront > bottomY - minAlt) cliffPush -= forward * Math.Clamp((ghFront - (bottomY - minAlt)) / 2f, 0f, 1f); - if (ghBack > bottomY - minAlt) cliffPush += forward * Math.Clamp((ghBack - (bottomY - minAlt)) / 2f, 0f, 1f); - if (ghRight > bottomY - minAlt) cliffPush -= right * Math.Clamp((ghRight - (bottomY - minAlt)) / 2f, 0f, 1f); - if (ghLeft > bottomY - minAlt) cliffPush += right * Math.Clamp((ghLeft - (bottomY - minAlt)) / 2f, 0f, 1f); - - if (cliffPush.LengthSquared() > 1e-4f) - { - Vector3 cliffDir = Vector3.Normalize(cliffPush); - float driveIntoCliff = Vector3.Dot(driveForce, cliffDir); - if (driveIntoCliff < 0f) - { - driveForce -= cliffDir * driveIntoCliff; - } - float velIntoCliff = Vector3.Dot(horizVel, cliffDir); - if (velIntoCliff < 0f) - { - float stopMag = MathF.Min(-velIntoCliff * mass * 24f, -velIntoCliff * mass / FixedDt); - force += cliffDir * stopMag; - } - force += cliffDir * (mass * 12f * Math.Clamp(cliffPush.Length(), 0f, 1f)); - } - - force += driveForce; - force -= right * (lateralSpeed * mass * 3.8f); - if (c.BrakeCmd) - { - force -= horizVel * (mass * 3.5f); - } - - // Engine heat from hover lift + horizontal thrust - float liftWork = 0.25f + 0.55f * MathF.Abs(c.VerticalThrottleCmd); - float heatFraction = MathF.Max(MathF.Abs(c.ThrottleCmd), liftWork); - for (int m = 0; m < c.Grid.Mounted.Count; m++) - { - var mod = c.Grid.Mounted[m]; - if (mod.Spec.Kind == HardpointKind.Engine && mod.Spec.HeatOutput > 0f) - { - c.Grid.InjectHardpointHeat(mod.HardpointId, mod.Spec.HeatOutput * heatFraction * FixedDt); - } - } - - // Gentle bank-into-turn and subtle nose-down pitch into forward thrust - float speedScale = Math.Clamp(MathF.Abs(forwardSpeed) / MathF.Max(8f, maxSpeed * 0.5f), 0f, 1f); - float bankRad = -c.SteerCmd * speedScale * 0.26f; - float nosePitchRad = c.ThrottleCmd * 0.11f; - Vector3 desiredUp = Vector3.Normalize(Vector3.UnitY + right * MathF.Sin(bankRad) + forward * MathF.Sin(nosePitchRad)); - - Vector3 tiltAxis = Vector3.Cross(up, desiredUp); - float maxFoot = MathF.Max(spec.HalfWidth, spec.HalfLength); - float iTilt = MathF.Max(1f, (spec.HalfHeight * spec.HalfHeight + maxFoot * maxFoot) / 3f); - Vector3 torque = tiltAxis * (mass * 30f * iTilt) - new Vector3(angVel.X, 0f, angVel.Z) * (mass * 9.5f * iTilt); - - float turnRate = c.Grid.ComputeTurnRate(); - float targetYawVel = -c.SteerCmd * turnRate; - float hx = view.Size0[lane]; - float hz = view.Size2[lane]; - float iy = mass * (hx * hx + hz * hz) / 3f; - torque.Y = iy * (targetYawVel - angVel.Y) * 8f; - - view.ForceX[lane] = force.X; - view.ForceY[lane] = force.Y; - view.ForceZ[lane] = force.Z; - view.TorqueX[lane] = torque.X; - view.TorqueY[lane] = torque.Y; - view.TorqueZ[lane] = torque.Z; - } - - private static Vector3 ComputeRightingTorque( - ChassisSpec spec, - Quaternion q, - Vector3 up, - Vector3 angVel, - float mass, - Vector3 terrainNormal, - Vector3 supportTorque, - float terrainBlend) - { - bool isWalker = spec.IsWalker; - float blend = isWalker ? MathF.Min(terrainBlend, 0.30f) : terrainBlend; - Vector3 desiredUp = Vector3.Normalize(Vector3.Lerp(Vector3.UnitY, terrainNormal, blend)); - - float maxDesiredTiltRad = isWalker - ? MathF.PI / 15f // 12 degrees target cap so dynamic overshoot stays <= 15-20 deg - : MathF.PI * 38f / 180f; // 38 degrees max slope alignment so cliff walls don't back-flip vehicles - { - float dotY = Math.Clamp(desiredUp.Y, -1f, 1f); - if (MathF.Acos(dotY) > maxDesiredTiltRad) - { - Vector3 horiz = new Vector3(desiredUp.X, 0f, desiredUp.Z); - float hLen = horiz.Length(); - desiredUp = hLen > 1e-4f - ? Vector3.UnitY * MathF.Cos(maxDesiredTiltRad) + (horiz / hLen) * MathF.Sin(maxDesiredTiltRad) - : Vector3.UnitY; - } - } - - float upDot = Vector3.Dot(up, desiredUp); - Vector3 tiltAxis = Vector3.Cross(up, desiredUp); - if (upDot < 0.2f) - { - Vector3 fallbackAxis = Vector3.Transform(Vector3.UnitZ, q); - fallbackAxis.Y = 0f; - fallbackAxis = fallbackAxis.LengthSquared() > 1e-4f - ? Vector3.Normalize(fallbackAxis) - : Vector3.UnitX; - - float axisLen = tiltAxis.Length(); - Vector3 recoveryDir = axisLen > 0.15f ? tiltAxis / axisLen : fallbackAxis; - tiltAxis = recoveryDir * MathF.Max(axisLen, 1.0f); - } - - float maxFoot = MathF.Max(spec.HalfWidth, spec.HalfLength); - float iTilt = MathF.Max(1f, (spec.HalfHeight * spec.HalfHeight + maxFoot * maxFoot) / 3f); - float rightingGain = (isWalker ? 48f : 28f) * iTilt; - float dampingGain = (isWalker ? 11f : 8.5f) * iTilt; - - float tiltLimitRad = isWalker ? MathF.PI / 12f : MathF.PI * 48f / 180f; - float worldTiltRad = MathF.Acos(Math.Clamp(up.Y, -1f, 1f)); - Vector3 arrestTorque = Vector3.Zero; - if (worldTiltRad > tiltLimitRad) - { - Vector3 toUpright = Vector3.Cross(up, Vector3.UnitY); - if (toUpright.LengthSquared() > 1e-6f) - { - Vector3 uprightDir = Vector3.Normalize(toUpright); - float supOut = Vector3.Dot(supportTorque, uprightDir); - if (supOut < 0f) - { - supportTorque -= uprightDir * supOut; - } - - float angOut = Vector3.Dot(new Vector3(angVel.X, 0f, angVel.Z), uprightDir); - if (angOut < 0f) - { - arrestTorque = uprightDir * (-angOut * mass * iTilt * (isWalker ? 28f : 18f)); - } - } - - rightingGain *= 1f + (worldTiltRad - tiltLimitRad) * (isWalker ? 6f : 4f); - } - - return supportTorque + arrestTorque + tiltAxis * (mass * rightingGain) - new Vector3(angVel.X, 0f, angVel.Z) * (mass * dampingGain); - } - - private void ComputeTerrainSupport( - Vector3 pos, - Quaternion q, - Vector3 vel, - Vector3 angVel, - float mass, - ChassisSpec spec, - out Vector3 supportForce, - out Vector3 supportTorque, - out Vector3 terrainNormal, - out int groundedCorners) - { - supportForce = Vector3.Zero; - supportTorque = Vector3.Zero; - groundedCorners = 0; - - var (nx, ny, nz) = State.Terrain.SampleNormal(pos.X, pos.Z); - terrainNormal = new Vector3(nx, ny, nz); - - // Blend smoothly from pure vertical on flat ground to surface normal on steep mesa/dune slopes - float slopeBlend = Math.Clamp((0.985f - terrainNormal.Y) / 0.18f, 0f, 1f); - Vector3 supportDir = Vector3.Normalize(Vector3.Lerp(Vector3.UnitY, terrainNormal, slopeBlend)); - float orthoScale = MathF.Max(0.35f, terrainNormal.Y); - - float hx = MathF.Min(spec.HalfWidth * 0.9f, 2.4f); - float hz = MathF.Min(spec.HalfLength * 0.9f, 2.8f); - float bottomY = -spec.HalfHeight; - const float restTravel = 0.20f; - float kSpring = mass * 85f; - float cDamp = mass * 10.5f; - float torqueScale = spec.IsWalker ? 0.12f : 1.0f; - float maxPen = 0f; - - Span corners = stackalloc Vector3[4] - { - new Vector3(-hx, bottomY, -hz), - new Vector3( hx, bottomY, -hz), - new Vector3(-hx, bottomY, hz), - new Vector3( hx, bottomY, hz) - }; - - for (int k = 0; k < 4; k++) - { - Vector3 r = Vector3.Transform(corners[k], q); - Vector3 wp = pos + r; - float gh = State.Terrain.SampleHeight(wp.X, wp.Z); - float pen = (gh + restTravel) - wp.Y; - if (pen > 0f) - { - groundedCorners++; - maxPen = MathF.Max(maxPen, pen); - float vCornerN = Vector3.Dot(vel + Vector3.Cross(angVel, r), supportDir); - float penEff = pen * orthoScale; - float bumpExtra = pen > 0.20f ? mass * 220f * (pen - 0.20f) : 0f; - float fN = Math.Clamp(kSpring * penEff + bumpExtra - cDamp * vCornerN, 0f, mass * 65f); - Vector3 cornerForce = supportDir * fN; - supportForce += cornerForce; - supportTorque += Vector3.Cross(r, cornerForce) * torqueScale; - } - } - - // Center skid-plate bump-stop prevents belly clipping when straddling sharp ridge crests at speed - float ghCenter = State.Terrain.SampleHeight(pos.X, pos.Z); - float centerGap = (pos.Y - spec.HalfHeight) - ghCenter; - float centerPen = (ghCenter + 0.08f) - (pos.Y - spec.HalfHeight); - if (centerPen > 0f) - { - groundedCorners = Math.Max(groundedCorners, 1); - maxPen = MathF.Max(maxPen, centerPen); - float vCenterN = Vector3.Dot(vel, supportDir); - float centerExtra = centerPen > 0.20f ? mass * 220f * (centerPen - 0.20f) : 0f; - float fCenter = Math.Clamp(mass * 120f * (centerPen * orthoScale) + centerExtra - mass * 10f * vCenterN, 0f, mass * 65f); - supportForce += supportDir * fCenter; - } - - // Prevent large overhangs from catapulting the chassis when the belly center is already well above ground - if (centerGap > 1.2f && supportForce.Y > 0f) - { - float overhangAtten = Math.Clamp(1f - (centerGap - 1.2f) / 1.8f, 0f, 1f); - supportForce *= overhangAtten; - supportTorque *= overhangAtten; - } - - // Base lift attenuation on normal separation velocity vDotN rather than world vel.Y so steep uphill - // climbs (vDotN <= 0) retain full support while separating crests (vDotN > 2.0) don't sky-launch. - float vDotN = Vector3.Dot(vel, terrainNormal); - float sepScale = vDotN > 2.0f ? Math.Clamp(1f - (vDotN - 2.0f) / 2.0f, 0f, 1f) : 1f; - float maxSpringY = vDotN > 2.0f ? mass * 20f * sepScale : mass * 75f; - if (supportForce.Y > maxSpringY && supportForce.Y > 1e-4f) - { - supportForce *= maxSpringY / supportForce.Y; - } - - // Steep-slope normal velocity projection: when contacting terrain and moving inward (vDotN < 0), - // arrest inward normal velocity up to vDotN = 0 regardless of upward world vel.Y. - if (maxPen > 0f && vDotN < 0f) - { - float deflectMag = MathF.Min(-vDotN * mass * 42f, -vDotN * mass / FixedDt); - supportForce += terrainNormal * deflectMag; - } - } - - private void SyncBodiesFromWorld() - { - var view = _world.View; - - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (!c.Alive || !_contenderBodies.TryGetValue(c.Id, out var handle)) - { - continue; - } - - int lane = handle.Lane; - float prevX = c.X; - float prevZ = c.Z; - c.X = view.PositionX[lane]; - c.Y = view.PositionY[lane]; - c.Z = view.PositionZ[lane]; - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var forward = Vector3.Transform(Vector3.UnitZ, q); - c.Yaw = MathF.Atan2(forward.X, forward.Z); - float vx = view.VelocityX[lane]; - float vz = view.VelocityZ[lane]; - c.Speed = MathF.Sqrt(vx * vx + vz * vz); - - float stepDist = MathF.Sqrt((c.X - prevX) * (c.X - prevX) + (c.Z - prevZ) * (c.Z - prevZ)); - float groundY = State.Terrain.SampleHeight(c.X, c.Z); - if (c.Speed > 2.0f && c.Y - c.Grid.Spec.HalfHeight <= groundY + 0.65f) - { - _trackDistAccum[i] += stepDist; - if (_trackDistAccum[i] >= 2.2f) - { - _trackDistAccum[i] = 0f; - State.Terrain.StampTrack(c.X, c.Z, c.Yaw, c.Grid.Spec.HalfWidth * 1.4f, 2.5f); - } - } - } - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (!s.Alive || !_spectatorBodies.TryGetValue(s.Id, out var handle)) - { - continue; - } - - int lane = handle.Lane; - s.X = view.PositionX[lane]; - s.Y = view.PositionY[lane]; - s.Z = view.PositionZ[lane]; - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var forward = Vector3.Transform(Vector3.UnitZ, q); - s.Yaw = MathF.Atan2(forward.X, forward.Z); - } - } - - private void UpdatePlayerDetectionMemory() - { - var p = State.Player; - if (!p.Alive) - { - State.PlayerDetectedByCount = 0; - return; - } - - float pEyeY = MatchRules.GetObserverEyeY(p.Y, p.Grid.Spec.HalfHeight); - float pTargetY = MatchRules.GetTargetAimY(p.Y, p.Grid.Spec.HalfHeight); - int detectedBy = 0; - - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (c.IsPlayer) - { - continue; - } - - var mem = State.GetOrCreateContenderContact(c.Id); - if (!c.Alive) - { - mem.VisibleToPlayer = false; - mem.FaintHorizonPing = false; - mem.LastSeenAge = float.PositiveInfinity; - continue; - } - - float dxC = c.X - p.X; - float dzC = c.Z - p.Z; - float distSqC = dxC * dxC + dzC * dzC; - - bool playerSees = HasLineOfSight( - p.X, pEyeY, p.Z, - c.X, MatchRules.GetTargetAimY(c.Y, c.Grid.Spec.HalfHeight), c.Z); - - if (playerSees) - { - mem.VisibleToPlayer = true; - mem.FaintHorizonPing = false; - mem.LastSeenAge = 0f; - mem.LastSeenX = c.X; - mem.LastSeenZ = c.Z; - mem.HasEverBeenSeen = true; - } - else - { - mem.VisibleToPlayer = false; - mem.FaintHorizonPing = false; - if (mem.HasEverBeenSeen) - { - mem.LastSeenAge += FixedDt; - } - } - - if (distSqC <= 240f * 240f && - HasLineOfSight(c.X, MatchRules.GetObserverEyeY(c.Y, c.Grid.Spec.HalfHeight), c.Z, p.X, pTargetY, p.Z)) - { - detectedBy++; - } - } - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - var mem = State.GetOrCreateSpectatorContact(s.Id); - if (!s.Alive) - { - mem.VisibleToPlayer = false; - mem.FaintHorizonPing = false; - mem.LastSeenAge = float.PositiveInfinity; - continue; - } - - bool playerSees = HasLineOfSight( - p.X, pEyeY, p.Z, - s.X, MatchRules.GetTargetAimY(s.Y, s.Grid.Spec.HalfHeight), s.Z); - - if (playerSees) - { - mem.VisibleToPlayer = true; - mem.FaintHorizonPing = false; - mem.LastSeenAge = 0f; - mem.LastSeenX = s.X; - mem.LastSeenZ = s.Z; - mem.HasEverBeenSeen = true; - } - else - { - mem.VisibleToPlayer = false; - if (mem.HasEverBeenSeen) - { - mem.LastSeenAge += FixedDt; - } - - // Spectator wall horizon rule: gaudy Tourists (RadarSignature >= 0.9) ping faintly over moderate crests at medium range; - // low-signature Exemplars vanish completely when terrain-occluded. - bool horizonPing = false; - if (s.RadarSignature >= 0.9f) - { - float dx = s.X - p.X; - float dz = s.Z - p.Z; - if (dx * dx + dz * dz <= MatchState.TouristHorizonMaxRange * MatchState.TouristHorizonMaxRange) - { - horizonPing = HasLineOfSight( - p.X, pEyeY + 14f, p.Z, - s.X, MatchRules.GetTargetAimY(s.Y, s.Grid.Spec.HalfHeight) + 14f, s.Z); - } - } - mem.FaintHorizonPing = horizonPing; - } - - if (s.Stance != SpectatorStance.Neutral && - s.TargetContenderId == p.Id && - s.HasTargetLos) - { - detectedBy++; - } - } - - State.PlayerDetectedByCount = detectedBy; - } - - private void StepThermalAndCooldowns() - { - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (!c.Alive) - { - continue; - } - - c.Grid.StepHeat(FixedDt); - bool anyOverheat = false; - for (int m = 0; m < c.Grid.Mounted.Count; m++) - { - var mod = c.Grid.Mounted[m]; - if (mod.Cooldown > 0f) - { - mod.Cooldown = MathF.Max(0f, mod.Cooldown - FixedDt); - } - if (mod.CurrentTemp > mod.Spec.OptimalTemp + mod.Spec.PlateauWidth * 0.6f) - { - anyOverheat = true; - } - } - - if (anyOverheat && !c.OverheatWarned) - { - c.OverheatWarned = true; - State.Broadcast.EmitOverheat(State.Time, c.Id); - } - else if (!anyOverheat) - { - c.OverheatWarned = false; - } - } - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (!s.Alive) - { - continue; - } - - s.Grid.StepHeat(FixedDt); - for (int m = 0; m < s.Grid.Mounted.Count; m++) - { - if (s.Grid.Mounted[m].Cooldown > 0f) - { - s.Grid.Mounted[m].Cooldown = MathF.Max(0f, s.Grid.Mounted[m].Cooldown - FixedDt); - } - } - } - } - - private void ProcessWeapons() - { - var view = _world.View; - - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (!c.Alive || !_contenderBodies.TryGetValue(c.Id, out var handle)) - { - continue; - } - - int lane = handle.Lane; - var shooterQuat = new Quaternion( - view.RotationX[lane], - view.RotationY[lane], - view.RotationZ[lane], - view.RotationW[lane]); - ulong shooterStableId = ContenderStableIdBase + (ulong)c.Id; - - if (c.IsPlayer) - { - UpdateWeaponArcTelemetry(c, shooterQuat, shooterStableId); - } - - if (c.FireCmd) - { - FireMountedWeapons( - shooterStableId, - shooterContender: c, - shooterLabel: c.Name, - isSpectatorShooter: false, - shooterGrid: c.Grid, - shooterPos: new Vector3(c.X, c.Y, c.Z), - shooterYaw: c.Yaw, - shooterQuat: shooterQuat, - aimX: c.AimX, - aimY: c.AimY, - aimZ: c.AimZ, - extraSpread: 0f, - view: view); - } - - if (!c.Grid.Spec.IsVtol) - { - TryAutoPointDefenseFire(c, shooterStableId, shooterQuat, view); - } - } - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (!s.Alive || s.Stance == SpectatorStance.Neutral || !_spectatorBodies.TryGetValue(s.Id, out var specHandle)) - { - continue; - } - - MatchRules.ComputeSpectatorBehavior(s, State, out _, out _, out float aimX, out float aimZ, out bool shouldFire); - if (!shouldFire) - { - continue; - } - - int lane = specHandle.Lane; - var specQuat = new Quaternion( - view.RotationX[lane], - view.RotationY[lane], - view.RotationZ[lane], - view.RotationW[lane]); - ulong shooterStableId = SpectatorStableIdBase + (ulong)s.Id; - FireMountedWeapons( - shooterStableId, - shooterContender: null, - shooterLabel: $"{s.Tier} Spectator", - isSpectatorShooter: true, - shooterGrid: s.Grid, - shooterPos: new Vector3(s.X, s.Y, s.Z), - shooterYaw: s.Yaw, - shooterQuat: specQuat, - aimX: aimX, - aimY: float.NaN, - aimZ: aimZ, - extraSpread: s.AimSpreadRad, - view: view); - } - } - - private void UpdateWeaponArcTelemetry(ContenderState c, Quaternion shooterQuat, ulong shooterStableId) - { - float targetY = !float.IsNaN(c.AimY) ? c.AimY : ResolveAimTargetY(c.AimX, c.AimZ, shooterStableId); - var shooterPos = new Vector3(c.X, c.Y, c.Z); - int inArc = 0; - int outArc = 0; - int disabled = 0; - - for (int m = 0; m < c.Grid.Mounted.Count; m++) - { - var mod = c.Grid.Mounted[m]; - if (mod.Spec.Kind != HardpointKind.Weapon) - { - continue; - } - - var hp = c.Grid.FindHardpoint(mod.HardpointId); - if (hp is null) - { - continue; - } - - if (!c.Grid.IsHardpointOperational(hp)) - { - disabled++; - continue; - } - - Vector3 muzzle = ComputeWeaponMuzzle(shooterPos, c.Yaw, c.Grid.Spec, c.AimX, c.AimZ); - Vector3 aimDelta = new Vector3(c.AimX - muzzle.X, targetY - muzzle.Y, c.AimZ - muzzle.Z); - float pitchDeg = MatchRules.ComputeLocalPitchDeg(aimDelta, shooterQuat); - var (minPitch, maxPitch) = MatchRules.GetEffectivePitchArc(hp, mod.Spec); - if (pitchDeg >= minPitch && pitchDeg <= maxPitch) - { - inArc++; - } - else - { - outArc++; - } - } - - c.InArcWeaponCount = inArc; - c.OutOfArcWeaponCount = outArc; - c.DisabledWeaponCount = disabled; - c.AllWeaponsOutOfArc = outArc > 0 && inArc == 0; - } - - private void TryAutoPointDefenseFire( - ContenderState shooter, - ulong shooterStableId, - Quaternion shooterQuat, - Box3DSoaView view) - { - const float maxPdTrackRange = 140f; - var shooterPos = new Vector3(shooter.X, shooter.Y, shooter.Z); - - for (int m = 0; m < shooter.Grid.Mounted.Count; m++) - { - var mod = shooter.Grid.Mounted[m]; - if (mod.Spec.Kind != HardpointKind.Weapon || - !mod.Spec.IsWideArc || - mod.Cooldown > 0f || - mod.CurrentPerformance <= 0.05f) - { - continue; - } - - // Avoid self-cooking on auto-PD if close to thermal ceiling - if (mod.CurrentTemp > mod.Spec.OptimalTemp + mod.Spec.PlateauWidth * 0.45f) - { - continue; - } - - var hp = shooter.Grid.FindHardpoint(mod.HardpointId); - if (hp is null || !shooter.Grid.IsHardpointOperational(hp)) - { - continue; - } - - var (minPitch, maxPitch) = MatchRules.GetEffectivePitchArc(hp, mod.Spec); - float range = MathF.Min(maxPdTrackRange, MathF.Max(5f, mod.Spec.WeaponRange)); - float rangeSq = range * range; - - ContenderState? bestVtol = null; - float bestDistSq = rangeSq; - - for (int j = 0; j < State.Contenders.Count; j++) - { - var other = State.Contenders[j]; - if (other.Id == shooter.Id || !other.Alive || !other.Grid.Spec.IsVtol) - { - continue; - } - - float groundH = State.Terrain.SampleHeight(other.X, other.Z); - float agl = (other.Y - other.Grid.Spec.HalfHeight) - groundH; - if (agl <= 2.0f) - { - continue; - } - - float targetY = MatchRules.GetTargetAimY(other.Y, other.Grid.Spec.HalfHeight); - Vector3 muzzle = ComputeWeaponMuzzle(shooterPos, shooter.Yaw, shooter.Grid.Spec, other.X, other.Z); - Vector3 delta = new Vector3(other.X - muzzle.X, targetY - muzzle.Y, other.Z - muzzle.Z); - float d2 = delta.LengthSquared(); - if (d2 > bestDistSq) - { - continue; - } - - float pitchDeg = MatchRules.ComputeLocalPitchDeg(delta, shooterQuat); - if (pitchDeg < minPitch || pitchDeg > maxPitch) - { - continue; - } - - if (!HasLineOfSight(muzzle.X, muzzle.Y, muzzle.Z, other.X, targetY, other.Z)) - { - continue; - } - - bestDistSq = d2; - bestVtol = other; - } - - if (bestVtol is null) - { - continue; - } - - float aimY = MatchRules.GetTargetAimY(bestVtol.Y, bestVtol.Grid.Spec.HalfHeight); - FireSingleWeapon( - mod, - shooterStableId, - shooter, - shooter.Name, - isSpectatorShooter: false, - shooter.Grid, - shooterPos, - shooter.Yaw, - shooterQuat, - bestVtol.X, - aimY, - bestVtol.Z, - extraSpread: 0f, - view: view); - } - } - - private void FireMountedWeapons( - ulong shooterStableId, - ContenderState? shooterContender, - string shooterLabel, - bool isSpectatorShooter, - ChassisGrid shooterGrid, - Vector3 shooterPos, - float shooterYaw, - Quaternion shooterQuat, - float aimX, - float aimY, - float aimZ, - float extraSpread, - Box3DSoaView view) - { - float targetY = !float.IsNaN(aimY) ? aimY : ResolveAimTargetY(aimX, aimZ, shooterStableId); - - for (int m = 0; m < shooterGrid.Mounted.Count; m++) - { - var mod = shooterGrid.Mounted[m]; - var hp = shooterGrid.FindHardpoint(mod.HardpointId); - if (mod.Spec.Kind != HardpointKind.Weapon || - mod.Cooldown > 0f || - mod.CurrentPerformance <= 0.05f || - hp is null || - !shooterGrid.IsHardpointOperational(hp)) - { - continue; - } - - FireSingleWeapon( - mod, - shooterStableId, - shooterContender, - shooterLabel, - isSpectatorShooter, - shooterGrid, - shooterPos, - shooterYaw, - shooterQuat, - aimX, - targetY, - aimZ, - extraSpread, - view); - } - } - - private static Vector3 ComputeWeaponMuzzle( - Vector3 shooterPos, - float shooterYaw, - ChassisSpec spec, - float aimX, - float aimZ) - { - Vector3 horizDir = new Vector3(aimX - shooterPos.X, 0f, aimZ - shooterPos.Z); - if (horizDir.LengthSquared() < 1e-3f) - { - horizDir = Vector3.UnitZ; - } - else - { - horizDir = Vector3.Normalize(horizDir); - } - - float cosYaw = MathF.Cos(shooterYaw); - float sinYaw = MathF.Sin(shooterYaw); - float localDirX = horizDir.X * cosYaw - horizDir.Z * sinYaw; - float localDirZ = horizDir.X * sinYaw + horizDir.Z * cosYaw; - float clearance = - MathF.Abs(localDirX) * spec.HalfWidth + - MathF.Abs(localDirZ) * spec.HalfLength + - 0.35f; - - return new Vector3( - shooterPos.X + horizDir.X * clearance, - shooterPos.Y + spec.HalfHeight * 0.25f, - shooterPos.Z + horizDir.Z * clearance); - } - - private void FireSingleWeapon( - MountedModule mod, - ulong shooterStableId, - ContenderState? shooterContender, - string shooterLabel, - bool isSpectatorShooter, - ChassisGrid shooterGrid, - Vector3 shooterPos, - float shooterYaw, - Quaternion shooterQuat, - float aimX, - float targetY, - float aimZ, - float extraSpread, - Box3DSoaView view) - { - var hp = shooterGrid.FindHardpoint(mod.HardpointId); - Vector3 muzzle = ComputeWeaponMuzzle(shooterPos, shooterYaw, shooterGrid.Spec, aimX, aimZ); - Vector3 aimDelta = new Vector3(aimX - muzzle.X, targetY - muzzle.Y, aimZ - muzzle.Z); - if (hp is not null) - { - float pitchDeg = MatchRules.ComputeLocalPitchDeg(aimDelta, shooterQuat); - var (minPitch, maxPitch) = MatchRules.GetEffectivePitchArc(hp, mod.Spec); - if (pitchDeg < minPitch || pitchDeg > maxPitch) - { - return; - } - } - - Vector3 baseAim = aimDelta.LengthSquared() < 1e-4f - ? Vector3.UnitZ - : Vector3.Normalize(aimDelta); - - int burst = Math.Max(1, mod.Spec.BurstCount); - float totalSpread = mod.Spec.SpreadRad + extraSpread; - float range = MathF.Max(5f, mod.Spec.WeaponRange); - WeaponVisualClass weaponClass = MatchState.ClassifyWeaponVisual(mod.Spec.Id); - uint tracerColor = weaponClass switch - { - WeaponVisualClass.ThermalBeam => string.Equals(mod.Spec.Id, "gilded_lance", StringComparison.Ordinal) - ? 0xFFD966FFu - : 0x5CE6FFFFu, - WeaponVisualClass.Explosive => 0xFF6622FFu, - WeaponVisualClass.Autocannon => 0xFF9933FFu, - _ => string.Equals(mod.Spec.Id, "pd_flak", StringComparison.Ordinal) - ? 0xFF8833FFu - : 0xFFE888FFu - }; - float tracerTtl = weaponClass switch - { - WeaponVisualClass.ThermalBeam => 0.13f, - WeaponVisualClass.Explosive => 0.12f, - WeaponVisualClass.Autocannon => 0.10f, - _ => 0.09f - }; - bool isPdFlak = string.Equals(mod.Spec.Id, "pd_flak", StringComparison.Ordinal); - - for (int b = 0; b < burst; b++) - { - float yawJitter = ((float)State.Rng.NextDouble() * 2f - 1f) * totalSpread; - float pitchJitter = ((float)State.Rng.NextDouble() * 2f - 1f) * (totalSpread * 0.35f); - var dir = ApplyAimSpread(baseAim, yawJitter, pitchJitter); - - var hit = _world.CastRayClosest( - (muzzle.X, muzzle.Y, muzzle.Z), - (dir.X * range, dir.Y * range, dir.Z * range)); - - float boxDist = hit.Hit - ? Vector3.Distance(muzzle, new Vector3(hit.Point.X, hit.Point.Y, hit.Point.Z)) - : range; - - bool hitTerrain = State.Terrain.Raycast( - muzzle.X, muzzle.Y, muzzle.Z, - dir.X, dir.Y, dir.Z, - boxDist, - out float tx, out float ty, out float tz, out float terrainDist); - - Vector3 endPt; - if (hitTerrain && terrainDist < boxDist) - { - endPt = new Vector3(tx, ty, tz); - StampTerrainWeaponImpact(mod.Spec.Id, tx, tz, burstIndex: b); - var (tnx, tny, tnz) = State.Terrain.SampleNormal(tx, tz); - State.HitEvents.Add(new HitFeedbackEvent( - EventId: State.AllocateHitEventId(), - HitX: tx, - HitY: ty, - HitZ: tz, - NormalX: tnx, - NormalY: tny, - NormalZ: tnz, - SourceX: shooterPos.X, - SourceY: shooterPos.Y, - SourceZ: shooterPos.Z, - TargetKind: HitTargetKind.Terrain, - TargetId: -1, - CellX: 0, - CellY: 0, - WeaponClass: weaponClass, - WeaponId: mod.Spec.Id, - IsAirburst: false, - Ttl: 0.35f)); - } - else - { - endPt = hit.Hit - ? new Vector3(hit.Point.X, hit.Point.Y, hit.Point.Z) - : muzzle + dir * range; - - if (hit.Hit && hit.StableId != shooterStableId && _entityByStableId.TryGetValue(hit.StableId, out var targetRef)) - { - ApplyHitToTarget( - targetRef, - hit.Point, - dir, - shooterPos, - weaponClass, - mod.Spec.Id, - isPdFlak, - mod.Spec.WeaponDamage * mod.CurrentPerformance, - mod.Spec.HeatOutput * 0.25f, - shooterContender, - shooterLabel, - isSpectatorShooter, - view); - } - else if (hit.Hit && hit.StableId != shooterStableId) - { - // Static cover box hit - Vector3 rev = -dir; - State.HitEvents.Add(new HitFeedbackEvent( - EventId: State.AllocateHitEventId(), - HitX: endPt.X, - HitY: endPt.Y, - HitZ: endPt.Z, - NormalX: rev.X, - NormalY: rev.Y, - NormalZ: rev.Z, - SourceX: shooterPos.X, - SourceY: shooterPos.Y, - SourceZ: shooterPos.Z, - TargetKind: HitTargetKind.StaticCover, - TargetId: (int)hit.StableId, - CellX: 0, - CellY: 0, - WeaponClass: weaponClass, - WeaponId: mod.Spec.Id, - IsAirburst: isPdFlak, - Ttl: 0.35f)); - } - else if (isPdFlak && b == 0) - { - Vector3 airPt = muzzle + dir * MathF.Min(range, MathF.Max(20f, aimDelta.Length())); - Vector3 rev = -dir; - State.HitEvents.Add(new HitFeedbackEvent( - EventId: State.AllocateHitEventId(), - HitX: airPt.X, - HitY: airPt.Y, - HitZ: airPt.Z, - NormalX: rev.X, - NormalY: rev.Y, - NormalZ: rev.Z, - SourceX: shooterPos.X, - SourceY: shooterPos.Y, - SourceZ: shooterPos.Z, - TargetKind: HitTargetKind.StaticCover, - TargetId: -1, - CellX: 0, - CellY: 0, - WeaponClass: weaponClass, - WeaponId: mod.Spec.Id, - IsAirburst: true, - Ttl: 0.35f)); - } - } - - State.Tracers.Add(new TracerEvent( - muzzle.X, muzzle.Y, muzzle.Z, - endPt.X, endPt.Y, endPt.Z, - tracerColor, - tracerTtl, - weaponClass, - mod.Spec.Id, - State.AllocateTracerId())); - } - - shooterGrid.InjectHardpointHeat(mod.HardpointId, mod.Spec.HeatOutput); - mod.Cooldown = mod.Spec.FireCooldown; - - if (shooterContender is not null) - { - State.LastGunfireX = shooterPos.X; - State.LastGunfireZ = shooterPos.Z; - State.LastGunfireTime = State.Time; - } - } - - private void ApplyHitToTarget( - (bool IsContender, int Index) targetRef, - (float X, float Y, float Z) hitPoint, - Vector3 shotDir, - Vector3 shooterPos, - WeaponVisualClass weaponClass, - string weaponId, - bool isPdFlak, - float damage, - float heatTransfer, - ContenderState? shooterContender, - string shooterLabel, - bool isSpectatorShooter, - Box3DSoaView view) - { - if (targetRef.IsContender) - { - var target = State.Contenders[targetRef.Index]; - if (!target.Alive || !_contenderBodies.TryGetValue(target.Id, out var body)) - { - return; - } - - var (localRight, localForward, localHeightNorm) = ComputeLocalHitCoords(hitPoint, body.Lane, target.Grid.Spec, view); - Vector3 hitNormal = ComputeBoxFaceNormal(hitPoint, body.Lane, target.Grid.Spec, view, -shotDir); - var result = target.Grid.ApplyHit(localRight, localForward, localHeightNorm, damage, heatTransfer); - State.HitEvents.Add(new HitFeedbackEvent( - EventId: State.AllocateHitEventId(), - HitX: hitPoint.X, - HitY: hitPoint.Y, - HitZ: hitPoint.Z, - NormalX: hitNormal.X, - NormalY: hitNormal.Y, - NormalZ: hitNormal.Z, - SourceX: shooterPos.X, - SourceY: shooterPos.Y, - SourceZ: shooterPos.Z, - TargetKind: HitTargetKind.Contender, - TargetId: target.Id, - CellX: result.CellX, - CellY: result.CellY, - WeaponClass: weaponClass, - WeaponId: weaponId, - IsAirburst: isPdFlak && target.Grid.Spec.IsVtol, - Ttl: 0.35f)); - - if (result.CoreDestroyed) - { - HandleContenderEliminated(target, shooterContender, shooterLabel, isSpectatorShooter); - } - } - else - { - var spec = State.Spectators.Spectators[targetRef.Index]; - if (!spec.Alive || !_spectatorBodies.TryGetValue(spec.Id, out var body)) - { - return; - } - - if (shooterContender is not null) - { - float inDx = shooterContender.X - hitPoint.X; - float inDz = shooterContender.Z - hitPoint.Z; - float inLen = MathF.Sqrt(inDx * inDx + inDz * inDz); - float? inDirX = inLen > 1e-3f ? inDx / inLen : null; - float? inDirZ = inLen > 1e-3f ? inDz / inLen : null; - - bool newlyProvoked = State.Spectators.OnSpectatorDamaged(spec, shooterContender.Id, inDirX, inDirZ); - if (newlyProvoked) - { - spec.BroadcastWakeupEmitted = true; - if (spec.Tier == SpectatorTier.Tourist) - { - State.Broadcast.EmitTouristPull(State.Time, shooterContender.Id); - } - else if (spec.Tier == SpectatorTier.Exemplar) - { - State.Broadcast.EmitExemplarWakeup(State.Time, shooterContender.Id); - } - } - } - - var (localRight, localForward, localHeightNorm) = ComputeLocalHitCoords(hitPoint, body.Lane, spec.Grid.Spec, view); - Vector3 hitNormal = ComputeBoxFaceNormal(hitPoint, body.Lane, spec.Grid.Spec, view, -shotDir); - var result = spec.Grid.ApplyHit(localRight, localForward, localHeightNorm, damage, heatTransfer); - State.HitEvents.Add(new HitFeedbackEvent( - EventId: State.AllocateHitEventId(), - HitX: hitPoint.X, - HitY: hitPoint.Y, - HitZ: hitPoint.Z, - NormalX: hitNormal.X, - NormalY: hitNormal.Y, - NormalZ: hitNormal.Z, - SourceX: shooterPos.X, - SourceY: shooterPos.Y, - SourceZ: shooterPos.Z, - TargetKind: HitTargetKind.Spectator, - TargetId: spec.Id, - CellX: result.CellX, - CellY: result.CellY, - WeaponClass: weaponClass, - WeaponId: weaponId, - IsAirburst: isPdFlak && spec.Grid.Spec.IsVtol, - Ttl: 0.35f)); - - if (result.CoreDestroyed) - { - HandleSpectatorDestroyed(spec, shooterContender, shooterLabel); - } - } - } - - private void HandleContenderEliminated( - ContenderState victim, - ContenderState? shooterContender, - string shooterLabel, - bool isSpectatorShooter) - { - if (_contenderBodies.TryGetValue(victim.Id, out var handle)) - { - _world.RemoveBody(handle); - _contenderBodies.Remove(victim.Id); - } - - if (shooterContender is not null) - { - shooterContender.Kills++; - } - - State.SpawnChassisDrop(victim.X, victim.Z, victim.Grid.Spec); - for (int i = 0; i < victim.Grid.Mounted.Count; i++) - { - State.SpawnModuleDrop(victim.X + (i - 1) * 0.9f, victim.Z + 1.2f, victim.Grid.Mounted[i].Spec); - } - - State.Terrain.StampCrater(victim.X, victim.Z, radius: 5.2f, depth: 1.3f); - State.Terrain.StampScorch(victim.X, victim.Z, radius: 6.2f); - State.Broadcast.EmitElimination(State.Time, shooterLabel, victim.Name, isSpectatorShooter); - } - - private void HandleSpectatorDestroyed(SpectatorState spec, ContenderState? shooterContender, string shooterLabel) - { - if (_spectatorBodies.TryGetValue(spec.Id, out var handle)) - { - _world.RemoveBody(handle); - _spectatorBodies.Remove(spec.Id); - } - - if (shooterContender is not null) - { - shooterContender.Kills++; - } - - var drops = SpectatorRing.RollSalvageDrops(spec, State.Rng); - for (int i = 0; i < drops.Count; i++) - { - State.SpawnModuleDrop(spec.X + (i - 0.5f) * 1.1f, spec.Z, drops[i]); - } - - State.Terrain.StampCrater(spec.X, spec.Z, radius: 4.5f, depth: 1.1f); - State.Terrain.StampScorch(spec.X, spec.Z, radius: 5.4f); - State.Broadcast.EmitElimination(State.Time, shooterLabel, $"{spec.Tier} Spectator", false); - } - - private void StampTerrainWeaponImpact(string weaponId, float x, float z, int burstIndex) - { - switch (weaponId) - { - case "recoilless": - State.Terrain.StampCrater(x, z, radius: 4.2f, depth: 1.05f); - State.Terrain.StampScorch(x, z, radius: 4.5f); - break; - case "flak": - if (burstIndex == 0) - { - State.Terrain.StampCrater(x, z, radius: 2.0f, depth: 0.35f); - } - break; - } - } - - private static Vector3 ComputeBoxFaceNormal( - (float X, float Y, float Z) hitPoint, - int lane, - ChassisSpec spec, - Box3DSoaView view, - Vector3 fallback) - { - var bodyPos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var bodyQuat = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var local = Vector3.Transform(new Vector3(hitPoint.X, hitPoint.Y, hitPoint.Z) - bodyPos, Quaternion.Conjugate(bodyQuat)); - - float nx = MathF.Abs(local.X) / MathF.Max(0.1f, spec.HalfWidth); - float ny = MathF.Abs(local.Y) / MathF.Max(0.1f, spec.HalfHeight); - float nz = MathF.Abs(local.Z) / MathF.Max(0.1f, spec.HalfLength); - - Vector3 localNormal; - if (nx >= ny && nx >= nz) - localNormal = new Vector3(local.X >= 0f ? 1f : -1f, 0f, 0f); - else if (ny >= nx && ny >= nz) - localNormal = new Vector3(0f, local.Y >= 0f ? 1f : -1f, 0f); - else - localNormal = new Vector3(0f, 0f, local.Z >= 0f ? 1f : -1f); - - Vector3 worldNormal = Vector3.Transform(localNormal, bodyQuat); - return worldNormal.LengthSquared() > 1e-6f ? Vector3.Normalize(worldNormal) : fallback; - } - - private static (float LocalRight, float LocalForward, float LocalHeightNorm) ComputeLocalHitCoords( - (float X, float Y, float Z) hitPoint, - int lane, - ChassisSpec spec, - Box3DSoaView view) - { - var bodyPos = new Vector3(view.PositionX[lane], view.PositionY[lane], view.PositionZ[lane]); - var bodyQuat = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var local = Vector3.Transform(new Vector3(hitPoint.X, hitPoint.Y, hitPoint.Z) - bodyPos, Quaternion.Conjugate(bodyQuat)); - - float localRight = Math.Clamp(-local.X / MathF.Max(0.1f, spec.HalfWidth), -1f, 1f); - float localForward = Math.Clamp(local.Z / MathF.Max(0.1f, spec.HalfLength), -1f, 1f); - float localHeightNorm = Math.Clamp((local.Y / MathF.Max(0.1f, spec.HalfHeight)) * 0.5f + 0.5f, 0f, 1f); - return (localRight, localForward, localHeightNorm); - } - - private float ResolveAimTargetY(float aimX, float aimZ, ulong shooterStableId) - { - float bestDistSq = 9f * 9f; - float bestY = State.Terrain.SampleHeight(aimX, aimZ) + 0.9f; - - for (int i = 0; i < State.Contenders.Count; i++) - { - var c = State.Contenders[i]; - if (!c.Alive || ContenderStableIdBase + (ulong)c.Id == shooterStableId) - { - continue; - } - float dx = c.X - aimX; - float dz = c.Z - aimZ; - float d2 = dx * dx + dz * dz; - if (d2 < bestDistSq) - { - bestDistSq = d2; - bestY = c.Y; - } - } - - for (int i = 0; i < State.Spectators.Spectators.Count; i++) - { - var s = State.Spectators.Spectators[i]; - if (!s.Alive || SpectatorStableIdBase + (ulong)s.Id == shooterStableId) - { - continue; - } - float dx = s.X - aimX; - float dz = s.Z - aimZ; - float d2 = dx * dx + dz * dz; - if (d2 < bestDistSq) - { - bestDistSq = d2; - bestY = s.Y; - } - } - - return bestY; - } - - private static Vector3 ApplyAimSpread(Vector3 baseDir, float yawOffset, float pitchOffset) - { - var yawQ = Quaternion.CreateFromAxisAngle(Vector3.UnitY, yawOffset); - var rotated = Vector3.Transform(baseDir, yawQ); - var right = Vector3.Cross(rotated, Vector3.UnitY); - if (right.LengthSquared() > 1e-4f) - { - var pitchQ = Quaternion.CreateFromAxisAngle(Vector3.Normalize(right), pitchOffset); - rotated = Vector3.Transform(rotated, pitchQ); - } - return Vector3.Normalize(rotated); - } - - public void Dispose() - { - if (_disposed) - { - return; - } - _disposed = true; - State.ChassisSwapped -= OnContenderChassisSwapped; - _world.Dispose(); - } - } -} diff --git a/src/RustToDust.Ymir/RustToDust.Ymir.csproj b/src/RustToDust.Ymir/RustToDust.Ymir.csproj deleted file mode 100644 index ad53000..0000000 --- a/src/RustToDust.Ymir/RustToDust.Ymir.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net8.0 - enable - disable - - - - - - - - diff --git a/tests/RustToDust.Tests/ArenaSessionTests.cs b/tests/RustToDust.Tests/ArenaSessionTests.cs deleted file mode 100644 index 0f4dbd1..0000000 --- a/tests/RustToDust.Tests/ArenaSessionTests.cs +++ /dev/null @@ -1,168 +0,0 @@ -using System; -using System.Collections.Generic; -using RustToDust.Core; -using RustToDust.Ymir; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class ArenaSessionTests - { - [Fact] - public void DrivingAndFiring_MovesBuggyInYmirAndBuildsWeaponHeat() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - float startX = player.X; - float startZ = player.Z; - float startYaw = player.Yaw; - int tracerTicks = 0; - - for (int tick = 0; tick < 120; tick++) - { - session.Step(new PlayerInput( - Throttle: 1f, - Steer: 0.45f, - AimWorldX: player.X + 40f, - AimWorldZ: player.Z + 10f, - Fire: true, - InteractPickup: false, - Brake: false)); - - if (session.State.Tracers.Count > 0) - { - tracerTicks++; - } - } - - float dx = player.X - startX; - float dz = player.Z - startZ; - float displacement = MathF.Sqrt(dx * dx + dz * dz); - float yawDelta = MathF.Abs(MatchRules.NormalizeAngle(player.Yaw - startYaw)); - - Assert.True(displacement > 10f, $"Expected >10m displacement, got {displacement:F2}m"); - Assert.True(yawDelta > 0.2f, $"Expected yaw change >0.2 rad, got {yawDelta:F2} rad"); - - var weapon = player.Grid.GetMountedOn("hp.weapon.roof"); - Assert.NotNull(weapon); - Assert.True(weapon!.CurrentTemp > ChassisGrid.AmbientTemp + 5f); - Assert.True(tracerTicks > 0); - } - - [Fact] - public void ChassisSwap_ToManticoreAndRaptor_ReplacesBodyWithoutLeakingYmirLanes() - { - using var session = new ArenaSession(seed: 77); - var player = session.State.Player; - int initialFreeSlots = session.World.FreeBodySlots; - - // Step once to settle world - session.Step(new PlayerInput(0f, 0f, 0f, 0f, false, false, false)); - - // Spawn Manticore (Dorsal) right beside player and swap - session.State.SpawnChassisDrop(player.X + 1f, player.Z + 1f, Catalog.Manticore); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal("manticore", player.Grid.Spec.Id); - Assert.Equal(GridPlane.Dorsal, player.Grid.Spec.Plane); - - // Step so Ymir reclaims old tombstone lane - session.Step(new PlayerInput(0f, 0f, 0f, 0f, false, false, false)); - Assert.Equal(initialFreeSlots, session.World.FreeBodySlots); - - // Now spawn Raptor (Coronal) beside player and swap - session.State.SpawnChassisDrop(player.X + 1f, player.Z + 1f, Catalog.Raptor); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal("raptor", player.Grid.Spec.Id); - Assert.Equal(GridPlane.Coronal, player.Grid.Spec.Plane); - - session.Step(new PlayerInput(0f, 0f, 0f, 0f, false, false, false)); - Assert.Equal(initialFreeSlots, session.World.FreeBodySlots); - } - - [Fact] - public void Raycast_RespectsStaticCoverWalls() - { - using var session = new ArenaSession(seed: 12); - var c0 = session.State.ArenaCoverBoxes[0]; - float rayStartZ = c0.Z - c0.HalfZ - 5f; - float raySpanZ = c0.HalfZ * 2f + 10f; - - // A ray from one side of cover block #0 to the other must hit the static cover wall! - var blockedHit = session.World.CastRayClosest((c0.X, c0.Y, rayStartZ), (0f, 0f, raySpanZ)); - Assert.True(blockedHit.Hit); - Assert.True(blockedHit.Point.Z < c0.Z, $"Expected cover hit before z={c0.Z:F2}, got z={blockedHit.Point.Z:F2}"); - Assert.InRange(blockedHit.StableId, 10UL, 99UL); // Static cover StableId range - - // Ray high above the cover block passes unobstructed - var clearHit = session.World.CastRayClosest((c0.X, c0.Y + c0.HalfY + 2.0f, rayStartZ), (0f, 0f, raySpanZ)); - Assert.False(clearHit.Hit); - } - - [Fact] - public void BroadsideFire_UsesDirectionalSupportRadiusNotMaxExtent() - { - using var session = new ArenaSession(seed: 19); - var player = session.State.Player; - - // Swap to Tank / Anvil (HalfWidth = 1.93m, HalfLength = 2.83m) where broadside vs forward differs by ~0.9m. - session.State.SpawnChassisDrop(player.X + 0.5f, player.Z + 0.5f, Catalog.Tank); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal(Catalog.Tank.Id, player.Grid.Spec.Id); - - // Step once to settle body, then aim strictly perpendicular (broadside) to player's Yaw. - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, false)); - float broadsideX = MathF.Cos(player.Yaw); - float broadsideZ = -MathF.Sin(player.Yaw); - - session.Step(new PlayerInput( - Throttle: 0f, - Steer: 0f, - AimWorldX: player.X + broadsideX * 30f, - AimWorldZ: player.Z + broadsideZ * 30f, - Fire: true, - InteractPickup: false, - Brake: true)); - - Assert.NotEmpty(session.State.Tracers); - var tracer = session.State.Tracers[^1]; - float dx = tracer.StartX - player.X; - float dz = tracer.StartZ - player.Z; - float muzzleHorizDist = MathF.Sqrt(dx * dx + dz * dz); - - // Expected broadside clearance = HalfWidth (1.65) + 0.35 = 2.00m (well below HalfLength + 0.55 = 3.20m) - Assert.InRange(muzzleHorizDist, player.Grid.Spec.HalfWidth + 0.25f, player.Grid.Spec.HalfWidth + 0.50f); - } - - [Fact] - public void TracerEvent_AssignsMonotonicId_AndPreservesAcrossAdvance() - { - using var session = new ArenaSession(seed: 19); - var player = session.State.Player; - float aimX = player.X + MathF.Sin(player.Yaw) * 25f; - float aimZ = player.Z + MathF.Cos(player.Yaw) * 25f; - - var ids = new List(); - for (int tick = 0; tick < 30 && ids.Count < 2; tick++) - { - session.Step(new PlayerInput(0f, 0f, aimX, aimZ, Fire: true, InteractPickup: false, Brake: true)); - foreach (var t in session.State.Tracers) - { - if (!ids.Contains(t.Id)) - { - ids.Add(t.Id); - } - } - } - - Assert.True(ids.Count >= 2, $"Expected at least 2 distinct tracer IDs, got {ids.Count}"); - Assert.True(ids[0] > 0 && ids[1] > ids[0], $"Expected monotonic tracer IDs, got [{ids[0]}, {ids[1]}]"); - - int trackedId = session.State.Tracers[^1].Id; - float ttlBefore = session.State.Tracers[^1].Ttl; - MatchRules.AdvanceTracers(session.State, 0.01f); - var after = session.State.Tracers.Find(t => t.Id == trackedId); - Assert.Equal(trackedId, after.Id); - Assert.True(after.Ttl < ttlBefore); - } - } -} diff --git a/tests/RustToDust.Tests/DetectionLosTests.cs b/tests/RustToDust.Tests/DetectionLosTests.cs deleted file mode 100644 index 9ac694c..0000000 --- a/tests/RustToDust.Tests/DetectionLosTests.cs +++ /dev/null @@ -1,568 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using RustToDust.Core; -using RustToDust.Ymir; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class DetectionLosTests - { - private static TerrainBrush FindTallMesa(TerrainField terrain) - { - for (int i = 0; i < terrain.Brushes.Count; i++) - { - var b = terrain.Brushes[i]; - if (b.Kind == TerrainBrushKind.Mesa && b.HeightDelta >= 22f) - { - return b; - } - } - throw new InvalidOperationException("Expected at least one tall Mesa in generated terrain."); - } - - [Fact] - public void MesaBetweenSpectatorAndContender_BlocksLosAndPreventsFiringThroughTerrain() - { - using var session = new ArenaSession(seed: 42); - var mesa = FindTallMesa(session.State.Terrain); - var player = session.State.Player; - var spec = session.State.Spectators.Spectators.First(s => s.Tier == SpectatorTier.Patron); - - // Place player and spectator on opposite sides of the tall mesa - float playerX = mesa.X - mesa.RadiusX - 18f; - float specX = mesa.X + mesa.RadiusX + 18f; - session.SetContenderPose(player.Id, playerX, mesa.Z); - session.SetSpectatorPose(spec.Id, specX, mesa.Z); - - // Provoke this spectator onto the player so it actively hunts, while terrain blocks sightline - session.State.Spectators.OnSpectatorDamaged(spec, player.Id); - float initialCoreHp = player.Grid.CoreHp; - - for (int tick = 0; tick < 10; tick++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - - Assert.False(session.HasLineOfSight( - spec.X, MatchRules.GetObserverEyeY(spec.Y, spec.Grid.Spec.HalfHeight), spec.Z, - player.X, MatchRules.GetTargetAimY(player.Y, player.Grid.Spec.HalfHeight), player.Z)); - Assert.False(spec.HasTargetLos); - - MatchRules.ComputeSpectatorBehavior(spec, session.State, out _, out _, out _, out _, out bool shouldFire); - Assert.False(shouldFire, "Occluded spectator must NOT fire through a mesa"); - } - - Assert.Equal(initialCoreHp, player.Grid.CoreHp); - } - - [Fact] - public void CrestingRidge_RestoresLosAndAllowsSpectatorEngagement() - { - using var session = new ArenaSession(seed: 42); - var mesa = FindTallMesa(session.State.Terrain); - var player = session.State.Player; - var spec = session.State.Spectators.Spectators.First(s => s.Tier == SpectatorTier.Patron); - - // Start occluded across the mesa - session.SetContenderPose(player.Id, mesa.X - mesa.RadiusX - 18f, mesa.Z); - session.SetSpectatorPose(spec.Id, mesa.X + mesa.RadiusX + 18f, mesa.Z); - session.State.Spectators.OnSpectatorDamaged(spec, player.Id); - - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - Assert.False(spec.HasTargetLos); - - // Now player crests onto the high mesa plateau overlooking the spectator - session.SetContenderPose(player.Id, mesa.X + mesa.RadiusX * 0.25f, mesa.Z); - session.SetSpectatorPose(spec.Id, mesa.X + mesa.RadiusX + 18f, mesa.Z); - - bool sawTracer = false; - for (int tick = 0; tick < 30; tick++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - if (session.State.Tracers.Count > 0) - { - sawTracer = true; - } - } - - Assert.True(spec.HasTargetLos, "Cresting the mesa must restore spectator LOS"); - MatchRules.ComputeSpectatorBehavior(spec, session.State, out _, out _, out _, out _, out bool shouldFire); - Assert.True(shouldFire, "Spectator with restored LOS within range should be cleared to fire"); - Assert.True(sawTracer, "Expected spectator to fire weapons once LOS was restored"); - } - - [Fact] - public void LowSignatureExemplar_HiddenBehindRidge_IsInvisibleOnRadar_WhileInLosContactIsVisible() - { - using var session = new ArenaSession(seed: 42); - var mesa = FindTallMesa(session.State.Terrain); - var player = session.State.Player; - var exemplar = session.State.Spectators.Spectators.First(s => s.Tier == SpectatorTier.Exemplar); - var visibleRival = session.State.Contenders[1]; - - Assert.True(exemplar.RadarSignature <= 0.25f); - - // Reset memory so exemplar has never been seen yet, then hide it on the far side of the mesa - session.State.SpectatorContacts[exemplar.Id] = new PlayerContactMemory(); - session.SetContenderPose(player.Id, mesa.X - mesa.RadiusX - 18f, mesa.Z); - session.SetSpectatorPose(exemplar.Id, mesa.X + mesa.RadiusX + 18f, mesa.Z); - - // Place rival contender nearby in clear open LOS on the player's side of the mesa - session.SetContenderPose(visibleRival.Id, mesa.X - mesa.RadiusX - 50f, mesa.Z + 12f); - - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - - var exMem = session.State.SpectatorContacts[exemplar.Id]; - Assert.False(exMem.VisibleToPlayer); - Assert.False(exMem.FaintHorizonPing); - Assert.False(MatchState.IsContactOnRadar(exMem), "Hidden low-signature Exemplar must vanish off player radar"); - - var rivalMem = session.State.ContenderContacts[visibleRival.Id]; - Assert.True(rivalMem.VisibleToPlayer, "In-LOS contact must be live-visible to player"); - Assert.True(MatchState.IsContactOnRadar(rivalMem)); - } - - [Fact] - public void StaticCoverWall_BlocksLineOfSight() - { - using var session = new ArenaSession(seed: 12); - var box = session.State.ArenaCoverBoxes[0]; - var player = session.State.Player; - var rival = session.State.Contenders[1]; - - // Ensure rival is a low-profile ground vehicle shorter than the 4m ruin cover wall - if (rival.Grid.Spec.IsVtol || rival.Grid.Spec.HalfHeight * 2f >= box.HalfY * 2f) - { - session.SetContenderPose(rival.Id, box.X, box.Z + box.HalfZ + 4f); - session.State.SpawnChassisDrop(box.X, box.Z + box.HalfZ + 4f, Catalog.Jackal); - Assert.True(session.State.TrySwapNearbyChassis(rival.Id)); - } - - session.SetContenderPose(player.Id, box.X, box.Z - box.HalfZ - 4f); - session.SetContenderPose(rival.Id, box.X, box.Z + box.HalfZ + 4f); - - bool los = session.HasLineOfSight( - player.X, MatchRules.GetObserverEyeY(player.Y, player.Grid.Spec.HalfHeight), player.Z, - rival.X, MatchRules.GetTargetAimY(rival.Y, rival.Grid.Spec.HalfHeight), rival.Z); - - Assert.False(los, "Static cover ruin wall between two vehicles must block HasLineOfSight"); - } - - [Fact] - public void NeutralTierPositioning_PatronsClaimHigherGroundThanTouristsAndExemplars_AndHoldSpots() - { - var state = new MatchState(seed: 42); - var ring = state.Spectators; - - var touristHeights = new List(); - var patronHeights = new List(); - var exemplarHeights = new List(); - var initialGoals = new Dictionary(); - - for (int i = 0; i < ring.Spectators.Count; i++) - { - var s = ring.Spectators[i]; - var (gx, gz) = ring.GetNeutralGoal(s, state.Terrain, state.ArenaCoverBoxes); - initialGoals[s.Id] = (gx, gz); - float h = state.Terrain.SampleHeight(gx, gz); - - switch (s.Tier) - { - case SpectatorTier.Tourist: touristHeights.Add(h); break; - case SpectatorTier.Patron: patronHeights.Add(h); break; - case SpectatorTier.Exemplar: exemplarHeights.Add(h); break; - } - } - - float avgPatronH = patronHeights.Average(); - float avgTouristH = touristHeights.Average(); - float avgExemplarH = exemplarHeights.Average(); - - Assert.True(avgPatronH > avgTouristH + 1.0f, - $"Expected Patrons ({avgPatronH:F2}m) to claim higher ground than Tourists ({avgTouristH:F2}m)"); - Assert.True(avgPatronH > avgExemplarH + 1.0f, - $"Expected Patrons ({avgPatronH:F2}m) to claim higher ground than Exemplars ({avgExemplarH:F2}m)"); - - // Advance perimeter orbits while SafeRadius is within grace period: Tourists orbit, Patrons & Exemplars hold! - ring.AdvancePerimeterOrbits(15f); - - for (int i = 0; i < ring.Spectators.Count; i++) - { - var s = ring.Spectators[i]; - var (gx, gz) = ring.GetNeutralGoal(s, state.Terrain, state.ArenaCoverBoxes); - var prev = initialGoals[s.Id]; - float moved = MathF.Sqrt((gx - prev.X) * (gx - prev.X) + (gz - prev.Z) * (gz - prev.Z)); - - if (s.Tier == SpectatorTier.Tourist) - { - Assert.True(moved > 10f, "Expected Neutral Tourists to continue orbiting perimeter"); - } - else - { - Assert.True(moved < 0.01f, $"Expected Neutral {s.Tier} to hold chosen vantage/ambush spot, moved {moved:F2}m"); - } - } - } - - [Fact] - public void OccludedSpectators_DoNotLeakLiveTargetAfterMemoryExpires_FiveSeconds() - { - using var session = new ArenaSession(seed: 42); - // Shrink safe circle so the tall mesa perimeter is outside SafeRadius - session.State.Time = 360f; - session.State.Spectators.UpdateSafeRadius(session.State.Time); - - TerrainBrush mesa = default; - float bestMinRadius = -1f; - for (int i = 0; i < session.State.Terrain.Brushes.Count; i++) - { - var b = session.State.Terrain.Brushes[i]; - if (b.Kind == TerrainBrushKind.Mesa && b.HeightDelta >= 22f) - { - float minR = MathF.Min(b.RadiusX, b.RadiusZ); - if (minR > bestMinRadius) - { - bestMinRadius = minR; - mesa = b; - } - } - } - Assert.True(bestMinRadius > 0f, "Expected at least one tall Mesa in generated terrain."); - - var player = session.State.Player; - var tourists = session.State.Spectators.Spectators.Where(s => s.Tier == SpectatorTier.Tourist).ToList(); - var provokedSpec = tourists[0]; - var clearedSpec = tourists[1]; - - // Place player on the side of the mesa further from center (strictly outside SafeRadius) - float xNeg = mesa.X - mesa.RadiusX - 18f; - float xPos = mesa.X + mesa.RadiusX + 18f; - bool negIsFurther = (xNeg * xNeg + mesa.Z * mesa.Z) >= (xPos * xPos + mesa.Z * mesa.Z); - float occludedX = negIsFurther ? xNeg : xPos; - float specSideX = negIsFurther ? (mesa.X + mesa.RadiusX + 45f) : (mesa.X - mesa.RadiusX - 45f); - - // Keep AI contenders safely inside the safe circle and other spectators behind the mesa shadow so they don't peek around the flank - for (int i = 1; i < session.State.Contenders.Count; i++) - { - session.SetContenderPose(session.State.Contenders[i].Id, (i - 6) * 12f, 0f); - } - for (int i = 0; i < session.State.Spectators.Spectators.Count; i++) - { - var other = session.State.Spectators.Spectators[i]; - if (other.Id != provokedSpec.Id && other.Id != clearedSpec.Id) - { - float farX = (mesa.X >= 0f ? -1f : 1f) * 680f; - float farZ = (mesa.Z >= 0f ? -1f : 1f) * 680f; - session.SetSpectatorPose(other.Id, farX, farZ); - } - } - - // Briefly establish visual contact for provokedSpec at initial spot, then move player behind the mesa - session.SetContenderPose(player.Id, specSideX - (negIsFurther ? 12f : -12f), mesa.Z); - session.SetSpectatorPose(provokedSpec.Id, specSideX, mesa.Z); - session.State.Spectators.OnSpectatorDamaged(provokedSpec, player.Id); - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - Assert.True(provokedSpec.HasTargetLos, "Expected initial LOS before player drops behind cover"); - - float provokedKnownX = provokedSpec.LastKnownTargetX; - float provokedKnownZ = provokedSpec.LastKnownTargetZ; - - // Now hide player behind the mesa and place clearedSpec on the opposite side closest to the breach - session.SetContenderPose(player.Id, occludedX, mesa.Z - 14f); - session.SetSpectatorPose(provokedSpec.Id, specSideX, mesa.Z - 4f); - session.SetSpectatorPose(clearedSpec.Id, specSideX, mesa.Z + 4f); - - // Verify clearedSpec gets Pass-2 Cleared assignment without LOS - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - Assert.False(provokedSpec.HasTargetLos); - Assert.Equal(SpectatorStance.Cleared, clearedSpec.Stance); - Assert.False(clearedSpec.HasTargetLos); - - float clearedInitialKnownX = clearedSpec.LastKnownTargetX; - float clearedInitialKnownZ = clearedSpec.LastKnownTargetZ; - - // Run 300 ticks (5.0s > 4.0s TargetMemoryDuration) while player moves laterally behind cover - for (int tick = 0; tick < 300; tick++) - { - float latZ = mesa.Z - 14f + (tick / 299f) * 28f; - if (tick % 10 == 0) - { - session.SetContenderPose(player.Id, occludedX, latZ); - } - - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - - Assert.False(provokedSpec.HasTargetLos, $"Provoked spectator regained unexpected LOS at tick {tick}"); - Assert.False(clearedSpec.HasTargetLos, $"Cleared spectator regained unexpected LOS at tick {tick}"); - - if (tick == 270) // 4.5s > 4.0s memory window - { - Assert.True(provokedSpec.TimeSinceLastSeen >= 4.5f, - $"Provoked TimeSinceLastSeen reset unexpectedly: {provokedSpec.TimeSinceLastSeen:F2}s"); - Assert.True(clearedSpec.TimeSinceLastSeen >= 4.5f, - $"Cleared TimeSinceLastSeen reset unexpectedly: {clearedSpec.TimeSinceLastSeen:F2}s"); - } - } - - // Neither spectator's LastKnownTarget or aim vector may track the player's new occluded position - float provokedDistToPlayer = MathF.Sqrt( - (provokedSpec.LastKnownTargetX - player.X) * (provokedSpec.LastKnownTargetX - player.X) + - (provokedSpec.LastKnownTargetZ - player.Z) * (provokedSpec.LastKnownTargetZ - player.Z)); - Assert.Equal(provokedKnownX, provokedSpec.LastKnownTargetX, precision: 3); - Assert.Equal(provokedKnownZ, provokedSpec.LastKnownTargetZ, precision: 3); - Assert.True(provokedDistToPlayer > 25f, - $"Provoked LastKnownTarget leaked live player position (dist={provokedDistToPlayer:F2}m)"); - - float clearedDistToPlayer = MathF.Sqrt( - (clearedSpec.LastKnownTargetX - player.X) * (clearedSpec.LastKnownTargetX - player.X) + - (clearedSpec.LastKnownTargetZ - player.Z) * (clearedSpec.LastKnownTargetZ - player.Z)); - Assert.Equal(clearedInitialKnownX, clearedSpec.LastKnownTargetX, precision: 3); - Assert.Equal(clearedInitialKnownZ, clearedSpec.LastKnownTargetZ, precision: 3); - Assert.True(clearedDistToPlayer > 20f, - $"Cleared LastKnownTarget leaked live player position (dist={clearedDistToPlayer:F2}m)"); - - MatchRules.ComputeSpectatorBehavior(provokedSpec, session.State, out _, out _, out float pAimX, out float pAimZ, out bool pFire); - Assert.False(pFire); - Assert.Equal(provokedKnownX, pAimX, precision: 3); - Assert.Equal(provokedKnownZ, pAimZ, precision: 3); - - MatchRules.ComputeSpectatorBehavior(clearedSpec, session.State, out _, out _, out float cAimX, out float cAimZ, out bool cFire); - Assert.False(cFire); - Assert.Equal(clearedInitialKnownX, cAimX, precision: 3); - Assert.Equal(clearedInitialKnownZ, cAimZ, precision: 3); - } - - [Fact] - public void Probe2_OccludedLateralArc_FullRingDoesNotLeakOrTrackPlayerPosition() - { - var ring = new SpectatorRing(seed: 42); - Assert.Equal(56, ring.Spectators.Count); - const float dt = 1f / 60f; - - // Phase 1 (10 ticks): Player pops out of safe circle briefly at 0 degrees with LOS to nearby 0-deg watchers. - float startR = ring.SafeRadius + 15f; - for (int tick = 0; tick < 10; tick++) - { - var contact = new RingContact(0, startR, 0f, true); - ring.UpdateClearance(new[] { contact }, dt, (spec, _) => - { - float specAng = MathF.Atan2(spec.Z, spec.X); - return MathF.Abs(specAng) < 0.45f; - }); - } - - int initialCleared = ring.CountClearedFor(0); - Assert.True(initialCleared >= 1, "Expected at least one Cleared spectator at 0 degrees during initial pop-out"); - Assert.Contains(ring.Spectators, s => s.Stance == SpectatorStance.Cleared && s.HasTargetLos); - - // Phase 2 (600 ticks = 10s): 100% occlusion while player moves laterally 0 -> 80 deg and steps further out. - float playerX = startR; - float playerZ = 0f; - float maxArcRad = 80f * (MathF.PI / 180f); - - for (int tick = 0; tick < 600; tick++) - { - float t = tick / 599f; - float angle = t * maxArcRad; - float r = ring.SafeRadius + 15f + t * 70f; - playerX = MathF.Cos(angle) * r; - playerZ = MathF.Sin(angle) * r; - - var contact = new RingContact(0, playerX, playerZ, true); - ring.UpdateClearance(new[] { contact }, dt, static (_, _) => false); - - foreach (var s in ring.Spectators) - { - Assert.False(s.HasTargetLos, $"No spectator may have LOS during occluded arc (tick {tick}, spec {s.Id})"); - if (s.Stance == SpectatorStance.Cleared) - { - float targetAngle = MathF.Atan2(s.LastKnownTargetZ, s.LastKnownTargetX); - Assert.True(MathF.Abs(targetAngle) < 0.35f, - $"Cleared spectator {s.Id} leaked lateral angle {targetAngle * 180f / MathF.PI:F1} deg at tick {tick}"); - } - } - } - - // At end of 80-deg hidden move, no spectator has LastKnownTarget near the player's hidden position, - // and spectators stationed along 35..90 degrees remain Neutral. - foreach (var s in ring.Spectators) - { - if (s.Stance == SpectatorStance.Cleared) - { - float dx = s.LastKnownTargetX - playerX; - float dz = s.LastKnownTargetZ - playerZ; - float distToHiddenPlayer = MathF.Sqrt(dx * dx + dz * dz); - Assert.True(distToHiddenPlayer > 400f, - $"Cleared spectator {s.Id} LastKnownTarget ({s.LastKnownTargetX:F1}, {s.LastKnownTargetZ:F1}) too close to hidden player ({distToHiddenPlayer:F1}m)"); - } - - float specAngleDeg = MathF.Atan2(s.Z, s.X) * (180f / MathF.PI); - if (specAngleDeg >= 35f && specAngleDeg <= 95f) - { - Assert.Equal(SpectatorStance.Neutral, s.Stance); - } - } - } - - [Fact] - public void OnSpectatorDamaged_WithoutLos_SeedsIncomingDirectionInsteadOfStaleTarget() - { - var ring = new SpectatorRing(seed: 77); - var spec = ring.Spectators[0]; - spec.LastKnownTargetX = 0f; - spec.LastKnownTargetZ = 0f; - - bool provoked = ring.OnSpectatorDamaged(spec, attackerContenderId: 0, incomingDirX: 0f, incomingDirZ: 1f); - Assert.True(provoked); - Assert.Equal(SpectatorStance.Provoked, spec.Stance); - Assert.False(spec.HasTargetLos); - Assert.True(spec.LastKnownTargetZ > spec.Z + 10f, - $"Expected LastKnownTarget to point along incoming +Z direction, got Z={spec.LastKnownTargetZ:F1} vs spec.Z={spec.Z:F1}"); - } - - [Fact] - public void AiContender_ImmediatelyDropsTrackingAndFiring_OnExactTickLosBreaks() - { - using var session = new ArenaSession(seed: 12); - var box = session.State.ArenaCoverBoxes[0]; - var player = session.State.Player; - var ai = session.State.Contenders[1]; - - // Move other rivals far away so only ai <-> player interaction is isolated - for (int i = 2; i < session.State.Contenders.Count; i++) - { - session.SetContenderPose(session.State.Contenders[i].Id, -680f + i * 8f, -680f); - } - - // Ensure both player and AI are low-profile ground vehicles shorter than the cover wall - if (player.Grid.Spec.IsVtol || player.Grid.Spec.HalfHeight * 2f >= box.HalfY * 2f) - { - session.SetContenderPose(player.Id, box.X, box.Z - box.HalfZ - 8f); - session.State.SpawnChassisDrop(box.X, box.Z - box.HalfZ - 8f, Catalog.Jackal); - Assert.True(session.State.TrySwapNearbyChassis(player.Id)); - } - if (ai.Grid.Spec.IsVtol || ai.Grid.Spec.HalfHeight * 2f >= box.HalfY * 2f) - { - session.SetContenderPose(ai.Id, box.X + 8f, box.Z - box.HalfZ - 8f); - session.State.SpawnChassisDrop(box.X + 8f, box.Z - box.HalfZ - 8f, Catalog.Jackal); - Assert.True(session.State.TrySwapNearbyChassis(ai.Id)); - } - - // Test breaking LOS across multiple step-tick phases (would catch any % 3 stagger!) - for (int phase = 0; phase < 3; phase++) - { - // Place both on the same open side of the cover box within firing range (< 165m) - session.SetContenderPose(ai.Id, box.X, box.Z - box.HalfZ - 14f, yaw: 0f); - session.SetContenderPose(player.Id, box.X + 18f, box.Z - box.HalfZ - 14f, yaw: 0f); - - // Advance `phase` ticks in open LOS; open-LOS acquisition must be immediate on tick 0! - for (int t = 0; t <= phase; t++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - Assert.Equal(player.Id, ai.AiTargetContenderId); - Assert.True(ai.FireCmd, $"Expected AI to acquire open-LOS target and fire immediately (phase={phase}, t={t})"); - } - - // Now break LOS behind the static cover wall while staying within weapon range - session.SetContenderPose(ai.Id, box.X, box.Z - box.HalfZ - 8f, yaw: 0f); - session.SetContenderPose(player.Id, box.X, box.Z + box.HalfZ + 8f, yaw: 0f); - session.State.Tracers.Clear(); - - for (int occTick = 0; occTick < 6; occTick++) - { - if (occTick > 0) - { - // Move laterally behind cover to verify AI never steers/aims toward hidden coords - session.SetContenderPose(player.Id, box.X + (occTick % 2 == 0 ? 1.5f : -1.5f), box.Z + box.HalfZ + 8f, yaw: 0f); - } - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - - Assert.Null(ai.AiTargetContenderId); - Assert.False(ai.FireCmd, $"AI leaked FireCmd on occluded tick {occTick} (phase={phase})"); - float aimToHidden = MathF.Sqrt((ai.AimX - player.X) * (ai.AimX - player.X) + (ai.AimZ - player.Z) * (ai.AimZ - player.Z)); - Assert.True(aimToHidden > 5f, $"AI aim leaked hidden player coords on occluded tick {occTick} (dist={aimToHidden:F2}m)"); - } - } - } - - [Fact] - public void PlayerDetectedByCount_StaysExactZero_UnderAsymmetricCover_NoFlicker() - { - using var session = new ArenaSession(seed: 12); - var box = session.State.ArenaCoverBoxes.First(b => b.HalfY >= 2.8f); - var player = session.State.Player; - var rival = session.State.Contenders[1]; - - // Move all other rivals and spectators far away (> 500m) so only rival <-> player is tested - for (int i = 2; i < session.State.Contenders.Count; i++) - { - session.SetContenderPose(session.State.Contenders[i].Id, -680f + i * 8f, -680f); - } - for (int i = 0; i < session.State.Spectators.Spectators.Count; i++) - { - var s = session.State.Spectators.Spectators[i]; - session.SetSpectatorPose(s.Id, (box.X >= 0f ? -1f : 1f) * 680f, (box.Z >= 0f ? -1f : 1f) * 680f); - } - - // Medium-tall player (Breaker) right next to the 5.6m bunker sees over it onto a low rival (Jackal) 40m on the far side, - // while the low rival's eye cannot see the Breaker's lower target center behind the bunker. - session.SetContenderPose(player.Id, box.X, box.Z - box.HalfZ - 4f); - session.State.SpawnChassisDrop(player.X, player.Z, Catalog.Breaker); - Assert.True(session.State.TrySwapNearbyChassis(player.Id)); - - session.SetContenderPose(rival.Id, box.X, box.Z + box.HalfZ + 40f); - session.State.SpawnChassisDrop(rival.X, rival.Z, Catalog.Jackal); - Assert.True(session.State.TrySwapNearbyChassis(rival.Id)); - - // Confirm asymmetric LOS precondition - Assert.True(session.HasLineOfSight( - player.X, MatchRules.GetObserverEyeY(player.Y, player.Grid.Spec.HalfHeight), player.Z, - rival.X, MatchRules.GetTargetAimY(rival.Y, rival.Grid.Spec.HalfHeight), rival.Z)); - Assert.False(session.HasLineOfSight( - rival.X, MatchRules.GetObserverEyeY(rival.Y, rival.Grid.Spec.HalfHeight), rival.Z, - player.X, MatchRules.GetTargetAimY(player.Y, player.Grid.Spec.HalfHeight), player.Z)); - - for (int tick = 0; tick < 18; tick++) - { - // Re-pin poses each tick so drift never alters cover geometry - session.SetContenderPose(player.Id, box.X, box.Z - box.HalfZ - 4f); - session.SetContenderPose(rival.Id, box.X, box.Z + box.HalfZ + 40f); - session.Step(new PlayerInput(0f, 0f, player.X, player.Z, false, false, true)); - - Assert.True(session.State.ContenderContacts[rival.Id].VisibleToPlayer); - Assert.Equal(0, session.State.PlayerDetectedByCount); - } - } - - [Fact] - public void SpectatorRing_ClearsNearestOpenLosNeutralWatcher_OnFirstTickOutsideSafeRadius() - { - // Test every tick phase 0..5 so % 6 staggering cannot hide - for (int tickIndex = 0; tickIndex < 6; tickIndex++) - { - var ring = new SpectatorRing(seed: 42); - // Pick a spectator whose (Id + tickIndex) % 6 != 0 so % 6 staggering would have skipped it - var targetNearest = ring.Spectators.First(s => (s.Id + tickIndex) % 6 != 0); - - // Place contender just outside SafeRadius directly beside targetNearest (within 12m outside => allowedCleared = 1) - float len = MathF.Sqrt(targetNearest.X * targetNearest.X + targetNearest.Z * targetNearest.Z); - float nx = targetNearest.X / len; - float nz = targetNearest.Z / len; - float outR = ring.SafeRadius + 4f; - float cx = nx * outR; - float cz = nz * outR; - - ring.UpdateClearance( - new[] { new RingContact(0, cx, cz, true) }, - 1f / 60f, - static (_, _) => true, - tickIndex: tickIndex); - - Assert.Equal(1, ring.CountClearedFor(0)); - Assert.Equal(SpectatorStance.Cleared, targetNearest.Stance); - Assert.Equal(0, targetNearest.TargetContenderId); - } - } - } -} diff --git a/tests/RustToDust.Tests/GridHeatTests.cs b/tests/RustToDust.Tests/GridHeatTests.cs deleted file mode 100644 index cba59dc..0000000 --- a/tests/RustToDust.Tests/GridHeatTests.cs +++ /dev/null @@ -1,130 +0,0 @@ -using System.Collections.Generic; -using RustToDust.Core; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class GridHeatTests - { - [Fact] - public void Conduction_SpreadsHeatFromHotHardpointToNeighbors() - { - var grid = Catalog.CreateStarterBuggy(); - // hp.weapon.roof is at (1, 0) 1x2. Neighbors (0, 0) and (1, 2) start at ambient 20f. - grid.InjectHardpointHeat("hp.weapon.roof", 600f); - float hotBefore = grid.Temperature[1, 0]; - Assert.True(hotBefore > ChassisGrid.AmbientTemp + 20f); - Assert.Equal(ChassisGrid.AmbientTemp, grid.Temperature[0, 0]); - Assert.Equal(ChassisGrid.AmbientTemp, grid.Temperature[1, 2]); - - for (int i = 0; i < 30; i++) - { - grid.StepHeat(1f / 60f); - } - - Assert.True(grid.Temperature[0, 0] > ChassisGrid.AmbientTemp + 1f); - Assert.True(grid.Temperature[1, 2] > ChassisGrid.AmbientTemp + 1f); - Assert.True(grid.Temperature[1, 0] < hotBefore); - } - - [Fact] - public void Radiation_CoolsBorderCellsWhileInteriorCellsDoNotRadiateDirectly() - { - var grid = new ChassisGrid(Catalog.Tank); // 4x5 full grid: interior cells exist at (1..2, 1..3) - for (int y = 0; y < grid.Spec.Height; y++) - { - for (int x = 0; x < grid.Spec.Width; x++) - { - grid.Temperature[x, y] = 120f; - } - } - - // Single 60Hz substep: neighbors are all 120f so net conduction is 0. - // Only BorderCells lose heat to radiation; interior cell (1, 2) must stay at 120f. - grid.StepHeat(1f / 60f); - - Assert.True(grid.BorderCells[0, 0]); - Assert.False(grid.BorderCells[1, 2]); - Assert.True(grid.Temperature[0, 0] < 120f); - Assert.Equal(120f, grid.Temperature[1, 2], precision: 5); - } - - [Fact] - public void ModulePerformance_MatchesTrapezoidalPlateauCurve() - { - var mod = Catalog.Mg762; // Min=0, Optimal=65, Plateau=70 => [30, 100], Max=155 - - Assert.Equal(0f, mod.Performance(-5f)); - Assert.Equal(0f, mod.Performance(0f)); - Assert.Equal(0.5f, mod.Performance(15f), precision: 4); - Assert.Equal(1f, mod.Performance(30f), precision: 4); - Assert.Equal(1f, mod.Performance(65f), precision: 4); - Assert.Equal(1f, mod.Performance(100f), precision: 4); - Assert.Equal(0.5f, mod.Performance(127.5f), precision: 4); - Assert.Equal(0f, mod.Performance(155f)); - Assert.Equal(0f, mod.Performance(210f)); - } - - [Fact] - public void DorsalHit_FrontStrikesFrontRowAndRearStrikesRearRow() - { - var grid = new ChassisGrid(Catalog.Tank); - - var frontHit = grid.ApplyHit(localRight: 0f, localForward: 1f, localHeightNorm: 0.5f, damage: 15f, heatTransfer: 0f); - var rearHit = grid.ApplyHit(localRight: 0f, localForward: -1f, localHeightNorm: 0.5f, damage: 15f, heatTransfer: 0f); - var leftHit = grid.ApplyHit(localRight: -1f, localForward: 0f, localHeightNorm: 0.5f, damage: 15f, heatTransfer: 0f); - var rightHit = grid.ApplyHit(localRight: 1f, localForward: 0f, localHeightNorm: 0.5f, damage: 15f, heatTransfer: 0f); - - Assert.Equal(0, frontHit.CellY); - Assert.Equal(grid.Spec.Height - 1, rearHit.CellY); - Assert.Equal(0, leftHit.CellX); - Assert.Equal(grid.Spec.Width - 1, rightHit.CellX); - } - - [Fact] - public void CoronalHit_HighVsLowElevationStrikesUpperVsLowerBipedCells() - { - var grid = new ChassisGrid(Catalog.Raptor); - float initialLegs = grid.LegIntegrity; - Assert.Equal(1f, initialLegs); - - var highHit = grid.ApplyHit(localRight: 0f, localForward: 1f, localHeightNorm: 0.95f, damage: 20f, heatTransfer: 0f); - var lowHit = grid.ApplyHit(localRight: -0.4f, localForward: 1f, localHeightNorm: 0.05f, damage: 35f, heatTransfer: 0f); - - Assert.True(highHit.CellY <= 1); - Assert.True(lowHit.CellY >= grid.Spec.Height - 2); - Assert.True(grid.LegIntegrity < initialLegs); - } - - [Fact] - public void LooseFitAndSwapChassis_PreservesCompatibleGearAndStowsOverflow() - { - // Ironclad has 2x2 main turret hardpoint: smaller 1x1 weapon fits loosely; 2x2 weapon must NOT fit 1x2 Jackal roof. - var tankGrid = new ChassisGrid(Catalog.Ironclad); - Assert.True(tankGrid.TryMount(Catalog.Recoilless, "hp.weapon.main")); // 2x2 into 2x2 - Assert.True(tankGrid.TryMount(Catalog.Mg762, "hp.weapon.coax")); // 1x1 into 1x1 - Assert.True(tankGrid.TryMount(Catalog.TurboCore, "hp.engine.rear")); // 1x2 into 2x2 - Assert.True(tankGrid.TryMount(Catalog.GoldRadiator, "hp.radiator.l")); // 1x1 into 1x2 - Assert.True(tankGrid.TryMount(Catalog.WeldedPlate, "hp.armor.front")); // 1x1 into 4x1 - Assert.True(tankGrid.TryMount(Catalog.GildedPlate, "hp.armor.skirts")); // 1x1 into 1x2 - - // Fill cargo so swapping down to Jackal (capacity 4) overflows 2 items to ground! - Assert.True(tankGrid.TryAddCargo(Catalog.Flak)); - Assert.True(tankGrid.TryAddCargo(Catalog.CopperRad)); - Assert.True(tankGrid.TryAddCargo(Catalog.DieselCore)); - - List dropped = tankGrid.SwapChassis(Catalog.Jackal); - - // Jackal has 1x2 Weapon (mg_762 fits, recoilless 2x2 does not!), 1x2 Engine (turbo_core fits), 1x1 Radiator (gold_radiator fits), 0 Armor hardpoints. - Assert.Equal("jackal", tankGrid.Spec.Id); - Assert.Contains(tankGrid.Mounted, m => m.Spec.Id == "mg_762"); - Assert.Contains(tankGrid.Mounted, m => m.Spec.Id == "turbo_core"); - Assert.Contains(tankGrid.Mounted, m => m.Spec.Id == "gold_radiator"); - Assert.DoesNotContain(tankGrid.Mounted, m => m.Spec.Id == "recoilless"); - - // 6 mounted on Ironclad: 3 transferred, 3 leftover + 3 cargo = 6 items -> 4 in Jackal Cargo, 2 dropped! - Assert.Equal(Catalog.Jackal.CargoCapacity, tankGrid.Cargo.Count); - Assert.Equal(2, dropped.Count); - } - } -} diff --git a/tests/RustToDust.Tests/RustToDust.Tests.csproj b/tests/RustToDust.Tests/RustToDust.Tests.csproj deleted file mode 100644 index 95cfcf3..0000000 --- a/tests/RustToDust.Tests/RustToDust.Tests.csproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - net10.0 - enable - disable - false - - - - - - - - - - - - - - diff --git a/tests/RustToDust.Tests/SpectatorRingTests.cs b/tests/RustToDust.Tests/SpectatorRingTests.cs deleted file mode 100644 index 7b54630..0000000 --- a/tests/RustToDust.Tests/SpectatorRingTests.cs +++ /dev/null @@ -1,150 +0,0 @@ -using System; -using System.Linq; -using RustToDust.Core; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class SpectatorRingTests - { - [Fact] - public void Clearance_ZeroInsideSafeCircle_MonotonicOutside() - { - var ring = new SpectatorRing(seed: 101); - float r = ring.SafeRadius; // 560f - Assert.Equal(56, ring.Spectators.Count); - - // Inside safe circle -> 0 cleared - ring.UpdateClearance(new[] { new RingContact(0, r - 20f, 0f, true) }); - Assert.Equal(0, ring.CountClearedFor(0)); - - // Just outside safe circle (+5m) -> 1 cleared - ring.UpdateClearance(new[] { new RingContact(0, r + 5f, 0f, true) }); - int clearedNear = ring.CountClearedFor(0); - Assert.Equal(1, clearedNear); - - // Further outside (+30m) -> 1 + floor(30/12) = 3 cleared - ring.UpdateClearance(new[] { new RingContact(0, r + 30f, 0f, true) }); - int clearedMid = ring.CountClearedFor(0); - Assert.True(clearedMid > clearedNear); - - // Far outside (+100m) -> capped at 8 cleared - ring.UpdateClearance(new[] { new RingContact(0, r + 100f, 0f, true) }); - int clearedFar = ring.CountClearedFor(0); - Assert.Equal(8, clearedFar); - - // Stepping back inside safe circle revokes non-provoked clearance back to 0 - ring.UpdateClearance(new[] { new RingContact(0, 0f, 0f, true) }); - Assert.Equal(0, ring.CountClearedFor(0)); - } - - [Fact] - public void Provocation_AttackingNeutralSpectatorLocksOntoAttackerEvenInsideSafeCircle() - { - var ring = new SpectatorRing(seed: 202); - var targetSpec = ring.Spectators[0]; - Assert.Equal(SpectatorStance.Neutral, targetSpec.Stance); - - // Contender 0 is dead center (well inside SafeRadius) - var contenders = new[] { new RingContact(0, 0f, 0f, true) }; - ring.UpdateClearance(contenders); - Assert.Equal(0, ring.CountClearedFor(0)); - - bool provoked = ring.OnSpectatorDamaged(targetSpec, attackerContenderId: 0); - Assert.True(provoked); - Assert.Equal(SpectatorStance.Provoked, targetSpec.Stance); - Assert.Equal(0, targetSpec.TargetContenderId); - - // Subsequent clearance updates inside the safe circle must NOT clear Provoked lock - ring.UpdateClearance(contenders); - Assert.Equal(SpectatorStance.Provoked, targetSpec.Stance); - Assert.Equal(1, ring.CountProvokedFor(0)); - - // Once attacker dies, provocation reverts to Neutral - ring.UpdateClearance(new[] { new RingContact(0, 0f, 0f, false) }); - Assert.Equal(SpectatorStance.Neutral, targetSpec.Stance); - Assert.Null(targetSpec.TargetContenderId); - } - - [Fact] - public void SalvageDrops_TouristDropsImperialGearWhileExemplarDoesNot() - { - var ring = new SpectatorRing(seed: 303); - var rng = new Random(99); - - var tourists = ring.Spectators.Where(s => s.Tier == SpectatorTier.Tourist).ToList(); - var exemplars = ring.Spectators.Where(s => s.Tier == SpectatorTier.Exemplar).ToList(); - - Assert.NotEmpty(tourists); - Assert.NotEmpty(exemplars); - - foreach (var tourist in tourists) - { - var drops = SpectatorRing.RollSalvageDrops(tourist, rng); - Assert.InRange(drops.Count, 1, 2); - Assert.All(drops, d => Assert.True(d.IsImperial)); - } - - foreach (var exemplar in exemplars) - { - var drops = SpectatorRing.RollSalvageDrops(exemplar, rng); - Assert.DoesNotContain(drops, d => d.IsImperial); - } - } - - [Fact] - public void SpawnedSpectators_EveryTierMountsEngineAndWeapon() - { - var ring = new SpectatorRing(seed: 42); - - Assert.Contains(ring.Spectators, s => s.Tier == SpectatorTier.Tourist); - Assert.Contains(ring.Spectators, s => s.Tier == SpectatorTier.Patron); - Assert.Contains(ring.Spectators, s => s.Tier == SpectatorTier.Exemplar); - - foreach (var spec in ring.Spectators) - { - Assert.Contains(spec.Grid.Mounted, m => m.Spec.Kind == HardpointKind.Engine); - Assert.Contains(spec.Grid.Mounted, m => m.Spec.Kind == HardpointKind.Weapon); - } - } - - [Fact] - public void Provocation_AttackingClearedSpectatorSwitchesToProvokedAndPersistsInsideSafeCircle() - { - var ring = new SpectatorRing(seed: 505); - float outsideR = ring.SafeRadius + 15f; - - // Contender 0 steps outside safe circle -> clears at least 1 spectator - ring.UpdateClearance(new[] { new RingContact(0, outsideR, 0f, true) }); - var clearedSpec = ring.Spectators.FirstOrDefault(s => s.Stance == SpectatorStance.Cleared); - Assert.NotNull(clearedSpec); - - // Contender 0 fights back against the Cleared spectator - bool provoked = ring.OnSpectatorDamaged(clearedSpec!, attackerContenderId: 0); - Assert.True(provoked); - Assert.Equal(SpectatorStance.Provoked, clearedSpec!.Stance); - Assert.Equal(0, clearedSpec.TargetContenderId); - - // Returning inside the safe circle must NOT clear the Provoked lock - ring.UpdateClearance(new[] { new RingContact(0, 0f, 0f, true) }); - Assert.Equal(SpectatorStance.Provoked, clearedSpec.Stance); - Assert.Equal(1, ring.CountProvokedFor(0)); - } - - [Fact] - public void BroadcastFeed_VersionAdvancesPastRingBufferCap() - { - var feed = new BroadcastFeed(); - for (int i = 0; i < 40; i++) - { - long prev = feed.Version; - feed.Emit(i, BroadcastKind.TouristPull, $"line-{i}"); - Assert.Equal(prev + 1, feed.Version); - } - - Assert.Equal(32, feed.Lines.Count); - Assert.Equal(40, feed.Version); - Assert.Equal("line-39", feed.Latest?.Text); - } - } -} diff --git a/tests/RustToDust.Tests/TerrainTests.cs b/tests/RustToDust.Tests/TerrainTests.cs deleted file mode 100644 index 2bb5cba..0000000 --- a/tests/RustToDust.Tests/TerrainTests.cs +++ /dev/null @@ -1,398 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Numerics; -using RustToDust.Core; -using RustToDust.Ymir; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class TerrainTests - { - [Fact] - public void Generate_ProducesDeterministicNonFlatReliefWithinBounds() - { - Assert.Equal(1536f, TerrainField.ArenaSize); - Assert.Equal(8, TerrainField.TileGridCount); - Assert.Equal(192f, TerrainField.TileSize); - Assert.Equal(-18f, TerrainField.MinWorldHeight); - Assert.Equal(52f, TerrainField.MaxWorldHeight); - - var emptyCover = Array.Empty(); - var a = TerrainField.Generate(42UL, emptyCover); - var b = TerrainField.Generate(42UL, emptyCover); - var c = TerrainField.Generate(999UL, emptyCover); - - float minH = float.PositiveInfinity; - float maxH = float.NegativeInfinity; - bool anyDifferentSeed = false; - - for (int gx = -700; gx <= 700; gx += 50) - { - for (int gz = -700; gz <= 700; gz += 50) - { - float ha = a.SampleHeight(gx, gz); - float hb = b.SampleHeight(gx, gz); - float hc = c.SampleHeight(gx, gz); - - Assert.Equal(ha, hb); - if (MathF.Abs(ha - hc) > 0.05f) - { - anyDifferentSeed = true; - } - - minH = MathF.Min(minH, ha); - maxH = MathF.Max(maxH, ha); - } - } - - Assert.True(maxH - minH >= 25f, $"Expected dramatic mesa/dune/canyon relief >= 25m span, got [{minH:F2}, {maxH:F2}]"); - Assert.InRange(minH, TerrainField.MinWorldHeight, -3.0f); - Assert.InRange(maxH, 18.0f, TerrainField.MaxWorldHeight); - Assert.True(anyDifferentSeed, "Different seeds should generate distinct desert relief"); - } - - [Fact] - public void StampCrater_LowersCenterRaisesRimAndDirtyOnlyOverlappingTiles() - { - var terrain = TerrainField.Generate(42UL, Array.Empty()); - terrain.ClearDirtyMask(); - - // Tile (3, 3) spans X in [-192, 0), Z in [-192, 0). - // Point (-96, -96) with radius 6m is strictly inside tile (3, 3) and nowhere else. - const float cx = -96f; - const float cz = -96f; - const float radius = 6f; - const float depth = 1.6f; - - float beforeCenter = terrain.SampleHeight(cx, cz); - float beforeRim = terrain.SampleHeight(cx + radius * 0.775f, cz); - - terrain.StampCrater(cx, cz, radius, depth); - - float afterCenter = terrain.SampleHeight(cx, cz); - float afterRim = terrain.SampleHeight(cx + radius * 0.775f, cz); - - Assert.True(afterCenter < beforeCenter - 1.0f, - $"Expected crater center to drop >1.0m (before {beforeCenter:F2}, after {afterCenter:F2})"); - Assert.True(afterRim > beforeRim + 0.2f, - $"Expected crater ejecta rim to rise >0.2m (before {beforeRim:F2}, after {afterRim:F2})"); - - // Only tile (3, 3) should have incremented from version 1 to 2 - for (int tz = 0; tz < TerrainField.TileGridCount; tz++) - { - for (int tx = 0; tx < TerrainField.TileGridCount; tx++) - { - int expected = (tx == 3 && tz == 3) ? 2 : 1; - Assert.Equal(expected, terrain.TileVersions[tx, tz]); - } - } - Assert.Equal(1UL << (3 * TerrainField.TileGridCount + 3), terrain.DirtyTileMask); - } - - [Fact] - public void Raycast_DetectsBlockingMesaAndClearsAboveCrest() - { - var terrain = TerrainField.Generate(42UL, Array.Empty()); - TerrainBrush? tallMesa = null; - for (int i = 0; i < terrain.Brushes.Count; i++) - { - var b = terrain.Brushes[i]; - if (b.Kind == TerrainBrushKind.Mesa && b.HeightDelta >= 22f) - { - tallMesa = b; - break; - } - } - - Assert.NotNull(tallMesa); - var mesa = tallMesa!.Value; - - float startX = mesa.X - mesa.RadiusX - 25f; - float endX = mesa.X + mesa.RadiusX + 25f; - float span = endX - startX; - float lowY = terrain.SampleHeight(startX, mesa.Z) + 4f; - - bool blocked = terrain.Raycast( - startX, lowY, mesa.Z, - 1f, 0f, 0f, - span, - out float hx, out _, out _, out _); - - Assert.True(blocked, "Expected low ray across tall mesa to be blocked by terrain"); - Assert.InRange(hx, startX, endX); - - float highY = terrain.SampleHeight(mesa.X, mesa.Z) + 6f; - bool clear = terrain.Raycast( - startX, highY, mesa.Z, - 1f, 0f, 0f, - span, - out _, out _, out _, out _); - - Assert.False(clear, "Expected ray above mesa plateau to pass unobstructed"); - } - - [Fact] - public void StampTrack_BoundsDynamicDecalCount() - { - var terrain = TerrainField.Generate(7UL, Array.Empty()); - int initialCount = terrain.Brushes.Count; - - for (int i = 0; i < TerrainField.MaxDynamicDecals + 40; i++) - { - float x = -80f + (i % 40) * 4f; - float z = -80f + (i / 40) * 8f; - terrain.StampTrack(x, z, yaw: 0.4f, width: 1.6f, length: 2.5f); - } - - Assert.Equal(initialCount + TerrainField.MaxDynamicDecals, terrain.Brushes.Count); - } - - [Fact] - public void ArenaSession_BuggyDrivesAcrossDunesWithoutNanAndTracksElevation() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - int initialBrushes = session.State.Terrain.Brushes.Count; - - float minGround = float.PositiveInfinity; - float maxGround = float.NegativeInfinity; - - for (int tick = 0; tick < 360; tick++) - { - float steer = MathF.Sin(tick * 0.025f) * 0.45f; - session.Step(new PlayerInput( - Throttle: 1f, - Steer: steer, - AimWorldX: player.X + 30f, - AimWorldZ: player.Z, - Fire: false, - InteractPickup: false, - Brake: false)); - - Assert.False(float.IsNaN(player.X) || float.IsNaN(player.Y) || float.IsNaN(player.Z), - $"NaN pose at tick {tick}"); - - float gh = session.State.Terrain.SampleHeight(player.X, player.Z); - minGround = MathF.Min(minGround, gh); - maxGround = MathF.Max(maxGround, gh); - - // Chassis should remain supported near the terrain surface (never sink under -12m or rocket into orbit) - float bottomY = player.Y - player.Grid.Spec.HalfHeight; - Assert.InRange(bottomY - gh, -0.75f, 4.0f); - } - - Assert.True(session.State.Terrain.Brushes.Count > initialBrushes, - "Driving across dust should stamp tire track brushes"); - Assert.True(maxGround - minGround > 0.25f, - $"Expected buggy to traverse non-flat terrain (span {maxGround - minGround:F2}m)"); - } - - [Theory] - [InlineData(42)] - [InlineData(101)] - [InlineData(999)] - public void CoverBoxes_HaveFlatFootprintWithinHalfMeterAcrossAllCorners(int seed) - { - var state = new MatchState(seed); - float maxCoverCornerDelta = 0f; - - foreach (var box in state.ArenaCoverBoxes) - { - float[] heights = - { - state.Terrain.SampleHeight(box.X, box.Z), - state.Terrain.SampleHeight(box.X - box.HalfX, box.Z - box.HalfZ), - state.Terrain.SampleHeight(box.X + box.HalfX, box.Z - box.HalfZ), - state.Terrain.SampleHeight(box.X - box.HalfX, box.Z + box.HalfZ), - state.Terrain.SampleHeight(box.X + box.HalfX, box.Z + box.HalfZ) - }; - - float minH = float.PositiveInfinity; - float maxH = float.NegativeInfinity; - for (int i = 0; i < heights.Length; i++) - { - minH = MathF.Min(minH, heights[i]); - maxH = MathF.Max(maxH, heights[i]); - } - - maxCoverCornerDelta = MathF.Max(maxCoverCornerDelta, maxH - minH); - float boxBottom = box.Y - box.HalfY; - Assert.True(boxBottom <= minH + 0.01f, - $"Cover box at ({box.X}, {box.Z}) bottom {boxBottom:F2}m floats above corner height {minH:F2}m"); - } - - Assert.Equal(36, state.ArenaCoverBoxes.Count); - Assert.True(maxCoverCornerDelta <= 0.6f, - $"Expected MaxCoverCornerDelta <= 0.6m for seed {seed}, got {maxCoverCornerDelta:F3}m"); - } - - [Fact] - public void RoadBrushes_MajorAxisRunsTangentiallyToFormRingLoop() - { - var terrain = TerrainField.Generate(42UL, Array.Empty()); - var roads = new List(); - for (int i = 0; i < terrain.Brushes.Count; i++) - { - if (terrain.Brushes[i].Kind == TerrainBrushKind.Road) - { - roads.Add(terrain.Brushes[i]); - } - } - - Assert.Equal(16, roads.Count); - foreach (var road in roads) - { - Assert.True(road.RadiusX > road.RadiusZ, - $"Expected Road RadiusX ({road.RadiusX}) > RadiusZ ({road.RadiusZ}) so major axis follows tangential u"); - - float rLen = MathF.Sqrt(road.X * road.X + road.Z * road.Z); - float radX = road.X / rLen; - float radZ = road.Z / rLen; - float axisX = MathF.Cos(road.RotationRad); - float axisZ = MathF.Sin(road.RotationRad); - float radialDot = MathF.Abs(radX * axisX + radZ * axisZ); - - Assert.True(radialDot < 1e-4f, - $"Expected Road major axis to be tangential (dot ~ 0), got {radialDot:F4}"); - } - } - - [Theory] - [InlineData(42)] - [InlineData(101)] - public void SteepMesaAndDuneTraversal_AllSixChassis_NoTunnelingSkyLaunchOrOverturning(int seed) - { - foreach (var chassis in Catalog.AllChassis) - { - RunSteepTerrainStress(seed, chassis, testDune: false); - RunSteepTerrainStress(seed, chassis, testDune: true); - } - } - - private static void RunSteepTerrainStress(int seed, ChassisSpec chassis, bool testDune) - { - using var session = new ArenaSession(seed); - var player = session.State.Player; - - TerrainBrush targetBrush = default; - float startX = 0f; - float startZ = 0f; - float bestScore = -1f; - for (int i = 0; i < session.State.Terrain.Brushes.Count; i++) - { - var b = session.State.Terrain.Brushes[i]; - bool matches = testDune - ? b.Kind == TerrainBrushKind.DuneRidge && b.HeightDelta >= 14f - : b.Kind == TerrainBrushKind.Mesa && b.HeightDelta >= 22f; - if (!matches) - { - continue; - } - - if (MathF.Sqrt(b.X * b.X + b.Z * b.Z) > SpectatorRing.InitialRadius - 90f) - { - continue; - } - - float peakH = session.State.Terrain.SampleHeight(b.X, b.Z); - for (int k = 0; k < 8; k++) - { - float localAng = k * (MathF.PI * 0.25f); - float localX = MathF.Cos(localAng) * (b.RadiusX + 18f); - float localZ = MathF.Sin(localAng) * (b.RadiusZ + 18f); - float cosR = MathF.Cos(b.RotationRad); - float sinR = MathF.Sin(b.RotationRad); - float candX = b.X + localX * cosR - localZ * sinR; - float candZ = b.Z + localX * sinR + localZ * cosR; - if (MathF.Sqrt(candX * candX + candZ * candZ) > SpectatorRing.InitialRadius - 35f) - { - continue; - } - - float baseH = session.State.Terrain.SampleHeight(candX, candZ); - float relief = peakH - baseH; - if (relief > bestScore) - { - bestScore = relief; - targetBrush = b; - startX = candX; - startZ = candZ; - } - } - } - Assert.True(bestScore >= 10f, $"Expected a climbable {(testDune ? "dune" : "mesa")} approach inside safe circle in seed {seed}"); - - // Keep AI contenders on the opposite side of the safe zone so combat does not kill the vehicle mid-traversal - for (int i = 1; i < session.State.Contenders.Count; i++) - { - session.SetContenderPose(session.State.Contenders[i].Id, -targetBrush.X * 0.5f + (i - 6) * 14f, -targetBrush.Z * 0.5f); - } - - float yawToTarget = MathF.Atan2(targetBrush.X - startX, targetBrush.Z - startZ); - session.SetContenderPose(player.Id, startX, startZ, yawToTarget); - - if (chassis.Id != player.Grid.Spec.Id) - { - session.State.SpawnChassisDrop(player.X, player.Z, chassis); - Assert.True(session.TrySwapNearbyChassis(), $"Expected swap to {chassis.Id} to succeed"); - Assert.Equal(chassis.Id, player.Grid.Spec.Id); - } - - float startGroundY = session.State.Terrain.SampleHeight(player.X, player.Z); - float maxGroundY = startGroundY; - float minBottomRel = float.PositiveInfinity; - float maxAirGap = float.NegativeInfinity; - float minUpDot = float.PositiveInfinity; - - for (int tick = 0; tick < 600; tick++) - { - float steer = MathF.Sin(tick * 0.03f) * 0.15f; - session.Step(new PlayerInput( - Throttle: 1f, - Steer: steer, - AimWorldX: targetBrush.X, - AimWorldZ: targetBrush.Z, - Fire: false, - InteractPickup: false, - Brake: false)); - - Assert.False( - float.IsNaN(player.X) || float.IsNaN(player.Y) || float.IsNaN(player.Z), - $"NaN pose at tick {tick} (seed={seed}, chassis={chassis.Id}, dune={testDune})"); - - var body = session.GetContenderBody(player.Id); - Assert.True(body.HasValue, $"Expected live contender body at tick {tick} (seed={seed}, chassis={chassis.Id})"); - - int lane = body!.Value.Lane; - var view = session.World.View; - var q = new Quaternion(view.RotationX[lane], view.RotationY[lane], view.RotationZ[lane], view.RotationW[lane]); - var up = Vector3.Transform(Vector3.UnitY, q); - Assert.False(float.IsNaN(up.Y), $"NaN orientation at tick {tick}"); - - float gh = session.State.Terrain.SampleHeight(player.X, player.Z); - float bottomRel = (player.Y - player.Grid.Spec.HalfHeight) - gh; - - maxGroundY = MathF.Max(maxGroundY, gh); - minBottomRel = MathF.Min(minBottomRel, bottomRel); - maxAirGap = MathF.Max(maxAirGap, bottomRel); - minUpDot = MathF.Min(minUpDot, up.Y); - } - - float climbProgress = maxGroundY - startGroundY; - float minRequiredClimb = testDune ? 4.0f : 2.0f; - float minAllowedUpDot = chassis.IsWalker ? 0.927f : 0.50f; - // VTOLs spawn at 10m AGL and glide under gravity over mesa cliff drops instead of slamming downward - float maxAllowedAirGap = chassis.IsVtol ? targetBrush.HeightDelta + 15f : 5.0f; - - Assert.True(climbProgress >= minRequiredClimb, - $"Insufficient uphill climb progress (seed={seed}, chassis={chassis.Id}, dune={testDune}): climb={climbProgress:F2}m start=({startX:F1},{startZ:F1},h={startGroundY:F2}) end=({player.X:F1},{player.Z:F1},maxH={maxGroundY:F2}) brush=({targetBrush.X:F1},{targetBrush.Z:F1},rx={targetBrush.RadiusX:F1},rz={targetBrush.RadiusZ:F1},rot={targetBrush.RotationRad:F2},dh={targetBrush.HeightDelta:F1})"); - Assert.True(minBottomRel >= -0.35f, - $"Terrain tunneling detected (seed={seed}, chassis={chassis.Id}, dune={testDune}): minBottomRel={minBottomRel:F2}m"); - Assert.True(maxAirGap <= maxAllowedAirGap, - $"Excessive sky launch detected (seed={seed}, chassis={chassis.Id}, dune={testDune}): maxAirGap={maxAirGap:F2}m (max={maxAllowedAirGap:F1}m)"); - Assert.True(minUpDot >= minAllowedUpDot, - $"Excessive chassis tilt (seed={seed}, chassis={chassis.Id}, dune={testDune}): minUpDot={minUpDot:F3} (req>={minAllowedUpDot:F3})"); - } - } -} diff --git a/tests/RustToDust.Tests/VehiclePackageTests.cs b/tests/RustToDust.Tests/VehiclePackageTests.cs deleted file mode 100644 index 703d86a..0000000 --- a/tests/RustToDust.Tests/VehiclePackageTests.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text.Json; -using RustToDust.Core; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class VehiclePackageTests - { - private static readonly string[] Expected15Ids = - { - "jackal", "mule", "ferret", "hornet", "mammoth", - "ironclad", "anvil", "condor", "breaker", "paladin", - "raptor", "manticore", "bastion", "spectre", "kestrel" - }; - - [Fact] - public void All15VehicleArchives_LoadFromCultCacheAndMatchManifests() - { - Assert.Equal(15, Catalog.AllChassis.Count); - Assert.Equal(15, Catalog.PackagesById.Count); - - string vehiclesRoot = VehicleCatalogLoader.LocateVehiclesDirectory(); - foreach (string id in Expected15Ids) - { - string ccPath = Path.Combine(vehiclesRoot, id, "vehicle.cc"); - string manifestPath = Path.Combine(vehiclesRoot, id, "manifest.json"); - Assert.True(File.Exists(ccPath), $"Missing vehicle.cc for {id}"); - Assert.True(File.Exists(manifestPath), $"Missing manifest.json for {id}"); - - VehiclePackage pkg = VehiclePackageStore.Read(ccPath); - Assert.Equal(id, pkg.Id); - Assert.True(File.Exists(Path.Combine(vehiclesRoot, id, pkg.ModelAsset)), $"Missing GLB {pkg.ModelAsset}"); - - using var doc = JsonDocument.Parse(File.ReadAllText(manifestPath)); - var root = doc.RootElement; - - Assert.Equal(root.GetProperty("gridWidth").GetInt32(), pkg.GridWidth); - Assert.Equal(root.GetProperty("gridHeight").GetInt32(), pkg.GridHeight); - - var manifestHps = root.GetProperty("hardpoints").EnumerateArray().ToArray(); - Assert.Equal(manifestHps.Length, pkg.Hardpoints.Count); - for (int i = 0; i < manifestHps.Length; i++) - { - string expectedId = manifestHps[i].GetProperty("id").GetString()!; - string expectedAnchor = manifestHps[i].GetProperty("modelNodeId").GetString()!; - Assert.Equal(expectedId, pkg.Hardpoints[i].Id); - Assert.Equal(expectedAnchor, pkg.Hardpoints[i].AnchorId); - } - - var manifestJoints = root.GetProperty("joints").EnumerateArray().ToArray(); - Assert.Equal(manifestJoints.Length, pkg.Joints.Count); - for (int i = 0; i < manifestJoints.Length; i++) - { - Assert.Equal(manifestJoints[i].GetProperty("id").GetString(), pkg.Joints[i].Id); - } - - var boundsSize = root.GetProperty("bounds").GetProperty("size").EnumerateArray().Select(e => e.GetSingle()).ToArray(); - Assert.Equal(boundsSize[0] * 0.5f, pkg.HalfWidth, precision: 3); - Assert.Equal(boundsSize[1] * 0.5f, pkg.HalfHeight, precision: 3); - Assert.Equal(boundsSize[2] * 0.5f, pkg.HalfLength, precision: 3); - - Assert.NotEmpty(pkg.PartCells); - var spec = pkg.ToChassisSpec(); - Assert.All(pkg.PartCells, pc => - { - Assert.False(string.IsNullOrWhiteSpace(pc.NodeName)); - Assert.True(spec.IsActive(pc.CellX, pc.CellY), $"{id}: PartCell '{pc.NodeName}' mapped to inactive ({pc.CellX},{pc.CellY})"); - }); - } - } - - [Fact] - public void BreakerArchive_RoundTripsFullMechanismHierarchy() - { - string vehiclesRoot = VehicleCatalogLoader.LocateVehiclesDirectory(); - string manifestPath = Path.Combine(vehiclesRoot, "breaker", "manifest.json"); - using var doc = JsonDocument.Parse(File.ReadAllText(manifestPath)); - var mechJson = doc.RootElement.GetProperty("mechanisms"); - - var breaker = Catalog.PackagesById["breaker"]; - Assert.NotNull(breaker.Mechanisms); - Assert.Equal(mechJson.GetProperty("dofs").GetArrayLength(), breaker.Mechanisms!.Dofs.Count); - Assert.Equal(35, breaker.Mechanisms.Dofs.Count); - Assert.Equal(mechJson.GetProperty("rams").GetArrayLength(), breaker.Mechanisms.Rams.Count); - Assert.Equal(4, breaker.Mechanisms.Rams.Count); - Assert.Equal(2, breaker.Mechanisms.Scissors.Count); - Assert.Equal(2, breaker.Mechanisms.Struts.Count); - - Assert.Equal("LegL.Hip", breaker.Mechanisms.Dofs[0].Name); - Assert.Equal( - new[] { "LegL.RecessRam0", "LegL.RecessRam1", "LegR.RecessRam0", "LegR.RecessRam1" }, - breaker.Mechanisms.Rams.Select(r => r.Name).ToArray()); - Assert.Equal("LegL.Torque", breaker.Mechanisms.Scissors[0].Name); - Assert.Equal("LegL.Oleo", breaker.Mechanisms.Struts[0].Name); - Assert.Equal(0.2f, breaker.Mechanisms.Struts[0].Travel, precision: 4); - } - - [Fact] - public void AliasesAndVtolBalance_MatchSpecification() - { - Assert.Same(Catalog.Jackal, Catalog.Buggy); - Assert.Same(Catalog.Mule, Catalog.Technical); - Assert.Same(Catalog.Anvil, Catalog.Tank); - - // VTOL glass-cannon balance vs ground equivalents - Assert.Equal(MobilityKind.Vtol, Catalog.Hornet.Mobility); - Assert.Equal(MobilityKind.Vtol, Catalog.Condor.Mobility); - Assert.Equal(42f, Catalog.Hornet.HoverMaxAltitudeM); - Assert.Equal(36f, Catalog.Condor.HoverMaxAltitudeM); - Assert.Equal(0f, Catalog.Jackal.HoverMaxAltitudeM); - Assert.Equal(0f, Catalog.Anvil.HoverMaxAltitudeM); - - Assert.True(Catalog.Hornet.BaseCellArmor < Catalog.Jackal.BaseCellArmor, - $"Hornet armor ({Catalog.Hornet.BaseCellArmor}) must be lighter than Jackal ({Catalog.Jackal.BaseCellArmor})"); - Assert.True(Catalog.Hornet.BaseCellArmor < Catalog.Ferret.BaseCellArmor, - $"Hornet armor ({Catalog.Hornet.BaseCellArmor}) must be lighter than Ferret ({Catalog.Ferret.BaseCellArmor})"); - Assert.True(Catalog.Condor.BaseCellArmor < Catalog.Ironclad.BaseCellArmor, - $"Condor armor ({Catalog.Condor.BaseCellArmor}) must be lighter than Ironclad ({Catalog.Ironclad.BaseCellArmor})"); - Assert.True(Catalog.Condor.BaseCellArmor < Catalog.Anvil.BaseCellArmor, - $"Condor armor ({Catalog.Condor.BaseCellArmor}) must be lighter than Anvil ({Catalog.Anvil.BaseCellArmor})"); - - // All 14 non-starter chassis spawn as salvageable drops in MatchState - var state = new MatchState(seed: 42); - var droppedChassisIds = state.GroundDrops - .Where(d => d.Chassis is not null) - .Select(d => d.Chassis!.Id) - .ToHashSet(StringComparer.Ordinal); - foreach (string id in Expected15Ids.Where(x => x != "jackal")) - { - Assert.Contains(id, droppedChassisIds); - } - } - } -} diff --git a/tests/RustToDust.Tests/VtolAndArcTests.cs b/tests/RustToDust.Tests/VtolAndArcTests.cs deleted file mode 100644 index ee6d6ab..0000000 --- a/tests/RustToDust.Tests/VtolAndArcTests.cs +++ /dev/null @@ -1,503 +0,0 @@ -using System; -using System.Linq; -using RustToDust.Core; -using RustToDust.Ymir; -using Xunit; - -namespace RustToDust.Tests -{ - public sealed class VtolAndArcTests - { - private static void IsolateContenders(ArenaSession session, params int[] keepIds) - { - var keep = keepIds.ToHashSet(); - for (int i = 0; i < session.State.Contenders.Count; i++) - { - var c = session.State.Contenders[i]; - if (!keep.Contains(c.Id)) - { - session.SetContenderPose(c.Id, -650f + i * 10f, -650f); - } - } - for (int i = 0; i < session.State.Spectators.Spectators.Count; i++) - { - var s = session.State.Spectators.Spectators[i]; - session.SetSpectatorPose(s.Id, 650f, -650f + i * 4f); - } - } - - [Fact] - public void Vtol_HornetAndCondor_ClimbHoverAndDescendViaVerticalThrottle() - { - foreach (var vtolSpec in new[] { Catalog.Hornet, Catalog.Condor }) - { - using var session = new ArenaSession(seed: 42); - IsolateContenders(session, 0); - var player = session.State.Player; - session.SetContenderPose(player.Id, 0f, 0f, 0f); - - session.State.SpawnChassisDrop(player.X, player.Z, vtolSpec); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal(vtolSpec.Id, player.Grid.Spec.Id); - Assert.True(player.Grid.Spec.IsVtol); - - float gh0 = session.State.Terrain.SampleHeight(player.X, player.Z); - float initialAgl = player.Y - vtolSpec.HalfHeight - gh0; - - // Climb with VerticalThrottle = +1 for 2.5s (150 ticks) - for (int t = 0; t < 150; t++) - { - session.Step(new PlayerInput(0.4f, 0.1f, player.X, player.Z + 30f, false, false, false, VerticalThrottle: 1f)); - } - - float ghClimbed = session.State.Terrain.SampleHeight(player.X, player.Z); - float climbedAgl = player.Y - vtolSpec.HalfHeight - ghClimbed; - Assert.True(climbedAgl > initialAgl + 12f, - $"{vtolSpec.Id}: expected climb > 12m, got initial={initialAgl:F2}m -> climbed={climbedAgl:F2}m"); - Assert.True(climbedAgl <= vtolSpec.HoverMaxAltitudeM + 2.0f, - $"{vtolSpec.Id}: exceeded HoverMaxAltitudeM {vtolSpec.HoverMaxAltitudeM}m (got {climbedAgl:F2}m)"); - - // Hold hover with VerticalThrottle = 0 for 2.0s (120 ticks) -> settles to TargetHoverAltAgl and holds steady - for (int t = 0; t < 60; t++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z + 30f, false, false, false, VerticalThrottle: 0f)); - } - float ghSettled = session.State.Terrain.SampleHeight(player.X, player.Z); - float settledAgl = player.Y - vtolSpec.HalfHeight - ghSettled; - for (int t = 0; t < 60; t++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z + 30f, false, false, false, VerticalThrottle: 0f)); - } - float ghHeld = session.State.Terrain.SampleHeight(player.X, player.Z); - float heldAgl = player.Y - vtolSpec.HalfHeight - ghHeld; - Assert.InRange(heldAgl, player.TargetHoverAltAgl - 1.5f, player.TargetHoverAltAgl + 1.5f); - Assert.InRange(heldAgl, settledAgl - 1.0f, settledAgl + 1.0f); - - // Descend with VerticalThrottle = -1 for 3s (180 ticks) - should settle smoothly near 2.5m clearance - for (int t = 0; t < 180; t++) - { - session.Step(new PlayerInput(0f, 0f, player.X, player.Z + 30f, false, false, false, VerticalThrottle: -1f)); - } - float ghDesc = session.State.Terrain.SampleHeight(player.X, player.Z); - float descAgl = player.Y - vtolSpec.HalfHeight - ghDesc; - Assert.True(descAgl < heldAgl - 8f, $"{vtolSpec.Id}: expected descent from {heldAgl:F2}m, got {descAgl:F2}m"); - Assert.InRange(descAgl, 1.5f, 4.5f); - } - } - - [Fact] - public void MwllTriangle_ZenithBlindSpot_MainCannonBlocked_WideArcPdAndDistantGroundRigHit() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - var overheadVtol = session.State.Contenders[1]; - var distantGroundRig = session.State.Contenders[2]; - IsolateContenders(session, player.Id, overheadVtol.Id); - - // Swap player to Anvil (heavy tracked tank, weapons capped at +30 deg pitch) - session.SetContenderPose(player.Id, 0f, 0f, 0f); - session.State.SpawnChassisDrop(0f, 0f, Catalog.Anvil); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal("anvil", player.Grid.Spec.Id); - - // Swap contender 1 to Hornet and position it high overhead (~14m horizontal, ~38m above player => ~+69 deg pitch!) - session.SetContenderPose(overheadVtol.Id, 0f, 14f, 0f); - session.State.SpawnChassisDrop(0f, 14f, Catalog.Hornet); - Assert.True(session.State.TrySwapNearbyChassis(overheadVtol.Id)); - Assert.Equal("hornet", overheadVtol.Grid.Spec.Id); - overheadVtol.AiScavengeCooldown = 999f; - overheadVtol.TargetHoverAltAgl = 38f; - session.SetContenderPose(overheadVtol.Id, 0f, 14f, 0f); - // Step once to seat bodies cleanly - session.Step(new PlayerInput(0f, 0f, overheadVtol.X, overheadVtol.Z, false, false, true, AimWorldY: overheadVtol.Y)); - - float vtolArmorBefore = overheadVtol.Grid.TotalArmorRatio(); - - // 1. Anvil's main cannons (-10..+30 deg) CANNOT fire at +69 deg overhead VTOL - for (int t = 0; t < 20; t++) - { - overheadVtol.TargetHoverAltAgl = 38f; - session.SetContenderPose(overheadVtol.Id, 0f, 14f, 0f); - session.Step(new PlayerInput( - 0f, 0f, - overheadVtol.X, overheadVtol.Z, - Fire: true, - InteractPickup: false, - Brake: true, - AimWorldY: overheadVtol.Y)); - } - Assert.True(player.AllWeaponsOutOfArc, - $"Expected Anvil main cannons to report AllWeaponsOutOfArc (in={player.InArcWeaponCount}, out={player.OutOfArcWeaponCount}, pY={player.Y:F1}, vY={overheadVtol.Y:F1}, vSpec={overheadVtol.Grid.Spec.Id}, vAlt={overheadVtol.TargetHoverAltAgl:F1}, vAlive={overheadVtol.Alive}, vPos=({overheadVtol.X:F1},{overheadVtol.Z:F1}))"); - Assert.All(player.Grid.Mounted.Where(m => m.Spec.Kind == HardpointKind.Weapon), w => Assert.Equal(0f, w.Cooldown)); - Assert.Equal(vtolArmorBefore, overheadVtol.Grid.TotalArmorRatio()); - - // 2. Mount a 1x1 Wide-Arc PointDefenseFlak (-10..+85 deg) onto Anvil's hp.weapon.sponson_r -> CAN hit overhead VTOL! - Assert.True(player.Grid.TryMount(Catalog.PointDefenseFlak, "hp.weapon.sponson_r")); - int pdTracers = 0; - for (int t = 0; t < 25; t++) - { - overheadVtol.TargetHoverAltAgl = 38f; - session.SetContenderPose(overheadVtol.Id, 0f, 14f, 0f); - session.Step(new PlayerInput( - 0f, 0f, - overheadVtol.X, overheadVtol.Z, - Fire: true, - InteractPickup: false, - Brake: true, - AimWorldY: overheadVtol.Y)); - pdTracers += session.State.Tracers.Count; - } - Assert.False(player.AllWeaponsOutOfArc, "Expected Wide-Arc PD module to clear overhead out-of-arc block"); - Assert.True(pdTracers > 0, "Expected Wide-Arc PD to fire at overhead VTOL"); - Assert.True(overheadVtol.Grid.TotalArmorRatio() < vtolArmorBefore, - "Expected Wide-Arc PD burst to damage overhead VTOL"); - - // 3. Second ground rig (Anvil, MaxPitchDeg = 30 deg) placed 140m away (~+15 deg pitch) CAN hit the overhead VTOL! - session.SetContenderPose(distantGroundRig.Id, 0f, 154f, MathF.PI); - session.State.SpawnChassisDrop(0f, 154f, Catalog.Anvil); - Assert.True(session.State.TrySwapNearbyChassis(distantGroundRig.Id)); - session.SetContenderPose(distantGroundRig.Id, 0f, 154f, MathF.PI); - // Unmount player's PD so only distant rig shoots now - player.Grid.TryMount(Catalog.Mg762, "hp.weapon.sponson_r"); - - float vtolArmorBeforeDistant = overheadVtol.Grid.TotalArmorRatio(); - for (int t = 0; t < 90; t++) - { - session.Step(new PlayerInput(0f, 0f, 0f, -20f, false, false, true)); - } - Assert.True(overheadVtol.Grid.TotalArmorRatio() < vtolArmorBeforeDistant, - "Expected distant ground rig 140m away (~15 deg pitch) to hit the hovering Hornet inside its 30 deg cannon arc"); - } - - [Fact] - public void GroundRigWithWideArcPd_AutoTracksNearbyAirborneVtolWithoutManualFire() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - var overheadVtol = session.State.Contenders[1]; - IsolateContenders(session, player.Id, overheadVtol.Id); - - // Swap player to Jackal, mount Wide-Arc PD, leave Fire = false and aim elsewhere! - session.SetContenderPose(player.Id, 0f, 0f, 0f); - Assert.True(player.Grid.TryMount(Catalog.PointDefenseFlak, "hp.weapon.roof")); - - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - session.State.SpawnChassisDrop(20f, 25f, Catalog.Hornet); - Assert.True(session.State.TrySwapNearbyChassis(overheadVtol.Id)); - Assert.Equal("hornet", overheadVtol.Grid.Spec.Id); - overheadVtol.AiScavengeCooldown = 999f; - overheadVtol.TargetHoverAltAgl = 28f; - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - - float vtolArmorBefore = overheadVtol.Grid.TotalArmorRatio(); - bool sawAutoTracer = false; - for (int t = 0; t < 45; t++) - { - overheadVtol.TargetHoverAltAgl = 28f; - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - session.Step(new PlayerInput( - Throttle: 0f, - Steer: 0f, - AimWorldX: 0f, - AimWorldZ: -50f, - Fire: false, - InteractPickup: false, - Brake: true)); - if (session.State.Tracers.Count > 0) - { - sawAutoTracer = true; - } - } - - Assert.True(sawAutoTracer, "Expected auto-PD to fire tracers at airborne VTOL within 140m even while Fire=false"); - Assert.True(overheadVtol.Grid.TotalArmorRatio() < vtolArmorBefore, - $"Expected auto-PD tracking to hit airborne VTOL (before={vtolArmorBefore:F3}, after={overheadVtol.Grid.TotalArmorRatio():F3}, vY={overheadVtol.Y:F1}, vSpec={overheadVtol.Grid.Spec.Id}, tracers={session.State.Tracers.Count}, lastTracer={(session.State.Tracers.Count > 0 ? $"{session.State.Tracers[^1].EndX:F1},{session.State.Tracers[^1].EndY:F1},{session.State.Tracers[^1].EndZ:F1}" : "none")})"); - } - - [Fact] - public void QuickBolt_MountsScavengedModuleIntoEmptyMatchingHardpointBeforeCargo() - { - var state = new MatchState(seed: 42); - var player = state.Player; - - // Swap to Anvil (starter Jackal transfers 1 weapon into hp.weapon.sponson_l, leaving hp.weapon.siege_l, hp.weapon.siege_r, hp.weapon.sponson_r empty!) - state.SpawnChassisDrop(player.X, player.Z, Catalog.Anvil); - Assert.True(state.TrySwapNearbyChassis()); - Assert.Null(player.Grid.GetMountedOn("hp.weapon.siege_l")); - int cargoBefore = player.Grid.Cargo.Count; - - // Drop 1x1 PointDefenseFlak right at player and press [E] - state.SpawnModuleDrop(player.X + 0.5f, player.Z, Catalog.PointDefenseFlak); - MatchRules.ApplyPlayerInput(state, new PlayerInput( - 0f, 0f, player.X, player.Z + 10f, - Fire: false, - InteractPickup: true, - Brake: false)); - - // Must bolt straight onto empty hp.weapon.siege_l, NOT Cargo! - var mountedSiege = player.Grid.GetMountedOn("hp.weapon.siege_l"); - Assert.NotNull(mountedSiege); - Assert.Equal(Catalog.PointDefenseFlak.Id, mountedSiege!.Spec.Id); - Assert.Equal(cargoBefore, player.Grid.Cargo.Count); - Assert.Equal(BroadcastKind.QuickBolt, state.Broadcast.Latest?.Kind); - - // Now fill remaining weapon slots; next weapon pickup must fall back to Cargo! - Assert.True(player.Grid.TryMount(Catalog.Autocannon, "hp.weapon.siege_r")); - Assert.True(player.Grid.TryMount(Catalog.Mg762, "hp.weapon.sponson_r")); - state.SpawnModuleDrop(player.X + 0.5f, player.Z, Catalog.Flak); - MatchRules.ApplyPlayerInput(state, new PlayerInput( - 0f, 0f, player.X, player.Z + 10f, - Fire: false, - InteractPickup: true, - Brake: false)); - - Assert.Equal(cargoBefore + 1, player.Grid.Cargo.Count); - Assert.Equal(Catalog.Flak.Id, player.Grid.Cargo[^1].Id); - } - - [Fact] - public void Vtol_ReverseIntoTallMesaAndCliffDrop_ZeroUndergroundTicks() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - IsolateContenders(session, player.Id); - - // Pick the tallest Mesa in generated terrain - TerrainBrush tallMesa = default; - float bestHeight = -1f; - for (int i = 0; i < session.State.Terrain.Brushes.Count; i++) - { - var b = session.State.Terrain.Brushes[i]; - if (b.Kind == TerrainBrushKind.Mesa && b.HeightDelta > bestHeight) - { - bestHeight = b.HeightDelta; - tallMesa = b; - } - } - Assert.True(bestHeight >= 22f, "Expected a tall Mesa in seed 42"); - - session.State.SpawnChassisDrop(player.X, player.Z, Catalog.Hornet); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal("hornet", player.Grid.Spec.Id); - - // 1. Reverse (-Z/+X away from yaw) straight into the tall Mesa cliff face - float startX = tallMesa.X - tallMesa.RadiusX - 24f; - session.SetContenderPose(player.Id, startX, tallMesa.Z, -MathF.PI * 0.5f); // facing -X so Throttle=-1 reverses into +X Mesa - player.TargetHoverAltAgl = 10f; - - float minReverseAgl = float.PositiveInfinity; - int undergroundReverseTicks = 0; - for (int t = 0; t < 240; t++) - { - session.Step(new PlayerInput(-1f, 0f, player.X - 30f, player.Z, false, false, false)); - float gh = session.State.Terrain.SampleHeight(player.X, player.Z); - float agl = (player.Y - player.Grid.Spec.HalfHeight) - gh; - if (agl < minReverseAgl) minReverseAgl = agl; - if (agl < 0f) undergroundReverseTicks++; - } - - Assert.Equal(0, undergroundReverseTicks); - Assert.True(minReverseAgl >= 0.5f, $"Reverse into +{bestHeight:F1}m mesa dipped too low: minAgl={minReverseAgl:F2}m"); - - // 2. Drive off the Mesa cliff edge onto the surrounding plain (must never slam underground) - session.SetContenderPose(player.Id, tallMesa.X + tallMesa.RadiusX * 0.15f, tallMesa.Z, MathF.PI * 0.5f); // facing +X off edge - player.TargetHoverAltAgl = 10f; - // Re-seat on plateau top - float plateauGh = session.State.Terrain.SampleHeight(player.X, player.Z); - session.SetContenderPose(player.Id, player.X, player.Z, MathF.PI * 0.5f); - Assert.True(plateauGh > 15f, $"Expected plateau height > 15m, got {plateauGh:F2}m"); - - float minDropAgl = float.PositiveInfinity; - int undergroundDropTicks = 0; - for (int t = 0; t < 240; t++) - { - session.Step(new PlayerInput(1f, 0f, player.X + 30f, player.Z, false, false, false)); - float gh = session.State.Terrain.SampleHeight(player.X, player.Z); - float agl = (player.Y - player.Grid.Spec.HalfHeight) - gh; - if (agl < minDropAgl) minDropAgl = agl; - if (agl < 0f) undergroundDropTicks++; - } - - Assert.Equal(0, undergroundDropTicks); - Assert.True(minDropAgl >= 0.5f, $"Cliff drop off +{bestHeight:F1}m mesa dipped too low: minAgl={minDropAgl:F2}m"); - } - - [Fact] - public void Vtol_OverheatedEngineToZeroPerf_LosesClimbAuthorityAndSinksTowardMinClearance() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - IsolateContenders(session, player.Id); - - session.SetContenderPose(player.Id, 0f, 0f, 0f); - session.State.SpawnChassisDrop(0f, 0f, Catalog.Hornet); - Assert.True(session.TrySwapNearbyChassis()); - - // Establish steady 20m hover - player.TargetHoverAltAgl = 20f; - session.SetContenderPose(player.Id, 0f, 0f, 0f); - for (int t = 0; t < 45; t++) - { - session.Step(new PlayerInput(0f, 0f, 0f, 30f, false, false, false)); - } - float hoverAglBefore = (player.Y - player.Grid.Spec.HalfHeight) - session.State.Terrain.SampleHeight(player.X, player.Z); - Assert.InRange(hoverAglBefore, 17.5f, 22.5f); - - // Overheat engine to Performance == 0.00 continuously during sink check - for (int t = 0; t < 150; t++) - { - player.Grid.InjectHardpointHeat("hp.engine.core", 15000f); - session.Step(new PlayerInput(0f, 0f, 0f, 30f, false, false, false, VerticalThrottle: 1f)); - } - - float hoverAglAfter = (player.Y - player.Grid.Spec.HalfHeight) - session.State.Terrain.SampleHeight(player.X, player.Z); - Assert.Equal(0f, player.Grid.ComputeEngineThermalPerformance(), precision: 2); - Assert.True(hoverAglAfter < hoverAglBefore - 5f, - $"Expected overheated VTOL (enginePerf=0.00) to sink from {hoverAglBefore:F2}m, got {hoverAglAfter:F2}m"); - Assert.True(hoverAglAfter >= 0.5f, $"Overheated sink went underground: {hoverAglAfter:F2}m"); - } - - [Fact] - public void StrippedZeroArmorHardpoint_DisablesManualFireAndAutoPointDefense() - { - // 1. Manual FireMountedWeapons disabled when hardpoint armor == 0 - using (var session = new ArenaSession(seed: 42)) - { - var player = session.State.Player; - var target = session.State.Contenders[1]; - IsolateContenders(session, player.Id, target.Id); - - session.SetContenderPose(player.Id, 0f, 0f, 0f); - session.SetContenderPose(target.Id, 0f, 30f, MathF.PI); - target.Grid.Mounted.RemoveAll(m => m.Spec.Kind == HardpointKind.Weapon); - float targetArmorBefore = target.Grid.TotalArmorRatio(); - - var roofHp = player.Grid.FindHardpoint("hp.weapon.roof"); - Assert.NotNull(roofHp); - Assert.True(player.Grid.IsHardpointOperational(roofHp!)); - - // Strip all armor cells under hp.weapon.roof to 0 - for (int dy = 0; dy < roofHp!.Height; dy++) - { - for (int dx = 0; dx < roofHp.Width; dx++) - { - player.Grid.Armor[roofHp.X + dx, roofHp.Y + dy] = 0f; - } - } - Assert.False(player.Grid.IsHardpointOperational(roofHp)); - - int tracersFired = 0; - for (int t = 0; t < 20; t++) - { - session.Step(new PlayerInput(0f, 0f, target.X, target.Z, Fire: true, InteractPickup: false, Brake: true, AimWorldY: target.Y)); - tracersFired += session.State.Tracers.Count(tr => - MathF.Abs(tr.StartX - player.X) < 10f && MathF.Abs(tr.StartZ - player.Z) < 10f); - } - - Assert.Equal(0, tracersFired); - Assert.Equal(targetArmorBefore, target.Grid.TotalArmorRatio()); - Assert.True(player.DisabledWeaponCount > 0); - Assert.All(player.Grid.Mounted.Where(m => m.Spec.Kind == HardpointKind.Weapon), w => Assert.Equal(0f, w.Cooldown)); - } - - // 2. Auto-PD TryAutoPointDefenseFire disabled when PD hardpoint armor == 0 - using (var session = new ArenaSession(seed: 42)) - { - var player = session.State.Player; - var overheadVtol = session.State.Contenders[1]; - IsolateContenders(session, player.Id, overheadVtol.Id); - - session.SetContenderPose(player.Id, 0f, 0f, 0f); - Assert.True(player.Grid.TryMount(Catalog.PointDefenseFlak, "hp.weapon.roof")); - var roofHp = player.Grid.FindHardpoint("hp.weapon.roof")!; - for (int dy = 0; dy < roofHp.Height; dy++) - { - for (int dx = 0; dx < roofHp.Width; dx++) - { - player.Grid.Armor[roofHp.X + dx, roofHp.Y + dy] = 0f; - } - } - Assert.False(player.Grid.IsHardpointOperational(roofHp)); - - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - session.State.SpawnChassisDrop(20f, 25f, Catalog.Hornet); - Assert.True(session.State.TrySwapNearbyChassis(overheadVtol.Id)); - overheadVtol.Grid.Mounted.RemoveAll(m => m.Spec.Kind == HardpointKind.Weapon); - overheadVtol.AiScavengeCooldown = 999f; - overheadVtol.TargetHoverAltAgl = 28f; - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - - float vtolArmorBefore = overheadVtol.Grid.TotalArmorRatio(); - int pdTracers = 0; - for (int t = 0; t < 45; t++) - { - overheadVtol.TargetHoverAltAgl = 28f; - session.SetContenderPose(overheadVtol.Id, 20f, 25f, 0f); - session.Step(new PlayerInput(0f, 0f, 0f, -50f, Fire: false, InteractPickup: false, Brake: true)); - pdTracers += session.State.Tracers.Count(tr => - MathF.Abs(tr.StartX - player.X) < 10f && MathF.Abs(tr.StartZ - player.Z) < 10f); - } - - Assert.Equal(0, pdTracers); - Assert.Equal(vtolArmorBefore, overheadVtol.Grid.TotalArmorRatio()); - } - } - - [Fact] - public void SwapChassis_VtolToGroundToVtol_ResetsTargetHoverAltAgl() - { - using var session = new ArenaSession(seed: 42); - var player = session.State.Player; - IsolateContenders(session, player.Id); - - session.SetContenderPose(player.Id, 0f, 0f, 0f); - session.State.SpawnChassisDrop(0f, 0f, Catalog.Hornet); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal(10f, player.TargetHoverAltAgl); - - player.TargetHoverAltAgl = 42f; - player.VerticalThrottleCmd = 1f; - - // Swap to ground rig - session.State.SpawnChassisDrop(player.X, player.Z, Catalog.Jackal); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal(3.0f, player.TargetHoverAltAgl); - Assert.Equal(0f, player.VerticalThrottleCmd); - - // Swap back to VTOL -> must spawn cleanly at 10m hover, NOT stale 42m - session.State.SpawnChassisDrop(player.X, player.Z, Catalog.Condor); - Assert.True(session.TrySwapNearbyChassis()); - Assert.Equal(10.0f, player.TargetHoverAltAgl); - Assert.Equal(0f, player.VerticalThrottleCmd); - float gh = session.State.Terrain.SampleHeight(player.X, player.Z); - float agl = (player.Y - player.Grid.Spec.HalfHeight) - gh; - Assert.InRange(agl, 9.5f, 10.5f); - } - - [Fact] - public void InteractPickup_UsesUnifiedNearestDropPriority_ChassisCloserThanModule() - { - var state = new MatchState(seed: 42); - var player = state.Player; - - // Remove pre-scattered drops near player to keep test deterministic - state.GroundDrops.Clear(); - - var modDrop = state.SpawnModuleDrop(player.X + 3.0f, player.Z, Catalog.Flak); - var chassisDrop = state.SpawnChassisDrop(player.X + 0.5f, player.Z, Catalog.Anvil); - - var nearest = state.FindNearestInteractableDrop(0); - Assert.Same(chassisDrop, nearest); - - MatchRules.ApplyPlayerInput(state, new PlayerInput( - 0f, 0f, player.X, player.Z + 10f, - Fire: false, - InteractPickup: true, - Brake: false)); - - Assert.Equal(Catalog.Anvil.Id, player.Grid.Spec.Id); - Assert.True(chassisDrop.PickedUp); - Assert.False(modDrop.PickedUp); - } - } -} diff --git a/tools/VehiclePacker/Program.cs b/tools/VehiclePacker/Program.cs deleted file mode 100644 index 7e0d6af..0000000 --- a/tools/VehiclePacker/Program.cs +++ /dev/null @@ -1,924 +0,0 @@ -using System; -using System.Buffers.Binary; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Numerics; -using System.Text; -using System.Text.Json; -using RustToDust.Core; - -namespace VehiclePacker -{ - internal sealed record HardpointTune( - float ArmorBonus, - float MinPitchDeg = -15f, - float MaxPitchDeg = 45f, - bool IsWideArc = false); - - internal sealed record VehicleTuning( - MobilityKind Mobility, - float MassKg, - float MaxSpeed, - float TurnRate, - float ThrustNewtons, - float HoverMaxAltitudeM, - float ArmorPerCell, - float Conductivity, - float BaseCellThermalMass, - int CargoCapacity, - Dictionary DefaultLoadout, - Dictionary HardpointTuning); - - internal static class Program - { - private static readonly Dictionary Tunings = BuildTunings(); - - private static int Main(string[] args) - { - string vehiclesRoot = args.Length > 0 - ? Path.GetFullPath(args[0]) - : LocateDefaultVehiclesRoot(); - - if (!Directory.Exists(vehiclesRoot)) - { - Console.Error.WriteLine($"Vehicles directory not found: {vehiclesRoot}"); - return 1; - } - - int packedCount = 0; - foreach (string dir in Directory.GetDirectories(vehiclesRoot).OrderBy(d => d, StringComparer.Ordinal)) - { - string id = Path.GetFileName(dir); - string manifestPath = Path.Combine(dir, "manifest.json"); - string glbPath = Path.Combine(dir, $"{id}.glb"); - if (!File.Exists(manifestPath) || !File.Exists(glbPath)) - { - continue; - } - - if (!Tunings.TryGetValue(id, out var tuning)) - { - Console.Error.WriteLine($"Missing gameplay tuning entry for vehicle '{id}'."); - return 2; - } - - var pkg = BuildPackage(id, manifestPath, glbPath, tuning); - string outPath = Path.Combine(dir, "vehicle.cc"); - VehiclePackageStore.Write(outPath, pkg); - var roundTrip = VehiclePackageStore.Read(outPath); - - Console.WriteLine( - $"Packed {roundTrip.Id,-10} | {roundTrip.Mobility,-7} | {roundTrip.Plane,-7} | " + - $"{roundTrip.GridWidth}x{roundTrip.GridHeight} | arm={roundTrip.ArmorPerCell,2:F0} | " + - $"hps={roundTrip.Hardpoints.Count} | joints={roundTrip.Joints.Count,2} | " + - $"partCells={roundTrip.PartCells.Count,3} | {new FileInfo(outPath).Length / 1024.0:F1} KiB"); - packedCount++; - } - - Console.WriteLine($"Done: packed {packedCount} vehicle.cc archives."); - return packedCount == 15 ? 0 : 3; - } - - private static string LocateDefaultVehiclesRoot() - { - foreach (string start in new[] { Directory.GetCurrentDirectory(), AppContext.BaseDirectory }) - { - var dir = new DirectoryInfo(Path.GetFullPath(start)); - while (dir is not null) - { - string candidate = Path.Combine(dir.FullName, "assets", "vehicles"); - if (Directory.Exists(candidate)) - { - return candidate; - } - dir = dir.Parent; - } - } - throw new DirectoryNotFoundException("Could not locate assets/vehicles directory."); - } - - private static VehiclePackage BuildPackage(string id, string manifestPath, string glbPath, VehicleTuning tuning) - { - using var manifestDoc = JsonDocument.Parse(File.ReadAllText(manifestPath, Encoding.UTF8)); - var root = manifestDoc.RootElement; - - string manifestId = root.GetProperty("id").GetString()!; - if (!string.Equals(manifestId, id, StringComparison.Ordinal)) - { - throw new InvalidOperationException($"{manifestPath}: id '{manifestId}' != directory '{id}'."); - } - - string name = root.GetProperty("name").GetString()!; - string vClass = root.GetProperty("class").GetString()!; - var plane = Enum.Parse(root.GetProperty("plane").GetString()!, ignoreCase: true); - int gw = root.GetProperty("gridWidth").GetInt32(); - int gh = root.GetProperty("gridHeight").GetInt32(); - - var maskBools = root.GetProperty("mask").EnumerateArray().Select(e => e.GetBoolean()).ToArray(); - if (maskBools.Length != gw * gh) - { - throw new InvalidOperationException($"{id}: mask length {maskBools.Length} != {gw * gh}."); - } - - var maskRows = new string[gh]; - for (int y = 0; y < gh; y++) - { - var sb = new StringBuilder(gw); - for (int x = 0; x < gw; x++) - { - sb.Append(maskBools[y * gw + x] ? '#' : '.'); - } - maskRows[y] = sb.ToString(); - } - - var boundsSize = root.GetProperty("bounds").GetProperty("size").EnumerateArray().Select(e => e.GetSingle()).ToArray(); - var boundsMin = root.GetProperty("bounds").GetProperty("min").EnumerateArray().Select(e => e.GetSingle()).ToArray(); - var boundsMax = root.GetProperty("bounds").GetProperty("max").EnumerateArray().Select(e => e.GetSingle()).ToArray(); - - var (gltfJsonBytes, binBlob) = ReadGlbChunks(glbPath); - using var gltfDoc = JsonDocument.Parse(gltfJsonBytes); - var gltf = gltfDoc.RootElement; - - var hardpoints = ParseHardpoints(id, root.GetProperty("hardpoints"), gltf, tuning); - var joints = ParseJoints(id, root.GetProperty("joints"), gltf); - var mechanisms = root.TryGetProperty("mechanisms", out var mechElem) && mechElem.ValueKind == JsonValueKind.Object - ? ParseMechanisms(mechElem) - : null; - var partCells = ComputePartCells(gltf, binBlob, plane, gw, gh, maskBools, boundsMin, boundsMax); - - return new VehiclePackage - { - Id = id, - Name = name, - VehicleClass = vClass, - Mobility = tuning.Mobility, - Plane = plane, - GridWidth = gw, - GridHeight = gh, - Mask = maskRows, - MassKg = tuning.MassKg, - MaxSpeed = tuning.MaxSpeed, - TurnRate = tuning.TurnRate, - ThrustNewtons = tuning.ThrustNewtons, - HoverMaxAltitudeM = tuning.HoverMaxAltitudeM, - ArmorPerCell = tuning.ArmorPerCell, - Conductivity = tuning.Conductivity, - BaseCellThermalMass = tuning.BaseCellThermalMass, - CargoCapacity = tuning.CargoCapacity, - HalfWidth = boundsSize[0] * 0.5f, - HalfHeight = boundsSize[1] * 0.5f, - HalfLength = boundsSize[2] * 0.5f, - ModelAsset = $"{id}.glb", - DefaultLoadout = new Dictionary(tuning.DefaultLoadout, StringComparer.Ordinal), - Hardpoints = hardpoints, - Joints = joints, - Mechanisms = mechanisms, - PartCells = partCells - }; - } - - private static List ParseHardpoints( - string vehicleId, - JsonElement hpsElem, - JsonElement gltf, - VehicleTuning tuning) - { - var rtdAnchors = new HashSet(StringComparer.Ordinal); - if (gltf.TryGetProperty("nodes", out var nodes)) - { - foreach (var n in nodes.EnumerateArray()) - { - if (n.TryGetProperty("extras", out var ex) && - ex.TryGetProperty("rtd.id", out var rtdId) && - rtdId.ValueKind == JsonValueKind.String) - { - rtdAnchors.Add(rtdId.GetString()!); - } - } - } - - var list = new List(); - foreach (var hp in hpsElem.EnumerateArray()) - { - string hpId = hp.GetProperty("id").GetString()!; - string modelNodeId = hp.GetProperty("modelNodeId").GetString()!; - if (!rtdAnchors.Contains(modelNodeId)) - { - throw new InvalidOperationException($"{vehicleId}: GLB missing extras[\"rtd.id\"] == '{modelNodeId}'."); - } - - var kind = Enum.Parse(hp.GetProperty("kind").GetString()!, ignoreCase: true); - int x = hp.GetProperty("x").GetInt32(); - int y = hp.GetProperty("y").GetInt32(); - int w = hp.GetProperty("w").GetInt32(); - int h = hp.GetProperty("h").GetInt32(); - - HardpointTune tune = tuning.HardpointTuning.TryGetValue(hpId, out var found) - ? found - : new HardpointTune(ArmorBonus: kind == HardpointKind.Armor ? 14f : (kind == HardpointKind.Engine ? 8f : 6f)); - - list.Add(new VehicleHardpointRecord - { - Id = hpId, - AnchorId = modelNodeId, - Kind = kind, - X = x, - Y = y, - W = w, - H = h, - MinPitchDeg = tune.MinPitchDeg, - MaxPitchDeg = tune.MaxPitchDeg, - IsWideArc = tune.IsWideArc, - ArmorBonus = tune.ArmorBonus - }); - } - return list; - } - - private static List ParseJoints(string vehicleId, JsonElement jointsElem, JsonElement gltf) - { - var nodeByJointId = new Dictionary(StringComparer.Ordinal); - if (gltf.TryGetProperty("nodes", out var nodes)) - { - foreach (var n in nodes.EnumerateArray()) - { - if (n.TryGetProperty("extras", out var ex) && - ex.TryGetProperty("rtd.joint", out var rtdJoint) && - rtdJoint.ValueKind == JsonValueKind.String) - { - string jid = rtdJoint.GetString()!; - string nodeName = n.TryGetProperty("name", out var nm) ? nm.GetString() ?? jid : jid; - nodeByJointId[jid] = nodeName; - } - } - } - - var list = new List(); - foreach (var j in jointsElem.EnumerateArray()) - { - string jid = j.GetProperty("id").GetString()!; - if (!nodeByJointId.TryGetValue(jid, out var nodeName)) - { - throw new InvalidOperationException($"{vehicleId}: GLB missing extras[\"rtd.joint\"] == '{jid}'."); - } - - list.Add(new VehicleJointRecord - { - Id = jid, - NodeName = nodeName, - Axis = j.GetProperty("axis").EnumerateArray().Select(e => e.GetSingle()).ToArray(), - MinVal = j.GetProperty("min").GetSingle(), - MaxVal = j.GetProperty("max").GetSingle() - }); - } - return list; - } - - private static VehicleMechanismsRecord ParseMechanisms(JsonElement mechElem) - { - var rec = new VehicleMechanismsRecord - { - Frame = mechElem.GetProperty("frame").GetString() ?? string.Empty, - RootOrigin = mechElem.GetProperty("rootOrigin").EnumerateArray().Select(e => e.GetSingle()).ToArray() - }; - - if (mechElem.TryGetProperty("dofs", out var dofsElem)) - { - foreach (var d in dofsElem.EnumerateArray()) - { - float? damp = null; - float? hz = null; - if (d.TryGetProperty("compliance", out var comp) && comp.ValueKind == JsonValueKind.Object) - { - if (comp.TryGetProperty("damping_ratio", out var dr)) damp = dr.GetSingle(); - if (comp.TryGetProperty("hertz", out var h)) hz = h.GetSingle(); - } - rec.Dofs.Add(new MechanismDofRecord - { - Name = d.GetProperty("name").GetString()!, - Parent = d.GetProperty("parent").GetInt32(), - Kind = d.GetProperty("kind").GetString()!, - Mechanism = d.TryGetProperty("mechanism", out var m) && m.ValueKind == JsonValueKind.String ? m.GetString() : null, - Side = d.TryGetProperty("side", out var s) && s.ValueKind == JsonValueKind.String ? s.GetString() : null, - Origin = d.GetProperty("origin").EnumerateArray().Select(e => e.GetSingle()).ToArray(), - Axis = d.GetProperty("axis").EnumerateArray().Select(e => e.GetSingle()).ToArray(), - Lo = d.GetProperty("lo").GetSingle(), - Hi = d.GetProperty("hi").GetSingle(), - Depth = d.GetProperty("depth").GetInt32(), - StoppedBy = d.TryGetProperty("stopped_by", out var sb) && sb.ValueKind == JsonValueKind.String ? sb.GetString() : null, - ComplianceDampingRatio = damp, - ComplianceHertz = hz - }); - } - } - - if (mechElem.TryGetProperty("rams", out var ramsElem)) - { - foreach (var r in ramsElem.EnumerateArray()) - { - rec.Rams.Add(new MechanismRamRecord - { - Name = r.GetProperty("name").GetString()!, - BarrelBone = r.GetProperty("barrel_bone").GetString()!, - RodBone = r.GetProperty("rod_bone").GetString()!, - Spans = r.TryGetProperty("spans", out var sp) ? sp.EnumerateArray().Select(e => e.GetString()!).ToArray() : Array.Empty(), - Bore = r.TryGetProperty("bore", out var br) && br.ValueKind == JsonValueKind.Number ? br.GetSingle() : 0f, - Body = r.TryGetProperty("body", out var bd) && bd.ValueKind == JsonValueKind.Number ? bd.GetSingle() : 0f, - Inner = r.TryGetProperty("inner", out var inn) && inn.ValueKind == JsonValueKind.Number ? inn.GetSingle() : 0f, - Extension = r.TryGetProperty("extension", out var ext) && ext.ValueKind == JsonValueKind.Number ? ext.GetSingle() : 0f, - Rest = r.TryGetProperty("rest", out var rst) && rst.ValueKind == JsonValueKind.Number ? rst.GetSingle() : 0f, - Stroke = r.TryGetProperty("stroke", out var st) && st.ValueKind == JsonValueKind.Array ? st.EnumerateArray().Select(e => e.GetSingle()).ToArray() : Array.Empty(), - AParentDof = r.TryGetProperty("a_parent_dof", out var apd) && apd.ValueKind == JsonValueKind.Number ? apd.GetInt32() : null, - APos = r.TryGetProperty("a_pos", out var ap) && ap.ValueKind == JsonValueKind.Array ? ap.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null, - BParentDof = r.TryGetProperty("b_parent_dof", out var bpd) && bpd.ValueKind == JsonValueKind.Number ? bpd.GetInt32() : null, - BPos = r.TryGetProperty("b_pos", out var bp) && bp.ValueKind == JsonValueKind.Array ? bp.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null, - PinDir = r.TryGetProperty("pin_dir", out var pd) && pd.ValueKind == JsonValueKind.Array ? pd.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null - }); - } - } - - if (mechElem.TryGetProperty("scissors", out var scissorsElem)) - { - foreach (var sc in scissorsElem.EnumerateArray()) - { - rec.Scissors.Add(new MechanismScissorRecord - { - Name = sc.GetProperty("name").GetString()!, - UpperBone = sc.GetProperty("upper_bone").GetString()!, - LowerBone = sc.GetProperty("lower_bone").GetString()!, - Arm = sc.TryGetProperty("arm", out var arm) && arm.ValueKind == JsonValueKind.Number ? arm.GetSingle() : 0f, - AParentDof = sc.TryGetProperty("a_parent_dof", out var apd) && apd.ValueKind == JsonValueKind.Number ? apd.GetInt32() : null, - APos = sc.TryGetProperty("a_pos", out var ap) && ap.ValueKind == JsonValueKind.Array ? ap.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null, - BParentDof = sc.TryGetProperty("b_parent_dof", out var bpd) && bpd.ValueKind == JsonValueKind.Number ? bpd.GetInt32() : null, - BPos = sc.TryGetProperty("b_pos", out var bp) && bp.ValueKind == JsonValueKind.Array ? bp.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null, - OutDir = sc.TryGetProperty("out_dir", out var od) && od.ValueKind == JsonValueKind.Array ? od.EnumerateArray().Select(e => e.GetSingle()).ToArray() : null - }); - } - } - - if (mechElem.TryGetProperty("struts", out var strutsElem)) - { - foreach (var st in strutsElem.EnumerateArray()) - { - rec.Struts.Add(new MechanismStrutRecord - { - Name = st.GetProperty("name").GetString()!, - Side = st.TryGetProperty("side", out var s) && s.ValueKind == JsonValueKind.String ? s.GetString() : null, - Dof = st.GetProperty("dof").GetString()!, - Travel = st.GetProperty("travel").GetSingle(), - Hertz = st.GetProperty("hertz").GetSingle(), - DampingRatio = st.GetProperty("damping_ratio").GetSingle() - }); - } - } - - return rec; - } - - private static (byte[] JsonBytes, byte[] BinBytes) ReadGlbChunks(string glbPath) - { - byte[] data = File.ReadAllBytes(glbPath); - if (data.Length < 20) throw new InvalidDataException($"{glbPath}: GLB too small."); - - uint magic = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(0, 4)); - uint version = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(4, 4)); - if (magic != 0x46546C67 || version != 2) - throw new InvalidDataException($"{glbPath}: invalid GLB header."); - - uint jsonLen = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(12, 4)); - uint jsonType = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(16, 4)); - if (jsonType != 0x4E4F534A) - throw new InvalidDataException($"{glbPath}: first chunk is not JSON."); - - byte[] jsonBytes = data.AsSpan(20, (int)jsonLen).ToArray(); - byte[] binBytes = Array.Empty(); - int binOff = 20 + (int)jsonLen; - if (binOff + 8 <= data.Length) - { - uint binLen = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(binOff, 4)); - uint binType = BinaryPrimitives.ReadUInt32LittleEndian(data.AsSpan(binOff + 4, 4)); - if (binType == 0x004E4942) - { - binBytes = data.AsSpan(binOff + 8, (int)binLen).ToArray(); - } - } - return (jsonBytes, binBytes); - } - - private static List ComputePartCells( - JsonElement gltf, - byte[] binBlob, - GridPlane plane, - int gw, - int gh, - bool[] mask, - float[] boundsMin, - float[] boundsMax) - { - var nodes = gltf.GetProperty("nodes").EnumerateArray().ToArray(); - var meshes = gltf.GetProperty("meshes").EnumerateArray().ToArray(); - var accessors = gltf.GetProperty("accessors").EnumerateArray().ToArray(); - var bufferViews = gltf.GetProperty("bufferViews").EnumerateArray().ToArray(); - - var parentOf = new Dictionary(); - for (int i = 0; i < nodes.Length; i++) - { - if (nodes[i].TryGetProperty("children", out var ch)) - { - foreach (var c in ch.EnumerateArray()) - { - parentOf[c.GetInt32()] = i; - } - } - } - - // Exclude hardpoint slot_frame.* subtrees and rtd.id anchor subtrees - var hpNodeSet = new HashSet(); - void MarkSubtree(int idx) - { - if (!hpNodeSet.Add(idx)) return; - if (nodes[idx].TryGetProperty("children", out var ch)) - { - foreach (var c in ch.EnumerateArray()) - { - MarkSubtree(c.GetInt32()); - } - } - } - - for (int i = 0; i < nodes.Length; i++) - { - string nodeName = nodes[i].TryGetProperty("name", out var nm) ? nm.GetString() ?? "" : ""; - bool isSlotFrame = nodeName.StartsWith("slot_frame.", StringComparison.Ordinal); - bool hasRtdId = nodes[i].TryGetProperty("extras", out var ex) && ex.TryGetProperty("rtd.id", out _); - if (isSlotFrame || hasRtdId) - { - if (parentOf.TryGetValue(i, out int p) && - nodes[p].TryGetProperty("name", out var pnm) && - (pnm.GetString() ?? "").StartsWith("slot_frame.", StringComparison.Ordinal)) - { - MarkSubtree(p); - } - else - { - MarkSubtree(i); - } - } - } - - var rootIndices = new List(); - if (gltf.TryGetProperty("scenes", out var scenes) && scenes.GetArrayLength() > 0) - { - int sceneIdx = gltf.TryGetProperty("scene", out var si) ? si.GetInt32() : 0; - foreach (var r in scenes[sceneIdx].GetProperty("nodes").EnumerateArray()) - { - rootIndices.Add(r.GetInt32()); - } - } - else - { - for (int i = 0; i < nodes.Length; i++) - { - if (!parentOf.ContainsKey(i)) rootIndices.Add(i); - } - } - - float spanX = MathF.Max(1e-4f, boundsMax[0] - boundsMin[0]); - float spanY = MathF.Max(1e-4f, boundsMax[1] - boundsMin[1]); - float spanZ = MathF.Max(1e-4f, boundsMax[2] - boundsMin[2]); - - var results = new List(); - var visited = new HashSet(); - - void Walk(int nodeIdx, Matrix4x4 parentWorld) - { - if (!visited.Add(nodeIdx)) return; - var node = nodes[nodeIdx]; - Matrix4x4 local = ReadNodeLocalMatrix(node); - // Column-vector math: world = parentWorld * local; System.Numerics uses row-vectors for Transform, so multiply in reverse order - Matrix4x4 world = local * parentWorld; - - if (!hpNodeSet.Contains(nodeIdx) && node.TryGetProperty("mesh", out var meshProp)) - { - int meshIdx = meshProp.GetInt32(); - Vector3 centroid = ComputeMeshWorldCentroid(meshes[meshIdx], accessors, bufferViews, binBlob, world); - - // +X is vehicle LEFT (cell x=0), -X is vehicle RIGHT (cell x=gw-1) - float ux = Math.Clamp((boundsMax[0] - centroid.X) / spanX, 0f, 1f); - // Dorsal: +Z is FRONT (cell y=0), -Z is REAR (cell y=gh-1) - // Coronal: +Y is TOP (cell y=0), minY is FEET (cell y=gh-1) - float uy = plane == GridPlane.Dorsal - ? Math.Clamp((boundsMax[2] - centroid.Z) / spanZ, 0f, 1f) - : Math.Clamp((boundsMax[1] - centroid.Y) / spanY, 0f, 1f); - - float targetX = ux * (gw - 1); - float targetY = uy * (gh - 1); - (int cellX, int cellY) = FindNearestActiveCell(targetX, targetY, gw, gh, mask); - - string nodeName = node.TryGetProperty("name", out var nm) ? nm.GetString() ?? $"node_{nodeIdx}" : $"node_{nodeIdx}"; - string partKind = ClassifyPartKind(nodeName); - - results.Add(new VehiclePartCellRecord - { - NodeName = nodeName, - CellX = cellX, - CellY = cellY, - Kind = partKind - }); - } - - if (node.TryGetProperty("children", out var ch)) - { - foreach (var c in ch.EnumerateArray()) - { - Walk(c.GetInt32(), world); - } - } - } - - foreach (int r in rootIndices) - { - Walk(r, Matrix4x4.Identity); - } - - return results; - } - - private static Matrix4x4 ReadNodeLocalMatrix(JsonElement node) - { - if (node.TryGetProperty("matrix", out var mElem)) - { - float[] m = mElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - // glTF stores column-major 4x4; System.Numerics Matrix4x4 fields M11..M44 match row-major so transpose on construction - return new Matrix4x4( - m[0], m[1], m[2], m[3], - m[4], m[5], m[6], m[7], - m[8], m[9], m[10], m[11], - m[12], m[13], m[14], m[15]); - } - - Vector3 scale = Vector3.One; - if (node.TryGetProperty("scale", out var sElem)) - { - float[] s = sElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - scale = new Vector3(s[0], s[1], s[2]); - } - - Quaternion rot = Quaternion.Identity; - if (node.TryGetProperty("rotation", out var rElem)) - { - float[] r = rElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - rot = new Quaternion(r[0], r[1], r[2], r[3]); - } - - Vector3 trans = Vector3.Zero; - if (node.TryGetProperty("translation", out var tElem)) - { - float[] t = tElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - trans = new Vector3(t[0], t[1], t[2]); - } - - return Matrix4x4.CreateScale(scale) * Matrix4x4.CreateFromQuaternion(rot) * Matrix4x4.CreateTranslation(trans); - } - - private static Vector3 ComputeMeshWorldCentroid( - JsonElement mesh, - JsonElement[] accessors, - JsonElement[] bufferViews, - byte[] binBlob, - Matrix4x4 world) - { - Vector3 sum = Vector3.Zero; - long count = 0; - - foreach (var prim in mesh.GetProperty("primitives").EnumerateArray()) - { - if (!prim.TryGetProperty("attributes", out var attrs) || - !attrs.TryGetProperty("POSITION", out var posIdxElem)) - { - continue; - } - - var acc = accessors[posIdxElem.GetInt32()]; - int accCount = acc.GetProperty("count").GetInt32(); - int compType = acc.GetProperty("componentType").GetInt32(); - string accType = acc.GetProperty("type").GetString() ?? ""; - - if (binBlob.Length > 0 && - acc.TryGetProperty("bufferView", out var bvIdxElem) && - compType == 5126 && - accType == "VEC3") - { - var bv = bufferViews[bvIdxElem.GetInt32()]; - int bvOff = bv.TryGetProperty("byteOffset", out var bo) ? bo.GetInt32() : 0; - int accOff = acc.TryGetProperty("byteOffset", out var ao) ? ao.GetInt32() : 0; - int stride = bv.TryGetProperty("byteStride", out var bs) ? bs.GetInt32() : 12; - int offset = bvOff + accOff; - - for (int i = 0; i < accCount; i++) - { - int p = offset + i * stride; - float x = BinaryPrimitives.ReadSingleLittleEndian(binBlob.AsSpan(p, 4)); - float y = BinaryPrimitives.ReadSingleLittleEndian(binBlob.AsSpan(p + 4, 4)); - float z = BinaryPrimitives.ReadSingleLittleEndian(binBlob.AsSpan(p + 8, 4)); - sum += Vector3.Transform(new Vector3(x, y, z), world); - count++; - } - } - else if (acc.TryGetProperty("min", out var minElem) && acc.TryGetProperty("max", out var maxElem)) - { - float[] mn = minElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - float[] mx = maxElem.EnumerateArray().Select(e => e.GetSingle()).ToArray(); - var mid = new Vector3((mn[0] + mx[0]) * 0.5f, (mn[1] + mx[1]) * 0.5f, (mn[2] + mx[2]) * 0.5f); - sum += Vector3.Transform(mid, world); - count++; - } - } - - return count > 0 ? sum / count : world.Translation; - } - - private static (int X, int Y) FindNearestActiveCell(float targetX, float targetY, int gw, int gh, bool[] mask) - { - int bestX = 0; - int bestY = 0; - float bestDistSq = float.PositiveInfinity; - for (int y = 0; y < gh; y++) - { - for (int x = 0; x < gw; x++) - { - if (!mask[y * gw + x]) continue; - float dx = x - targetX; - float dy = y - targetY; - float d2 = dx * dx + dy * dy; - if (d2 < bestDistSq) - { - bestDistSq = d2; - bestX = x; - bestY = y; - } - } - } - return (bestX, bestY); - } - - private static string ClassifyPartKind(string nodeName) - { - string lower = nodeName.ToLowerInvariant(); - if (lower.StartsWith("shroud.", StringComparison.Ordinal) || lower.Contains("shroud")) - return "shroud"; - if (lower.Contains("armor") || lower.Contains("plate") || lower.Contains("glacis") || - lower.Contains("skirt") || lower.Contains("shield") || lower.Contains("fender") || - lower.Contains("bullbar") || lower.Contains("bumper") || lower.Contains("collar") || - lower.Contains("cheek") || lower.Contains("cowling") || lower.Contains("greave")) - return "armor"; - if (lower.Contains("wheel") || lower.Contains("tire") || lower.Contains("track") || - lower.Contains("rotor") || lower.Contains("blade") || lower.Contains("spinner") || - lower.Contains("nacelle")) - return "mobility"; - return "hull"; - } - - private static Dictionary BuildTunings() - { - return new Dictionary(StringComparer.Ordinal) - { - ["jackal"] = new( - Mobility: MobilityKind.Wheeled, - MassKg: 950f, MaxSpeed: 34f, TurnRate: 4.2f, ThrustNewtons: 14500f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 24f, Conductivity: 8.0f, BaseCellThermalMass: 10f, CargoCapacity: 4, - DefaultLoadout: new() { ["hp.weapon.roof"] = "mg_762", ["hp.engine.rear"] = "diesel_core", ["hp.radiator.rear"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.roof"] = new(5f, -15f, 45f), - ["hp.engine.rear"] = new(5f), - ["hp.radiator.rear"] = new(0f) - }), - - ["mule"] = new( - Mobility: MobilityKind.Wheeled, - MassKg: 1850f, MaxSpeed: 29f, TurnRate: 3.3f, ThrustNewtons: 23500f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 34f, Conductivity: 8.5f, BaseCellThermalMass: 13f, CargoCapacity: 6, - DefaultLoadout: new() { ["hp.weapon.cab"] = "mg_762", ["hp.weapon.bed_main"] = "autocannon", ["hp.engine.front"] = "turbo_core", ["hp.radiator.left"] = "copper_rad", ["hp.armor.front"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.front"] = new(12f), - ["hp.radiator.left"] = new(0f), - ["hp.engine.front"] = new(6f), - ["hp.radiator.right"] = new(0f), - ["hp.weapon.cab"] = new(6f, -15f, 45f), - ["hp.weapon.bed_main"] = new(8f, -12f, 35f) - }), - - ["ferret"] = new( - Mobility: MobilityKind.Tracked, - MassKg: 1450f, MaxSpeed: 28f, TurnRate: 3.8f, ThrustNewtons: 21000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 32f, Conductivity: 8.5f, BaseCellThermalMass: 12f, CargoCapacity: 5, - DefaultLoadout: new() { ["hp.weapon.turret"] = "autocannon", ["hp.weapon.pod"] = "mg_762", ["hp.engine.rear"] = "diesel_core", ["hp.radiator.deck"] = "copper_rad", ["hp.armor.glacis"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.glacis"] = new(14f), - ["hp.weapon.pod"] = new(6f, -15f, 45f), - ["hp.weapon.turret"] = new(10f, -10f, 32f), - ["hp.engine.rear"] = new(6f), - ["hp.radiator.deck"] = new(0f) - }), - - ["ironclad"] = new( - Mobility: MobilityKind.Tracked, - MassKg: 3600f, MaxSpeed: 22f, TurnRate: 2.4f, ThrustNewtons: 34000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 54f, Conductivity: 9.5f, BaseCellThermalMass: 17f, CargoCapacity: 8, - DefaultLoadout: new() { ["hp.weapon.main"] = "recoilless", ["hp.weapon.coax"] = "mg_762", ["hp.engine.rear"] = "turbo_core", ["hp.radiator.l"] = "copper_rad", ["hp.armor.front"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.front"] = new(22f), - ["hp.weapon.coax"] = new(10f, -10f, 40f), - ["hp.weapon.main"] = new(18f, -10f, 30f), - ["hp.armor.skirts"] = new(14f), - ["hp.radiator.l"] = new(0f), - ["hp.engine.rear"] = new(10f), - ["hp.radiator.r"] = new(0f) - }), - - ["mammoth"] = new( - Mobility: MobilityKind.Wheeled, - MassKg: 3900f, MaxSpeed: 24f, TurnRate: 2.3f, ThrustNewtons: 37000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 52f, Conductivity: 9.5f, BaseCellThermalMass: 16f, CargoCapacity: 8, - DefaultLoadout: new() { ["hp.weapon.turret_l"] = "autocannon", ["hp.weapon.turret_r"] = "autocannon", ["hp.weapon.bow"] = "mg_762", ["hp.engine.rear"] = "turbo_core", ["hp.radiator.l"] = "copper_rad", ["hp.armor.glacis"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.glacis"] = new(20f), - ["hp.weapon.bow"] = new(10f, -15f, 45f), - ["hp.weapon.turret_l"] = new(15f, -10f, 30f), - ["hp.weapon.turret_r"] = new(15f, -10f, 30f), - ["hp.armor.flanks"] = new(14f), - ["hp.engine.rear"] = new(10f), - ["hp.radiator.l"] = new(0f), - ["hp.radiator.r"] = new(0f) - }), - - ["anvil"] = new( - Mobility: MobilityKind.Tracked, - MassKg: 4800f, MaxSpeed: 19f, TurnRate: 2.0f, ThrustNewtons: 42000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 66f, Conductivity: 9.5f, BaseCellThermalMass: 19f, CargoCapacity: 9, - DefaultLoadout: new() { ["hp.weapon.siege_l"] = "autocannon", ["hp.weapon.siege_r"] = "autocannon", ["hp.weapon.sponson_l"] = "mg_762", ["hp.engine.rear"] = "turbo_core", ["hp.radiator.l"] = "copper_rad", ["hp.armor.front"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.front"] = new(26f), - ["hp.weapon.sponson_l"] = new(14f, -10f, 30f), - ["hp.weapon.siege_l"] = new(18f, -10f, 30f), - ["hp.armor.sides"] = new(18f), - ["hp.weapon.siege_r"] = new(18f, -10f, 30f), - ["hp.weapon.sponson_r"] = new(14f, -10f, 30f), - ["hp.engine.rear"] = new(12f), - ["hp.radiator.l"] = new(0f), - ["hp.radiator.r"] = new(0f) - }), - - ["hornet"] = new( - Mobility: MobilityKind.Vtol, - MassKg: 820f, MaxSpeed: 42f, TurnRate: 4.8f, ThrustNewtons: 18500f, HoverMaxAltitudeM: 42f, - ArmorPerCell: 14f, Conductivity: 9.0f, BaseCellThermalMass: 9f, CargoCapacity: 4, - DefaultLoadout: new() { ["hp.weapon.chin"] = "autocannon", ["hp.weapon.wing_l"] = "mg_762", ["hp.weapon.wing_r"] = "mg_762", ["hp.engine.core"] = "turbo_core", ["hp.radiator.nacelle_l"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.chin"] = new(2f, -55f, 20f), - ["hp.radiator.nacelle_l"] = new(0f), - ["hp.radiator.nacelle_r"] = new(0f), - ["hp.weapon.wing_l"] = new(2f, -55f, 20f), - ["hp.engine.core"] = new(4f), - ["hp.weapon.wing_r"] = new(2f, -55f, 20f) - }), - - ["condor"] = new( - Mobility: MobilityKind.Vtol, - MassKg: 1950f, MaxSpeed: 35f, TurnRate: 3.6f, ThrustNewtons: 32000f, HoverMaxAltitudeM: 36f, - ArmorPerCell: 22f, Conductivity: 10.0f, BaseCellThermalMass: 12f, CargoCapacity: 7, - DefaultLoadout: new() { ["hp.weapon.sponson_l"] = "autocannon", ["hp.weapon.sponson_r"] = "autocannon", ["hp.weapon.nose"] = "mg_762", ["hp.weapon.dorsal"] = "pd_flak", ["hp.engine.core"] = "turbo_core", ["hp.radiator.spine_l"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.nose"] = new(4f, -55f, 20f), - ["hp.armor.hull"] = new(8f), - ["hp.weapon.sponson_l"] = new(4f, -55f, 20f), - ["hp.weapon.dorsal"] = new(4f, -10f, 85f, IsWideArc: true), - ["hp.weapon.sponson_r"] = new(4f, -55f, 20f), - ["hp.engine.core"] = new(6f), - ["hp.radiator.spine_l"] = new(0f), - ["hp.radiator.spine_r"] = new(0f) - }), - - ["manticore"] = new( - Mobility: MobilityKind.Walker, - MassKg: 2800f, MaxSpeed: 26f, TurnRate: 3.6f, ThrustNewtons: 34500f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 46f, Conductivity: 11.0f, BaseCellThermalMass: 15f, CargoCapacity: 7, - DefaultLoadout: new() { ["hp.weapon.chin"] = "flak", ["hp.weapon.l"] = "mg_762", ["hp.weapon.r"] = "mg_762", ["hp.engine.core"] = "turbo_core", ["hp.radiator.flank_l"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.chin"] = new(10f, -15f, 45f), - ["hp.radiator.flank_l"] = new(4f), - ["hp.engine.core"] = new(12f), - ["hp.radiator.flank_r"] = new(4f), - ["hp.weapon.l"] = new(8f, -15f, 45f), - ["hp.weapon.r"] = new(8f, -15f, 45f), - ["hp.armor.prow"] = new(18f) - }), - - ["bastion"] = new( - Mobility: MobilityKind.Walker, - MassKg: 4600f, MaxSpeed: 20f, TurnRate: 2.4f, ThrustNewtons: 46000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 64f, Conductivity: 11.5f, BaseCellThermalMass: 19f, CargoCapacity: 9, - DefaultLoadout: new() { ["hp.weapon.turret_main"] = "recoilless", ["hp.weapon.turret_pd"] = "pd_flak", ["hp.weapon.flank_l"] = "autocannon", ["hp.engine.core"] = "turbo_core", ["hp.radiator.rear_l"] = "copper_rad", ["hp.armor.prow"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.armor.prow"] = new(24f), - ["hp.weapon.turret_pd"] = new(10f, -10f, 85f, IsWideArc: true), - ["hp.weapon.turret_main"] = new(20f, -10f, 30f), - ["hp.weapon.flank_l"] = new(12f, -10f, 35f), - ["hp.weapon.flank_r"] = new(12f, -10f, 35f), - ["hp.engine.core"] = new(14f), - ["hp.radiator.rear_l"] = new(0f), - ["hp.radiator.rear_r"] = new(0f) - }), - - ["kestrel"] = new( - Mobility: MobilityKind.Walker, - MassKg: 1650f, MaxSpeed: 34f, TurnRate: 4.6f, ThrustNewtons: 27500f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 32f, Conductivity: 10.0f, BaseCellThermalMass: 12f, CargoCapacity: 5, - DefaultLoadout: new() { ["hp.weapon.arm_r"] = "autocannon", ["hp.weapon.dorsal"] = "mg_762", ["hp.engine.core"] = "turbo_core", ["hp.radiator.back"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.dorsal"] = new(8f, -10f, 85f, IsWideArc: true), - ["hp.armor.chest"] = new(14f), - ["hp.radiator.back"] = new(4f), - ["hp.engine.core"] = new(10f), - ["hp.weapon.arm_r"] = new(8f, -15f, 45f) - }), - - ["raptor"] = new( - Mobility: MobilityKind.Walker, - MassKg: 2300f, MaxSpeed: 30f, TurnRate: 4.1f, ThrustNewtons: 33000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 42f, Conductivity: 10.5f, BaseCellThermalMass: 14f, CargoCapacity: 6, - DefaultLoadout: new() { ["hp.weapon.arm_l"] = "autocannon", ["hp.weapon.arm_r"] = "flak", ["hp.engine.chest"] = "turbo_core", ["hp.radiator.sh_l"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.radiator.sh_l"] = new(4f), - ["hp.radiator.sh_r"] = new(4f), - ["hp.weapon.arm_l"] = new(8f, -15f, 45f), - ["hp.engine.chest"] = new(12f), - ["hp.weapon.arm_r"] = new(8f, -15f, 45f) - }), - - ["spectre"] = new( - Mobility: MobilityKind.Walker, - MassKg: 2450f, MaxSpeed: 31f, TurnRate: 4.2f, ThrustNewtons: 35000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 44f, Conductivity: 10.5f, BaseCellThermalMass: 14f, CargoCapacity: 6, - DefaultLoadout: new() { ["hp.weapon.arm_l"] = "autocannon", ["hp.weapon.arm_r"] = "autocannon", ["hp.weapon.shoulder_l"] = "pd_flak", ["hp.engine.core"] = "turbo_core", ["hp.radiator.back_l"] = "copper_rad" }, - HardpointTuning: new() - { - ["hp.weapon.shoulder_l"] = new(8f, -10f, 85f, IsWideArc: true), - ["hp.armor.torso"] = new(16f), - ["hp.weapon.arm_l"] = new(10f, -15f, 45f), - ["hp.radiator.back_l"] = new(4f), - ["hp.engine.core"] = new(12f), - ["hp.radiator.back_r"] = new(4f), - ["hp.weapon.arm_r"] = new(10f, -15f, 45f) - }), - - ["breaker"] = new( - Mobility: MobilityKind.Walker, - MassKg: 3800f, MaxSpeed: 24f, TurnRate: 3.0f, ThrustNewtons: 41000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 56f, Conductivity: 11.0f, BaseCellThermalMass: 17f, CargoCapacity: 8, - DefaultLoadout: new() { ["hp.weapon.arm_l"] = "autocannon", ["hp.weapon.arm_r"] = "autocannon", ["hp.weapon.shoulder_l"] = "mg_762", ["hp.engine.chest"] = "turbo_core", ["hp.radiator.back_l"] = "copper_rad", ["hp.armor.torso"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.weapon.arm_l"] = new(12f, -15f, 45f), - ["hp.weapon.arm_r"] = new(12f, -15f, 45f), - ["hp.weapon.shoulder_l"] = new(10f, -10f, 85f, IsWideArc: true), - ["hp.armor.torso"] = new(20f), - ["hp.engine.chest"] = new(14f), - ["hp.radiator.back_l"] = new(6f), - ["hp.radiator.back_r"] = new(6f) - }), - - ["paladin"] = new( - Mobility: MobilityKind.Walker, - MassKg: 4100f, MaxSpeed: 22f, TurnRate: 2.7f, ThrustNewtons: 43000f, HoverMaxAltitudeM: 0f, - ArmorPerCell: 58f, Conductivity: 11.5f, BaseCellThermalMass: 18f, CargoCapacity: 9, - DefaultLoadout: new() { ["hp.weapon.arm_l"] = "autocannon", ["hp.weapon.arm_r"] = "autocannon", ["hp.weapon.sh_l"] = "pd_flak", ["hp.engine.chest"] = "turbo_core", ["hp.radiator.back_l"] = "copper_rad", ["hp.armor.torso"] = "welded_plate" }, - HardpointTuning: new() - { - ["hp.weapon.sh_l"] = new(12f, -10f, 85f, IsWideArc: true), - ["hp.armor.torso"] = new(22f), - ["hp.weapon.sh_r"] = new(12f, -10f, 85f, IsWideArc: true), - ["hp.weapon.arm_l"] = new(12f, -15f, 45f), - ["hp.engine.chest"] = new(16f), - ["hp.weapon.arm_r"] = new(12f, -15f, 45f), - ["hp.radiator.back_l"] = new(6f), - ["hp.armor.legs"] = new(20f), - ["hp.radiator.back_r"] = new(6f) - }), - }; - } - } -} diff --git a/tools/VehiclePacker/VehiclePacker.csproj b/tools/VehiclePacker/VehiclePacker.csproj deleted file mode 100644 index a53a965..0000000 --- a/tools/VehiclePacker/VehiclePacker.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net10.0 - enable - disable - - - - - - - diff --git a/tools/decals/build_decal_atlas.py b/tools/decals/build_decal_atlas.py deleted file mode 100644 index a2c1d40..0000000 --- a/tools/decals/build_decal_atlas.py +++ /dev/null @@ -1,939 +0,0 @@ -"""Procedural 4x4 hard-surface & combat POM decal trim-sheet atlas generator. - -Outputs three 1024x1024 RGBA/RGB PNG textures under assets/decals/: - - decal_atlas_albedo.png (RGBA: sRGB albedo + alpha mask, dilated into alpha=0) - - decal_atlas_normal.png (RGB: tangent-space normal map, OpenGL/Godot +X right, +Y down) - - decal_atlas_ormh.png (RGBA: R=AO, G=Roughness, B=Metallic, A=Height [1=surface, 0=deep recess]) - -4x4 tile layout (256x256 each, row 0 = top): - Row 0: (0) louvered armor vent, (1) recessed bolted maintenance hatch, - (2) 4-bolt recessed fastener strip, (3) slotted intake grille - Row 1: (4) rivet panel seam, (5) welded armor repair patch, - (6) recessed lift-lug pocket, (7) weathered hazard caution chevron strip - Row 2: (8) tactical stencil "03", (9) tactical stencil "07", - (10) radiation/heat warning stencil, (11) faction chevron emblem - Row 3: (12) deep AP autocannon penetration hole, (13) diagonal shrapnel/flak armor gouge, - (14) molten plasma burn crater, (15) radial blast scorch mark -""" -from __future__ import annotations - -from pathlib import Path -import numpy as np -from PIL import Image - -REPO_ROOT = Path(__file__).resolve().parents[2] -OUT_DIR = REPO_ROOT / "assets" / "decals" - -TILE_SIZE = 256 -GRID = 4 -ATLAS_SIZE = TILE_SIZE * GRID # 1024 - - -# --------------------------------------------------------------------------- -# Deterministic vectorized noise & SDF primitives (on normalized [-1, 1]^2 tile coords) -# --------------------------------------------------------------------------- - -def _hash2(ix: np.ndarray, iy: np.ndarray, seed: int) -> np.ndarray: - n = (ix.astype(np.int64) * 374761393 - + iy.astype(np.int64) * 668265263 - + np.int64(seed) * 1442695041) & 0xFFFFFFFF - n = ((n ^ (n >> 13)) * 1274126177) & 0xFFFFFFFF - n = n ^ (n >> 16) - return (n & 0xFFFFFF).astype(np.float32) / float(0x1000000) - - -def value_noise(x: np.ndarray, y: np.ndarray, freq: float, seed: int = 1) -> np.ndarray: - px = x * freq - py = y * freq - ix = np.floor(px).astype(np.int64) - iy = np.floor(py).astype(np.int64) - fx = px - ix - fy = py - iy - ux = fx * fx * (3.0 - 2.0 * fx) - uy = fy * fy * (3.0 - 2.0 * fy) - a = _hash2(ix, iy, seed) - b = _hash2(ix + 1, iy, seed) - c = _hash2(ix, iy + 1, seed) - d = _hash2(ix + 1, iy + 1, seed) - return (a * (1.0 - ux) + b * ux) * (1.0 - uy) + (c * (1.0 - ux) + d * ux) * uy - - -def fbm(x: np.ndarray, y: np.ndarray, base_freq: float, octaves: int = 4, seed: int = 1) -> np.ndarray: - acc = np.zeros_like(x, dtype=np.float32) - amp = 0.5 - norm = 0.0 - f = base_freq - for o in range(octaves): - acc += amp * value_noise(x, y, f, seed + o * 37) - norm += amp - amp *= 0.5 - f *= 2.03 - return acc / norm - - -def smoothstep(e0: float, e1: float, x: np.ndarray) -> np.ndarray: - t = np.clip((x - e0) / (e1 - e0), 0.0, 1.0) - return t * t * (3.0 - 2.0 * t) - - -def sd_box(x: np.ndarray, y: np.ndarray, cx: float, cy: float, hx: float, hy: float, r: float = 0.0) -> np.ndarray: - qx = np.abs(x - cx) - (hx - r) - qy = np.abs(y - cy) - (hy - r) - out = np.sqrt(np.maximum(qx, 0.0) ** 2 + np.maximum(qy, 0.0) ** 2) - ins = np.minimum(np.maximum(qx, qy), 0.0) - return out + ins - r - - -def sd_circle(x: np.ndarray, y: np.ndarray, cx: float, cy: float, r: float) -> np.ndarray: - return np.sqrt((x - cx) ** 2 + (y - cy) ** 2) - r - - -def sd_segment(x: np.ndarray, y: np.ndarray, ax: float, ay: float, bx: float, by: float) -> np.ndarray: - pax = x - ax - pay = y - ay - bax = bx - ax - bay = by - ay - denom = bax * bax + bay * bay + 1e-12 - h = np.clip((pax * bax + pay * bay) / denom, 0.0, 1.0) - return np.sqrt((pax - bax * h) ** 2 + (pay - bay * h) ** 2) - - -def sd_hexagon(x: np.ndarray, y: np.ndarray, cx: float, cy: float, r: float) -> np.ndarray: - px = np.abs(x - cx) - py = np.abs(y - cy) - # Regular hexagon with flat top/bottom - d = np.maximum(px * 0.8660254 + py * 0.5, py) - r - return d - - -def sd_triangle_eq(x: np.ndarray, y: np.ndarray, cx: float, cy: float, r: float) -> np.ndarray: - # Pointing up (-y in image space) - px = np.abs(x - cx) - py = -(y - cy) + r * 0.25 - px_k = np.sqrt(3.0) - # Standard IQ equilateral triangle SDF - px2 = px - r - py2 = py + r / px_k - cond = (px + px_k * py) > 0.0 - nx = np.where(cond, (px - px_k * py) * 0.5, px) - ny = np.where(cond, (-px_k * px - py) * 0.5, py) - nx -= np.clip(nx, -2.0 * r, 0.0) - return -np.sqrt(nx * nx + ny * ny) * np.sign(ny) - - -def tile_coords() -> tuple[np.ndarray, np.ndarray]: - lin = np.linspace(-1.0 + 1.0 / TILE_SIZE, 1.0 - 1.0 / TILE_SIZE, TILE_SIZE, dtype=np.float32) - yy, xx = np.meshgrid(lin, lin, indexing="ij") - return xx, yy - - -def new_tile() -> dict[str, np.ndarray]: - shape = (TILE_SIZE, TILE_SIZE) - return { - "rgb": np.full((*shape, 3), 0.18, dtype=np.float32), - "alpha": np.zeros(shape, dtype=np.float32), - "height": np.ones(shape, dtype=np.float32), - "rough": np.full(shape, 0.56, dtype=np.float32), - "metal": np.full(shape, 0.35, dtype=np.float32), - } - - -def add_hex_bolt( - t: dict[str, np.ndarray], - x: np.ndarray, - y: np.ndarray, - cx: float, - cy: float, - pocket_r: float = 0.095, - head_r: float = 0.064, - base_h: float = 0.85, -) -> None: - dp = sd_circle(x, y, cx, cy, pocket_r) - dh = sd_circle(x, y, cx, cy, head_r) - dhex = sd_hexagon(x, y, cx, cy, head_r * 0.48) - - in_pocket = smoothstep(0.015, -0.015, dp) - in_head = smoothstep(0.012, -0.012, dh) - in_socket = smoothstep(0.010, -0.010, dhex) - - # Countersunk floor - pocket_h = base_h - 0.52 * in_pocket - # Raised chamfered bolt head inside pocket - head_profile = np.clip(1.0 - np.maximum(dh / head_r + 1.0, 0.0) ** 4 * 0.15, 0.0, 1.0) - bolt_h = base_h - 0.06 + 0.04 * head_profile - bolt_h = bolt_h - 0.36 * in_socket - - t["height"] = np.where(in_head > 0.5, bolt_h, np.minimum(t["height"], pocket_h)) - # Colors & PBR - pocket_col = np.array([0.055, 0.058, 0.056], dtype=np.float32) - bolt_col = np.array([0.24, 0.25, 0.24], dtype=np.float32) - sock_col = np.array([0.035, 0.036, 0.036], dtype=np.float32) - - t["rgb"] = t["rgb"] * (1.0 - in_pocket[..., None]) + pocket_col * in_pocket[..., None] - t["rgb"] = t["rgb"] * (1.0 - in_head[..., None]) + bolt_col * in_head[..., None] - t["rgb"] = t["rgb"] * (1.0 - in_socket[..., None]) + sock_col * in_socket[..., None] - t["metal"] = np.where(in_head > 0.5, 0.88, np.where(in_pocket > 0.5, 0.65, t["metal"])) - t["rough"] = np.where(in_head > 0.5, 0.34, np.where(in_pocket > 0.5, 0.62, t["rough"])) - - -def add_domed_rivet( - t: dict[str, np.ndarray], - x: np.ndarray, - y: np.ndarray, - cx: float, - cy: float, - r: float = 0.052, - base_h: float = 0.88, -) -> None: - d = sd_circle(x, y, cx, cy, r) - mask = smoothstep(0.012, -0.012, d) - ring = smoothstep(0.018, 0.0, np.abs(d - 0.005)) - dist_norm = np.clip(np.sqrt((x - cx) ** 2 + (y - cy) ** 2) / r, 0.0, 1.0) - dome = np.sqrt(np.maximum(1.0 - dist_norm ** 2, 0.0)) - rivet_h = base_h - 0.08 * ring + 0.11 * dome * mask - t["height"] = t["height"] * (1.0 - mask) + np.clip(rivet_h, 0.0, 1.0) * mask - col = np.array([0.28, 0.29, 0.27], dtype=np.float32) - t["rgb"] = t["rgb"] * (1.0 - mask[..., None]) + col * mask[..., None] - t["metal"] = t["metal"] * (1.0 - mask) + 0.85 * mask - t["rough"] = t["rough"] * (1.0 - mask) + 0.32 * mask - - -# --------------------------------------------------------------------------- -# Individual tiles (0..15) -# --------------------------------------------------------------------------- - -def tile_00_louvered_vent(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(0) Louvered armor vent.""" - t = new_tile() - n1 = fbm(x, y, 10.0, 4, seed=101) - n2 = fbm(x, y, 36.0, 3, seed=102) - - d_outer = sd_box(x, y, 0.0, 0.0, 0.80, 0.72, r=0.06) - d_inner = sd_box(x, y, 0.0, 0.0, 0.65, 0.56, r=0.03) - d_seam = np.abs(d_outer) - - outer_m = smoothstep(0.025, -0.025, d_outer) - inner_m = smoothstep(0.02, -0.02, d_inner) - - # Frame plate - frame_h = 0.96 - 0.04 * smoothstep(0.0, 0.14, np.maximum(-d_outer, 0.0)) - frame_h -= 0.45 * smoothstep(0.03, 0.0, d_seam) - # Recessed bay behind louvers - h = np.where(inner_m > 0.5, 0.04, frame_h) - - # 5 angled louvers inside d_inner - slat_centers = np.linspace(-0.42, 0.42, 5) - slat_mask_all = np.zeros_like(x) - for sc in slat_centers: - # Each louver spans x=[-0.62, 0.62], y=[sc-0.065, sc+0.065] - ds = sd_box(x, y, 0.0, float(sc), 0.62, 0.068, r=0.015) - sm = smoothstep(0.015, -0.015, ds) - # Slope from top (high) down to bottom (low), exposing dark gap underneath - local_t = np.clip((y - (sc - 0.068)) / 0.136, 0.0, 1.0) - slat_h = 0.92 - 0.62 * local_t - h = np.maximum(h, sm * slat_h) - slat_mask_all = np.maximum(slat_mask_all, sm) - - # Paint + worn steel + soot inside vent - olive = np.array([0.16, 0.18, 0.14], dtype=np.float32) * (0.85 + 0.30 * n1[..., None]) - steel = np.array([0.26, 0.27, 0.26], dtype=np.float32) * (0.85 + 0.30 * n2[..., None]) - void = np.array([0.025, 0.025, 0.027], dtype=np.float32) - - edge_wear = smoothstep(0.05, 0.0, np.abs(d_inner)) * smoothstep(0.35, 0.65, n2) - slat_top_wear = slat_mask_all * smoothstep(0.70, 0.92, h) * smoothstep(0.35, 0.70, n2) - wear = np.clip(np.maximum(edge_wear, slat_top_wear), 0.0, 1.0) - - col = olive * (1.0 - wear[..., None]) + steel * wear[..., None] - # Darken recessed gap - in_void = inner_m * (1.0 - slat_mask_all) - col = col * (1.0 - in_void[..., None]) + void * in_void[..., None] - # Soot darkening on lower slope of slats - col *= (1.0 - 0.45 * slat_mask_all[..., None] * smoothstep(0.85, 0.30, h)[..., None]) - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = outer_m - t["height"] = np.where(outer_m > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.35 + 0.55 * wear + 0.25 * slat_mask_all, 0.0, 1.0) - t["rough"] = np.clip(0.58 - 0.26 * wear + 0.25 * in_void, 0.18, 0.95) - - for bx, by in [(-0.71, -0.63), (0.71, -0.63), (-0.71, 0.63), (0.71, 0.63)]: - add_hex_bolt(t, x, y, bx, by, pocket_r=0.055, head_r=0.036, base_h=0.95) - return t - - -def tile_01_bolted_hatch(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(1) Recessed bolted maintenance hatch.""" - t = new_tile() - n1 = fbm(x, y, 8.0, 4, seed=201) - n2 = fbm(x, y, 28.0, 3, seed=202) - - d_outer = sd_box(x, y, 0.0, 0.0, 0.80, 0.80, r=0.08) - d_groove = np.abs(sd_box(x, y, 0.0, 0.0, 0.66, 0.66, r=0.06)) - d_door = sd_box(x, y, 0.0, 0.0, 0.63, 0.63, r=0.05) - d_latch = sd_box(x, y, 0.32, 0.0, 0.13, 0.22, r=0.03) - d_bar = sd_box(x, y, 0.32, 0.0, 0.045, 0.16, r=0.02) - - outer_m = smoothstep(0.025, -0.025, d_outer) - groove_m = smoothstep(0.032, 0.0, d_groove) - latch_m = smoothstep(0.02, -0.02, d_latch) - bar_m = smoothstep(0.015, -0.015, d_bar) - - h = np.full_like(x, 0.96) - # Bevel down into perimeter seam - h = np.where(d_door < 0.0, 0.88, h) - h -= 0.72 * groove_m - # Recessed latch pocket with grab bar - h = np.where(latch_m > 0.5, 0.22, h) - h = np.where(bar_m > 0.5, 0.86, h) - - base_col = np.array([0.19, 0.21, 0.16], dtype=np.float32) * (0.86 + 0.28 * n1[..., None]) - door_col = np.array([0.22, 0.24, 0.19], dtype=np.float32) * (0.86 + 0.28 * n1[..., None]) - seam_col = np.array([0.04, 0.04, 0.038], dtype=np.float32) - bar_col = np.array([0.34, 0.34, 0.32], dtype=np.float32) - - in_door = smoothstep(0.02, -0.02, d_door) - col = base_col * (1.0 - in_door[..., None]) + door_col * in_door[..., None] - # Paint chip around door edge - chip = smoothstep(0.05, 0.0, np.abs(d_door)) * smoothstep(0.45, 0.68, n2) - col = col * (1.0 - chip[..., None]) + np.array([0.32, 0.33, 0.32], dtype=np.float32) * chip[..., None] - col = col * (1.0 - groove_m[..., None]) + seam_col * groove_m[..., None] - col = col * (1.0 - latch_m[..., None]) + np.array([0.05, 0.05, 0.05], dtype=np.float32) * latch_m[..., None] - col = col * (1.0 - bar_m[..., None]) + bar_col * bar_m[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = outer_m - t["height"] = np.where(outer_m > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.30 + 0.55 * chip + 0.60 * bar_m, 0.0, 1.0) - t["rough"] = np.clip(0.56 - 0.24 * chip + 0.25 * groove_m, 0.2, 0.95) - - for bx, by in [(-0.50, -0.50), (0.0, -0.52), (0.50, -0.50), - (-0.50, 0.50), (0.0, 0.52), (0.50, 0.50), - (-0.52, 0.0)]: - add_hex_bolt(t, x, y, bx, by, pocket_r=0.068, head_r=0.044, base_h=0.88) - return t - - -def tile_02_fastener_strip(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(2) 4-bolt recessed fastener strip.""" - t = new_tile() - n1 = fbm(x, y, 12.0, 4, seed=301) - n2 = fbm(x, y, 40.0, 3, seed=302) - - d_strip = sd_box(x, y, 0.0, 0.0, 0.84, 0.28, r=0.08) - d_bevel = sd_box(x, y, 0.0, 0.0, 0.78, 0.22, r=0.05) - mask = smoothstep(0.025, -0.025, d_strip) - - # Raised beveled plate with seam around edge - h = np.where(d_bevel < 0.0, 0.93, 0.82) - h -= 0.45 * smoothstep(0.03, 0.0, np.abs(d_strip)) - - col = np.array([0.21, 0.22, 0.19], dtype=np.float32) * (0.86 + 0.28 * n1[..., None]) - edge_wear = smoothstep(0.05, 0.0, np.abs(d_bevel)) * smoothstep(0.35, 0.70, n2) - col = col * (1.0 - edge_wear[..., None]) + np.array([0.36, 0.37, 0.36], dtype=np.float32) * edge_wear[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = mask - t["height"] = np.where(mask > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.45 + 0.45 * edge_wear, 0.0, 1.0) - t["rough"] = np.clip(0.48 - 0.18 * edge_wear, 0.22, 0.9) - - for bx in (-0.57, -0.19, 0.19, 0.57): - add_hex_bolt(t, x, y, bx, 0.0, pocket_r=0.115, head_r=0.075, base_h=0.93) - return t - - -def tile_03_intake_grille(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(3) Slotted intake grille.""" - t = new_tile() - n1 = fbm(x, y, 10.0, 4, seed=401) - n2 = fbm(x, y, 32.0, 3, seed=402) - - d_outer = sd_box(x, y, 0.0, 0.0, 0.80, 0.76, r=0.07) - d_inner = sd_box(x, y, 0.0, 0.0, 0.66, 0.60, r=0.04) - outer_m = smoothstep(0.025, -0.025, d_outer) - inner_m = smoothstep(0.02, -0.02, d_inner) - - h = np.where(inner_m > 0.5, 0.88, 0.96) - h -= 0.38 * smoothstep(0.03, 0.0, np.abs(d_inner)) - - # 6 vertical intake slots (2 rows of 6 or 6 tall slots) - slot_void = np.zeros_like(x) - for sx in np.linspace(-0.48, 0.48, 6): - for sy in (-0.27, 0.27): - ds = sd_box(x, y, float(sx), float(sy), 0.046, 0.21, r=0.038) - sm = smoothstep(0.015, -0.015, ds) - # Chamfered rim then deep void - rim = smoothstep(0.035, 0.0, np.abs(ds - 0.012)) - h = np.where(sm > 0.5, 0.02, h - 0.18 * rim) - slot_void = np.maximum(slot_void, sm) - - plate_col = np.array([0.16, 0.17, 0.16], dtype=np.float32) * (0.85 + 0.3 * n1[..., None]) - rib_wear = smoothstep(0.45, 0.75, n2) * inner_m * (1.0 - slot_void) * 0.45 - col = plate_col * (1.0 - rib_wear[..., None]) + np.array([0.30, 0.31, 0.30], dtype=np.float32) * rib_wear[..., None] - col = col * (1.0 - slot_void[..., None]) + np.array([0.02, 0.02, 0.022], dtype=np.float32) * slot_void[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = outer_m - t["height"] = np.where(outer_m > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.55 + 0.35 * rib_wear - 0.5 * slot_void, 0.0, 1.0) - t["rough"] = np.clip(0.46 - 0.15 * rib_wear + 0.4 * slot_void, 0.2, 0.95) - - for rx, ry in [(-0.72, -0.68), (0.72, -0.68), (-0.72, 0.68), (0.72, 0.68)]: - add_domed_rivet(t, x, y, rx, ry, r=0.042, base_h=0.95) - return t - - -def tile_04_rivet_seam(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(4) Rivet panel seam.""" - t = new_tile() - n1 = fbm(x, y, 10.0, 4, seed=501) - n2 = fbm(x, y, 36.0, 3, seed=502) - - d_strip = sd_box(x, y, 0.0, 0.0, 0.84, 0.32, r=0.04) - mask = smoothstep(0.025, -0.025, d_strip) - # Central recessed panel seam groove along y=0, clipped inside strip - groove = smoothstep(0.042, 0.0, np.abs(y)) * mask - h = 0.90 - 0.72 * groove - - col = np.array([0.20, 0.21, 0.17], dtype=np.float32) * (0.85 + 0.3 * n1[..., None]) - chip = smoothstep(0.08, 0.0, np.abs(y)) * smoothstep(0.48, 0.70, n2) * mask - col = col * (1.0 - chip[..., None]) + np.array([0.34, 0.35, 0.34], dtype=np.float32) * chip[..., None] - col = col * (1.0 - groove[..., None]) + np.array([0.04, 0.04, 0.036], dtype=np.float32) * groove[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = mask - t["height"] = np.where(mask > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.32 + 0.55 * chip, 0.0, 1.0) - t["rough"] = np.clip(0.56 - 0.24 * chip + 0.30 * groove, 0.2, 0.95) - - for rx in np.linspace(-0.70, 0.70, 6): - add_domed_rivet(t, x, y, float(rx), -0.15, r=0.046, base_h=0.90) - add_domed_rivet(t, x, y, float(rx), 0.15, r=0.046, base_h=0.90) - return t - - -def tile_05_welded_patch(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(5) Welded armor repair patch.""" - t = new_tile() - n1 = fbm(x, y, 9.0, 4, seed=601) - n2 = fbm(x, y, 42.0, 3, seed=602) - - # Slightly rotated/chamfered patch shape - ca, sa = np.cos(0.08), np.sin(0.08) - xr = x * ca - y * sa - yr = x * sa + y * ca - d_patch = sd_box(xr, yr, 0.0, 0.0, 0.64, 0.50, r=0.05) - # Irregular outer weld apron - d_outer = d_patch - 0.12 - outer_m = smoothstep(0.025, -0.025, d_outer) - patch_m = smoothstep(0.018, -0.018, d_patch) - - # Weld bead ripple along perimeter d_patch ~= 0 - bead_band = smoothstep(0.085, 0.0, np.abs(d_patch - 0.01)) - # Ripple along perimeter coordinate - ripple = 0.5 + 0.5 * np.sin((xr + yr) * 48.0 + n2 * 6.0) - bead_h = 0.72 + 0.27 * bead_band * (0.65 + 0.35 * ripple) - - h = np.where(patch_m > 0.5, 0.92 - 0.03 * n1, 0.68) - h = np.maximum(h, bead_h * bead_band) - - patch_col = np.array([0.23, 0.24, 0.21], dtype=np.float32) * (0.85 + 0.30 * n1[..., None]) - weld_col = np.array([0.38, 0.36, 0.33], dtype=np.float32) * (0.80 + 0.35 * ripple[..., None]) - # Heat-affected straw/blue oxide halo outside weld - haz = smoothstep(0.14, 0.02, np.abs(d_patch - 0.03)) * (1.0 - bead_band) - haz_col = np.array([0.14, 0.12, 0.14], dtype=np.float32) - - col = haz_col * haz[..., None] + patch_col * patch_m[..., None] - col = col * (1.0 - bead_band[..., None]) + weld_col * bead_band[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = np.clip(np.maximum(patch_m, bead_band * 0.95 + haz * 0.75) * outer_m, 0.0, 1.0) - t["height"] = np.where(t["alpha"] > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.35 + 0.58 * bead_band, 0.0, 1.0) - t["rough"] = np.clip(0.55 - 0.28 * bead_band, 0.18, 0.92) - return t - - -def tile_06_lift_lug(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(6) Recessed lift-lug pocket.""" - t = new_tile() - n1 = fbm(x, y, 11.0, 4, seed=701) - n2 = fbm(x, y, 34.0, 3, seed=702) - - d_outer = sd_box(x, y, 0.0, 0.0, 0.74, 0.74, r=0.10) - d_pocket = sd_box(x, y, 0.0, 0.0, 0.52, 0.52, r=0.09) - outer_m = smoothstep(0.025, -0.025, d_outer) - pocket_m = smoothstep(0.02, -0.02, d_pocket) - - # Chamfered pit wall - wall_t = np.clip(-d_pocket / 0.14, 0.0, 1.0) - pit_h = 0.94 - 0.84 * smoothstep(0.0, 1.0, wall_t) - h = np.where(pocket_m > 0.5, pit_h, 0.96) - - # Cylindrical steel crossbar along X (spanning the recessed pocket) - d_bar_y = np.abs(y) / 0.135 - d_bar_x = np.abs(x) - 0.50 - bar_m = smoothstep(1.06, 0.94, d_bar_y) * smoothstep(0.02, -0.02, d_bar_x) - cyl_z = np.sqrt(np.maximum(1.0 - np.clip(d_bar_y, 0.0, 1.0) ** 2, 0.0)) - bar_h = 0.45 + 0.50 * cyl_z - h = np.where(bar_m > 0.5, np.maximum(h, bar_h), h) - - flange_col = np.array([0.18, 0.19, 0.16], dtype=np.float32) * (0.85 + 0.30 * n1[..., None]) - pit_col = np.array([0.055, 0.056, 0.055], dtype=np.float32) * (0.8 + 0.3 * n1[..., None]) - bar_col = np.array([0.36, 0.37, 0.36], dtype=np.float32) * (0.85 + 0.25 * n2[..., None]) - - col = flange_col * (1.0 - pocket_m[..., None]) + pit_col * pocket_m[..., None] - col = col * (1.0 - bar_m[..., None]) + bar_col * bar_m[..., None] - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = outer_m - t["height"] = np.where(outer_m > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.35 + 0.58 * bar_m, 0.0, 1.0) - t["rough"] = np.clip(0.55 - 0.28 * bar_m + 0.20 * pocket_m * (1.0 - bar_m), 0.18, 0.95) - return t - - -def tile_07_hazard_chevron(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(7) Weathered hazard caution chevron strip.""" - t = new_tile() - n1 = fbm(x, y, 8.0, 4, seed=801) - n2 = fbm(x, y, 34.0, 4, seed=802) - - d_strip = sd_box(x, y, 0.0, 0.0, 0.84, 0.26, r=0.025) - d_inner = sd_box(x, y, 0.0, 0.0, 0.78, 0.20, r=0.015) - strip_m = smoothstep(0.02, -0.02, d_strip) - inner_m = smoothstep(0.015, -0.015, d_inner) - - # Diagonal stripes - stripe_wave = np.sin((x * 2.2 + y * 2.2) * np.pi * 2.4) - is_yellow = smoothstep(-0.08, 0.08, stripe_wave) - - yellow = np.array([0.68, 0.44, 0.06], dtype=np.float32) - black = np.array([0.055, 0.055, 0.052], dtype=np.float32) - steel = np.array([0.28, 0.29, 0.28], dtype=np.float32) - - col = black * (1.0 - is_yellow[..., None]) + yellow * is_yellow[..., None] - # Thin dark border frame - col = black * (1.0 - inner_m[..., None]) + col * inner_m[..., None] - # Grime + paint chips - chip = smoothstep(0.62, 0.69, n2) - col *= (0.78 + 0.35 * n1[..., None]) - col = col * (1.0 - chip[..., None] * 0.75) + steel * (chip[..., None] * 0.75) - - # Subtle paint film thickness + border recess - h = 0.98 - 0.08 * (1.0 - inner_m) - 0.04 * chip - edge_wear = smoothstep(0.06, 0.0, np.abs(d_strip)) * smoothstep(0.55, 0.72, n2) - alpha = np.clip(strip_m * (1.0 - 0.80 * edge_wear), 0.0, 1.0) - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = np.clip(alpha, 0.0, 1.0) - t["height"] = np.where(strip_m > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.15 + 0.65 * chip, 0.0, 1.0) - t["rough"] = np.clip(0.60 - 0.25 * chip, 0.25, 0.92) - return t - - -# --------------------------------------------------------------------------- -# Row 2: Stencils & Emblems -# --------------------------------------------------------------------------- - -def _sd_digit_0(x: np.ndarray, y: np.ndarray, cx: float, cy: float) -> np.ndarray: - d_out = sd_box(x, y, cx, cy, 0.28, 0.46, r=0.14) - d_in = sd_box(x, y, cx, cy, 0.11, 0.28, r=0.05) - d = np.maximum(d_out, -d_in) - # Stencil bridge gaps top/bottom - gap = np.abs(x - cx) - 0.032 - d_bridge = np.maximum(gap, 0.25 - np.abs(y - cy)) - return np.maximum(d, -d_bridge) - - -def _sd_digit_3(x: np.ndarray, y: np.ndarray, cx: float, cy: float) -> np.ndarray: - d_out = sd_box(x, y, cx, cy, 0.28, 0.46, r=0.14) - d_in_top = sd_box(x, y, cx - 0.04, cy - 0.20, 0.16, 0.11, r=0.03) - d_in_bot = sd_box(x, y, cx - 0.04, cy + 0.20, 0.16, 0.11, r=0.03) - d_open_l = sd_box(x, y, cx - 0.24, cy, 0.16, 0.15, r=0.0) - d = np.maximum(d_out, -np.minimum(np.minimum(d_in_top, d_in_bot), d_open_l)) - # Stencil bridge on right spine - gap = np.maximum(np.abs(y - cy) - 0.028, (cx - 0.05) - x) - return np.maximum(d, -gap) - - -def _sd_digit_7(x: np.ndarray, y: np.ndarray, cx: float, cy: float) -> np.ndarray: - d_top = sd_box(x, y, cx, cy - 0.37, 0.28, 0.09, r=0.02) - # Slanted leg from (cx+0.20, cy-0.36) to (cx-0.08, cy+0.39) - d_leg = sd_segment(x, y, cx + 0.18, cy - 0.34, cx - 0.07, cy + 0.38) - 0.088 - d = np.minimum(d_top, d_leg) - # Stencil gap between top bar & leg - gap = sd_box(x, y, cx + 0.12, cy - 0.25, 0.20, 0.025, r=0.0) - return np.maximum(d, -gap) - - -def _finish_stencil( - x: np.ndarray, - y: np.ndarray, - mask: np.ndarray, - paint_col: np.ndarray, - seed: int, -) -> dict[str, np.ndarray]: - t = new_tile() - n1 = fbm(x, y, 10.0, 4, seed=seed) - n2 = fbm(x, y, 40.0, 4, seed=seed + 1) - - # Flaking & scratching across stencil paint - flake = smoothstep(0.58, 0.72, n2) - scratches = smoothstep(0.68, 0.74, fbm(x * 0.4 + y * 1.8, y * 0.4, 24.0, 3, seed=seed + 2)) - wear = np.clip(flake * 0.85 + scratches * 0.7, 0.0, 1.0) - - alpha = np.clip(mask * (1.0 - wear * 0.85), 0.0, 1.0) - col = paint_col * (0.82 + 0.25 * n1[..., None]) - h = 1.0 - 0.02 * mask * (1.0 - wear) - 0.04 * (1.0 - mask) - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = alpha - t["height"] = np.where(alpha > 0.02, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.full_like(x, 0.08) - t["rough"] = np.clip(0.68 + 0.15 * n1, 0.4, 0.9) - return t - - -def tile_08_stencil_03(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(8) Tactical stencil '03'.""" - d = np.minimum(_sd_digit_0(x, y, -0.36, 0.0), _sd_digit_3(x, y, 0.36, 0.0)) - mask = smoothstep(0.02, -0.02, d) - return _finish_stencil(x, y, mask, np.array([0.74, 0.71, 0.62], dtype=np.float32), seed=901) - - -def tile_09_stencil_07(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(9) Tactical stencil '07'.""" - d = np.minimum(_sd_digit_0(x, y, -0.36, 0.0), _sd_digit_7(x, y, 0.36, 0.0)) - mask = smoothstep(0.02, -0.02, d) - return _finish_stencil(x, y, mask, np.array([0.74, 0.71, 0.62], dtype=np.float32), seed=1001) - - -def tile_10_radiation_warning(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(10) Radiation / thermal warning stencil.""" - r = np.sqrt(x * x + y * y) - ang = np.arctan2(y, x) - - # Outer dashed warning ring - d_ring = np.abs(r - 0.66) - 0.065 - ring_seg = np.abs(((ang + np.pi) / (np.pi / 3.0)) % 1.0 - 0.5) - 0.34 - d_ring = np.maximum(d_ring, ring_seg * 0.5) - - # Central dot + 3 trefoil blades - d_core = r - 0.11 - blade_annulus = np.maximum(0.18 - r, r - 0.52) - blade_ang = np.cos(3.0 * (ang + np.pi / 6.0)) - d_blades = np.maximum(blade_annulus, (0.45 - blade_ang) * 0.28) - - d = np.minimum(np.minimum(d_ring, d_core), d_blades) - mask = smoothstep(0.02, -0.02, d) - return _finish_stencil(x, y, mask, np.array([0.78, 0.36, 0.09], dtype=np.float32), seed=1101) - - -def tile_11_faction_emblem(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(11) Faction chevron emblem.""" - ax = np.abs(x) - # Double military chevron + diamond center - d1 = np.abs((y + 0.14) + ax * 0.85) - 0.085 - d1 = np.maximum(d1, ax - 0.68) - d2 = np.abs((y - 0.22) + ax * 0.85) - 0.065 - d2 = np.maximum(d2, ax - 0.52) - d_diamond = (ax * 0.9 + np.abs(y + 0.42)) - 0.18 - d_chev = np.minimum(d1, d2) - - m_chev = smoothstep(0.02, -0.02, d_chev) - m_dia = smoothstep(0.02, -0.02, d_diamond) - mask = np.maximum(m_chev, m_dia) - - t = _finish_stencil(x, y, mask, np.array([0.76, 0.72, 0.60], dtype=np.float32), seed=1201) - # Signal orange center diamond - orange = np.array([0.74, 0.27, 0.10], dtype=np.float32) - t["rgb"] = t["rgb"] * (1.0 - m_dia[..., None]) + orange * m_dia[..., None] - return t - - -# --------------------------------------------------------------------------- -# Row 3: Dynamic combat hits (12..15) -# --------------------------------------------------------------------------- - -def tile_12_ap_penetration(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(12) Deep AP autocannon penetration hole (rolled metallic rim + black bore + hot rim).""" - t = new_tile() - n1 = fbm(x, y, 7.0, 4, seed=1301) - n2 = fbm(x, y, 24.0, 4, seed=1302) - ang = np.arctan2(y, x) - # Jagged petal modulation around bore - jagged = 0.065 * np.sin(ang * 7.0 + 1.1) + 0.045 * np.cos(ang * 13.0 - 0.4) + 0.09 * (n2 - 0.5) - r = np.sqrt(x * x + y * y) + jagged - - bore_r = 0.28 - rim_r = 0.44 - scorch_r = 0.82 - - bore_m = smoothstep(bore_r + 0.03, bore_r - 0.02, r) - rim_m = smoothstep(0.10, 0.0, np.abs(r - (bore_r + 0.05))) - scorch_m = smoothstep(scorch_r, bore_r * 0.8, r) * (0.55 + 0.45 * n1) - - # Height: flush 1.0 outside -> raised/rolled rim at 0.96 -> sharp drop into 0.0 pitch-black bore - hole_wall = smoothstep(bore_r - 0.04, rim_r, r) - h = np.clip(hole_wall * 0.96 + 0.04 * smoothstep(rim_r + 0.12, rim_r, r), 0.0, 1.0) - h = np.where(r > rim_r + 0.12, 1.0, h) - - soot_col = np.array([0.04, 0.035, 0.032], dtype=np.float32) - steel_col = np.array([0.52, 0.54, 0.56], dtype=np.float32) * (0.75 + 0.45 * n2[..., None]) - bore_col = np.array([0.012, 0.010, 0.010], dtype=np.float32) - - col = soot_col * (1.0 - rim_m[..., None]) + steel_col * rim_m[..., None] - col = col * (1.0 - bore_m[..., None]) + bore_col * bore_m[..., None] - - # Alpha: opaque in bore + metal rim, softly feathered soot halo - alpha = np.clip(np.maximum(np.maximum(bore_m, rim_m), scorch_m * 0.88), 0.0, 1.0) - # Keep zero bleed at outer margin - border = smoothstep(0.92, 0.78, np.maximum(np.abs(x), np.abs(y))) - alpha *= border - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = alpha - t["height"] = np.where(alpha > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(rim_m * 0.94 + bore_m * 0.10, 0.0, 1.0) - t["rough"] = np.clip(0.92 - rim_m * 0.66, 0.22, 0.96) - return t - - -def tile_13_shrapnel_gouge(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(13) Diagonal shrapnel/flak armor gouge.""" - t = new_tile() - n1 = fbm(x, y, 8.0, 4, seed=1401) - n2 = fbm(x, y, 28.0, 4, seed=1402) - - # Rotate -35 degrees for diagonal ricochet trench - ca, sa = np.cos(-0.62), np.sin(-0.62) - u = x * ca - y * sa - v = x * sa + y * ca + 0.04 * (n2 - 0.5) - - # Tapered V-trough from u=-0.62 to u=+0.62 - d_trench = sd_segment(u, v, -0.58, 0.0, 0.58, 0.0) - width = 0.13 + 0.05 * np.clip((u + 0.58) / 1.16, 0.0, 1.0) - trough_t = np.clip(1.0 - d_trench / width, 0.0, 1.0) - burr_m = smoothstep(0.06, 0.0, np.abs(d_trench - width)) - - h = 1.0 - 0.88 * smoothstep(0.0, 1.0, trough_t) - # Upturned burr ridge at edge - h = np.clip(h + 0.04 * burr_m, 0.0, 1.0) - - soot = np.array([0.045, 0.04, 0.036], dtype=np.float32) - torn_steel = np.array([0.50, 0.52, 0.54], dtype=np.float32) * (0.75 + 0.45 * n2[..., None]) - furrow_dark = np.array([0.09, 0.09, 0.095], dtype=np.float32) - - trench_m = smoothstep(0.05, 0.25, trough_t) - col = soot * (1.0 - trench_m[..., None]) + torn_steel * trench_m[..., None] - col = col * (1.0 - smoothstep(0.60, 0.95, trough_t)[..., None] * 0.7) + furrow_dark * (smoothstep(0.60, 0.95, trough_t)[..., None] * 0.7) - col = col * (1.0 - burr_m[..., None] * 0.65) + torn_steel * (burr_m[..., None] * 0.65) - - scorch_halo = smoothstep(0.42, 0.08, d_trench) * (0.5 + 0.5 * n1) - alpha = np.clip(np.maximum(trench_m, np.maximum(burr_m, scorch_halo * 0.85)), 0.0, 1.0) - border = smoothstep(0.92, 0.78, np.maximum(np.abs(x), np.abs(y))) - alpha *= border - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = alpha - t["height"] = np.where(alpha > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(np.maximum(trench_m, burr_m) * 0.90, 0.0, 1.0) - t["rough"] = np.clip(0.90 - np.maximum(trench_m, burr_m) * 0.62, 0.24, 0.95) - return t - - -def tile_14_plasma_crater(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(14) Molten plasma burn crater.""" - t = new_tile() - n1 = fbm(x, y, 7.5, 4, seed=1501) - n2 = fbm(x, y, 22.0, 4, seed=1502) - r = np.sqrt(x * x + y * y) + 0.08 * (n2 - 0.5) - - crater_r = 0.44 - bowl_m = smoothstep(crater_r + 0.04, crater_r - 0.08, r) - rim_m = smoothstep(0.08, 0.0, np.abs(r - crater_r)) - scorch_m = smoothstep(0.84, 0.36, r) * (0.5 + 0.5 * n1) - - # Slag ripples in bowl + crisp crater rim - ripples = 0.5 + 0.5 * np.sin(r * 34.0 + n2 * 4.0) - bowl_depth = smoothstep(crater_r, 0.04, r) - h = 1.0 - 0.88 * bowl_depth + 0.08 * ripples * bowl_m + 0.06 * rim_m - - carbon = np.array([0.035, 0.030, 0.028], dtype=np.float32) - slag = np.array([0.22, 0.16, 0.14], dtype=np.float32) * (0.8 + 0.4 * ripples[..., None]) - molten_lip = np.array([0.46, 0.38, 0.32], dtype=np.float32) - - col = carbon * (1.0 - bowl_m[..., None]) + slag * bowl_m[..., None] - col = col * (1.0 - rim_m[..., None] * 0.7) + molten_lip * (rim_m[..., None] * 0.7) - - alpha = np.clip(np.maximum(bowl_m, np.maximum(rim_m, scorch_m * 0.90)), 0.0, 1.0) - border = smoothstep(0.92, 0.78, np.maximum(np.abs(x), np.abs(y))) - alpha *= border - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = alpha - t["height"] = np.where(alpha > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(bowl_m * 0.78 + rim_m * 0.85, 0.0, 1.0) - t["rough"] = np.clip(0.92 - bowl_m * 0.50 - rim_m * 0.45, 0.28, 0.96) - return t - - -def tile_15_blast_scorch(x: np.ndarray, y: np.ndarray) -> dict[str, np.ndarray]: - """(15) Radial blast scorch mark.""" - t = new_tile() - n1 = fbm(x, y, 6.0, 4, seed=1601) - n2 = fbm(x, y, 20.0, 4, seed=1602) - ang = np.arctan2(y, x) - r = np.sqrt(x * x + y * y) - - # Radial blast rays - rays = 0.55 + 0.45 * value_noise(np.cos(ang) * 3.0, np.sin(ang) * 3.0, 3.5, seed=1603) - rays *= (0.7 + 0.3 * np.sin(ang * 11.0 + n2 * 3.0)) - r_eff = r / np.maximum(rays, 0.35) - - scorch = smoothstep(0.95, 0.08, r_eff) * (0.65 + 0.35 * n1) - pock = smoothstep(0.24, 0.05, r + 0.05 * (n2 - 0.5)) - h = 1.0 - 0.45 * pock - 0.04 * scorch - - soot = np.array([0.032, 0.028, 0.025], dtype=np.float32) - ash = np.array([0.11, 0.095, 0.082], dtype=np.float32) - col = soot * (1.0 - pock[..., None] * 0.35) + ash * (pock[..., None] * 0.35) - - border = smoothstep(0.93, 0.78, np.maximum(np.abs(x), np.abs(y))) - alpha = np.clip(scorch * 0.92 * border, 0.0, 1.0) - - t["rgb"] = np.clip(col, 0.0, 1.0) - t["alpha"] = alpha - t["height"] = np.where(alpha > 0.01, np.clip(h, 0.0, 1.0), 1.0) - t["metal"] = np.clip(0.05 + 0.25 * pock, 0.0, 1.0) - t["rough"] = np.clip(0.94 - 0.20 * pock, 0.65, 0.98) - return t - - -# --------------------------------------------------------------------------- -# Normal map, AO, color dilation, and atlas assembly -# --------------------------------------------------------------------------- - -def compute_normal_map(height: np.ndarray, strength: float = 5.5) -> np.ndarray: - """Sobel tangent-space normal map matching OpenGL/Godot (+X right, +Y down, +Z out).""" - h = np.pad(height, 1, mode="edge") - # Sobel X (+right) and Y (+down) - dx = ((h[:-2, 2:] + 2.0 * h[1:-1, 2:] + h[2:, 2:]) - - (h[:-2, :-2] + 2.0 * h[1:-1, :-2] + h[2:, :-2])) * 0.125 - dy = ((h[2:, :-2] + 2.0 * h[2:, 1:-1] + h[2:, 2:]) - - (h[:-2, :-2] + 2.0 * h[:-2, 1:-1] + h[:-2, 2:])) * 0.125 - nx = -dx * strength - ny = -dy * strength - nz = np.ones_like(nx) - inv_len = 1.0 / np.sqrt(nx * nx + ny * ny + nz * nz + 1e-12) - return np.stack([nx * inv_len * 0.5 + 0.5, - ny * inv_len * 0.5 + 0.5, - nz * inv_len * 0.5 + 0.5], axis=-1) - - -def compute_height_ao(height: np.ndarray) -> np.ndarray: - """Fast multi-radius horizon/cavity AO from the heightfield.""" - ao = np.ones_like(height, dtype=np.float32) - dirs = [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (-1, 1), (1, -1), (-1, -1)] - radii = (2, 5, 10) - occ_sum = np.zeros_like(height, dtype=np.float32) - count = 0 - h_pad = np.pad(height, 12, mode="edge") - H, W = height.shape - for r in radii: - for dx, dy in dirs: - ox = 12 + dx * r - oy = 12 + dy * r - sample_h = h_pad[oy : oy + H, ox : ox + W] - diff = np.maximum(sample_h - height, 0.0) - occ_sum += np.clip(diff * 2.8, 0.0, 1.0) - count += 1 - cavity = occ_sum / float(count) - # Also darken deep recesses naturally - ao = np.clip((1.0 - cavity * 1.35) * (0.30 + 0.70 * height), 0.08, 1.0) - return ao - - -def dilate_albedo(rgb: np.ndarray, alpha: np.ndarray, steps: int = 8) -> np.ndarray: - """Propagate opaque RGB into transparent pixels to eliminate bilinear dark fringes.""" - out = rgb.copy() - mask = alpha > 0.04 - for _ in range(steps): - if np.all(mask): - break - acc = np.zeros_like(out) - wsum = np.zeros(mask.shape, dtype=np.float32) - p_rgb = np.pad(out, ((1, 1), (1, 1), (0, 0)), mode="edge") - p_m = np.pad(mask.astype(np.float32), ((1, 1), (1, 1)), mode="edge") - H, W = mask.shape - for dy in (-1, 0, 1): - for dx in (-1, 0, 1): - if dx == 0 and dy == 0: - continue - m_nb = p_m[1 + dy : 1 + dy + H, 1 + dx : 1 + dx + W] - acc += p_rgb[1 + dy : 1 + dy + H, 1 + dx : 1 + dx + W] * m_nb[..., None] - wsum += m_nb - fill = (~mask) & (wsum > 0.0) - out[fill] = acc[fill] / wsum[fill, None] - mask = mask | fill - return out - - -def main() -> int: - OUT_DIR.mkdir(parents=True, exist_ok=True) - x, y = tile_coords() - - builders = [ - tile_00_louvered_vent, - tile_01_bolted_hatch, - tile_02_fastener_strip, - tile_03_intake_grille, - tile_04_rivet_seam, - tile_05_welded_patch, - tile_06_lift_lug, - tile_07_hazard_chevron, - tile_08_stencil_03, - tile_09_stencil_07, - tile_10_radiation_warning, - tile_11_faction_emblem, - tile_12_ap_penetration, - tile_13_shrapnel_gouge, - tile_14_plasma_crater, - tile_15_blast_scorch, - ] - - atlas_albedo = np.zeros((ATLAS_SIZE, ATLAS_SIZE, 4), dtype=np.uint8) - atlas_normal = np.zeros((ATLAS_SIZE, ATLAS_SIZE, 3), dtype=np.uint8) - atlas_ormh = np.zeros((ATLAS_SIZE, ATLAS_SIZE, 4), dtype=np.uint8) - - for idx, fn in enumerate(builders): - row = idx // GRID - col = idx % GRID - t = fn(x, y) - - rgb_dilated = dilate_albedo(t["rgb"], t["alpha"], steps=12) - nrm = compute_normal_map(t["height"], strength=6.0) - ao = compute_height_ao(t["height"]) - - y0, y1 = row * TILE_SIZE, (row + 1) * TILE_SIZE - x0, x1 = col * TILE_SIZE, (col + 1) * TILE_SIZE - - albedo_rgba = np.dstack([rgb_dilated, t["alpha"]]) - ormh_rgba = np.dstack([ao, t["rough"], t["metal"], t["height"]]) - - atlas_albedo[y0:y1, x0:x1] = np.clip(np.round(albedo_rgba * 255.0), 0, 255).astype(np.uint8) - atlas_normal[y0:y1, x0:x1] = np.clip(np.round(nrm * 255.0), 0, 255).astype(np.uint8) - atlas_ormh[y0:y1, x0:x1] = np.clip(np.round(ormh_rgba * 255.0), 0, 255).astype(np.uint8) - - Image.fromarray(atlas_albedo, mode="RGBA").save(OUT_DIR / "decal_atlas_albedo.png") - Image.fromarray(atlas_normal, mode="RGB").save(OUT_DIR / "decal_atlas_normal.png") - Image.fromarray(atlas_ormh, mode="RGBA").save(OUT_DIR / "decal_atlas_ormh.png") - - print(f"Wrote 1024x1024 decal atlas textures to {OUT_DIR}") - return 0 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/tools/decals/previews/visual_substrate_preview.png b/tools/decals/previews/visual_substrate_preview.png deleted file mode 100644 index 5ded766..0000000 Binary files a/tools/decals/previews/visual_substrate_preview.png and /dev/null differ diff --git a/tools/maps/sion/bake_sion.py b/tools/maps/sion/bake_sion.py deleted file mode 100644 index ab735fa..0000000 --- a/tools/maps/sion/bake_sion.py +++ /dev/null @@ -1,2108 +0,0 @@ -#!/usr/bin/env python3 -""" -Offline Sion, Switzerland real-world map baker for RustToDust. -Fetches swissALTI3D DEM + swissBUILDINGS3D 3.0 LOD2 from Swisstopo STAC -(plus Swisstopo TLM WMS surface masks), caches raw downloads in $TEMP/sion-cache, -and bakes a 3072m x 3072m (6x6 grid of 512m tiles) playable arena: - - assets/maps/sion/heightmap.f32 (1025x1025 float32, 3.0m grid, 3072m x 3072m) - - assets/maps/sion/terrain_surface.png (2048x2048 RGB surface albedo) - - assets/maps/sion/metadata.json - - assets/maps/sion/buildings_manifest.json - - assets/maps/sion/tiles/lod2__.glb (semantic LOD2 per non-empty tile) - - assets/maps/sion/tiles/lod1__.glb (procedural LOD1 per non-empty tile) - - assets/maps/sion/tiles/col__.bin (packed RCOL v1 collision trimesh) -""" - -from __future__ import annotations - -import argparse -import ctypes -import glob -import hashlib -import json -import math -import os -import re -import struct -import urllib.parse -import urllib.request -import zipfile -from collections import Counter, defaultdict -from pathlib import Path - -import imagecodecs -import numpy as np -import pygltflib -import pyogrio -import pyproj -import shapely -from scipy.ndimage import ( - binary_closing, - binary_dilation, - binary_opening, - gaussian_filter, - map_coordinates, - maximum_filter1d, - zoom, -) -from shapely.geometry import Polygon, box -from shapely.ops import unary_union -import tifffile - -# --------------------------------------------------------------------------- -# Arena & Swisstopo constants -# --------------------------------------------------------------------------- -ARENA_SIZE_M = 3072.0 -HALF_EXTENT_M = 1536.0 -GRID_RES = 1025 -CELL_SIZE_M = ARENA_SIZE_M / (GRID_RES - 1) # 3.0m exact -TILE_GRID = 6 -TILE_SIZE_M = ARENA_SIZE_M / TILE_GRID # 512.0m exact - -SURFACE_TEX_RES = 2048 - -# Centered around Valere & Tourbillon twin citadels to frame: -# - Valere & Tourbillon fortress hills -# - Full Sion Old Town -# - Railway & industrial yards (south-west / central) -# - Rhone river corridor + highway bridges (south/east-to-west) -# - Terraced alpine hillsides & vineyards (north/east/south) -DEFAULT_CENTER_E = 2594150.0 -DEFAULT_CENTER_N = 1120050.0 - -STAC_ALTI_URL = "https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.swissalti3d/items" -STAC_BLDG_URL = "https://data.geo.admin.ch/api/stac/v0.9/collections/ch.swisstopo.swissbuildings3d_3_0/items" -WMS_BASE_URL = "https://wms.geo.admin.ch/" - -SKIRT_DEPTH_M = 4.0 -MAX_LOD1_TRIS = 275_000 -MAX_TILES_GLB_BYTES = 28_000_000 -MAX_SURFACE_PNG_BYTES = 3_000_000 -MAX_TOTAL_ASSETS_BYTES = 40_000_000 - - -# --------------------------------------------------------------------------- -# GDAL / OGR ctypes wrapper (uses pyogrio's bundled GDAL 3.12+ DLL) -# --------------------------------------------------------------------------- -class OgrReader: - def __init__(self) -> None: - libs_dir = os.path.abspath(os.path.join(os.path.dirname(pyogrio.__file__), "..", "pyogrio.libs")) - os.add_dll_directory(libs_dir) - dlls = glob.glob(os.path.join(libs_dir, "gdal-*.dll")) - if not dlls: - raise RuntimeError(f"Could not locate gdal-*.dll in {libs_dir}") - g = ctypes.CDLL(dlls[0]) - g.GDALAllRegister() - g.GDALOpenEx.argtypes = [ctypes.c_char_p, ctypes.c_uint, ctypes.c_void_p, ctypes.c_void_p, ctypes.c_void_p] - g.GDALOpenEx.restype = ctypes.c_void_p - g.GDALClose.argtypes = [ctypes.c_void_p] - g.GDALDatasetGetLayerByName.argtypes = [ctypes.c_void_p, ctypes.c_char_p] - g.GDALDatasetGetLayerByName.restype = ctypes.c_void_p - g.OGR_L_SetSpatialFilterRect.argtypes = [ - ctypes.c_void_p, ctypes.c_double, ctypes.c_double, ctypes.c_double, ctypes.c_double - ] - g.OGR_L_GetNextFeature.argtypes = [ctypes.c_void_p] - g.OGR_L_GetNextFeature.restype = ctypes.c_void_p - g.OGR_F_Destroy.argtypes = [ctypes.c_void_p] - g.OGR_F_GetFieldIndex.argtypes = [ctypes.c_void_p, ctypes.c_char_p] - g.OGR_F_GetFieldIndex.restype = ctypes.c_int - g.OGR_F_GetFieldAsString.argtypes = [ctypes.c_void_p, ctypes.c_int] - g.OGR_F_GetFieldAsString.restype = ctypes.c_char_p - g.OGR_F_GetFieldAsDouble.argtypes = [ctypes.c_void_p, ctypes.c_int] - g.OGR_F_GetFieldAsDouble.restype = ctypes.c_double - g.OGR_F_GetGeometryRef.argtypes = [ctypes.c_void_p] - g.OGR_F_GetGeometryRef.restype = ctypes.c_void_p - g.OGR_G_WkbSize.argtypes = [ctypes.c_void_p] - g.OGR_G_WkbSize.restype = ctypes.c_int - g.OGR_G_ExportToIsoWkb.argtypes = [ctypes.c_void_p, ctypes.c_int, ctypes.c_char_p] - g.OGR_G_ExportToIsoWkb.restype = ctypes.c_int - self.g = g - - def read_layer( - self, - gdb_path: str, - layer_name: str, - bbox: tuple[float, float, float, float], - fields: list[str], - ) -> list[tuple[dict[str, str | float], list[np.ndarray]]]: - ds = self.g.GDALOpenEx(gdb_path.encode("utf-8"), 0x04, None, None, None) - if not ds: - raise RuntimeError(f"Failed to open GDB: {gdb_path}") - try: - lyr = self.g.GDALDatasetGetLayerByName(ds, layer_name.encode("utf-8")) - if not lyr: - raise RuntimeError(f"Layer {layer_name} not found in {gdb_path}") - self.g.OGR_L_SetSpatialFilterRect(lyr, *bbox) - out = [] - field_indices: dict[str, int] | None = None - while True: - feat = self.g.OGR_L_GetNextFeature(lyr) - if not feat: - break - try: - if field_indices is None: - field_indices = { - fn: self.g.OGR_F_GetFieldIndex(feat, fn.encode("utf-8")) for fn in fields - } - attrs: dict[str, str | float] = {} - for fn, idx in field_indices.items(): - if idx < 0: - attrs[fn] = "" - elif fn in ("DACH_MIN", "DACH_MAX", "GELAENDEPUNKT", "GESAMTHOEHE"): - attrs[fn] = float(self.g.OGR_F_GetFieldAsDouble(feat, idx)) - else: - raw = self.g.OGR_F_GetFieldAsString(feat, idx) - attrs[fn] = raw.decode("utf-8", "replace") if raw else "" - geom = self.g.OGR_F_GetGeometryRef(feat) - if not geom: - continue - sz = self.g.OGR_G_WkbSize(geom) - if sz <= 0: - continue - buf = ctypes.create_string_buffer(sz) - self.g.OGR_G_ExportToIsoWkb(geom, 1, buf) - faces = parse_iso_wkb_outer_rings(buf.raw) - if faces: - out.append((attrs, faces)) - finally: - self.g.OGR_F_Destroy(feat) - return out - finally: - self.g.GDALClose(ds) - - -def parse_iso_wkb_outer_rings(wkb: bytes) -> list[np.ndarray]: - """Parse ISO WKB (TINZ / PolyhedralSurfaceZ / MultiPolygonZ / PolygonZ / TriangleZ) -> outer ring arrays (N,3).""" - faces: list[np.ndarray] = [] - mv = memoryview(wkb) - - def read_geom(p: int) -> int: - bo = wkb[p] - endian = "<" if bo == 1 else ">" - (wt,) = struct.unpack_from(endian + "I", wkb, p + 1) - p += 5 - has_z = (wt // 1000) in (1, 3) or (wt & 0x80000000) != 0 - base = wt % 1000 if wt < 4000 else (wt & 0xFF) - dims = 3 if has_z else 2 - if base in (3, 17): # Polygon or Triangle - (nrings,) = struct.unpack_from(endian + "I", wkb, p) - p += 4 - for ri in range(nrings): - (npts,) = struct.unpack_from(endian + "I", wkb, p) - p += 4 - pts = np.frombuffer(mv[p : p + npts * dims * 8], dtype=endian + "f8").reshape(npts, dims) - p += npts * dims * 8 - if ri == 0 and npts >= 3: - if dims == 2: - pts = np.column_stack([pts, np.zeros(npts, dtype=np.float64)]) - # Strip closing duplicate point if present - if np.allclose(pts[0], pts[-1], atol=1e-7) and len(pts) > 3: - pts = pts[:-1] - if len(pts) >= 3: - faces.append(pts.copy()) - elif base in (6, 7, 15, 16): # MultiPolygon, GeometryCollection, PolyhedralSurface, TIN - (ngeoms,) = struct.unpack_from(endian + "I", wkb, p) - p += 4 - for _ in range(ngeoms): - p = read_geom(p) - else: - raise ValueError(f"Unsupported ISO WKB geometry type: {wt}") - return p - - read_geom(0) - return faces - - -# --------------------------------------------------------------------------- -# STAC query & download cache -# --------------------------------------------------------------------------- -def download_cached(url: str, dest: Path) -> Path: - dest.parent.mkdir(parents=True, exist_ok=True) - if dest.exists() and dest.stat().st_size > 0: - return dest - tmp = dest.with_suffix(dest.suffix + ".part") - print(f" [STAC download] {url} -> {dest.name}") - urllib.request.urlretrieve(url, str(tmp)) - tmp.replace(dest) - return dest - - -def fetch_stac_items(base_url: str, wgs84_bbox: tuple[float, float, float, float]) -> list[dict]: - bbox_str = ",".join(f"{v:.6f}" for v in wgs84_bbox) - items: list[dict] = [] - url: str | None = f"{base_url}?bbox={bbox_str}&limit=100" - while url: - with urllib.request.urlopen(url, timeout=30) as resp: - data = json.loads(resp.read().decode("utf-8")) - items.extend(data.get("features", [])) - url = None - for link in data.get("links", []): - if link.get("rel") == "next": - url = link.get("href") - break - return items - - -def acquire_swisstopo_data( - cache_dir: Path, e0: float, n0: float, e1: float, n1: float -) -> tuple[dict[tuple[int, int], Path], list[Path], list[str]]: - tr = pyproj.Transformer.from_crs("EPSG:2056", "EPSG:4326", always_xy=True) - lon0, lat0 = tr.transform(e0 - 20.0, n0 - 20.0) - lon1, lat1 = tr.transform(e1 + 20.0, n1 + 20.0) - wgs_bbox = (lon0, lat0, lon1, lat1) - - # 1. swissALTI3D: pick latest year per 1km tile intersecting [e0, e1] x [n0, n1] - alti_items = fetch_stac_items(STAC_ALTI_URL, wgs_bbox) - req_ekm = range(int(math.floor(e0 / 1000.0)), int(math.floor((e1 - 1e-6) / 1000.0)) + 1) - req_nkm = range(int(math.floor(n0 / 1000.0)), int(math.floor((n1 - 1e-6) / 1000.0)) + 1) - needed_tiles = {(ek, nk) for ek in req_ekm for nk in req_nkm} - - best_alti: dict[tuple[int, int], tuple[int, str, str, str]] = {} - for item in alti_items: - m = re.match(r"swissalti3d_(\d{4})_(\d{4})-(\d{4})$", item["id"]) - if not m: - continue - yr, ek, nk = int(m.group(1)), int(m.group(2)), int(m.group(3)) - if (ek, nk) not in needed_tiles: - continue - for asset_name, asset in item.get("assets", {}).items(): - if "_2_2056_5728.tif" in asset_name: - prev = best_alti.get((ek, nk)) - if prev is None or yr > prev[0]: - best_alti[(ek, nk)] = (yr, item["id"], asset_name, asset["href"]) - - if len(best_alti) != len(needed_tiles): - missing = needed_tiles - set(best_alti.keys()) - raise RuntimeError(f"Missing swissALTI3D tiles for bbox: {missing}") - - tif_paths: dict[tuple[int, int], Path] = {} - stac_ids: list[str] = [] - for key, (_, item_id, fname, href) in sorted(best_alti.items()): - tif_paths[key] = download_cached(href, cache_dir / fname) - stac_ids.append(item_id) - - # 2. swissBUILDINGS3D 3.0: pick latest per-sheet tiled GDB (skip multi-GB whole-CH monoliths) - bldg_items = fetch_stac_items(STAC_BLDG_URL, wgs_bbox) - best_sheets: dict[str, tuple[int, str, str, str]] = {} - for item in bldg_items: - m = re.match(r"swissbuildings3d_3_0_(\d{4})_(\d{4}-\d{2})$", item["id"]) - if not m: - continue - yr, sheet = int(m.group(1)), m.group(2) - for asset_name, asset in item.get("assets", {}).items(): - if asset_name.endswith(".gdb.zip"): - prev = best_sheets.get(sheet) - if prev is None or yr > prev[0]: - best_sheets[sheet] = (yr, item["id"], asset_name, asset["href"]) - - if not best_sheets: - raise RuntimeError("No per-sheet swissBUILDINGS3D 3.0 GDB assets returned from STAC") - - gdb_paths: list[Path] = [] - for sheet, (_, item_id, fname, href) in sorted(best_sheets.items()): - zip_path = download_cached(href, cache_dir / fname) - stac_ids.append(item_id) - with zipfile.ZipFile(zip_path) as zf: - gdb_roots = {name.split("/")[0] for name in zf.namelist() if ".gdb/" in name} - for root in sorted(gdb_roots): - gdb_dir = cache_dir / root - if not gdb_dir.exists(): - print(f" [Extract GDB] {fname} -> {root}") - zf.extractall(cache_dir) - gdb_paths.append(gdb_dir) - - return tif_paths, gdb_paths, stac_ids - - -# --------------------------------------------------------------------------- -# DEM stitching, heightmap resampling & surface albedo synthesis -# --------------------------------------------------------------------------- -def sample_mosaic_grid( - mosaic: np.ndarray, e_origin: float, n_top: float, center_e: float, center_n: float, res: int -) -> np.ndarray: - pixel_m = 2.0 - step_m = ARENA_SIZE_M / (res - 1) - xs = -HALF_EXTENT_M + np.arange(res, dtype=np.float64) * step_m - zs = -HALF_EXTENT_M + np.arange(res, dtype=np.float64) * step_m - e_grid = center_e + xs - n_grid = center_n - zs - col_1d = (e_grid - e_origin) / pixel_m - 0.5 - row_1d = (n_top - n_grid) / pixel_m - 0.5 - row_coords, col_coords = np.meshgrid(row_1d, col_1d, indexing="ij") - return map_coordinates(mosaic, [row_coords, col_coords], order=1, mode="nearest").astype(np.float32) - - -def build_heightmap( - tif_paths: dict[tuple[int, int], Path], center_e: float, center_n: float -) -> tuple[np.ndarray, np.ndarray, float, float, float]: - ekms = sorted({k[0] for k in tif_paths}) - nkms = sorted({k[1] for k in tif_paths}, reverse=True) # north-to-south rows - tile_px = 500 - mosaic = np.zeros((len(nkms) * tile_px, len(ekms) * tile_px), dtype=np.float32) - - for ni, nk in enumerate(nkms): - for ei, ek in enumerate(ekms): - arr = tifffile.imread(str(tif_paths[(ek, nk)])) - if arr.shape != (tile_px, tile_px): - raise RuntimeError(f"Unexpected DEM tile shape {arr.shape} in {tif_paths[(ek, nk)]}") - mosaic[ni * tile_px : (ni + 1) * tile_px, ei * tile_px : (ei + 1) * tile_px] = arr - - e_origin = ekms[0] * 1000.0 - n_top = (nkms[0] + 1) * 1000.0 - - # Grid coordinates in RustToDust: - # row iz (0..1024): Z = -1536 + iz * 3.0 (North -> South), N = center_n - Z - # col ix (0..1024): X = -1536 + ix * 3.0 (West -> East), E = center_e + X - hm_asl = sample_mosaic_grid(mosaic, e_origin, n_top, center_e, center_n, GRID_RES) - surf_dem_asl = sample_mosaic_grid(mosaic, e_origin, n_top, center_e, center_n, SURFACE_TEX_RES) - - # Anchor valley floor near y = 0m using 5th percentile - base_elev = round(float(np.percentile(hm_asl, 5.0)), 2) - hm_rel = (hm_asl - base_elev).astype(np.float32) - return hm_rel, surf_dem_asl, base_elev, float(hm_rel.min()), float(hm_rel.max()) - - -def acquire_wms_masks( - cache_dir: Path, e0: float, n0: float, e1: float, n1: float, res: int = SURFACE_TEX_RES -) -> dict[str, np.ndarray]: - """Fetch and cache Swisstopo label-free TLM WMS layers for water, roads, rail, and forest.""" - bbox_key = f"{int(round(e0))}_{int(round(n0))}_{int(round(e1))}_{int(round(n1))}_{res}" - specs = { - "tlm_color": ("ch.swisstopo.swisstlm3d-karte-farbe", "FALSE"), - "roads": ("ch.swisstopo.swisstlm3d-strassen", "TRUE"), - "rail": ("ch.swisstopo.swisstlm3d-eisenbahnnetz", "TRUE"), - "forest": ("ch.swisstopo.swisstlm3d-wald", "TRUE"), - } - out: dict[str, np.ndarray] = {} - for key, (layer, transparent) in specs.items(): - dest = cache_dir / f"wms_{key}_{bbox_key}.png" - if not (dest.exists() and dest.stat().st_size > 0): - url = ( - f"{WMS_BASE_URL}?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap" - f"&LAYERS={layer}&STYLES=default&CRS=EPSG:2056" - f"&BBOX={e0:.1f},{n0:.1f},{e1:.1f},{n1:.1f}" - f"&WIDTH={res}&HEIGHT={res}&FORMAT=image/png&TRANSPARENT={transparent}" - ) - print(f" [WMS fetch] {layer} -> {dest.name}") - req = urllib.request.Request(url, headers={"User-Agent": "RustToDust-SionBaker/1.0"}) - tmp = dest.with_suffix(".png.part") - with urllib.request.urlopen(req, timeout=45) as resp: - tmp.write_bytes(resp.read()) - tmp.replace(dest) - out[key] = imagecodecs.png_decode(dest.read_bytes()) - return out - - -def rasterize_triangles_xz(tris_list: list[np.ndarray], res: int) -> np.ndarray: - """Rasterize 3D (N, 3, 3) triangles projected to (X, Z) onto a (res, res) boolean mask.""" - mask = np.zeros((res, res), dtype=bool) - if not tris_list: - return mask - tris = np.asarray(tris_list, dtype=np.float64) - scale = (res - 1) / ARENA_SIZE_M - px = (tris[:, :, 0] + HALF_EXTENT_M) * scale - pz = (tris[:, :, 2] + HALF_EXTENT_M) * scale - - for i in range(len(tris)): - x0, x1, x2 = px[i, 0], px[i, 1], px[i, 2] - y0, y1, y2 = pz[i, 0], pz[i, 1], pz[i, 2] - area = (x1 - x0) * (y2 - y0) - (x2 - x0) * (y1 - y0) - if abs(area) < 0.25: - continue - if area < 0.0: - x1, x2 = x2, x1 - y1, y2 = y2, y1 - ix0 = max(0, int(math.floor(min(x0, x1, x2)))) - ix1 = min(res - 1, int(math.ceil(max(x0, x1, x2)))) - iy0 = max(0, int(math.floor(min(y0, y1, y2)))) - iy1 = min(res - 1, int(math.ceil(max(y0, y1, y2)))) - if ix1 < ix0 or iy1 < iy0: - continue - gx = np.arange(ix0, ix1 + 1, dtype=np.float64)[None, :] + 0.5 - gy = np.arange(iy0, iy1 + 1, dtype=np.float64)[:, None] + 0.5 - e0 = (x1 - x0) * (gy - y0) - (y1 - y0) * (gx - x0) - e1 = (x2 - x1) * (gy - y1) - (y2 - y1) * (gx - x1) - e2 = (x0 - x2) * (gy - y2) - (y0 - y2) * (gx - x2) - inside = (e0 >= -0.05) & (e1 >= -0.05) & (e2 >= -0.05) - mask[iy0 : iy1 + 1, ix0 : ix1 + 1] |= inside - return mask - - -def smooth_fbm_2d(res: int, seed: int = 42) -> np.ndarray: - """Deterministic multi-octave smooth value noise in [0, 1] without high-frequency PNG-bloating grain.""" - rng = np.random.default_rng(seed) - acc = np.zeros((res, res), dtype=np.float32) - weights = [(16, 0.45), (48, 0.30), (128, 0.17), (320, 0.08)] - for grid_n, w in weights: - coarse = rng.random((grid_n, grid_n), dtype=np.float32) - up = zoom(coarse, res / grid_n, order=1)[:res, :res] - if up.shape != (res, res): - pad = np.zeros((res, res), dtype=np.float32) - pad[: up.shape[0], : up.shape[1]] = up - up = pad - acc += up * w - acc = (acc - acc.min()) / max(1e-6, float(acc.max() - acc.min())) - return acc - - -def build_terrain_surface_texture( - dem_asl: np.ndarray, - base_elev: float, - wms_masks: dict[str, np.ndarray] | None, - fp_res_tris: list[np.ndarray], - fp_ind_tris: list[np.ndarray], - fp_fort_tris: list[np.ndarray], -) -> bytes: - """ - Synthesize 2048x2048 RGB surface albedo PNG (< 3 MB) combining: - - Grey alpine limestone cliffs (steep Valere / Tourbillon / hillside slopes) - - Valley meadows, terraced vineyards & alpine forest slopes - - Old Town stone plazas, industrial yards, rail ballast & road/bridge network - - Rhone river & canal glacial teal-blue water tint - """ - res = dem_asl.shape[0] - px_m = ARENA_SIZE_M / (res - 1) # 1.5m/px - elev_rel = dem_asl - base_elev - - # DEM slope & aspect (row increases South, col increases East) - dem_smooth = gaussian_filter(dem_asl, sigma=0.75) - gy, gx = np.gradient(dem_smooth, px_m) - slope = np.hypot(gx, gy) - normal_y = 1.0 / np.sqrt(1.0 + slope * slope) - - fbm = smooth_fbm_2d(res, seed=2056) - fbm2 = smooth_fbm_2d(res, seed=1120) - - # 1. Base valley meadow & hillside terraced vineyards - # Valley grass -> warm terraced hillside olive/sage - hill_t = np.clip((elev_rel - 10.0) / 85.0, 0.0, 1.0) - valley_col = np.array([0.31, 0.36, 0.22], dtype=np.float32) - hill_col = np.array([0.25, 0.32, 0.17], dtype=np.float32) - rgb = valley_col * (1.0 - hill_t[..., None]) + hill_col * hill_t[..., None] - - # Subtle meadow & hillside variation - rgb += (fbm[..., None] - 0.5) * np.array([0.07, 0.08, 0.05], dtype=np.float32) - - # Sunny south-facing vineyard terrace contours (gy < 0 means elevation drops going South) - south_facing = np.clip((-gy - 0.05) / 0.35, 0.0, 1.0) - vine_band = np.clip((elev_rel - 14.0) / 18.0, 0.0, 1.0) * np.clip((260.0 - elev_rel) / 60.0, 0.0, 1.0) - vine_slope = np.clip((slope - 0.10) / 0.18, 0.0, 1.0) * np.clip((0.68 - slope) / 0.25, 0.0, 1.0) - terrace_wave = 0.5 + 0.5 * np.sin(dem_asl * 1.15 + fbm2 * 2.0) - vine_w = south_facing * vine_band * vine_slope * (0.25 + 0.55 * terrace_wave) - vine_col = np.array([0.33, 0.36, 0.20], dtype=np.float32) - rgb = rgb * (1.0 - vine_w[..., None] * 0.65) + vine_col * (vine_w[..., None] * 0.65) - - # Forest canopy tint from Swisstopo Wald mask (darker alpine pine/oak green) - if wms_masks and "forest" in wms_masks: - f_rgba = wms_masks["forest"] - forest_mask = f_rgba[..., 3] > 60 - forest_soft = gaussian_filter(forest_mask.astype(np.float32), sigma=2.2) - forest_col = np.array([0.16, 0.23, 0.13], dtype=np.float32) + (fbm2[..., None] - 0.5) * 0.04 - rgb = rgb * (1.0 - forest_soft[..., None] * 0.72) + forest_col * (forest_soft[..., None] * 0.72) - - # 2. Urban building footprint plazas & yards - mask_res = rasterize_triangles_xz(fp_res_tris, res) - mask_ind = rasterize_triangles_xz(fp_ind_tris, res) - mask_fort = rasterize_triangles_xz(fp_fort_tris, res) - - # Local building density distinguishes dense Old Town stone plazas from suburban lawns - bldg_density = gaussian_filter((mask_res | mask_fort).astype(np.float32), sigma=22.0) - urban_core = np.clip(bldg_density * 5.5, 0.0, 1.0) - - res_plaza = binary_dilation(mask_res, iterations=7) & (normal_y > 0.87) - res_soft = gaussian_filter(res_plaza.astype(np.float32), sigma=2.0) * (0.35 + 0.65 * urban_core) - plaza_col = np.array([0.45, 0.42, 0.37], dtype=np.float32) + (fbm[..., None] - 0.5) * 0.05 - rgb = rgb * (1.0 - res_soft[..., None] * 0.88) + plaza_col * (res_soft[..., None] * 0.88) - - ind_yard = binary_dilation(mask_ind, iterations=10) & (normal_y > 0.90) - ind_soft = gaussian_filter(ind_yard.astype(np.float32), sigma=2.0) - ind_col = np.array([0.36, 0.36, 0.35], dtype=np.float32) + (fbm2[..., None] - 0.5) * 0.04 - rgb = rgb * (1.0 - ind_soft[..., None] * 0.88) + ind_col * (ind_soft[..., None] * 0.88) - - fort_court = binary_dilation(mask_fort, iterations=5) & (normal_y > 0.82) - fort_soft = gaussian_filter(fort_court.astype(np.float32), sigma=1.8) - fort_col = np.array([0.43, 0.40, 0.35], dtype=np.float32) - rgb = rgb * (1.0 - fort_soft[..., None] * 0.82) + fort_col * (fort_soft[..., None] * 0.82) - - # 3. Railway yard ballast corridor - if wms_masks and "rail" in wms_masks: - rail_alpha = wms_masks["rail"][..., 3] > 50 - rail_corridor = binary_dilation(rail_alpha, iterations=4) - rail_soft = gaussian_filter(rail_corridor.astype(np.float32), sigma=1.2) - rail_col = np.array([0.33, 0.30, 0.27], dtype=np.float32) - rgb = rgb * (1.0 - rail_soft[..., None] * 0.85) + rail_col * (rail_soft[..., None] * 0.85) - - # 4. Steep alpine limestone cliff faces (Valere / Tourbillon / escarpments) - # Applied after ground lawns/plazas so sheer cliffs always expose limestone rock! - cliff_t = np.clip((0.88 - normal_y) / (0.88 - 0.72), 0.0, 1.0) - strata = 0.5 + 0.5 * np.sin(dem_asl * 0.85 + fbm * 3.0) - cliff_col = ( - np.array([0.48, 0.46, 0.42], dtype=np.float32) - + (strata[..., None] - 0.5) * np.array([0.07, 0.07, 0.06], dtype=np.float32) - + (fbm2[..., None] - 0.5) * 0.05 - ) - rgb = rgb * (1.0 - cliff_t[..., None]) + cliff_col * cliff_t[..., None] - - # 5. Rhone river, Borgne tributary & canals (gravel banks + glacial teal water) - water_mask = np.zeros((res, res), dtype=bool) - if wms_masks and "tlm_color" in wms_masks: - c_rgb = wms_masks["tlm_color"][..., :3].astype(np.int16) - cyan = (c_rgb[..., 2] - c_rgb[..., 0] > 55) & (c_rgb[..., 2] > 200) & (c_rgb[..., 1] > 170) & (c_rgb[..., 0] < 180) - # Heal blue river name text gaps inside the river polygon - water_mask = binary_closing(cyan, structure=np.ones((9, 9))) - water_mask &= elev_rel < 25.0 - else: - # Pure-DEM fallback for leveed river channels - r_px = 60 - n_max = maximum_filter1d(dem_asl, size=r_px, axis=0, origin=-(r_px // 2)) - s_max = maximum_filter1d(dem_asl, size=r_px, axis=0, origin=(r_px // 2)) - w_max = maximum_filter1d(dem_asl, size=r_px, axis=1, origin=-(r_px // 2)) - e_max = maximum_filter1d(dem_asl, size=r_px, axis=1, origin=(r_px // 2)) - trough = np.maximum(np.minimum(n_max, s_max) - dem_asl, np.minimum(w_max, e_max) - dem_asl) - water_mask = (trough > 3.2) & (slope < 0.03) & (elev_rel < 10.0) - water_mask = binary_closing(binary_opening(water_mask, structure=np.ones((3, 3))), structure=np.ones((7, 7))) - - if np.any(water_mask): - bank_mask = binary_dilation(water_mask, iterations=4) & (~water_mask) - bank_soft = gaussian_filter(bank_mask.astype(np.float32), sigma=1.2) - bank_col = np.array([0.44, 0.42, 0.37], dtype=np.float32) - rgb = rgb * (1.0 - bank_soft[..., None] * 0.80) + bank_col * (bank_soft[..., None] * 0.80) - - water_soft = gaussian_filter(water_mask.astype(np.float32), sigma=1.0) - water_col = np.array([0.13, 0.27, 0.34], dtype=np.float32) + (fbm[..., None] - 0.5) * 0.03 - rgb = rgb * (1.0 - water_soft[..., None] * 0.96) + water_col * (water_soft[..., None] * 0.96) - - # 6. Roads, highway A9 & bridges (drawn after water so bridges span the Rhone!) - if wms_masks and "roads" in wms_masks: - r_rgba = wms_masks["roads"] - r_rgb = r_rgba[..., :3].astype(np.int16) - r_alpha = r_rgba[..., 3] > 80 - # Major arterial / highway (orange/red/yellow in TLM roads) vs local streets - is_major = r_alpha & ((r_rgb[..., 0] - r_rgb[..., 2]) > 45) - is_minor = r_alpha & (~is_major) - minor_soft = gaussian_filter(is_minor.astype(np.float32), sigma=0.6) - major_soft = gaussian_filter(binary_dilation(is_major, iterations=1).astype(np.float32), sigma=0.7) - street_col = np.array([0.35, 0.34, 0.32], dtype=np.float32) - highway_col = np.array([0.25, 0.25, 0.26], dtype=np.float32) - rgb = rgb * (1.0 - minor_soft[..., None] * 0.72) + street_col * (minor_soft[..., None] * 0.72) - rgb = rgb * (1.0 - major_soft[..., None] * 0.88) + highway_col * (major_soft[..., None] * 0.88) - - # Darken slightly under exact building footprints for subtle ambient grounding - bldg_under = (mask_res | mask_ind | mask_fort) & (normal_y > 0.75) - rgb[bldg_under] *= 0.88 - - rgb_u8 = np.clip(np.round(rgb * 255.0), 0, 255).astype(np.uint8) - png_bytes = imagecodecs.png_encode(rgb_u8, level=9) - if len(png_bytes) >= MAX_SURFACE_PNG_BYTES: - # Mild bit-depth quantization (7-bit per channel) preserves smooth gradients while halving PNG size - rgb_u8 = (rgb_u8 & 0xFE) - png_bytes = imagecodecs.png_encode(rgb_u8, level=9) - if len(png_bytes) >= MAX_SURFACE_PNG_BYTES: - rgb_u8 = (rgb_u8 & 0xFC) - png_bytes = imagecodecs.png_encode(rgb_u8, level=9) - return png_bytes - - -def sample_heightmap(hm: np.ndarray, x: np.ndarray | float, z: np.ndarray | float) -> np.ndarray | float: - fx = np.clip((np.asarray(x) + HALF_EXTENT_M) / CELL_SIZE_M, 0.0, GRID_RES - 1.00001) - fz = np.clip((np.asarray(z) + HALF_EXTENT_M) / CELL_SIZE_M, 0.0, GRID_RES - 1.00001) - ix = np.floor(fx).astype(np.int32) - iz = np.floor(fz).astype(np.int32) - tx = fx - ix - tz = fz - iz - h00 = hm[iz, ix] - h10 = hm[iz, ix + 1] - h01 = hm[iz + 1, ix] - h11 = hm[iz + 1, ix + 1] - return (h00 * (1.0 - tx) + h10 * tx) * (1.0 - tz) + (h01 * (1.0 - tx) + h11 * tx) * tz - - -# --------------------------------------------------------------------------- -# Coordinate conversion & geometry utilities -# --------------------------------------------------------------------------- -def enz_to_rtd(pts: np.ndarray, center_e: float, center_n: float, base_elev: float) -> np.ndarray: - """EPSG:2056 (E, N, Z) -> RustToDust right-handed glTF (X=E-cE, Y=Z-base, Z=-(N-cN)). det=+1.""" - out = np.empty_like(pts, dtype=np.float64) - out[:, 0] = pts[:, 0] - center_e - out[:, 1] = pts[:, 2] - base_elev - out[:, 2] = -(pts[:, 1] - center_n) - return out - - -def newell_normal(pts: np.ndarray) -> np.ndarray: - p0 = pts - p1 = np.roll(pts, -1, axis=0) - n = np.array( - [ - np.sum((p0[:, 1] - p1[:, 1]) * (p0[:, 2] + p1[:, 2])), - np.sum((p0[:, 2] - p1[:, 2]) * (p0[:, 0] + p1[:, 0])), - np.sum((p0[:, 0] - p1[:, 0]) * (p0[:, 1] + p1[:, 1])), - ], - dtype=np.float64, - ) - length = float(np.linalg.norm(n)) - return n / length if length > 1e-12 else np.array([0.0, 1.0, 0.0], dtype=np.float64) - - -def triangulate_polygon_3d(pts: np.ndarray) -> np.ndarray: - """Triangulate a 3D simple polygon (N, 3) into (M, 3, 3) triangles preserving winding.""" - n_pts = len(pts) - if n_pts == 3: - return pts[None, :, :] - if n_pts == 4: - # Check convexity via normal consistency, split along shorter diagonal - d02 = np.sum((pts[2] - pts[0]) ** 2) - d13 = np.sum((pts[3] - pts[1]) ** 2) - if d02 <= d13: - return np.stack([pts[[0, 1, 2]], pts[[0, 2, 3]]], axis=0) - return np.stack([pts[[1, 2, 3]], pts[[1, 3, 0]]], axis=0) - - # Project onto dominant plane for ear-clipping - normal = newell_normal(pts) - ref = np.array([1.0, 0.0, 0.0]) if abs(normal[0]) < 0.8 else np.array([0.0, 1.0, 0.0]) - u = np.cross(normal, ref) - u /= np.linalg.norm(u) - v = np.cross(normal, u) - pts2 = np.column_stack([pts @ u, pts @ v]) - - # Ensure CCW in 2D for ear-clipping test, track if flipped - area2 = 0.0 - for i in range(n_pts): - j = (i + 1) % n_pts - area2 += pts2[i, 0] * pts2[j, 1] - pts2[j, 0] * pts2[i, 1] - order = list(range(n_pts)) - if area2 < 0: - order.reverse() - - tris_idx: list[tuple[int, int, int]] = [] - idx = list(order) - guard = 0 - while len(idx) > 3 and guard < n_pts * n_pts: - guard += 1 - ear_found = False - m = len(idx) - for k in range(m): - ia, ib, ic = idx[(k - 1) % m], idx[k], idx[(k + 1) % m] - a, b, c = pts2[ia], pts2[ib], pts2[ic] - cross = (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]) - if cross <= 1e-10: - continue - # Check if any other point lies inside triangle (a, b, c) - inside = False - for o in idx: - if o in (ia, ib, ic): - continue - p = pts2[o] - c1 = (b[0] - a[0]) * (p[1] - a[1]) - (b[1] - a[1]) * (p[0] - a[0]) - c2 = (c[0] - b[0]) * (p[1] - b[1]) - (c[1] - b[1]) * (p[0] - b[0]) - c3 = (a[0] - c[0]) * (p[1] - c[1]) - (a[1] - c[1]) * (p[0] - c[0]) - if c1 >= -1e-9 and c2 >= -1e-9 and c3 >= -1e-9: - inside = True - break - if not inside: - tris_idx.append((ia, ib, ic) if area2 >= 0 else (ia, ic, ib)) - del idx[k] - ear_found = True - break - if not ear_found: - break - if len(idx) == 3: - ia, ib, ic = idx - tris_idx.append((ia, ib, ic) if area2 >= 0 else (ia, ic, ib)) - if not tris_idx: - # Fallback fan - tris_idx = [(0, k, k + 1) for k in range(1, n_pts - 1)] - return pts[np.array(tris_idx, dtype=np.int32)] - - -def rays_inside_solid( - points: np.ndarray, normals: np.ndarray, solid_tris: np.ndarray, eps: float = 0.03 -) -> np.ndarray: - """ - For each query (point + eps*normal), test 3 rays against closed solid_tris (K,3,3) via Moller-Trumbore. - Returns boolean mask: True if point+eps*normal is INSIDE solid (meaning normal points INWARD and must flip). - """ - if len(solid_tris) < 4 or len(points) == 0: - return np.zeros(len(points), dtype=bool) - v0 = solid_tris[:, 0, :] # (K, 3) - e1 = solid_tris[:, 1, :] - v0 - e2 = solid_tris[:, 2, :] - v0 - origins = points + normals * eps # (M, 3) - - ray_dirs = np.array( - [ - [0.37139068, 0.21899573, 0.90226797], - [-0.81239412, 0.41502134, 0.40984511], - [0.29510421, -0.88142173, 0.36901342], - ], - dtype=np.float64, - ) - - votes = np.zeros(len(points), dtype=np.int32) - # Process in chunks to keep peak memory tiny even for Basilique de Valere - chunk = 256 - for d in ray_dirs: - pvec = np.cross(d[None, :], e2) # (K, 3) - det = np.sum(e1 * pvec, axis=1) # (K,) - valid = np.abs(det) > 1e-10 - inv_det = np.zeros_like(det) - inv_det[valid] = 1.0 / det[valid] - q_e1 = e1[valid] - q_e2 = e2[valid] - q_v0 = v0[valid] - q_pvec = pvec[valid] - q_inv = inv_det[valid] - if len(q_v0) == 0: - continue - for s in range(0, len(origins), chunk): - orig = origins[s : s + chunk] # (C, 3) - tvec = orig[:, None, :] - q_v0[None, :, :] # (C, K', 3) - u = np.sum(tvec * q_pvec[None, :, :], axis=2) * q_inv[None, :] - m = (u >= 0.0) & (u <= 1.0) - qvec = np.cross(tvec, q_e1[None, :, :]) - v = np.sum(d[None, None, :] * qvec, axis=2) * q_inv[None, :] - m &= (v >= 0.0) & (u + v <= 1.0) - t = np.sum(q_e2[None, :, :] * qvec, axis=2) * q_inv[None, :] - m &= t > 1e-5 - hits = m.sum(axis=1) - votes[s : s + chunk] += (hits % 2).astype(np.int32) - return votes >= 2 - - -# --------------------------------------------------------------------------- -# Building extraction, classification, orientation & skirt generation -# --------------------------------------------------------------------------- -def classify_building( - objektart: str, name: str, pts_enz: np.ndarray, roof_faces_rtd: list[np.ndarray] -) -> str: - nl = name.lower() - if objektart in ("Sakrales Gebaeude", "Kapelle", "Sakraler Turm", "Mauer gross"): - return "fortress" - if any(k in nl for k in ("valère", "valere", "tourbillon", "basilique", "château", "chateau", "cathédral")): - return "fortress" - # Fortress hilltop zone (Valere & Tourbillon ridges) - ce = float(pts_enz[:, 0].mean()) - cn = float(pts_enz[:, 1].mean()) - min_z = float(pts_enz[:, 2].min()) - if 2594180.0 <= ce <= 2594650.0 and 1120180.0 <= cn <= 1120660.0 and min_z > 545.0: - return "fortress" - - if objektart in ("Hochhaus", "Offenes Gebaeude", "Flugdach", "Unterirdisches Gebaeude", "Im Bau", "Lagertank", "Treibhaus"): - return "industrial" - - # Large flat-roofed industrial/commercial blocks in the valley flats - dx = float(pts_enz[:, 0].max() - pts_enz[:, 0].min()) - dn = float(pts_enz[:, 1].max() - pts_enz[:, 1].min()) - area_box = dx * dn - if area_box > 750.0 and min_z < 508.0 and roof_faces_rtd: - # Weighted average roof slope - flat_area = 0.0 - total_area = 0.0 - for rf in roof_faces_rtd: - n = newell_normal(rf) - a = 0.5 * float(np.linalg.norm(np.cross(rf[1] - rf[0], rf[-1] - rf[0]))) - total_area += a - if abs(n[1]) > 0.985: # < ~10 deg - flat_area += a - if total_area > 1.0 and (flat_area / total_area) > 0.75: - return "industrial" - - return "residential" - - -def orient_faces_outward( - faces_rtd: list[np.ndarray], - solid_tris_rtd: np.ndarray | None, - layer_kind: str, - bldg_center_rtd: np.ndarray, -) -> list[np.ndarray]: - if not faces_rtd: - return [] - centers = np.array([f.mean(axis=0) for f in faces_rtd], dtype=np.float64) - normals = np.array([newell_normal(f) for f in faces_rtd], dtype=np.float64) - - if layer_kind == "Roof": - # Roof shells are open surfaces: non-vertical roof slopes must face UP (+Y). - flip = normals[:, 1] < -0.05 - # Near-vertical dormer cheeks/fascia: face away from building horizontal center - vert = np.abs(normals[:, 1]) <= 0.05 - if np.any(vert): - d_xz = centers[vert][:, [0, 2]] - bldg_center_rtd[[0, 2]] - dot = np.sum(d_xz * normals[vert][:, [0, 2]], axis=1) - flip[vert] = dot < 0 - elif layer_kind == "Floor": - # Floor caps face DOWN (-Y) unless steep step risers - flip = normals[:, 1] > 0.05 - vert = np.abs(normals[:, 1]) <= 0.05 - if np.any(vert) and solid_tris_rtd is not None and len(solid_tris_rtd) >= 4: - flip[vert] = rays_inside_solid(centers[vert], normals[vert], solid_tris_rtd, eps=0.025) - else: - # Wall faces: exact 3D solid parity against Building_solid when closed, else centroid fallback - if solid_tris_rtd is not None and len(solid_tris_rtd) >= 8: - flip = rays_inside_solid(centers, normals, solid_tris_rtd, eps=0.025) - else: - d_xz = centers[:, [0, 2]] - bldg_center_rtd[[0, 2]] - flip = np.sum(d_xz * normals[:, [0, 2]], axis=1) < 0 - - oriented = [] - for i, f in enumerate(faces_rtd): - oriented.append(f[::-1].copy() if flip[i] else f) - return oriented - - -def build_foundation_skirt_tris( - wall_tris: np.ndarray, - floor_faces: list[np.ndarray], - hm: np.ndarray, - min_y: float, - simplify_tol: float = 0.0, -) -> np.ndarray: - """ - Build -4.0m downward perimeter skirt quads from the building's base footprint / bottom wall edges - so no building floats on steep terrain slopes. - """ - if len(wall_tris) == 0: - return np.zeros((0, 3, 3), dtype=np.float64) - - # Sample terrain height across the building's XZ extent (corners + center) - pts_all = wall_tris.reshape(-1, 3) - x0, z0 = float(pts_all[:, 0].min()), float(pts_all[:, 2].min()) - x1, z1 = float(pts_all[:, 0].max()), float(pts_all[:, 2].max()) - gx = np.linspace(x0, x1, 5) - gz = np.linspace(z0, z1, 5) - mx, mz = np.meshgrid(gx, gz) - terrain_vals = sample_heightmap(hm, mx, mz) - terrain_min_y = float(np.min(terrain_vals)) - # If building base already sits >= 0.45m below the lowest terrain sample across its footprint, - # no downward skirt is needed. - if min_y <= terrain_min_y - 0.45: - return np.zeros((0, 3, 3), dtype=np.float64) - skirt_bottom_y = min(min_y, terrain_min_y) - SKIRT_DEPTH_M - - skirt_tris: list[np.ndarray] = [] - - # Primary method: extrude outer boundary of Floor polygons (projected to XZ, matching floor edge Y) - if floor_faces: - polys_2d = [] - floor_verts = [] - for ff in floor_faces: - floor_verts.append(ff) - p2 = Polygon(ff[:, [0, 2]]) - if not p2.is_valid: - p2 = p2.buffer(0) - if not p2.is_empty and p2.area > 0.05: - polys_2d.append(p2) - if polys_2d: - fv = np.vstack(floor_verts) - merged = unary_union(polys_2d) - geoms = list(merged.geoms) if hasattr(merged, "geoms") else [merged] - for poly in geoms: - if not isinstance(poly, Polygon) or poly.is_empty: - continue - if simplify_tol > 0.0: - poly = poly.simplify(simplify_tol, preserve_topology=True) - if not isinstance(poly, Polygon) or poly.is_empty: - continue - # Ensure exterior ring is CCW in (X, Z) -> in right-handed (X, Y, Z), - # wait: for vertical wall from p0->p1 down to bottom, if cross(p1-p0, down) points OUTWARD: - # let tangent t = (dx, 0, dz), down = (0, -1, 0). - # t x down = (dz, 0, -dx). In (X, Z), (dz, -dx) is right-hand normal to (dx, dz)! - # A CCW polygon in (X, Z) has interior on LEFT and exterior on RIGHT (+dz, -dx)! - ring = shapely.geometry.polygon.orient(poly, sign=1.0).exterior.coords - coords = list(ring) - for k in range(len(coords) - 1): - ax, az = coords[k] - bx, bz = coords[k + 1] - if (ax - bx) ** 2 + (az - bz) ** 2 < 1e-4: - continue - # Nearest floor vertex Y so stepped hillside floors anchor seamlessly - da = (fv[:, 0] - ax) ** 2 + (fv[:, 2] - az) ** 2 - db = (fv[:, 0] - bx) ** 2 + (fv[:, 2] - bz) ** 2 - ya = float(fv[int(np.argmin(da)), 1]) + 0.05 - yb = float(fv[int(np.argmin(db)), 1]) + 0.05 - p0 = np.array([ax, ya, az]) - p1 = np.array([bx, yb, bz]) - p0b = np.array([ax, skirt_bottom_y, az]) - p1b = np.array([bx, skirt_bottom_y, bz]) - # Outward normal: cross(p1-p0, p0b-p0) = (dx, dy, dz) x (0, -H, 0) = (dz*H, 0, -dx*H) - skirt_tris.append(np.stack([p0, p1, p1b], axis=0)) - skirt_tris.append(np.stack([p0, p1b, p0b], axis=0)) - - # Fallback for Floor-less structures (e.g. Mauer gross retaining walls): - # extrude lowest boundary edges of wall_tris straight down - if not skirt_tris: - # Quantize vertices to 2mm to match directed edges - def qkey(v: np.ndarray) -> tuple[int, int, int]: - return (int(round(v[0] * 500)), int(round(v[1] * 500)), int(round(v[2] * 500))) - - directed: dict[tuple[tuple[int, int, int], tuple[int, int, int]], tuple[np.ndarray, np.ndarray]] = {} - for tri in wall_tris: - for e in ((0, 1), (1, 2), (2, 0)): - va, vb = tri[e[0]], tri[e[1]] - ka, kb = qkey(va), qkey(vb) - if (kb, ka) in directed: - del directed[(kb, ka)] - else: - directed[(ka, kb)] = (va, vb) - y_thresh = min_y + 1.5 - for va, vb in directed.values(): - if va[1] <= y_thresh and vb[1] <= y_thresh and ((va[0] - vb[0]) ** 2 + (va[2] - vb[2]) ** 2) > 0.04: - # Wall triangle has (va -> vb) on its boundary; in an outward-wound wall, bottom edge runs - # left-to-right when viewed from outside -> (va -> vb) x down points INWARD, so reverse! - p0, p1 = vb, va - p0b = np.array([p0[0], skirt_bottom_y, p0[2]]) - p1b = np.array([p1[0], skirt_bottom_y, p1[2]]) - skirt_tris.append(np.stack([p0, p1, p1b], axis=0)) - skirt_tris.append(np.stack([p0, p1b, p0b], axis=0)) - - return np.array(skirt_tris, dtype=np.float64) if skirt_tris else np.zeros((0, 3, 3), dtype=np.float64) - - -# --------------------------------------------------------------------------- -# Procedural LOD1 generator (from semantic LOD2 Wall & Roof faces) -# --------------------------------------------------------------------------- -def append_box_face_outward( - out_tris: list[np.ndarray], - origin: np.ndarray, - u_axis: np.ndarray, - v_axis: np.ndarray, - n_axis: np.ndarray, - u0: float, - u1: float, - v0: float, - v1: float, - d0: float, - d1: float, - include_back: bool = False, -) -> None: - """Append an axis-aligned prism in local (u, v, n) frame with outward CCW triangles.""" - def pt(u: float, v: float, d: float) -> np.ndarray: - return origin + u * u_axis + v * v_axis + d * n_axis - - p000, p100, p110, p010 = pt(u0, v0, d0), pt(u1, v0, d0), pt(u1, v1, d0), pt(u0, v1, d0) - p001, p101, p111, p011 = pt(u0, v0, d1), pt(u1, v0, d1), pt(u1, v1, d1), pt(u0, v1, d1) - # Front (+n) - out_tris.append(np.stack([p001, p101, p111], axis=0)) - out_tris.append(np.stack([p001, p111, p011], axis=0)) - if include_back: - out_tris.append(np.stack([p000, p110, p100], axis=0)) - out_tris.append(np.stack([p000, p010, p110], axis=0)) - # Left (-u), Right (+u), Bottom (-v), Top (+v) - out_tris.append(np.stack([p000, p001, p011], axis=0)) - out_tris.append(np.stack([p000, p011, p010], axis=0)) - out_tris.append(np.stack([p101, p100, p110], axis=0)) - out_tris.append(np.stack([p101, p110, p111], axis=0)) - out_tris.append(np.stack([p000, p100, p101], axis=0)) - out_tris.append(np.stack([p000, p101, p001], axis=0)) - out_tris.append(np.stack([p011, p111, p110], axis=0)) - out_tris.append(np.stack([p011, p110, p010], axis=0)) - - -def append_lean_ledge( - out_tris: list[np.ndarray], - origin: np.ndarray, - u_axis: np.ndarray, - v_axis: np.ndarray, - n_axis: np.ndarray, - u0: float, - u1: float, - v0: float, - v1: float, - depth: float, - top_bevel: bool = True, -) -> None: - """Append a lean 4-tri architectural ledge (front face + top or bottom bevel).""" - def pt(u: float, v: float, d: float) -> np.ndarray: - return origin + u * u_axis + v * v_axis + d * n_axis - - f00, f10, f11, f01 = pt(u0, v0, depth), pt(u1, v0, depth), pt(u1, v1, depth), pt(u0, v1, depth) - out_tris.append(np.stack([f00, f10, f11], axis=0)) - out_tris.append(np.stack([f00, f11, f01], axis=0)) - if top_bevel: - b01, b11 = pt(u0, v1, 0.0), pt(u1, v1, 0.0) - out_tris.append(np.stack([f01, f11, b11], axis=0)) - out_tris.append(np.stack([f01, b11, b01], axis=0)) - else: - b00, b10 = pt(u0, v0, 0.0), pt(u1, v0, 0.0) - out_tris.append(np.stack([b00, b10, f10], axis=0)) - out_tris.append(np.stack([b00, f10, f00], axis=0)) - - -def append_quad_outward( - out_tris: list[np.ndarray], - origin: np.ndarray, - u_axis: np.ndarray, - v_axis: np.ndarray, - n_axis: np.ndarray, - u0: float, - u1: float, - v0: float, - v1: float, - d: float, -) -> None: - p00 = origin + u0 * u_axis + v0 * v_axis + d * n_axis - p10 = origin + u1 * u_axis + v0 * v_axis + d * n_axis - p11 = origin + u1 * u_axis + v1 * v_axis + d * n_axis - p01 = origin + u0 * u_axis + v1 * v_axis + d * n_axis - out_tris.append(np.stack([p00, p10, p11], axis=0)) - out_tris.append(np.stack([p00, p11, p01], axis=0)) - - -def merge_coplanar_faces( - faces: list[np.ndarray], n_quant: float = 40.0, d_quant: float = 5.0, min_area: float = 0.2 -) -> list[tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, Polygon]]: - """ - Merge coplanar connected faces into clean planar 2D shapely polygons with local (origin, u_axis, v_axis, n_axis). - Returns list of (origin, u_axis, v_axis, n_axis, poly_2d). - """ - if not faces: - return [] - # Quantize plane key: normal rounded + plane offset d - groups: dict[tuple[int, int, int, int], list[tuple[np.ndarray, np.ndarray]]] = defaultdict(list) - for f in faces: - n = newell_normal(f) - d = float(np.dot(n, f[0])) - key = ( - int(round(n[0] * n_quant)), - int(round(n[1] * n_quant)), - int(round(n[2] * n_quant)), - int(round(d * d_quant)), - ) - groups[key].append((f, n)) - - merged_planes = [] - up = np.array([0.0, 1.0, 0.0], dtype=np.float64) - for items in groups.values(): - n_avg = np.mean([it[1] for it in items], axis=0) - ln = float(np.linalg.norm(n_avg)) - if ln < 1e-8: - continue - n_axis = n_avg / ln - origin = items[0][0][0] - if abs(n_axis[1]) < 0.9: - u_axis = np.cross(up, n_axis) - u_axis /= np.linalg.norm(u_axis) - v_axis = np.cross(n_axis, u_axis) - else: - u_axis = np.cross(np.array([0.0, 0.0, -1.0]), n_axis) - u_axis /= np.linalg.norm(u_axis) - v_axis = np.cross(n_axis, u_axis) - - polys = [] - for f, _ in items: - rel = f - origin - pts2 = np.column_stack([rel @ u_axis, rel @ v_axis]) - p = Polygon(pts2) - if not p.is_valid: - p = p.buffer(0) - if not p.is_empty and p.area > 0.02: - polys.append(p) - if not polys: - continue - u = unary_union(polys) - geoms = list(u.geoms) if hasattr(u, "geoms") else [u] - for g in geoms: - if isinstance(g, Polygon) and g.area > min_area: - merged_planes.append((origin, u_axis, v_axis, n_axis, g)) - return merged_planes - - -def triangulate_planar_polygon( - origin: np.ndarray, - u_axis: np.ndarray, - v_axis: np.ndarray, - poly: Polygon, - simplify_tol: float = 0.08, -) -> list[np.ndarray]: - """Triangulate a 2D shapely Polygon (with holes) in (u, v) and lift to 3D with +n_axis winding.""" - use_tol = simplify_tol if (simplify_tol > 0.0 and poly.area >= 1.0 and len(poly.exterior.coords) > 4) else 0.0 - p = poly.simplify(use_tol, preserve_topology=True) if use_tol > 0.0 else poly - if p.is_empty or p.area < 0.05: - p = poly - geoms = list(p.geoms) if hasattr(p, "geoms") else [p] - tris_3d: list[np.ndarray] = [] - for g in geoms: - if not isinstance(g, Polygon) or g.is_empty or g.area < 0.02: - continue - cdt = shapely.constrained_delaunay_triangles(g) - for tri_poly in cdt.geoms: - coords = list(tri_poly.exterior.coords) - if len(coords) < 4: - continue - a, b, c = coords[0], coords[1], coords[2] - if (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]) < 0.0: - b, c = c, b - p0 = origin + a[0] * u_axis + a[1] * v_axis - p1 = origin + b[0] * u_axis + b[1] * v_axis - p2 = origin + c[0] * u_axis + c[1] * v_axis - tris_3d.append(np.stack([p0, p1, p2], axis=0)) - return tris_3d - - -def prepare_lod1_building( - bldg_uuid: str, - arch_style: str, - objektart: str, - in_core: bool, - wall_faces: list[np.ndarray], - roof_faces: list[np.ndarray], - wall_tris_raw: np.ndarray, - roof_tris_raw: np.ndarray, - skirt_tris_simp: np.ndarray, -) -> tuple: - """Precompute simplified coplanar planes, clean LOD2/COL & LOD1 shells, and roof trim once per building.""" - if arch_style == "fortress": - wall_planes = merge_coplanar_faces(wall_faces, n_quant=40.0, d_quant=5.0, min_area=0.2) - roof_planes = merge_coplanar_faces(roof_faces, n_quant=40.0, d_quant=5.0, min_area=0.2) - l1_wtol, l1_rtol = 0.08, 0.06 - l2_wtol, l2_rtol, l2_min = 0.08, 0.06, 0.2 - else: - wall_planes = merge_coplanar_faces(wall_faces, n_quant=14.0, d_quant=2.0, min_area=0.8) - roof_planes = merge_coplanar_faces(roof_faces, n_quant=20.0, d_quant=3.0, min_area=0.6) - l1_wtol, l1_rtol = 0.38, 0.28 - l2_wtol, l2_rtol, l2_min = 0.78, 0.58, 1.6 - - lod1_wall_tris: list[np.ndarray] = [] - lod2_wall_tris: list[np.ndarray] = [] - if wall_planes: - for origin, u_axis, v_axis, _, poly in wall_planes: - lod1_wall_tris.extend(triangulate_planar_polygon(origin, u_axis, v_axis, poly, simplify_tol=l1_wtol)) - if poly.area >= l2_min: - lod2_wall_tris.extend(triangulate_planar_polygon(origin, u_axis, v_axis, poly, simplify_tol=l2_wtol)) - if not lod1_wall_tris and len(wall_tris_raw) > 0: - lod1_wall_tris = list(wall_tris_raw) - if not lod2_wall_tris: - lod2_wall_tris = lod1_wall_tris - - lod1_roof_tris: list[np.ndarray] = [] - lod2_roof_tris: list[np.ndarray] = [] - if roof_planes: - for origin, u_axis, v_axis, _, poly in roof_planes: - lod1_roof_tris.extend(triangulate_planar_polygon(origin, u_axis, v_axis, poly, simplify_tol=l1_rtol)) - if poly.area >= l2_min: - lod2_roof_tris.extend(triangulate_planar_polygon(origin, u_axis, v_axis, poly, simplify_tol=l2_rtol)) - if not lod1_roof_tris and len(roof_tris_raw) > 0: - lod1_roof_tris = list(roof_tris_raw) - if not lod2_roof_tris: - lod2_roof_tris = lod1_roof_tris - - # Precompute roof eaves overhang (~0.35m), ridge caps, and chimneys once - roof_mat = {"fortress": "roof_fortress", "industrial": "roof_industrial", "residential": "roof_terracotta"}[arch_style] - roof_detail_mats: dict[str, list[np.ndarray]] = defaultdict(list) - if roof_planes: - all_roof_xz = [] - for origin, u_axis, v_axis, n_axis, poly in roof_planes: - pts2 = np.array(poly.exterior.coords) - pts3 = origin + pts2[:, 0:1] * u_axis + pts2[:, 1:2] * v_axis - pxz = Polygon(pts3[:, [0, 2]]) - if not pxz.is_valid: - pxz = pxz.buffer(0) - if not pxz.is_empty: - all_roof_xz.append(pxz) - roof_union_xz = unary_union(all_roof_xz) if all_roof_xz else None - ext_boundary = roof_union_xz.boundary if roof_union_xz is not None else None - - ridge_edges: list[tuple[np.ndarray, np.ndarray]] = [] - pitched_planes: list[tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, Polygon]] = [] - min_roof_area = 12.0 if arch_style == "fortress" else (24.0 if in_core else 42.0) - - for origin, u_axis, v_axis, n_axis, poly in roof_planes: - slope_cos = float(abs(n_axis[1])) - if 0.15 < slope_cos < 0.993 and ext_boundary is not None and poly.area > min_roof_area: - pitched_planes.append((origin, u_axis, v_axis, n_axis, poly)) - simp = shapely.geometry.polygon.orient(poly, sign=1.0).simplify(0.45, preserve_topology=True) - if isinstance(simp, Polygon) and not simp.is_empty: - c2 = np.array(simp.exterior.coords) - c3 = origin + c2[:, 0:1] * u_axis + c2[:, 1:2] * v_axis - for k in range(len(c2) - 1): - p0_3, p1_3 = c3[k], c3[k + 1] - elen = float(np.linalg.norm(p1_3 - p0_3)) - if elen < 2.4: - continue - mid_xz = shapely.geometry.Point(0.5 * (p0_3[0] + p1_3[0]), 0.5 * (p0_3[2] + p1_3[2])) - if ext_boundary.distance(mid_xz) < 0.30: - du, dv = c2[k + 1, 0] - c2[k, 0], c2[k + 1, 1] - c2[k, 1] - out2 = np.array([dv, -du], dtype=np.float64) - ln2 = float(np.linalg.norm(out2)) - if ln2 < 1e-6: - continue - out2 /= ln2 - out3 = out2[0] * u_axis + out2[1] * v_axis - if out3[1] <= 0.15: - e0 = p0_3 + out3 * 0.35 - e1 = p1_3 + out3 * 0.35 - roof_detail_mats[roof_mat].append(np.stack([p0_3, e0, e1], axis=0)) - roof_detail_mats[roof_mat].append(np.stack([p0_3, e1, p1_3], axis=0)) - elif 0.5 * (p0_3[1] + p1_3[1]) > float(c3[:, 1].mean()) + 0.4 and elen > 3.2: - ridge_edges.append((p0_3, p1_3)) - - seen_ridges: list[tuple[np.ndarray, np.ndarray]] = [] - for a, b in ridge_edges: - mid = 0.5 * (a + b) - if any(np.linalg.norm(mid - 0.5 * (sa + sb)) < 0.8 for sa, sb in seen_ridges): - continue - seen_ridges.append((a, b)) - d_ab = b - a - rlen = float(np.linalg.norm(d_ab)) - ru = d_ab / rlen - rn = np.cross(np.array([0.0, 1.0, 0.0]), ru) - ln = float(np.linalg.norm(rn)) - if ln < 1e-4: - continue - rn /= ln - peak = np.array([0.0, 0.15, 0.0]) - a_l, a_r = a - rn * 0.15, a + rn * 0.15 - b_l, b_r = b - rn * 0.15, b + rn * 0.15 - a_p, b_p = a + peak, b + peak - roof_detail_mats[roof_mat].append(np.stack([a_l, b_l, b_p], axis=0)) - roof_detail_mats[roof_mat].append(np.stack([a_l, b_p, a_p], axis=0)) - roof_detail_mats[roof_mat].append(np.stack([a_r, a_p, b_p], axis=0)) - roof_detail_mats[roof_mat].append(np.stack([a_r, b_p, b_r], axis=0)) - - if arch_style == "residential" and pitched_planes: - h_byte = hashlib.blake2b(bldg_uuid.encode("utf-8"), digest_size=1).digest()[0] - if h_byte % 4 == 0: - origin, u_axis, v_axis, n_axis, poly = max(pitched_planes, key=lambda it: it[4].area) - if poly.area > 55.0: - rp = poly.representative_point() - c3 = origin + rp.x * u_axis + rp.y * v_axis - cy = float(c3[1]) - up_v = np.array([0.0, 1.0, 0.0]) - cu = np.array([1.0, 0.0, 0.0]) - cz = np.array([0.0, 0.0, 1.0]) - append_box_face_outward( - roof_detail_mats["stone_trim"], np.array([c3[0], cy - 0.4, c3[2]]), - cu, up_v, cz, -0.32, 0.32, 0.0, 1.45, -0.32, 0.32, include_back=False, - ) - append_box_face_outward( - roof_detail_mats["stone_trim"], np.array([c3[0], cy + 1.05, c3[2]]), - cu, up_v, cz, -0.40, 0.40, 0.0, 0.14, -0.40, 0.40, include_back=False, - ) - - return ( - bldg_uuid, - arch_style, - objektart, - in_core, - wall_planes, - lod1_wall_tris, - lod1_roof_tris, - lod2_wall_tris, - lod2_roof_tris, - list(skirt_tris_simp) if len(skirt_tris_simp) > 0 else [], - dict(roof_detail_mats), - ) - - -def generate_lod1_building( - prepared: tuple, - bay_scale: float = 1.0, -) -> dict[str, list[np.ndarray]]: - """ - Derive procedural LOD1 architectural geometry from precomputed semantic Wall & Roof planes: - - Subdivides vertical walls (>3.5m tall, >3.0m wide) into realistic floor bays & architectural openings - - Attaches precomputed pitched roof eaves overhang (~0.35m), ridge caps, and chimneys - Returns dict mapping material key -> list of (3,3) triangle arrays. - """ - ( - _bldg_uuid, - arch_style, - objektart, - in_core, - wall_planes, - lod1_wall_tris, - lod1_roof_tris, - _lod2_wall_tris, - _lod2_roof_tris, - skirt_tris, - roof_detail_mats, - ) = prepared - out: dict[str, list[np.ndarray]] = defaultdict(list) - - wall_mat = { - "fortress": "wall_fortress", - "industrial": "wall_industrial", - "residential": "wall_plaster", - }[arch_style] - roof_mat = { - "fortress": "roof_fortress", - "industrial": "roof_industrial", - "residential": "roof_terracotta", - }[arch_style] - trim_mat = "stone_trim" if arch_style != "industrial" else "concrete_trim" - - if lod1_wall_tris: - out[wall_mat].extend(lod1_wall_tris) - if skirt_tris: - out["foundation_stone"].extend(skirt_tris) - - # 1. Procedural facade detailing from merged vertical semantic Wall panels - # Prioritize Old Town core & fortress landmarks with rich window bays, while scaling outer suburbs cleanly - local_scale = (bay_scale * 0.72) if in_core else (bay_scale * 1.65) - area_thresh = (14.0 * (local_scale ** 1.15)) if in_core else (34.0 * (bay_scale ** 1.55)) - eff_bay_scale = min(max(1.0, local_scale), 2.4) - for origin, u_axis, v_axis, n_axis, poly in wall_planes: - if abs(n_axis[1]) > 0.25: - continue # non-vertical wall slope - umin, vmin, umax, vmax = poly.bounds - w = umax - umin - h = vmax - vmin - # Always detail fortress hero walls (>14m2); prioritize larger facades first on residential/industrial - min_area = 14.0 if arch_style == "fortress" else area_thresh - if h <= 3.5 or w <= 3.2 or poly.area < min_area: - continue - - if arch_style == "fortress": - if objektart == "Mauer gross": - if w >= 6.0: - n_but = max(2, min(7, int(w / (8.0 * eff_bay_scale)) + 1)) - for bi in range(n_but): - bu = umin + 0.6 + (w - 1.2) * (bi / max(1, n_but - 1)) - if poly.contains(box(bu - 0.25, vmin + 0.2, bu + 0.25, vmax - 0.2)): - append_lean_ledge( - out[trim_mat], origin, u_axis, v_axis, n_axis, - bu - 0.24, bu + 0.24, vmin, vmax - 0.1, 0.34, top_bevel=True, - ) - if poly.contains(box(umin + 0.2, vmax - 0.35, umax - 0.2, vmax - 0.05)): - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - umin - 0.06, umax + 0.06, vmax - 0.24, vmax + 0.04, 0.18, - ) - else: - if w >= 7.5: - n_but = max(2, min(7, int(w / (8.0 * eff_bay_scale)) + 1)) - for bi in range(n_but): - bu = umin + 0.45 + (w - 0.9) * (bi / max(1, n_but - 1)) - if poly.contains(box(bu - 0.25, vmin + 0.3, bu + 0.25, vmax - 0.3)): - append_lean_ledge( - out[trim_mat], origin, u_axis, v_axis, n_axis, - bu - 0.22, bu + 0.22, vmin, vmax - 0.15, 0.32, top_bevel=True, - ) - bay_w = 3.2 * eff_bay_scale - story_h = 3.8 - nx = max(1, int((w - 1.2) / bay_w)) - ny = max(1, int((h - 1.0) / story_h)) - step_u = (w - 1.2) / nx - step_v = (h - 1.0) / ny - for iy in range(ny): - vc = vmin + 0.6 + (iy + 0.52) * step_v - win_h = min(2.1, step_v * 0.56) - win_w = 0.58 - for ix in range(nx): - uc = umin + 0.6 + (ix + 0.5) * step_u - if poly.contains(box(uc - 0.45, vc - win_h * 0.5 - 0.2, uc + 0.45, vc + win_h * 0.5 + 0.2)): - append_quad_outward( - out["window_glass"], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.5, uc + win_w * 0.5, vc - win_h * 0.5, vc + win_h * 0.5, 0.03, - ) - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.72, uc + win_w * 0.72, vc - win_h * 0.5 - 0.16, vc - win_h * 0.5, 0.14, - ) - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.72, uc + win_w * 0.72, vc + win_h * 0.5, vc + win_h * 0.5 + 0.18, 0.14, - ) - - elif arch_style == "industrial": - story_h = 3.5 - ny = max(1, int((h - 0.6) / story_h)) - step_v = (h - 0.5) / ny - if w >= 6.0: - door_step = 6.2 * eff_bay_scale - nd = max(1, int((w - 1.4) / door_step)) - du = (w - 1.4) / nd - for ix in range(nd): - uc = umin + 0.7 + (ix + 0.5) * du - dw = min(3.4, du * 0.62) - dh = min(3.0, step_v * 0.82) - if poly.contains(box(uc - dw * 0.5 - 0.15, vmin + 0.05, uc + dw * 0.5 + 0.15, vmin + dh + 0.2)): - append_quad_outward( - out["industrial_door"], origin, u_axis, v_axis, n_axis, - uc - dw * 0.5, uc + dw * 0.5, vmin + 0.05, vmin + dh, 0.03, - ) - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - uc - dw * 0.54, uc + dw * 0.54, vmin + dh, vmin + dh + 0.18, 0.14, - ) - for iy in range(1 if w >= 6.0 and ny > 1 else 0, ny): - vc = vmin + 0.3 + (iy + 0.62) * step_v - ch = min(0.95, step_v * 0.34) - cw = w - 1.2 - if cw >= 2.2 and poly.contains(box(umin + 0.5, vc - ch * 0.5 - 0.1, umax - 0.5, vc + ch * 0.5 + 0.1)): - append_quad_outward( - out["window_glass"], origin, u_axis, v_axis, n_axis, - umin + 0.6, umax - 0.6, vc - ch * 0.5, vc + ch * 0.5, 0.03, - ) - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - umin + 0.55, umax - 0.55, vc - ch * 0.5 - 0.11, vc - ch * 0.5, 0.12, - ) - - else: - # Residential / Old Town / Civic: ~3.1m stories, ~2.4m-3.4m multi-bay windows - story_h = 3.1 - bay_w = 2.4 * eff_bay_scale - ny = max(1, int((h - 0.5) / story_h)) - nx = max(1, int((w - 0.7) / bay_w)) - step_v = (h - 0.4) / ny - step_u = (w - 0.6) / nx - - # Subtle horizontal floor belt-courses on multi-story main facades - if ny >= 3 and w >= 7.0: - for iy in range(1, ny): - bv = vmin + 0.2 + iy * step_v - if poly.contains(box(umin + 0.25, bv - 0.08, umax - 0.25, bv + 0.08)): - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - umin + 0.05, umax - 0.05, bv - 0.07, bv + 0.07, 0.08, - ) - - win_w = min(1.15, step_u * 0.48) - win_h = min(1.48, step_v * 0.52) - has_lintel = w >= 7.0 and bay_scale <= 1.25 - for iy in range(ny): - vc = vmin + 0.25 + (iy + 0.52) * step_v - for ix in range(nx): - uc = umin + 0.3 + (ix + 0.5) * step_u - if poly.contains( - box(uc - win_w * 0.62, vc - win_h * 0.55 - 0.14, uc + win_w * 0.62, vc + win_h * 0.55 + 0.14) - ): - append_quad_outward( - out["window_glass"], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.5, uc + win_w * 0.5, vc - win_h * 0.5, vc + win_h * 0.5, 0.03, - ) - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.58, uc + win_w * 0.58, vc - win_h * 0.5 - 0.13, vc - win_h * 0.5, 0.13, - ) - if has_lintel: - append_quad_outward( - out[trim_mat], origin, u_axis, v_axis, n_axis, - uc - win_w * 0.56, uc + win_w * 0.56, vc + win_h * 0.5, vc + win_h * 0.5 + 0.11, 0.09, - ) - - # 2. Precomputed Roof detailing: eaves overhang (~0.35m), ridge caps, chimneys - if lod1_roof_tris: - out[roof_mat].extend(lod1_roof_tris) - for mk, tlist in roof_detail_mats.items(): - if tlist: - out[mk].extend(tlist) - - return out - - -# --------------------------------------------------------------------------- -# Fast GLB exporter (indexed flat-shaded per material) -# --------------------------------------------------------------------------- -MATERIAL_SPECS: dict[str, tuple[tuple[float, float, float, float], float, float]] = { - # name: ((r, g, b, a), metallic, roughness) - "roof_terracotta": ((0.50, 0.16, 0.09, 1.0), 0.02, 0.74), - "roof_fortress": ((0.19, 0.21, 0.24, 1.0), 0.05, 0.78), - "roof_industrial": ((0.29, 0.32, 0.35, 1.0), 0.12, 0.80), - "wall_plaster": ((0.76, 0.67, 0.55, 1.0), 0.00, 0.86), - "wall_fortress": ((0.35, 0.31, 0.26, 1.0), 0.02, 0.90), - "wall_industrial": ((0.48, 0.48, 0.46, 1.0), 0.08, 0.84), - "foundation_stone": ((0.22, 0.20, 0.18, 1.0), 0.02, 0.93), - "stone_trim": ((0.52, 0.48, 0.42, 1.0), 0.02, 0.86), - "concrete_trim": ((0.42, 0.43, 0.44, 1.0), 0.06, 0.85), - "window_glass": ((0.04, 0.07, 0.11, 1.0), 0.25, 0.12), - "industrial_door": ((0.16, 0.19, 0.22, 1.0), 0.45, 0.55), -} - - -def export_glb(mat_tris: dict[str, list[np.ndarray]], out_path: Path, mesh_name: str) -> tuple[int, int]: - out_path.parent.mkdir(parents=True, exist_ok=True) - blob = bytearray() - buffer_views = [] - accessors = [] - materials = [] - primitives = [] - - total_tris = 0 - for mat_idx, (mat_name, tri_list) in enumerate(sorted(mat_tris.items())): - if not tri_list: - continue - tris = np.asarray(tri_list, dtype=np.float32) # (N, 3, 3) - # Filter degenerate triangles - e1 = tris[:, 1] - tris[:, 0] - e2 = tris[:, 2] - tris[:, 0] - cross = np.cross(e1, e2) - nlen = np.linalg.norm(cross, axis=1) - valid = nlen > 1e-6 - tris = tris[valid] - if len(tris) == 0: - continue - n_face = (cross[valid] / nlen[valid, None]).astype(np.float32) - - total_tris += len(tris) - raw_verts = tris.reshape(-1, 3) # (N*3, 3) - raw_norms = np.repeat(n_face, 3, axis=0) # (N*3, 3) - - # Deduplicate vertices sharing identical (position, hard-surface normal) - q_pos = np.round(raw_verts * 2000.0).astype(np.int64) - q_nrm = np.round(raw_norms * 250.0).astype(np.int64) - keys = np.ascontiguousarray(np.hstack([q_pos, q_nrm])).view( - np.dtype((np.void, 6 * 8)) - ).ravel() - _, uniq_idx, inv_idx = np.unique(keys, return_index=True, return_inverse=True) - verts = np.ascontiguousarray(raw_verts[uniq_idx], dtype=np.float32) - norms = np.ascontiguousarray(raw_norms[uniq_idx], dtype=np.float32) - if len(verts) < 65535: - indices = inv_idx.astype(np.uint16) - idx_comp_type = pygltflib.UNSIGNED_SHORT - idx_elem_bytes = 2 - else: - indices = inv_idx.astype(np.uint32) - idx_comp_type = pygltflib.UNSIGNED_INT - idx_elem_bytes = 4 - - # Position buffer view - while len(blob) % 4 != 0: - blob.append(0) - pos_off = len(blob) - blob.extend(verts.tobytes()) - pos_bv = len(buffer_views) - buffer_views.append(pygltflib.BufferView(buffer=0, byteOffset=pos_off, byteLength=len(verts) * 12, target=pygltflib.ARRAY_BUFFER)) - pos_acc = len(accessors) - accessors.append( - pygltflib.Accessor( - bufferView=pos_bv, - componentType=pygltflib.FLOAT, - count=len(verts), - type=pygltflib.VEC3, - min=verts.min(axis=0).tolist(), - max=verts.max(axis=0).tolist(), - ) - ) - - # Normal buffer view - nrm_off = len(blob) - blob.extend(norms.tobytes()) - nrm_bv = len(buffer_views) - buffer_views.append(pygltflib.BufferView(buffer=0, byteOffset=nrm_off, byteLength=len(norms) * 12, target=pygltflib.ARRAY_BUFFER)) - nrm_acc = len(accessors) - accessors.append( - pygltflib.Accessor( - bufferView=nrm_bv, - componentType=pygltflib.FLOAT, - count=len(norms), - type=pygltflib.VEC3, - ) - ) - - # Index buffer view - while len(blob) % 4 != 0: - blob.append(0) - idx_off = len(blob) - blob.extend(indices.tobytes()) - idx_bv = len(buffer_views) - buffer_views.append( - pygltflib.BufferView( - buffer=0, byteOffset=idx_off, byteLength=len(indices) * idx_elem_bytes, target=pygltflib.ELEMENT_ARRAY_BUFFER - ) - ) - idx_acc = len(accessors) - accessors.append( - pygltflib.Accessor( - bufferView=idx_bv, - componentType=idx_comp_type, - count=len(indices), - type=pygltflib.SCALAR, - ) - ) - - col, met, rough = MATERIAL_SPECS[mat_name] - m_id = len(materials) - materials.append( - pygltflib.Material( - name=mat_name, - pbrMetallicRoughness=pygltflib.PbrMetallicRoughness( - baseColorFactor=list(col), - metallicFactor=met, - roughnessFactor=rough, - ), - ) - ) - primitives.append( - pygltflib.Primitive( - attributes=pygltflib.Attributes(POSITION=pos_acc, NORMAL=nrm_acc), - indices=idx_acc, - material=m_id, - ) - ) - - gltf = pygltflib.GLTF2( - asset=pygltflib.Asset(version="2.0", generator="RustToDust Sion Map Baker"), - scene=0, - scenes=[pygltflib.Scene(nodes=[0])], - nodes=[pygltflib.Node(mesh=0, name=mesh_name)], - meshes=[pygltflib.Mesh(name=mesh_name, primitives=primitives)], - materials=materials, - buffers=[pygltflib.Buffer(byteLength=len(blob))], - bufferViews=buffer_views, - accessors=accessors, - ) - gltf.set_binary_blob(bytes(blob)) - gltf.save_binary(str(out_path)) - return total_tris, out_path.stat().st_size - - -def export_collision_bin( - tris_list: list[np.ndarray], out_path: Path, tx: int, tz: int -) -> tuple[int, int, int, list[float], list[float]]: - """ - Export compact RCOL v1 binary static collision trimesh for Ymir.AddStaticMesh: - Header (48 bytes LE): - magic[4] = b"RCOL", uint32 version = 1, int32 tx, int32 tz, - uint32 vertexCount, uint32 indexCount, - float32[3] boundsMin, float32[3] boundsMax - Payload: - float32[vertexCount * 3] positions (X, Y, Z in arena glTF space) - int32[indexCount] triangle indices (CCW outward) - """ - out_path.parent.mkdir(parents=True, exist_ok=True) - if not tris_list: - raise RuntimeError(f"Cannot export empty collision bin for tile ({tx}, {tz})") - - tris = np.asarray(tris_list, dtype=np.float32) - e1 = tris[:, 1] - tris[:, 0] - e2 = tris[:, 2] - tris[:, 0] - cross = np.cross(e1, e2) - valid = np.linalg.norm(cross, axis=1) > 1e-5 - tris = tris[valid] - if len(tris) == 0: - raise RuntimeError(f"All collision triangles degenerate for tile ({tx}, {tz})") - - raw_verts = tris.reshape(-1, 3) - # Position-only deduplication at 2mm grid (collision has no per-face normals) - q_pos = np.round(raw_verts * 500.0).astype(np.int64) - keys = np.ascontiguousarray(q_pos).view(np.dtype((np.void, 3 * 8))).ravel() - _, uniq_idx, inv_idx = np.unique(keys, return_index=True, return_inverse=True) - verts = np.ascontiguousarray(raw_verts[uniq_idx], dtype=" None: - parser = argparse.ArgumentParser(description="Bake Sion, Switzerland 3km tiled map assets for RustToDust.") - parser.add_argument("--repo-root", default=str(Path(__file__).resolve().parents[3])) - parser.add_argument("--cache-dir", default=os.path.join(os.environ.get("TEMP", "/tmp"), "sion-cache")) - parser.add_argument("--center-e", type=float, default=DEFAULT_CENTER_E) - parser.add_argument("--center-n", type=float, default=DEFAULT_CENTER_N) - args = parser.parse_args() - - repo_root = Path(args.repo_root).resolve() - out_dir = repo_root / "assets" / "maps" / "sion" - tiles_dir = out_dir / "tiles" - out_dir.mkdir(parents=True, exist_ok=True) - tiles_dir.mkdir(parents=True, exist_ok=True) - cache_dir = Path(args.cache_dir) - cache_dir.mkdir(parents=True, exist_ok=True) - - # Cut obsolete single-monolith GLBs & any stale tile files before baking - for obsolete in ("sion_lod2.glb", "sion_lod1.glb"): - obs_path = out_dir / obsolete - if obs_path.exists(): - obs_path.unlink() - print(f"[Sion Baker] Removed obsolete monolith {obs_path.name}") - for stale in tiles_dir.iterdir(): - if stale.is_file(): - stale.unlink() - - cE, cN = args.center_e, args.center_n - e0, n0, e1, n1 = cE - HALF_EXTENT_M, cN - HALF_EXTENT_M, cE + HALF_EXTENT_M, cN + HALF_EXTENT_M - - print( - f"[Sion Baker] Arena {ARENA_SIZE_M:.0f}m x {ARENA_SIZE_M:.0f}m ({TILE_GRID}x{TILE_GRID} tiles of {TILE_SIZE_M:.0f}m) " - f"EPSG:2056 center=({cE:.1f}, {cN:.1f}) bbox=[{e0:.1f}..{e1:.1f}, {n0:.1f}..{n1:.1f}]" - ) - tif_paths, gdb_paths, stac_ids = acquire_swisstopo_data(cache_dir, e0, n0, e1, n1) - - wms_masks: dict[str, np.ndarray] | None = None - try: - wms_masks = acquire_wms_masks(cache_dir, e0, n0, e1, n1, SURFACE_TEX_RES) - except Exception as exc: - print(f" [WMS warning] Falling back to DEM-only river/road synthesis ({exc})") - - print(f"[Sion Baker] Stitching & resampling swissALTI3D to {GRID_RES}x{GRID_RES} float32...") - hm, surf_dem_asl, base_elev, min_y, max_y = build_heightmap(tif_paths, cE, cN) - hm_path = out_dir / "heightmap.f32" - hm.astype("= MAX_SURFACE_PNG_BYTES: - raise RuntimeError(f"terrain_surface.png exceeded 3 MB budget: {len(surf_png)} bytes") - - # Export per-tile LOD2 GLBs & RCOL v1 collision bins - non_empty_tiles = sorted(tile_bldg_counts.keys()) - tile_stats: dict[tuple[int, int], dict] = {} - total_lod2_tris = 0 - total_lod2_bytes = 0 - total_col_tris = 0 - total_col_bytes = 0 - - for tkey in non_empty_tiles: - tx, tz = tkey - lod2_path = tiles_dir / f"lod2_{tx}_{tz}.glb" - col_path = tiles_dir / f"col_{tx}_{tz}.bin" - l2_tris, l2_bytes = export_glb(tile_lod2_mats[tkey], lod2_path, f"Sion_LOD2_{tx}_{tz}") - c_verts, c_tris, c_bytes, bmin, bmax = export_collision_bin(tile_col_tris[tkey], col_path, tx, tz) - total_lod2_tris += l2_tris - total_lod2_bytes += l2_bytes - total_col_tris += c_tris - total_col_bytes += c_bytes - tile_cx = -HALF_EXTENT_M + (tx + 0.5) * TILE_SIZE_M - tile_cz = -HALF_EXTENT_M + (tz + 0.5) * TILE_SIZE_M - tile_stats[tkey] = { - "tx": tx, - "tz": tz, - "lod2": f"tiles/lod2_{tx}_{tz}.glb", - "lod1": f"tiles/lod1_{tx}_{tz}.glb", - "collision": f"tiles/col_{tx}_{tz}.bin", - "buildingCount": int(tile_bldg_counts[tkey]), - "lod2Tris": int(l2_tris), - "lod2Bytes": int(l2_bytes), - "colVerts": int(c_verts), - "colTris": int(c_tris), - "colBytes": int(c_bytes), - "center": [round(tile_cx, 2), 0.0, round(tile_cz, 2)], - "boundsMin": bmin, - "boundsMax": bmax, - } - - print( - f"[Sion Baker] Exported {len(non_empty_tiles)}/{TILE_GRID*TILE_GRID} non-empty LOD2+COL tiles: " - f"LOD2={total_lod2_tris:,} tris ({total_lod2_bytes/1e6:.2f} MB), " - f"COL={total_col_tris:,} tris ({total_col_bytes/1e6:.2f} MB)" - ) - - # Adaptive procedural LOD1 across all tiles so combined GLB footprint stays strictly < 28 MB - bay_scale = 1.0 - all_preps = [p for tkey in non_empty_tiles for p in tile_lod1_prepared[tkey]] - for attempt in range(16): - est_tris = 0 - for prep in all_preps: - per_mat = generate_lod1_building(prep, bay_scale=bay_scale) - est_tris += sum(len(v) for v in per_mat.values()) - print(f" LOD1 global pass (bay_scale={bay_scale:.2f}): {est_tris:,} raw tris") - if est_tris <= MAX_LOD1_TRIS: - break - bay_scale *= max(1.16, math.sqrt(est_tris / (MAX_LOD1_TRIS * 0.90))) - - total_lod1_tris = 0 - total_lod1_bytes = 0 - for tkey in non_empty_tiles: - tx, tz = tkey - t_mats: dict[str, list[np.ndarray]] = defaultdict(list) - for prep in tile_lod1_prepared[tkey]: - per_mat = generate_lod1_building(prep, bay_scale=bay_scale) - for mk, tlist in per_mat.items(): - t_mats[mk].extend(tlist) - lod1_path = tiles_dir / f"lod1_{tx}_{tz}.glb" - l1_tris, l1_bytes = export_glb(t_mats, lod1_path, f"Sion_LOD1_{tx}_{tz}") - total_lod1_tris += l1_tris - total_lod1_bytes += l1_bytes - tile_stats[tkey]["lod1Tris"] = int(l1_tris) - tile_stats[tkey]["lod1Bytes"] = int(l1_bytes) - - print( - f"[Sion Baker] Exported {len(non_empty_tiles)} LOD1 tiles (bay_scale={bay_scale:.2f}): " - f"{total_lod1_tris:,} tris ({total_lod1_bytes/1e6:.2f} MB)" - ) - - manifest = { - "map": "sion", - "coordinateSystem": "rusttodust_arena_gltf", - "attribution": "Federal Office of Topography swisstopo", - "sizeMeters": ARENA_SIZE_M, - "tileGrid": TILE_GRID, - "tileSizeMeters": TILE_SIZE_M, - "count": len(manifest_entries), - "classes": dict(class_counts.most_common()), - "buildings": manifest_entries, - } - manifest_path = out_dir / "buildings_manifest.json" - manifest_path.write_text(json.dumps(manifest, indent=2), encoding="utf-8") - - meta = { - "name": "Sion, Valais, Switzerland", - "attribution": "Federal Office of Topography swisstopo", - "sources": [ - "ch.swisstopo.swissalti3d (2m DTM, Open Government Data)", - "ch.swisstopo.swissbuildings3d_3_0 (LOD2 3D Buildings, Open Government Data)", - ], - "stacItems": stac_ids, - "crs": "EPSG:2056", - "originE": e0, - "originN": n0, - "centerE": cE, - "centerN": cN, - "baseElevationM": base_elev, - "minY": round(min_y, 3), - "maxY": round(max_y, 3), - "reliefM": round(max_y - min_y, 3), - "sizeMeters": ARENA_SIZE_M, - "tileGrid": TILE_GRID, - "tileSizeMeters": TILE_SIZE_M, - "gridRes": GRID_RES, - "cellSizeMeters": CELL_SIZE_M, - "heightmapFormat": "float32_le_row_major", - "surfaceTexture": "terrain_surface.png", - "surfaceTextureSize": SURFACE_TEX_RES, - "surfaceTextureFormat": "png_rgb_north_to_south_west_to_east", - "collisionFormat": { - "magic": "RCOL", - "version": 1, - "headerBytes": 48, - "headerLayout": "magic[4], uint32 version, int32 tx, int32 tz, uint32 vertexCount, uint32 indexCount, float32[3] boundsMin, float32[3] boundsMax", - "vertexLayout": "float32[vertexCount * 3] (X, Y, Z in arena glTF space)", - "indexLayout": "int32[indexCount] (CCW outward triangles)", - }, - "rowOrder": "north_to_south_z_neg_to_pos", - "colOrder": "west_to_east_x_neg_to_pos", - "coordinateTransform": { - "X": "E - centerE (East = +X)", - "Y": "Z_asl - baseElevationM (Up = +Y)", - "Z": "-(N - centerN) (North = -Z)", - }, - "tileCount": len(non_empty_tiles), - "tiles": [tile_stats[k] for k in non_empty_tiles], - } - meta_path = out_dir / "metadata.json" - meta_path.write_text(json.dumps(meta, indent=2), encoding="utf-8") - - combined_glb_bytes = total_lod1_bytes + total_lod2_bytes - total_assets_bytes = sum(p.stat().st_size for p in out_dir.rglob("*") if p.is_file()) - print( - f"[Sion Baker] Summary: {len(manifest_entries)} buildings across {len(non_empty_tiles)} tiles | " - f"LOD1+LOD2 GLBs = {combined_glb_bytes/1e6:.2f} MB (< 28 MB limit) | " - f"Total assets/maps/sion = {total_assets_bytes/1e6:.2f} MB (< 40 MB limit)" - ) - if combined_glb_bytes >= MAX_TILES_GLB_BYTES: - raise RuntimeError(f"Combined tile GLB budget exceeded: {combined_glb_bytes} bytes >= {MAX_TILES_GLB_BYTES}") - if total_assets_bytes >= MAX_TOTAL_ASSETS_BYTES: - raise RuntimeError(f"Total asset budget exceeded: {total_assets_bytes} bytes >= {MAX_TOTAL_ASSETS_BYTES}") - - -if __name__ == "__main__": - main() diff --git a/tools/maps/sion/previews/sion_3km_overview.png b/tools/maps/sion/previews/sion_3km_overview.png deleted file mode 100644 index 01483b4..0000000 Binary files a/tools/maps/sion/previews/sion_3km_overview.png and /dev/null differ diff --git a/tools/maps/sion/previews/sion_lod1_closeup.png b/tools/maps/sion/previews/sion_lod1_closeup.png deleted file mode 100644 index 86b0d4e..0000000 Binary files a/tools/maps/sion/previews/sion_lod1_closeup.png and /dev/null differ diff --git a/tools/maps/sion/render_previews.py b/tools/maps/sion/render_previews.py deleted file mode 100644 index a26692e..0000000 --- a/tools/maps/sion/render_previews.py +++ /dev/null @@ -1,258 +0,0 @@ -#!/usr/bin/env python3 -""" -Blender 5.3.0 headless preview renderer for Sion, Switzerland 3km tiled map assets. -Produces: - - tools/maps/sion/previews/sion_3km_overview.png - - tools/maps/sion/previews/sion_lod1_closeup.png -""" - -from __future__ import annotations - -import json -import math -import struct -import sys -from pathlib import Path - -import bpy -import numpy as np -from mathutils import Vector - - -def clear_scene() -> None: - bpy.ops.wm.read_factory_settings(use_empty=True) - - -def create_terrain_mesh(hm_path: Path, meta: dict) -> bpy.types.Object: - grid_res = int(meta["gridRes"]) - size_m = float(meta["sizeMeters"]) - half = size_m * 0.5 - step = size_m / (grid_res - 1) - - raw = hm_path.read_bytes() - expected = grid_res * grid_res * 4 - if len(raw) != expected: - raise RuntimeError(f"heightmap.f32 size mismatch: {len(raw)} != {expected}") - heights = np.frombuffer(raw, dtype=" Blender (X_east, Y_north = -Z_south, Z_up = Y_up) - xs = -half + np.arange(grid_res, dtype=np.float32) * step - zs = -half + np.arange(grid_res, dtype=np.float32) * step - gx, gz = np.meshgrid(xs, zs) # (grid_res, grid_res), row iz=0..N-1 (North->South) - verts_np = np.column_stack([gx.ravel(), (-gz).ravel(), heights.ravel()]).astype(np.float32) - - # Quad indices: iz increases southward (-Y_bl), ix increases eastward (+X_bl) - # CCW looking from +Z_bl: (r1+ix) -> (r1+ix+1) -> (r0+ix+1) -> (r0+ix) - ix = np.arange(grid_res - 1, dtype=np.int32) - iz = np.arange(grid_res - 1, dtype=np.int32) - ixg, izg = np.meshgrid(ix, iz) - r0 = izg * grid_res + ixg - r1 = (izg + 1) * grid_res + ixg - quads = np.stack([r1, r1 + 1, r0 + 1, r0], axis=-1).reshape(-1, 4) - - mesh = bpy.data.meshes.new("SionTerrainMesh") - n_verts = len(verts_np) - n_faces = len(quads) - mesh.vertices.add(n_verts) - mesh.vertices.foreach_set("co", verts_np.ravel()) - mesh.loops.add(n_faces * 4) - mesh.loops.foreach_set("vertex_index", quads.ravel()) - mesh.polygons.add(n_faces) - mesh.polygons.foreach_set("loop_start", np.arange(0, n_faces * 4, 4, dtype=np.int32)) - mesh.polygons.foreach_set("loop_total", np.full(n_faces, 4, dtype=np.int32)) - mesh.polygons.foreach_set("use_smooth", [True] * n_faces) - - # UV coordinates matching terrain_surface.png (row 0 = North -> v=1.0, row H-1 = South -> v=0.0) - u_vert = (gx.ravel() + half) / size_m - v_vert = 1.0 - (gz.ravel() + half) / size_m - uv_vert = np.column_stack([u_vert, v_vert]).astype(np.float32) - loop_vidx = quads.ravel() - uv_loops = uv_vert[loop_vidx] - uv_layer = mesh.uv_layers.new(name="UVMap") - uv_layer.data.foreach_set("uv", uv_loops.ravel()) - - mesh.update() - obj = bpy.data.objects.new("SionTerrain", mesh) - bpy.context.collection.objects.link(obj) - return obj - - -def build_terrain_material(assets_dir: Path, meta: dict) -> bpy.types.Material: - mat = bpy.data.materials.new("SionTerrainMat") - mat.use_nodes = True - nt = mat.node_tree - nt.nodes.clear() - - out = nt.nodes.new("ShaderNodeOutputMaterial") - bsdf = nt.nodes.new("ShaderNodeBsdfPrincipled") - bsdf.inputs["Roughness"].default_value = 0.86 - nt.links.new(bsdf.outputs["BSDF"], out.inputs["Surface"]) - - surf_name = meta.get("surfaceTexture", "terrain_surface.png") - surf_path = assets_dir / surf_name - if not surf_path.exists(): - raise FileNotFoundError(f"Missing terrain surface texture: {surf_path}") - - tex_coord = nt.nodes.new("ShaderNodeTexCoord") - tex_img = nt.nodes.new("ShaderNodeTexImage") - img = bpy.data.images.load(str(surf_path)) - img.colorspace_settings.name = "sRGB" - tex_img.image = img - tex_img.extension = "EXTEND" - nt.links.new(tex_coord.outputs["UV"], tex_img.inputs["Vector"]) - nt.links.new(tex_img.outputs["Color"], bsdf.inputs["Base Color"]) - return mat - - -def setup_lighting_and_world() -> None: - world = bpy.data.worlds.new("SionWorld") - bpy.context.scene.world = world - world.use_nodes = True - nt = world.node_tree - nt.nodes.clear() - out = nt.nodes.new("ShaderNodeOutputWorld") - bg = nt.nodes.new("ShaderNodeBackground") - sky = nt.nodes.new("ShaderNodeTexSky") - sky_types = [i.identifier for i in sky.bl_rna.properties["sky_type"].enum_items] - for candidate in ("MULTIPLE_SCATTERING", "NISHITA", "HOSEK_WILKIE", "PREETHAM"): - if candidate in sky_types: - sky.sky_type = candidate - break - sky.sun_elevation = math.radians(26.0) - sky.sun_rotation = math.radians(235.0) # SW afternoon sun - if hasattr(sky, "sun_disc"): - sky.sun_disc = False - if hasattr(sky, "air_density"): - sky.air_density = 1.2 - if hasattr(sky, "dust_density"): - sky.dust_density = 1.4 - bg.inputs["Strength"].default_value = 0.045 - nt.links.new(sky.outputs["Color"], bg.inputs["Color"]) - nt.links.new(bg.outputs["Background"], out.inputs["Surface"]) - - # Crisp directional sun matching sky direction - sun_data = bpy.data.lights.new("AlpineSun", type="SUN") - sun_data.energy = 2.6 - sun_data.color = (1.0, 0.96, 0.90) - sun_data.angle = math.radians(1.0) - sun_obj = bpy.data.objects.new("AlpineSun", sun_data) - bpy.context.collection.objects.link(sun_obj) - sun_dir = Vector((-0.72, -0.45, 0.52)).normalized() - sun_obj.rotation_euler = sun_dir.to_track_quat("Z", "Y").to_euler() - - -def point_camera_at(cam_obj: bpy.types.Object, target: Vector) -> None: - direction = target - cam_obj.location - cam_obj.rotation_euler = direction.to_track_quat("-Z", "Y").to_euler() - - -def configure_renderer(scene: bpy.types.Scene, width: int = 1600, height: int = 1000) -> None: - scene.render.resolution_x = width - scene.render.resolution_y = height - scene.render.resolution_percentage = 100 - scene.render.image_settings.file_format = "PNG" - - # Prefer Cycles (GPU if available, else CPU + denoiser) for crisp shadow/recess readability - scene.render.engine = "CYCLES" - prefs = bpy.context.preferences.addons["cycles"].preferences - for dev_type in ("OPTIX", "CUDA", "HIP", "ONEAPI"): - try: - prefs.compute_device_type = dev_type - prefs.get_devices() - devices = [d for d in prefs.devices if d.type == dev_type] - if devices: - for d in prefs.devices: - d.use = (d.type == dev_type) - scene.cycles.device = "GPU" - print(f"[Render] Using Cycles GPU ({dev_type})") - break - except Exception: - continue - else: - scene.cycles.device = "CPU" - print("[Render] Using Cycles CPU") - - scene.cycles.samples = 48 - scene.cycles.use_denoising = True - scene.view_settings.view_transform = "AgX" if "AgX" in [i.identifier for i in scene.view_settings.bl_rna.properties["view_transform"].enum_items] else "Filmic" - scene.view_settings.exposure = -0.25 - - -def main() -> None: - argv = sys.argv - if "--" in argv: - argv = argv[argv.index("--") + 1 :] - else: - argv = [] - repo_root = Path(argv[0]) if argv else Path(__file__).resolve().parents[3] - - assets_dir = repo_root / "assets" / "maps" / "sion" - preview_dir = repo_root / "tools" / "maps" / "sion" / "previews" - preview_dir.mkdir(parents=True, exist_ok=True) - - meta = json.loads((assets_dir / "metadata.json").read_text(encoding="utf-8")) - manifest = json.loads((assets_dir / "buildings_manifest.json").read_text(encoding="utf-8")) - - clear_scene() - setup_lighting_and_world() - - terrain_obj = create_terrain_mesh(assets_dir / "heightmap.f32", meta) - terrain_obj.data.materials.append(build_terrain_material(assets_dir, meta)) - - # Load all tiled buildings (LOD1 for central core tiles, LOD2 for outer ring tiles) - tiles = meta.get("tiles", []) - if not tiles: - raise RuntimeError("No tiles found in metadata.json") - for t in tiles: - tx, tz = int(t["tx"]), int(t["tz"]) - use_lod1 = (1 <= tx <= 4 and 1 <= tz <= 4) - rel = t["lod1"] if use_lod1 else t["lod2"] - bpy.ops.import_scene.gltf(filepath=str(assets_dir / rel)) - - scene = bpy.context.scene - configure_renderer(scene, 1600, 1000) - - cam_data = bpy.data.cameras.new("PreviewCam") - cam_data.clip_start = 1.0 - cam_data.clip_end = 10000.0 - cam_obj = bpy.data.objects.new("PreviewCam", cam_data) - bpy.context.collection.objects.link(cam_obj) - scene.camera = cam_obj - - # 1. 3km Overview render: WSW elevated aerial framing Valere, Tourbillon, Old Town, - # railway/industrial yards, Rhone river + bridges, and terraced northern hillsides - cam_data.lens = 25.0 - cam_obj.location = Vector((-1620.0, -1380.0, 960.0)) - point_camera_at(cam_obj, Vector((110.0, 90.0, 40.0))) - scene.render.filepath = str(preview_dir / "sion_3km_overview.png") - bpy.ops.render.render(write_still=True) - print(f"[Render] Saved {scene.render.filepath}") - - # Remove obsolete 1.5km overview if present - old_overview = preview_dir / "sion_overview.png" - if old_overview.exists(): - old_overview.unlink() - - # 2. Low hero close-up: locate Valere from manifest and frame Old Town slope + Valere citadel + Tourbillon - valere = None - for b in manifest["buildings"]: - if "valère" in b.get("name", "").lower() or "valere" in b.get("name", "").lower(): - valere = b - break - if valere is not None: - vx, vy, vz = valere["center"] # glTF coords: (X, Y_up, Z_south) - target = Vector((vx - 70.0, -vz - 10.0, vy - 28.0)) # Blender coords: Old Town roofs + Valere - else: - target = Vector((15.0, 70.0, 105.0)) - - cam_data.lens = 34.0 - # Street/rooftop-level vantage in Sion Old Town looking ENE up at multi-bay facades & Valere citadel - cam_obj.location = Vector((target.x - 185.0, target.y - 125.0, target.z - 52.0)) - point_camera_at(cam_obj, target + Vector((15.0, 12.0, -6.0))) - scene.render.filepath = str(preview_dir / "sion_lod1_closeup.png") - bpy.ops.render.render(write_still=True) - print(f"[Render] Saved {scene.render.filepath}") - - -if __name__ == "__main__": - main() diff --git a/tools/vehicles/bake_vertex_weathering.py b/tools/vehicles/bake_vertex_weathering.py deleted file mode 100644 index 068c2f9..0000000 --- a/tools/vehicles/bake_vertex_weathering.py +++ /dev/null @@ -1,556 +0,0 @@ -"""Bake geometric weathering vertex attributes (COLOR_0) into Brokkr vehicle GLBs. - -Writes COLOR_0 (VEC4 normalized UNSIGNED_BYTE) onto every mesh primitive: - R = geometric cavity AO (0 = deep crevice, 1 = open exposed face) - G = convex dihedral edge curvature (0 = flat, 1 = sharp exposed edge) - B = connected-component per-island hash (0..1) - A = normalized rest-pose height above minY (meters / 6.0, clamped 0..1) - -Pure numpy + struct; runs in < 1s per vehicle and is idempotent on re-run. -Preserves all glTF nodes, transforms, materials, hardpoint anchors, joints, and bounds. - -Usage: - python tools/vehicles/bake_vertex_weathering.py paladin jackal - python tools/vehicles/bake_vertex_weathering.py --all -""" -from __future__ import annotations - -import argparse -import json -import math -import struct -import time -from pathlib import Path -from typing import Any - -import numpy as np - -REPO_ROOT = Path(__file__).resolve().parents[2] -VEHICLES_DIR = REPO_ROOT / "assets" / "vehicles" - -ALL_VEHICLES = ( - "jackal", "mule", "ferret", "hornet", "mammoth", "ironclad", "anvil", "condor", - "breaker", "paladin", "raptor", "manticore", "bastion", "spectre", "kestrel", -) - - -# --------------------------------------------------------------------------- -# glTF / GLB helpers -# --------------------------------------------------------------------------- - -def _node_local_matrix(node: dict[str, Any]) -> np.ndarray: - if "matrix" in node: - return np.array(node["matrix"], dtype=np.float64).reshape(4, 4).T - m = np.eye(4, dtype=np.float64) - if "scale" in node: - sx, sy, sz = node["scale"] - m = m @ np.diag([sx, sy, sz, 1.0]) - if "rotation" in node: - qx, qy, qz, qw = node["rotation"] - xx, yy, zz = qx * qx, qy * qy, qz * qz - xy, xz, yz = qx * qy, qx * qz, qy * qz - wx, wy, wz = qw * qx, qw * qy, qw * qz - r = np.array([ - [1 - 2 * (yy + zz), 2 * (xy - wz), 2 * (xz + wy), 0.0], - [2 * (xy + wz), 1 - 2 * (xx + zz), 2 * (yz - wx), 0.0], - [2 * (xz - wy), 2 * (yz + wx), 1 - 2 * (xx + yy), 0.0], - [0.0, 0.0, 0.0, 1.0], - ], dtype=np.float64) - m = r @ m - if "translation" in node: - tx, ty, tz = node["translation"] - m[:3, 3] = [tx, ty, tz] - return m - - -def _read_accessor( - accessors: list[dict[str, Any]], - buffer_views: list[dict[str, Any]], - bin_blob: bytes, - acc_idx: int, -) -> np.ndarray: - acc = accessors[acc_idx] - bv = buffer_views[acc["bufferView"]] - off = bv.get("byteOffset", 0) + acc.get("byteOffset", 0) - count = acc["count"] - ct = acc["componentType"] - typ = acc["type"] - if typ == "VEC3" and ct == 5126: - stride = bv.get("byteStride", 12) - if stride == 12: - return np.frombuffer(bin_blob, dtype=" float: - x = (a * 0x9E3779B97F4A7C15 + b * 0xBF58476D1CE4E5B9 + c * 0x94D049BB133111EB) & 0xFFFFFFFFFFFFFFFF - x = ((x ^ (x >> 30)) * 0xBF58476D1CE4E5B9) & 0xFFFFFFFFFFFFFFFF - x = ((x ^ (x >> 27)) * 0x94D049BB133111EB) & 0xFFFFFFFFFFFFFFFF - x = x ^ (x >> 31) - return float((x >> 40) & 0xFFFFFF) / float(0x1000000) - - -# --------------------------------------------------------------------------- -# Fast geometric operators (pure numpy) -# --------------------------------------------------------------------------- - -def _weld_positions(pos: np.ndarray) -> tuple[np.ndarray, int]: - """Quantize positions to 0.1 mm and return (weld_id_per_vert, unique_count).""" - q = np.round(pos * 10000.0).astype(np.int64) - # View rows as structured void for fast single-pass np.unique - q_contig = np.ascontiguousarray(q) - view = q_contig.view([("x", np.int64), ("y", np.int64), ("z", np.int64)]).ravel() - _, inv = np.unique(view, return_inverse=True) - return inv.astype(np.int64), int(inv.max()) + 1 if len(inv) else 0 - - -def _connected_components(n_weld: int, tris_weld: np.ndarray) -> np.ndarray: - """Fast union-find connected components on welded vertex indices.""" - parent = list(range(n_weld)) - - def find(x: int) -> int: - while parent[x] != x: - parent[x] = parent[parent[x]] - x = parent[x] - return x - - for a, b, c in tris_weld.tolist(): - ra, rb, rc = find(a), find(b), find(c) - if ra != rb: - parent[rb] = ra - if ra != rc: - parent[rc] = ra - - roots = np.empty(n_weld, dtype=np.int64) - root_map: dict[int, int] = {} - nxt = 0 - for i in range(n_weld): - r = find(i) - cid = root_map.get(r) - if cid is None: - cid = nxt - root_map[r] = cid - nxt += 1 - roots[i] = cid - return roots - - -def _dihedral_edge_and_crevice( - pos: np.ndarray, - nrm: np.ndarray, - tris: np.ndarray, - weld_id: np.ndarray, - n_weld: int, -) -> tuple[np.ndarray, np.ndarray]: - """Compute (convex_edge_curvature, local_concave_ao) per vertex.""" - edge_out = np.zeros(len(pos), dtype=np.float32) - conc_ao = np.ones(len(pos), dtype=np.float32) - if len(tris) == 0 or n_weld == 0: - return edge_out, conc_ao - - v0 = pos[tris[:, 0]] - v1 = pos[tris[:, 1]] - v2 = pos[tris[:, 2]] - fn_raw = np.cross(v1 - v0, v2 - v0) - fn_len = np.linalg.norm(fn_raw, axis=1, keepdims=True) - valid_tri = (fn_len[:, 0] > 1e-12) - fn = np.divide(fn_raw, np.maximum(fn_len, 1e-12)) - fc = (v0 + v1 + v2) / 3.0 - - wt = weld_id[tris] # (T, 3) - t_idx = np.arange(len(tris), dtype=np.int64) - - e0 = np.stack([np.minimum(wt[:, 0], wt[:, 1]), np.maximum(wt[:, 0], wt[:, 1]), t_idx], axis=1) - e1 = np.stack([np.minimum(wt[:, 1], wt[:, 2]), np.maximum(wt[:, 1], wt[:, 2]), t_idx], axis=1) - e2 = np.stack([np.minimum(wt[:, 2], wt[:, 0]), np.maximum(wt[:, 2], wt[:, 0]), t_idx], axis=1) - edges = np.concatenate([e0, e1, e2], axis=0) - # Remove degenerate edges - edges = edges[edges[:, 0] != edges[:, 1]] - if len(edges) == 0: - return edge_out, conc_ao - - order = np.lexsort((edges[:, 1], edges[:, 0])) - edges = edges[order] - - same = (edges[:-1, 0] == edges[1:, 0]) & (edges[:-1, 1] == edges[1:, 1]) - idx_a = edges[:-1, 2][same] - idx_b = edges[1:, 2][same] - eu = edges[:-1, 0][same] - ev = edges[:-1, 1][same] - - both_valid = valid_tri[idx_a] & valid_tri[idx_b] - idx_a, idx_b, eu, ev = idx_a[both_valid], idx_b[both_valid], eu[both_valid], ev[both_valid] - - weld_convex_sum = np.zeros(n_weld, dtype=np.float32) - weld_convex_cnt = np.zeros(n_weld, dtype=np.float32) - weld_convex_max = np.zeros(n_weld, dtype=np.float32) - weld_concave = np.zeros(n_weld, dtype=np.float32) - - if len(idx_a) > 0: - na = fn[idx_a] - nb = fn[idx_b] - dots = np.clip(np.sum(na * nb, axis=1), -1.0, 1.0) - angles = np.arccos(dots) # radians [0, pi] - delta_c = fc[idx_b] - fc[idx_a] - # Convex if triangle B center lies behind triangle A's front plane - proj_a = np.sum(na * delta_c, axis=1) - proj_b = np.sum(nb * (-delta_c), axis=1) - sign_val = 0.5 * (proj_a + proj_b) - - is_convex = (sign_val < -1e-5) & (angles > 0.55) - is_concave = (sign_val > 1e-5) & (angles > 0.28) - - convex_val = np.where(is_convex, np.clip((angles - 0.55) / 0.95, 0.0, 1.0), 0.0).astype(np.float32) - concave_val = np.where(is_concave, np.clip((angles - 0.28) / 1.20, 0.0, 1.0), 0.0).astype(np.float32) - - np.add.at(weld_convex_sum, eu, convex_val) - np.add.at(weld_convex_sum, ev, convex_val) - np.add.at(weld_convex_cnt, eu, 1.0) - np.add.at(weld_convex_cnt, ev, 1.0) - np.maximum.at(weld_convex_max, eu, convex_val) - np.maximum.at(weld_convex_max, ev, convex_val) - np.maximum.at(weld_concave, eu, concave_val) - np.maximum.at(weld_concave, ev, concave_val) - - weld_convex_mean = np.divide(weld_convex_sum, np.maximum(weld_convex_cnt, 1.0)) - weld_convex = 0.55 * weld_convex_mean + 0.45 * weld_convex_max - edge_out = weld_convex[weld_id] - conc_ao = np.clip(1.0 - 0.55 * weld_concave[weld_id], 0.35, 1.0).astype(np.float32) - return edge_out, conc_ao - - -def _compute_voxel_ao( - all_wpos: np.ndarray, - all_wnrm: np.ndarray, - sample_pts: np.ndarray, -) -> np.ndarray: - """Fast 3D spatial occupancy ray-marched AO across the whole rest-pose vehicle.""" - if len(all_wpos) == 0 or len(sample_pts) == 0: - return np.ones(len(all_wpos), dtype=np.float32) - - bmin = sample_pts.min(axis=0) - bmax = sample_pts.max(axis=0) - extent = np.maximum(bmax - bmin, 0.2) - max_ext = float(extent.max()) - voxel = max(0.075, max_ext / 84.0) - pad = voxel * 8.0 - origin = bmin - pad - dims = np.ceil((extent + 2.0 * pad) / voxel).astype(np.int64) - nx, ny, nz = int(dims[0]), int(dims[1]), int(dims[2]) - - grid = np.zeros((nx, ny, nz), dtype=np.uint8) - idx = np.floor((sample_pts - origin) / voxel).astype(np.int64) - idx[:, 0] = np.clip(idx[:, 0], 0, nx - 1) - idx[:, 1] = np.clip(idx[:, 1], 0, ny - 1) - idx[:, 2] = np.clip(idx[:, 2], 0, nz - 1) - grid[idx[:, 0], idx[:, 1], idx[:, 2]] = 1 - grid_flat = grid.ravel() - sy = nz - sx = ny * nz - - # 18 well-distributed unit ray directions (6 axial + 12 diagonal) - raw_dirs = [ - (1, 0, 0), (-1, 0, 0), (0, 1, 0), (0, -1, 0), (0, 0, 1), (0, 0, -1), - (1, 1, 0), (-1, 1, 0), (1, -1, 0), (-1, -1, 0), - (1, 0, 1), (-1, 0, 1), (1, 0, -1), (-1, 0, -1), - (0, 1, 1), (0, -1, 1), (0, 1, -1), (0, -1, -1), - ] - dirs = np.array(raw_dirs, dtype=np.float32) - dirs /= np.linalg.norm(dirs, axis=1, keepdims=True) - - # Start rays slightly outside the vertex surface to prevent self-hit - p0 = all_wpos.astype(np.float32) + all_wnrm.astype(np.float32) * (1.35 * voxel) - steps = np.array([0.14, 0.25, 0.38, 0.54, 0.72], dtype=np.float32) - step_weights = np.array([1.0, 0.85, 0.65, 0.45, 0.28], dtype=np.float32) - - nrm_f = all_wnrm.astype(np.float32) - inv_vox = np.float32(1.0 / voxel) - orig_f = origin.astype(np.float32) - - occ_acc = np.zeros(len(all_wpos), dtype=np.float32) - weight_acc = np.zeros(len(all_wpos), dtype=np.float32) - - for d in dirs: - cos_w = np.maximum(nrm_f @ d, 0.0) - active = cos_w > 0.08 - if not np.any(active): - continue - w_act = cos_w[active] - p_act = p0[active] - hit_max = np.zeros(len(p_act), dtype=np.float32) - - for st, sw in zip(steps, step_weights): - q = p_act + d * st - gx = np.floor((q[:, 0] - orig_f[0]) * inv_vox).astype(np.int64) - gy = np.floor((q[:, 1] - orig_f[1]) * inv_vox).astype(np.int64) - gz = np.floor((q[:, 2] - orig_f[2]) * inv_vox).astype(np.int64) - inside = (gx >= 0) & (gx < nx) & (gy >= 0) & (gy < ny) & (gz >= 0) & (gz < nz) - if not np.any(inside): - continue - flat_i = np.where(inside, gx * sx + gy * sy + gz, 0) - occ = grid_flat[flat_i] & inside - hit_max = np.maximum(hit_max, occ.astype(np.float32) * sw) - - occ_acc[active] += hit_max * w_act - weight_acc[active] += w_act - - raw_occ = np.divide(occ_acc, np.maximum(weight_acc, 1e-4)) - return np.clip(1.0 - raw_occ * 0.92, 0.06, 1.0).astype(np.float32) - - -# --------------------------------------------------------------------------- -# GLB baker -# --------------------------------------------------------------------------- - -def bake_glb(glb_path: Path) -> dict[str, Any]: - t0 = time.perf_counter() - data = glb_path.read_bytes() - magic, version, total_len = struct.unpack_from(" None: - node = nodes[node_idx] - world = parent_mat @ _node_local_matrix(node) - if "mesh" in node and node["mesh"] not in mesh_world: - mesh_world[node["mesh"]] = world - for c in node.get("children", []): - walk(c, world) - - ident = np.eye(4, dtype=np.float64) - for r_idx in root_indices: - walk(r_idx, ident) - - # Pass 1: Read all primitives, compute rest-pose world positions/normals, edges, islands, and surface samples - prim_records: list[dict[str, Any]] = [] - wpos_chunks: list[np.ndarray] = [] - wnrm_chunks: list[np.ndarray] = [] - sample_chunks: list[np.ndarray] = [] - global_min_y = math.inf - vert_cursor = 0 - - for m_idx, mesh in enumerate(meshes): - wmat = mesh_world.get(m_idx, ident) - rot_lin = wmat[:3, :3] - det = float(np.linalg.det(rot_lin)) - nrm_mat = np.linalg.inv(rot_lin).T if abs(det) > 1e-12 else rot_lin - - for p_idx, prim in enumerate(mesh.get("primitives", [])): - attrs = prim.get("attributes", {}) - if "POSITION" not in attrs: - continue - pos = _read_accessor(accessors, buffer_views, bin_blob, attrs["POSITION"]) - vcount = len(pos) - if vcount == 0: - continue - if "NORMAL" in attrs: - nrm = _read_accessor(accessors, buffer_views, bin_blob, attrs["NORMAL"]) - else: - nrm = np.tile(np.array([0.0, 1.0, 0.0]), (vcount, 1)) - - if prim.get("mode", 4) == 4: - if "indices" in prim: - tris = _read_accessor(accessors, buffer_views, bin_blob, prim["indices"]).reshape(-1, 3) - else: - tris = np.arange((vcount // 3) * 3, dtype=np.int64).reshape(-1, 3) - else: - tris = np.empty((0, 3), dtype=np.int64) - - wpos = pos @ rot_lin.T + wmat[:3, 3] - wnrm = nrm @ nrm_mat.T - wnrm_len = np.linalg.norm(wnrm, axis=1, keepdims=True) - wnrm = np.divide(wnrm, np.maximum(wnrm_len, 1e-12)) - - global_min_y = min(global_min_y, float(wpos[:, 1].min())) - - weld_id, n_weld = _weld_positions(pos) - if len(tris) > 0 and n_weld > 0: - comp_weld = _connected_components(n_weld, weld_id[tris]) - max_c = int(comp_weld.max()) + 1 - comp_hashes = np.array([_splitmix64_hash(m_idx, p_idx, c) for c in range(max_c)], dtype=np.float32) - island_hash = comp_hashes[comp_weld[weld_id]] - else: - island_hash = np.full(vcount, _splitmix64_hash(m_idx, p_idx, 0), dtype=np.float32) - - edge_curv, local_conc_ao = _dihedral_edge_and_crevice(pos, nrm, tris, weld_id, n_weld) - - # Surface samples for voxel AO (vertices + face centroids + edge midpoints) - sample_chunks.append(wpos) - if len(tris) > 0: - tv0, tv1, tv2 = wpos[tris[:, 0]], wpos[tris[:, 1]], wpos[tris[:, 2]] - sample_chunks.append((tv0 + tv1 + tv2) / 3.0) - sample_chunks.append((tv0 + tv1) * 0.5) - sample_chunks.append((tv1 + tv2) * 0.5) - sample_chunks.append((tv2 + tv0) * 0.5) - - wpos_chunks.append(wpos) - wnrm_chunks.append(wnrm) - prim_records.append({ - "prim": prim, - "vcount": vcount, - "vstart": vert_cursor, - "edge": edge_curv, - "local_ao": local_conc_ao, - "island": island_hash, - }) - vert_cursor += vcount - - if not prim_records: - raise RuntimeError(f"No mesh primitives found in {glb_path}") - - all_wpos = np.concatenate(wpos_chunks, axis=0) - all_wnrm = np.concatenate(wnrm_chunks, axis=0) - all_samples = np.concatenate(sample_chunks, axis=0) - - # Pass 2: Global 3D voxel ambient occlusion - voxel_ao = _compute_voxel_ao(all_wpos, all_wnrm, all_samples) - rest_height = np.clip((all_wpos[:, 1] - global_min_y) / 6.0, 0.0, 1.0).astype(np.float32) - - # Pass 3: Append COLOR_0 bufferViews & accessors cleanly - new_bin = bytearray(bin_blob) - if len(new_bin) % 4 != 0: - new_bin.extend(b"\x00" * (4 - (len(new_bin) % 4))) - - ao_vals = [] - edge_vals = [] - for rec in prim_records: - s, n = rec["vstart"], rec["vcount"] - ao = np.clip(voxel_ao[s : s + n] * rec["local_ao"], 0.0, 1.0) - edge = rec["edge"] - island = rec["island"] - h = rest_height[s : s + n] - ao_vals.append(ao) - edge_vals.append(edge) - - rgba = np.stack([ao, edge, island, h], axis=1) - rgba_u8 = np.clip(np.round(rgba * 255.0), 0, 255).astype(np.uint8) - raw_bytes = rgba_u8.tobytes() - - byte_off = len(new_bin) - new_bin.extend(raw_bytes) - if len(new_bin) % 4 != 0: - new_bin.extend(b"\x00" * (4 - (len(new_bin) % 4))) - - bv_idx = len(buffer_views) - buffer_views.append({ - "buffer": 0, - "byteOffset": byte_off, - "byteLength": len(raw_bytes), - "target": 34962, # ARRAY_BUFFER - }) - acc_idx = len(accessors) - accessors.append({ - "bufferView": bv_idx, - "byteOffset": 0, - "componentType": 5121, # UNSIGNED_BYTE - "normalized": True, - "count": n, - "type": "VEC4", - }) - rec["prim"]["attributes"]["COLOR_0"] = acc_idx - - gltf["buffers"][0]["byteLength"] = len(new_bin) - gltf.setdefault("extras", {}) - gltf["extras"]["rtd.color0_base_bin_len"] = base_bin_len - gltf["extras"]["rtd.color0_base_bv_count"] = base_bv_count - gltf["extras"]["rtd.color0_base_acc_count"] = base_acc_count - - json_bytes = json.dumps(gltf, separators=(",", ":")).encode("utf-8") - if len(json_bytes) % 4 != 0: - json_bytes += b" " * (4 - (len(json_bytes) % 4)) - if len(new_bin) % 4 != 0: - new_bin.extend(b"\x00" * (4 - (len(new_bin) % 4))) - - total_out = 12 + 8 + len(json_bytes) + 8 + len(new_bin) - out = bytearray() - out.extend(struct.pack(" 0.3).mean()), - "size_kib": len(out) / 1024.0, - } - - -def main() -> int: - parser = argparse.ArgumentParser(description="Bake COLOR_0 weathering attributes onto vehicle GLBs.") - parser.add_argument("vehicles", nargs="*", help="Vehicle IDs to bake (e.g. paladin jackal).") - parser.add_argument("--all", action="store_true", help="Bake all 15 vehicles.") - args = parser.parse_args() - - targets = ALL_VEHICLES if args.all else (tuple(args.vehicles) if args.vehicles else ("paladin", "jackal")) - for vid in targets: - glb_path = VEHICLES_DIR / vid / f"{vid}.glb" - if not glb_path.is_file(): - raise FileNotFoundError(f"Missing vehicle GLB: {glb_path}") - stats = bake_glb(glb_path) - print( - f"Baked {vid:10s} | verts={stats['verts']:6d} | prims={stats['prims']:3d} " - f"| {stats['elapsed_s']:.3f}s | ao=[{stats['ao_min']:.2f}, mean={stats['ao_mean']:.2f}] " - f"| edge>0.3={stats['edge_gt_03']*100:.1f}% | {stats['size_kib']:.1f} KiB" - ) - return 0 - - -if __name__ == "__main__": - raise SystemExit(main()) diff --git a/tools/vehicles/build_anvil.py b/tools/vehicles/build_anvil.py deleted file mode 100644 index 871f408..0000000 --- a/tools/vehicles/build_anvil.py +++ /dev/null @@ -1,468 +0,0 @@ -"""Build the Anvil (Heavy Quad-Track Siege Tank) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _build_quad_track_pod(name: str, side: float, y_center: float, is_front: bool, parent) -> None: - """Build one heavy articulated armored quad-track pod grounded at Z = 0.""" - pod_x = side * 1.56 - pod = vc.make_empty(name, parent=parent, location=(pod_x, y_center, 0.0)) - - rw_r = 0.27 - rw_z = rw_r + 0.045 - rw_ys = (-0.54, 0.0, 0.54) - front_y, front_z, front_r = -0.98, 0.54, 0.24 - rear_y, rear_z, rear_r = 0.98, 0.54, 0.24 - track_w = 0.62 - - # 3 roadwheels + front/rear sprockets - for i, ry in enumerate(rw_ys): - vc.make_tube_part( - f"{name}_rw_tire_{i}", rw_r, rw_r, track_w * 0.84, segments=14, - mat_name="rubber_dark", parent=pod, location=(-track_w * 0.42, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_rw_hub_{i}", rw_r * 0.64, rw_r * 0.64, track_w * 0.90, segments=10, - mat_name="olive_armor", parent=pod, location=(-track_w * 0.45, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_sproc_f", front_r, front_r, track_w * 0.80, segments=12, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.40, front_y, front_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_sproc_r", rear_r, rear_r, track_w * 0.80, segments=12, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.40, rear_y, rear_z), rotation_deg=(0.0, 90.0, 0.0), - ) - - # Track loop polyline in (y, z) - loop_yz: list[tuple[float, float]] = [] - for k in range(6): - ang = math.radians(100.0 + 135.0 * (k / 5.0)) - loop_yz.append((front_y + math.cos(ang) * (front_r + 0.03), front_z + math.sin(ang) * (front_r + 0.03))) - loop_yz.append((-0.54, 0.025)) - loop_yz.append((0.54, 0.025)) - for k in range(6): - ang = math.radians(-55.0 + 135.0 * (k / 5.0)) - loop_yz.append((rear_y + math.cos(ang) * (rear_r + 0.03), rear_z + math.sin(ang) * (rear_r + 0.03))) - loop_yz.append((0.46, 0.83)) - loop_yz.append((-0.46, 0.83)) - - path_3d = [[0.0, y, z] for (y, z) in loop_yz] - vc.make_swept_profile( - f"{name}_track_band", - "box", - 0.034, - track_w * 0.92, - 0.034, - path_3d, - up=[1.0, 0.0, 0.0], - mat_name="rubber_dark", - parent=pod, - closed=True, - ) - - pts = loop_yz + [loop_yz[0]] - segs = [math.hypot(pts[i + 1][0] - pts[i][0], pts[i + 1][1] - pts[i][1]) for i in range(len(loop_yz))] - total_len = sum(segs) - n_shoes = 28 - - def build_shoes(bm: bmesh.types.BMesh) -> None: - for s_idx in range(n_shoes): - target_d = (s_idx / n_shoes) * total_len - acc = 0.0 - for i, sl in enumerate(segs): - if acc + sl >= target_d or i == len(segs) - 1: - t = (target_d - acc) / max(sl, 1e-6) - y0, z0 = pts[i] - y1, z1 = pts[i + 1] - py = y0 + (y1 - y0) * t - pz = z0 + (z1 - z0) * t - ang = math.atan2(z1 - z0, y1 - y0) - m = ( - Matrix.Translation((0.0, py, pz)) - @ Matrix.Rotation(ang, 4, "X") - @ Matrix.Diagonal((track_w, 0.11, 0.034, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - break - acc += sl - - vc.make_bmesh_object(f"{name}_shoes", build_shoes, "gunmetal", parent=pod) - - # Heavy sloped armored pod housing (top deck + chamfered nose/tail + outer bolted side skirts) - vc.make_box(f"{name}_cover_top", (track_w + 0.12, 1.98, 0.14), "olive_armor", parent=pod, location=(0.0, 0.0, 0.92), bevel=0.012) - vc.make_box(f"{name}_cover_f", (track_w + 0.12, 0.42, 0.14), "olive_armor", parent=pod, location=(0.0, -1.14, 0.80), rotation_deg=(36.0, 0.0, 0.0), bevel=0.01) - vc.make_box(f"{name}_cover_r", (track_w + 0.12, 0.42, 0.14), "olive_armor", parent=pod, location=(0.0, 1.14, 0.80), rotation_deg=(-36.0, 0.0, 0.0), bevel=0.01) - # Outer bolted track pod side skirt - skirt_pts = [ - [side * (track_w * 0.5 + 0.04), -1.12, 0.72], - [side * (track_w * 0.5 + 0.04), 1.12, 0.72], - [side * (track_w * 0.5 + 0.04), 0.98, 0.94], - [side * (track_w * 0.5 + 0.04), -0.98, 0.94], - [side * (track_w * 0.5 + 0.04), -0.74, 0.34], - [side * (track_w * 0.5 + 0.04), 0.74, 0.34], - [side * (track_w * 0.5 + 0.04), 1.12, 0.56], - [side * (track_w * 0.5 + 0.04), -1.12, 0.56], - ] - # Use clean trapezoidal slab for outer pod skirt with bolts - vc.make_plates( - { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": f"{name}_outer_skirt", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "one", - "mirror": False, - "slab": { - "at": [side * (track_w * 0.5 + 0.04), 0.0, 0.64], - "normal": [side, 0.0, 0.0], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -side, 0.0], - "outline": [[-1.08, -0.08], [-0.74, -0.32], [0.74, -0.32], [1.08, -0.08], [0.96, 0.28], [-0.96, 0.28]], - "thick": 0.055, - "taper": 0.012, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.025, "spacing": 0.34, "mat": "gunmetal", "params": "r=0.014"}, - ], - } - ], - }, - parent=pod, - ) - # Inner pod cheek & front headlight block - vc.make_box(f"{name}_inner_cheek", (0.06, 1.84, 0.48), "gunmetal", parent=pod, location=(-side * (track_w * 0.5 + 0.02), 0.0, 0.64), bevel=0.008) - if is_front: - vc.make_box(f"{name}_headlight_pod", (0.28, 0.20, 0.14), "gunmetal", parent=pod, location=(0.0, -1.04, 1.00), bevel=0.008) - vc.make_box(f"{name}_headlight_lens", (0.20, 0.05, 0.08), "smoked_glass", parent=pod, location=(0.0, -1.14, 1.00), bevel=0.004) - - -def build_anvil() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("AnvilRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # --- 1. Central Lower Belly Tub, Ribbed Prow & Pod Outrigger Beams --- - vc.make_box("lower_tub", (2.14, 4.78, 0.64), "gunmetal", parent=chassis, location=(0.0, 0.04, 0.74), bevel=0.016) - # Corrugated lower prow armor ribs - vc.make_box("lower_prow_plate", (2.06, 0.44, 0.52), "olive_armor", parent=chassis, location=(0.0, -2.32, 0.74), rotation_deg=(24.0, 0.0, 0.0), bevel=0.012) - for rx in (-0.84, -0.56, -0.28, 0.0, 0.28, 0.56, 0.84): - vc.make_box(f"prow_rib_{rx:.2f}", (0.08, 0.14, 0.48), "gunmetal", parent=chassis, location=(rx, -2.50, 0.72), rotation_deg=(24.0, 0.0, 0.0), bevel=0.006) - # Outrigger pod axle beams + suspension rams - for p_tag, py in (("f", -1.48), ("r", 1.48)): - vc.make_box(f"pod_crossbeam_{p_tag}", (3.08, 0.58, 0.32), "gunmetal", parent=chassis, location=(0.0, py, 0.62), bevel=0.012) - for side in (-1.0, 1.0): - s_tag = "L" if side > 0 else "R" - vc.make_ram_span( - f"pod_strut_{p_tag}_{s_tag}", - [side * 1.04, py, 1.02], - [side * 1.38, py, 0.74], - body_r=0.048, - rod_r=0.026, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - - # --- 2. Wide Sloped Composite Hull & Tall Casemate Superstructure (Brokkr plate.v0) --- - hull_pts = [ - # Lower hull belt above track pods - [-1.18, -2.38, 0.96], [1.18, -2.38, 0.96], - [-1.22, -0.50, 1.02], [1.22, -0.50, 1.02], - [-1.22, 2.58, 1.02], [1.22, 2.58, 1.02], - # Tall casemate roof (y = -0.48 .. +1.28, z = 1.98) - [-1.16, -0.48, 1.98], [1.16, -0.48, 1.98], - [-1.18, 1.28, 1.98], [1.18, 1.28, 1.98], - # Stepped rear engine deck (y = +1.30 .. +2.64, z = 1.70) - [-1.18, 1.32, 1.70], [1.18, 1.32, 1.70], - [-1.14, 2.64, 1.68], [1.14, 2.64, 1.68], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "anvil_hull", - "mat": "olive_armor", - "bevel": 0.016, - "sides": "one", - "mirror": False, - "points": hull_pts, - "clad": { - "mat": "olive_armor", - "facets": [{"n": [0.0, -0.45, 0.89], "cos": 0.86}], - "min_area": 0.22, - "lifts": [0.008, 0.015], - "inset": 0.07, - "gap": 0.020, - "split": 0.88, - "seed": 901, - "bolt_r": 0.014, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - }, - # Heavy bolted forward superstructure cheek plates - { - "name": "anvil_casemate_cheek", - "mat": "olive_armor", - "bevel": 0.010, - "sides": "both", - "mirror": False, - "slab": { - "at": [1.20, 0.42, 1.54], - "normal": [1.0, 0.0, 0.0], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.86, -0.34], [0.86, -0.34], [0.78, 0.36], [-0.52, 0.36]], - "thick": 0.055, - "taper": 0.014, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.03, "spacing": 0.34, "mat": "gunmetal", "params": "r=0.014"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Sponson weapon shelves (left/right forward flanks) + rear radiator housing + driver periscope - vc.make_box("driver_periscope", (0.58, 0.18, 0.11), "smoked_glass", parent=chassis, location=(0.0, -0.78, 1.84), rotation_deg=(-24.0, 0.0, 0.0), bevel=0.006) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"sponson_shelf_{tag}", (0.48, 0.72, 0.24), "gunmetal", parent=chassis, location=(side * 1.24, -0.76, 1.42), bevel=0.01) - vc.make_box(f"rad_housing_{tag}", (0.16, 1.18, 0.62), "olive_armor", parent=chassis, location=(side * 1.20, 1.50, 1.42), bevel=0.01) - vc.make_box(f"tow_shackle_{tag}", (0.09, 0.16, 0.16), "signal_orange", parent=chassis, location=(side * 0.68, -2.54, 0.64), bevel=0.006) - - # --- 3. 4 Articulated Quad-Track Pods --- - _build_quad_track_pod("pod_fl", 1.0, -1.48, True, chassis) - _build_quad_track_pod("pod_fr", -1.0, -1.48, True, chassis) - _build_quad_track_pod("pod_rl", 1.0, 1.48, False, chassis) - _build_quad_track_pod("pod_rr", -1.0, 1.48, False, chassis) - - # --- 4. Towering Rear Exhaust Stacks --- - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - for s_idx, sy in enumerate((2.40, 2.62)): - vc.make_swept_tube( - f"exhaust_stack_{tag}_{s_idx}", - [ - [side * 0.96, sy - 0.14, 1.48], - [side * 1.04, sy, 1.66], - [side * 1.04, sy, 2.86], - [side * 1.04, sy + 0.14, 2.98], - ], - 0.072, - segments=12, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.06, - ) - vc.make_tube_part( - f"exhaust_shroud_{tag}_{s_idx}", - 0.105, - 0.105, - 0.68, - segments=10, - inner0=0.09, - inner1=0.09, - mat_name="olive_armor", - parent=chassis, - location=(side * 1.04, sy, 1.76), - ) - - # --- 5. Broad Reinforced Siege Turret (joint.turret_yaw) --- - turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, 0.04, 1.98)) - vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0) - joints_manifest = [{"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0}] - - vc.make_tube_part("turret_race", 0.88, 0.94, 0.10, segments=24, mat_name="gunmetal", parent=turret_pivot) - - turret_pts = [ - [-0.76, -0.92, 0.10], [0.76, -0.92, 0.10], - [0.98, -0.22, 0.10], [0.88, 1.04, 0.10], - [-0.88, 1.04, 0.10], [-0.98, -0.22, 0.10], - [-0.58, -0.70, 0.62], [0.58, -0.70, 0.62], - [0.76, -0.14, 0.62], [0.68, 0.86, 0.62], - [-0.68, 0.86, 0.62], [-0.76, -0.14, 0.62], - ] - turret_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "anvil_turret_shell", - "mat": "olive_armor", - "bevel": 0.016, - "sides": "one", - "mirror": False, - "points": turret_pts, - }, - { - "name": "anvil_turret_cheek", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.86, 0.16, 0.34], - "normal": [0.94, 0.0, 0.34], - "up": [-0.34, 0.0, 0.94], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.58, -0.18], [0.58, -0.18], [0.46, 0.18], [-0.46, 0.18]], - "thick": 0.055, - "taper": 0.014, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.025, "spacing": 0.26, "mat": "gunmetal", "params": "r=0.013"}, - ], - }, - ], - } - vc.make_plates(turret_doc, parent=turret_pivot) - - vc.make_box("turret_mantlet_bar", (1.12, 0.22, 0.24), "gunmetal", parent=turret_pivot, location=(0.0, -0.84, 0.34), bevel=0.012) - vc.make_box("turret_bustle", (1.28, 0.46, 0.38), "olive_armor", parent=turret_pivot, location=(0.0, 1.10, 0.38), bevel=0.012) - vc.make_tube_part("commander_cupola", 0.22, 0.24, 0.11, segments=14, mat_name="olive_armor", parent=turret_pivot, location=(0.0, 0.48, 0.62)) - vc.make_box("turret_optic", (0.20, 0.22, 0.16), "smoked_glass", parent=turret_pivot, location=(0.0, -0.46, 0.68), bevel=0.008) - - # --- 6. Visible Exterior Hardpoints (5x6 Dorsal Grid) --- - # 1) hp.armor.front (0,0, 5x1) on steep front glacis - vc.add_hardpoint_slot( - "hp.armor.front", - "armor", - parent=chassis, - location=(0.0, -1.48, 1.46), - rotation_deg=(62.0, 0.0, 0.0), - size=(1.88, 0.42, 0.10), - plinth_depth=0.04, - ) - # 2 & 3) hp.weapon.sponson_l (0,1, 1x2) & hp.weapon.sponson_r (4,1, 1x2) - vc.add_hardpoint_slot( - "hp.weapon.sponson_l", - "weapon", - parent=chassis, - location=(1.26, -0.76, 1.54), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.50, 0.50, 0.09), - ) - vc.add_hardpoint_slot( - "hp.weapon.sponson_r", - "weapon", - parent=chassis, - location=(-1.26, -0.76, 1.54), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.50, 0.50, 0.09), - ) - # 4 & 5) hp.weapon.siege_l (1,1, 1x2) & hp.weapon.siege_r (3,1, 1x2) on turret roof - vc.add_hardpoint_slot( - "hp.weapon.siege_l", - "weapon", - parent=turret_pivot, - location=(0.42, -0.04, 0.63), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.62, 0.62, 0.11), - ) - vc.add_hardpoint_slot( - "hp.weapon.siege_r", - "weapon", - parent=turret_pivot, - location=(-0.42, -0.04, 0.63), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.62, 0.62, 0.11), - ) - # 6) hp.armor.sides (2,1, 1x2) on right (-X) casemate cheek - vc.add_hardpoint_slot( - "hp.armor.sides", - "armor", - parent=chassis, - location=(-1.20, 0.42, 1.54), - rotation_deg=(90.0, 0.0, -90.0), - size=(1.12, 0.34, 0.10), - plinth_depth=0.03, - ) - # 7) hp.engine.rear (1,3, 3x2) on sloped rear engine deck (y=1.98 -> hull surface z=1.825) - vc.add_hardpoint_slot( - "hp.engine.rear", - "engine", - parent=chassis, - location=(0.0, 1.98, 1.815), - rotation_deg=(-12.5, 0.0, 0.0), - size=(1.42, 0.96, 0.15), - plinth_depth=0.04, - ) - # 8 & 9) hp.radiator.l (0,4, 1x2) & hp.radiator.r (4,4, 1x2) - vc.add_hardpoint_slot( - "hp.radiator.l", - "radiator", - parent=chassis, - location=(1.28, 1.50, 1.42), - rotation_deg=(90.0, 0.0, 90.0), - size=(1.04, 0.52, 0.13), - ) - vc.add_hardpoint_slot( - "hp.radiator.r", - "radiator", - parent=chassis, - location=(-1.28, 1.50, 1.42), - rotation_deg=(90.0, 0.0, -90.0), - size=(1.04, 0.52, 0.13), - ) - - # --- 7. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "anvil" / "anvil.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "anvil" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "anvil_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="anvil", - name="Anvil", - vehicle_class="Heavy Quad-Track Siege Tank", - grid_width=5, - grid_height=6, - mask=[ - "#####", - "#####", - "#####", - "#####", - "#####", - "#####", - ], - hardpoints=[ - {"id": "hp.armor.front", "kind": "armor", "x": 0, "y": 0, "w": 5, "h": 1, "modelNodeId": "hp.armor.front"}, - {"id": "hp.weapon.sponson_l", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_l"}, - {"id": "hp.weapon.siege_l", "kind": "weapon", "x": 1, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.siege_l"}, - {"id": "hp.armor.sides", "kind": "armor", "x": 2, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.armor.sides"}, - {"id": "hp.weapon.siege_r", "kind": "weapon", "x": 3, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.siege_r"}, - {"id": "hp.weapon.sponson_r", "kind": "weapon", "x": 4, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_r"}, - {"id": "hp.engine.rear", "kind": "engine", "x": 1, "y": 3, "w": 3, "h": 2, "modelNodeId": "hp.engine.rear"}, - {"id": "hp.radiator.l", "kind": "radiator", "x": 0, "y": 4, "w": 1, "h": 2, "modelNodeId": "hp.radiator.l"}, - {"id": "hp.radiator.r", "kind": "radiator", "x": 4, "y": 4, "w": 1, "h": 2, "modelNodeId": "hp.radiator.r"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[anvil] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "anvil", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_anvil() diff --git a/tools/vehicles/build_condor.py b/tools/vehicles/build_condor.py deleted file mode 100644 index b6d3e67..0000000 --- a/tools/vehicles/build_condor.py +++ /dev/null @@ -1,508 +0,0 @@ -"""Build the Condor (Heavy Quad-Thruster Assault VTOL) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _build_jet_nacelle( - name: str, - joint_id: str, - rotor_id: str, - side: float, - location: tuple[float, float, float], - scale: float, - tilt_deg: float, - parent, - joints_manifest: list[dict], -) -> None: - """Build a pivoting vectored-thrust armored jet nacelle with copper exhaust skirt and spinning turbine.""" - nacelle_pivot = vc.make_empty( - joint_id, - parent=parent, - location=location, - rotation_deg=(tilt_deg, 0.0, 0.0), - ) - vc.tag_joint(nacelle_pivot, joint_id, [1.0, 0.0, 0.0], -45.0, 75.0) - joints_manifest.append({"id": joint_id, "axis": [1.0, 0.0, 0.0], "min": -45.0, "max": 75.0}) - - r_in = 0.31 * scale - r_out = 0.43 * scale - # Armored olive intake shroud + jet housing - shroud_prof = [ - [r_in, -0.18 * scale], - [r_out * 0.96, -0.18 * scale], - [r_out * 1.05, 0.02 * scale], - [r_out * 1.05, 0.34 * scale], - [r_out * 0.92, 0.44 * scale], - [r_in * 1.02, 0.44 * scale], - [r_in * 0.96, 0.26 * scale], - [r_in, -0.18 * scale], - ] - vc.make_lathe_part( - f"{name}_shroud", - shroud_prof[:-1], - segments=20, - loop=True, - smooth=True, - mat_name="olive_armor", - parent=nacelle_pivot, - ) - # Vectored copper thermal exhaust nozzle petals - nozzle_prof = [ - [r_in * 0.92, -0.44 * scale], - [r_out * 0.86, -0.44 * scale], - [r_out * 0.96, -0.18 * scale], - [r_in, -0.18 * scale], - ] - vc.make_lathe_part( - f"{name}_nozzle", - nozzle_prof, - segments=20, - loop=True, - smooth=True, - mat_name="copper_rad", - parent=nacelle_pivot, - ) - # Inner gunmetal stator vanes + outer hinge trunnion lug - for ang_deg in (0.0, 90.0): - vc.make_box( - f"{name}_stator_{int(ang_deg)}", - (r_in * 1.92, 0.04 * scale, 0.06 * scale), - "gunmetal", - parent=nacelle_pivot, - location=(0.0, 0.0, -0.16 * scale), - rotation_deg=(0.0, 0.0, ang_deg), - bevel=0.004, - ) - vc.make_box( - f"{name}_trunnion_lug", - (0.18 * scale, 0.28 * scale, 0.20 * scale), - "gunmetal", - parent=nacelle_pivot, - location=(-side * (r_out * 0.98), 0.0, 0.12 * scale), - bevel=0.008, - ) - - # Spinning axial turbine rotor - rotor_pivot = vc.make_empty(rotor_id, parent=nacelle_pivot, location=(0.0, 0.0, 0.14 * scale)) - vc.tag_joint(rotor_pivot, rotor_id, [0.0, 1.0, 0.0], -360.0, 360.0) - joints_manifest.append({"id": rotor_id, "axis": [0.0, 1.0, 0.0], "min": -360.0, "max": 360.0}) - - spinner_prof = [ - [0.0, -0.06 * scale], - [0.11 * scale, -0.06 * scale], - [0.11 * scale, 0.08 * scale], - [0.06 * scale, 0.22 * scale], - [0.0, 0.30 * scale], - ] - vc.make_lathe_part(f"{name}_spinner", spinner_prof, segments=12, loop=False, smooth=True, mat_name="gunmetal", parent=rotor_pivot) - - def build_blades(bm: bmesh.types.BMesh) -> None: - for i in range(6): - a = i * math.pi / 3.0 - m = ( - Matrix.Rotation(a, 4, "Z") - @ Matrix.Translation((0.19 * scale, 0.0, 0.02 * scale)) - @ Matrix.Rotation(math.radians(26.0), 4, "X") - @ Matrix.Diagonal((0.20 * scale, 0.072 * scale, 0.014 * scale, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - - vc.make_bmesh_object(f"{name}_blades", build_blades, "gunmetal", parent=rotor_pivot) - - -def build_condor() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("CondorRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # --- 1. 4 Stubby Hydraulic Landing Legs (grounded at Z = 0) --- - # Front twin nose/cheek wheel-legs at y = -1.56, x = +/- 0.42 - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_ram_span( - f"gear_front_strut_{tag}", - [side * 0.34, -1.52, 0.64], - [side * 0.44, -1.60, 0.16], - body_r=0.052, - rod_r=0.030, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - vc.make_ram_span( - f"gear_front_drag_{tag}", - [side * 0.30, -1.16, 0.58], - [side * 0.44, -1.58, 0.18], - body_r=0.030, - rod_r=0.018, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="gunmetal", - ) - vc.make_knobby_wheel( - f"gear_front_wheel_{tag}", - radius=0.16, - width=0.14, - parent=chassis, - location=(side * 0.46, -1.60, 0.16), - tread_lugs=10, - rim_segments=12, - side_sign=int(side), - ) - # Rear splayed outrigger hydraulic legs with armored ski-pads at y = +1.08 - vc.make_box(f"gear_rear_sponson_{tag}", (0.26, 0.46, 0.24), "olive_armor", parent=chassis, location=(side * 0.78, 1.06, 0.68), bevel=0.01) - vc.make_ram_span( - f"gear_rear_strut_{tag}", - [side * 0.78, 1.06, 0.64], - [side * 1.04, 1.08, 0.08], - body_r=0.058, - rod_r=0.032, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - vc.make_ram_span( - f"gear_rear_brace_{tag}", - [side * 0.62, 0.68, 0.56], - [side * 1.02, 1.06, 0.10], - body_r=0.032, - rod_r=0.020, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="gunmetal", - ) - # Articulated ski-pad foot + small bogie wheel grounded at Z = 0 - vc.make_box(f"gear_rear_ski_{tag}", (0.26, 0.66, 0.055), "gunmetal", parent=chassis, location=(side * 1.04, 1.08, 0.028), bevel=0.008) - vc.make_box(f"gear_rear_ski_tip_{tag}", (0.26, 0.16, 0.055), "gunmetal", parent=chassis, location=(side * 1.04, 0.72, 0.065), rotation_deg=(28.0, 0.0, 0.0), bevel=0.006) - - # --- 2. Brutalist Angular Bolted Fuselage & Canopy (Brokkr plate.v0) --- - hull_pts = [ - # Nose prow (y = -2.78) - [-0.38, -2.78, 0.84], [0.38, -2.78, 0.84], - [-0.44, -2.72, 1.06], [0.44, -2.72, 1.06], - # Forward cabin shoulder (y = -1.54) - [-0.78, -1.54, 0.56], [0.78, -1.54, 0.56], - [-0.86, -1.42, 1.24], [0.86, -1.42, 1.24], - [-0.58, -1.24, 1.62], [0.58, -1.24, 1.62], - # Mid troop bay (y = +1.12) - [-0.78, 1.12, 0.56], [0.78, 1.12, 0.56], - [-0.88, 1.12, 1.28], [0.88, 1.12, 1.28], - [-0.64, 1.12, 1.66], [0.64, 1.12, 1.66], - # Tapered rear tail boom (y = +2.78) - [-0.36, 2.78, 1.08], [0.36, 2.78, 1.08], - [-0.38, 2.78, 1.48], [0.38, 2.78, 1.48], - ] - canopy_pts = [ - [-0.42, -2.42, 1.06], [0.42, -2.42, 1.06], - [-0.56, -1.36, 1.26], [0.56, -1.36, 1.26], - [-0.48, -1.20, 1.66], [0.48, -1.20, 1.66], - [-0.40, -1.86, 1.62], [0.40, -1.86, 1.62], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "condor_fuselage", - "mat": "olive_armor", - "bevel": 0.016, - "sides": "one", - "mirror": False, - "points": hull_pts, - }, - { - "name": "condor_canopy", - "mat": "smoked_glass", - "bevel": 0.008, - "sides": "one", - "mirror": False, - "points": canopy_pts, - }, - # Bolted side troop-bay armor plates + crew doors - { - "name": "condor_flank_armor", - "mat": "olive_armor", - "bevel": 0.010, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.86, -0.14, 0.94], - "normal": [0.98, 0.0, -0.18], - "up": [0.18, 0.0, 0.98], - "right": [0.0, -1.0, 0.0], - "outline": [[-1.18, -0.32], [1.18, -0.32], [1.08, 0.34], [-1.08, 0.34]], - "thick": 0.05, - "taper": 0.014, - "back": 0.92, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.14, - "lifts": [0.008, 0.014], - "inset": 0.05, - "gap": 0.016, - "split": 0.72, - "seed": 1001, - "bolt_r": 0.013, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "bolts", "inset": 0.025, "spacing": 0.34, "mat": "gunmetal", "params": "r=0.013"}, - {"kind": "part", "part": "handle", "at": [0.32, 0.02], "roll": 0.0, "mat": "gunmetal", "params": "length=0.22;lift=0.045;r=0.012"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Canopy structural armor ribs + dorsal radiator spine housing + rear APU jet nozzle + V-tail stabilizers - vc.make_swept_tube( - "canopy_spine", - [[0.0, -2.44, 1.06], [0.0, -1.86, 1.64], [0.0, -1.18, 1.68]], - 0.028, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04, - ) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_swept_tube( - f"canopy_rib_{tag}", - [[side * 0.40, -2.40, 1.06], [side * 0.42, -1.84, 1.62], [side * 0.48, -1.20, 1.66]], - 0.022, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04, - ) - # Side weapon sponson boxes on forward cheek flanks - vc.make_box(f"weapon_sponson_box_{tag}", (0.24, 0.76, 0.36), "olive_armor", parent=chassis, location=(side * 0.92, -1.16, 0.96), bevel=0.01) - # Fore nacelle shoulder sponsons (y = -0.86) - vc.make_box(f"fore_wing_{tag}", (0.64, 0.44, 0.22), "olive_armor", parent=chassis, location=(side * 0.86, -0.86, 1.48), rotation_deg=(0.0, side * -6.0, 0.0), bevel=0.012) - # Aft main high-mounted swept wings (y = +0.74) - vc.make_box(f"aft_wing_{tag}", (1.06, 0.72, 0.22), "olive_armor", parent=chassis, location=(side * 1.18, 0.74, 1.60), rotation_deg=(0.0, side * -5.0, side * -8.0), bevel=0.014) - # Tilt actuator rams for fore & aft nacelles - vc.make_ram_span( - f"tilt_ram_f_{tag}", - [side * 0.68, -1.04, 1.54], - [side * 1.06, -0.86, 1.50], - body_r=0.032, - rod_r=0.018, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - vc.make_ram_span( - f"tilt_ram_r_{tag}", - [side * 1.18, 0.50, 1.68], - [side * 1.56, 0.74, 1.66], - body_r=0.038, - rod_r=0.020, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - # Canted twin tail stabilizers + ventral strakes - vc.make_box( - f"tail_fin_{tag}", - (0.06, 0.66, 0.94), - "olive_armor", - parent=chassis, - location=(side * 0.56, 2.58, 1.72), - rotation_deg=(24.0, side * -32.0, 0.0), - bevel=0.01, - ) - vc.make_box( - f"tail_horiz_{tag}", - (0.46, 0.54, 0.07), - "olive_armor", - parent=chassis, - location=(side * 0.44, 2.54, 1.34), - rotation_deg=(0.0, side * 10.0, side * -12.0), - bevel=0.008, - ) - - # Dorsal radiator spine ridge (runs behind canopy to tail root) - vc.make_box("dorsal_spine_core", (0.78, 2.48, 0.26), "olive_armor", parent=chassis, location=(0.0, 0.28, 1.70), bevel=0.014) - vc.make_box("dorsal_spine_cap", (0.48, 2.38, 0.14), "gunmetal", parent=chassis, location=(0.0, 0.28, 1.84), bevel=0.01) - - # Rear tail APU / main jet exhaust cone - rear_nozzle_prof = [ - [0.18, 0.0], - [0.27, 0.0], - [0.29, 0.18], - [0.24, 0.36], - [0.16, 0.36], - [0.18, 0.0], - ] - vc.make_lathe_part( - "rear_jet_nozzle", - rear_nozzle_prof[:-1], - segments=18, - loop=True, - smooth=True, - mat_name="copper_rad", - parent=chassis, - location=(0.0, 2.74, 1.28), - rotation_deg=(-90.0, 0.0, 0.0), - ) - - # --- 3. 4 Pivoting Vectored-Thrust Jet Nacelles (joint.nacelle_fl/fr/rl/rr) --- - joints_manifest: list[dict] = [] - # Fore nacelles - for side, j_tag in ((1.0, "fl"), (-1.0, "fr")): - _build_jet_nacelle( - f"nacelle_{j_tag}", - f"joint.nacelle_{j_tag}", - f"joint.rotor_{j_tag}", - side, - location=(side * 1.42, -0.86, 1.48), - scale=0.82, - tilt_deg=-16.0, - parent=chassis, - joints_manifest=joints_manifest, - ) - # Aft main nacelles (larger vectored jet pods) - for side, j_tag in ((1.0, "rl"), (-1.0, "rr")): - _build_jet_nacelle( - f"nacelle_{j_tag}", - f"joint.nacelle_{j_tag}", - f"joint.rotor_{j_tag}", - side, - location=(side * 1.88, 0.74, 1.62), - scale=1.06, - tilt_deg=-14.0, - parent=chassis, - joints_manifest=joints_manifest, - ) - - # --- 4. Heavy Nose Chin Turret (joint.turret_yaw) --- - turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, -2.26, 0.74)) - vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0) - joints_manifest.append({"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0}) - - vc.make_tube_part("chin_turret_ring", 0.28, 0.30, 0.10, segments=16, mat_name="gunmetal", parent=turret_pivot, location=(0.0, 0.0, -0.04)) - vc.make_box("chin_turret_housing", (0.44, 0.48, 0.22), "olive_armor", parent=turret_pivot, location=(0.0, 0.0, -0.14), bevel=0.012) - vc.make_box("chin_optics", (0.20, 0.10, 0.10), "smoked_glass", parent=turret_pivot, location=(0.0, -0.24, -0.10), bevel=0.005) - - # --- 5. Visible Exterior Hardpoints (5x6 Masked Dorsal Grid) --- - # 1) hp.weapon.nose (1,0, 2x1) under chin turret - vc.add_hardpoint_slot( - "hp.weapon.nose", - "weapon", - parent=turret_pivot, - location=(0.0, 0.0, -0.25), - rotation_deg=(0.0, 180.0, 0.0), - size=(0.46, 0.46, 0.08), - ) - # 2) hp.armor.hull (3,0, 1x1) on sloped upper nose glacis in front of canopy - vc.add_hardpoint_slot( - "hp.armor.hull", - "armor", - parent=chassis, - location=(0.0, -2.56, 1.13), - rotation_deg=(69.0, 0.0, 0.0), - size=(0.64, 0.26, 0.09), - plinth_depth=0.04, - ) - # 3 & 4) hp.weapon.sponson_l (0,1, 1x2) & hp.weapon.sponson_r (4,1, 1x2) on cheek weapon sponsons - vc.add_hardpoint_slot( - "hp.weapon.sponson_l", - "weapon", - parent=chassis, - location=(1.04, -1.16, 0.96), - rotation_deg=(0.0, 90.0, 0.0), - size=(0.44, 0.44, 0.08), - ) - vc.add_hardpoint_slot( - "hp.weapon.sponson_r", - "weapon", - parent=chassis, - location=(-1.04, -1.16, 0.96), - rotation_deg=(0.0, -90.0, 0.0), - size=(0.44, 0.44, 0.08), - ) - # 5) hp.weapon.dorsal (2,1, 1x1) on forward dorsal spine behind cockpit - vc.add_hardpoint_slot( - "hp.weapon.dorsal", - "weapon", - parent=chassis, - location=(0.0, -0.78, 1.91), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.54, 0.54, 0.09), - ) - # 6) hp.engine.core (1,2, 3x2) central dorsal turbine bay (dorsal_spine_core width 0.78, cap top at z=1.91) - vc.add_hardpoint_slot( - "hp.engine.core", - "engine", - parent=chassis, - location=(0.0, 0.36, 1.89), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.74, 1.14, 0.14), - plinth_depth=0.05, - ) - # 7 & 8) hp.radiator.spine_l (0,3, 1x2) & hp.radiator.spine_r (4,3, 1x2) along canted dorsal spine flanks - vc.add_hardpoint_slot( - "hp.radiator.spine_l", - "radiator", - parent=chassis, - location=(0.56, 1.02, 1.68), - rotation_deg=(0.0, 56.0, 0.0), - size=(0.40, 1.04, 0.11), - ) - vc.add_hardpoint_slot( - "hp.radiator.spine_r", - "radiator", - parent=chassis, - location=(-0.56, 1.02, 1.68), - rotation_deg=(0.0, -56.0, 0.0), - size=(0.40, 1.04, 0.11), - ) - - # --- 6. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "condor" / "condor.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "condor" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "condor_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="condor", - name="Condor", - vehicle_class="Heavy Quad-Thruster Assault VTOL", - grid_width=5, - grid_height=6, - mask=[ - ".###.", - "#####", - "#####", - "#####", - "#####", - "..#..", - ], - hardpoints=[ - {"id": "hp.weapon.nose", "kind": "weapon", "x": 1, "y": 0, "w": 2, "h": 1, "modelNodeId": "hp.weapon.nose"}, - {"id": "hp.armor.hull", "kind": "armor", "x": 3, "y": 0, "w": 1, "h": 1, "modelNodeId": "hp.armor.hull"}, - {"id": "hp.weapon.sponson_l", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_l"}, - {"id": "hp.weapon.dorsal", "kind": "weapon", "x": 2, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.weapon.dorsal"}, - {"id": "hp.weapon.sponson_r", "kind": "weapon", "x": 4, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.sponson_r"}, - {"id": "hp.engine.core", "kind": "engine", "x": 1, "y": 2, "w": 3, "h": 2, "modelNodeId": "hp.engine.core"}, - {"id": "hp.radiator.spine_l", "kind": "radiator", "x": 0, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.spine_l"}, - {"id": "hp.radiator.spine_r", "kind": "radiator", "x": 4, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.spine_r"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[condor] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "condor", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_condor() diff --git a/tools/vehicles/build_ferret.py b/tools/vehicles/build_ferret.py deleted file mode 100644 index 1c17c8f..0000000 --- a/tools/vehicles/build_ferret.py +++ /dev/null @@ -1,344 +0,0 @@ -"""Build the Ferret (Light Tracked Scout Tankette) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _build_track_pod(name: str, side: float, parent) -> None: - """Build one wide articulated steel track pod with roadwheels, drive sprockets, and track shoes.""" - pod_x = side * 0.86 - pod = vc.make_empty(name, parent=parent, location=(pod_x, 0.0, 0.0)) - - # Track loop keypoints in (y, z): front idler -> bottom roadwheels -> rear sprocket -> top return - # Ground at z = 0.0 (track shoe thickness ~0.04 -> wheel bottom at z = 0.04) - rw_r = 0.25 - rw_z = rw_r + 0.04 - rw_ys = (-0.90, -0.30, 0.30, 0.90) - idler_y, idler_z, idler_r = -1.48, 0.46, 0.22 - sproc_y, sproc_z, sproc_r = 1.46, 0.48, 0.23 - track_w = 0.40 - - # Roadwheels (4) + Front Idler + Rear Drive Sprocket - for i, ry in enumerate(rw_ys): - vc.make_tube_part( - f"{name}_rw_tire_{i}", rw_r, rw_r, track_w * 0.82, segments=16, - mat_name="rubber_dark", parent=pod, location=(-track_w * 0.41, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_rw_hub_{i}", rw_r * 0.66, rw_r * 0.66, track_w * 0.88, segments=12, - mat_name="olive_armor", parent=pod, location=(-track_w * 0.44, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_idler", idler_r, idler_r, track_w * 0.78, segments=14, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.39, idler_y, idler_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_sprocket", sproc_r, sproc_r, track_w * 0.82, segments=14, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.41, sproc_y, sproc_z), rotation_deg=(0.0, 90.0, 0.0), - ) - - # Track belt loop + articulated grouser shoes sampled evenly around closed perimeter - # Build loop path points in (y, z) - loop_yz: list[tuple[float, float]] = [] - # Front idler arc (from top-front down to bottom-front) - for k in range(7): - ang = math.radians(95.0 + 145.0 * (k / 6.0)) - loop_yz.append((idler_y + math.cos(ang) * (idler_r + 0.025), idler_z + math.sin(ang) * (idler_r + 0.025))) - # Bottom run across roadwheels - loop_yz.append((-0.90, 0.02)) - loop_yz.append((0.90, 0.02)) - # Rear sprocket arc (from bottom-rear up to top-rear) - for k in range(7): - ang = math.radians(-65.0 + 145.0 * (k / 6.0)) - loop_yz.append((sproc_y + math.cos(ang) * (sproc_r + 0.025), sproc_z + math.sin(ang) * (sproc_r + 0.025))) - # Top return run - loop_yz.append((0.40, 0.73)) - loop_yz.append((-0.40, 0.73)) - - # Continuous inner track band via core.sweep (with up=+X, outline's h spans X and w spans thickness) - path_3d = [[0.0, y, z] for (y, z) in loop_yz] - vc.make_swept_profile( - f"{name}_track_band", - "box", - 0.030, - track_w * 0.92, - 0.030, - path_3d, - up=[1.0, 0.0, 0.0], - mat_name="rubber_dark", - parent=pod, - closed=True, - ) - - # Articulated steel grouser shoes along loop - # Compute cumulative arc length - pts = loop_yz + [loop_yz[0]] - segs = [math.hypot(pts[i + 1][0] - pts[i][0], pts[i + 1][1] - pts[i][1]) for i in range(len(loop_yz))] - total_len = sum(segs) - n_shoes = 38 - - def build_shoes(bm: bmesh.types.BMesh) -> None: - for s_idx in range(n_shoes): - target_d = total_d = (s_idx / n_shoes) * total_len - acc = 0.0 - for i, sl in enumerate(segs): - if acc + sl >= target_d or i == len(segs) - 1: - t = (target_d - acc) / max(sl, 1e-6) - y0, z0 = pts[i] - y1, z1 = pts[i + 1] - py = y0 + (y1 - y0) * t - pz = z0 + (z1 - z0) * t - ang = math.atan2(z1 - z0, y1 - y0) - # Normal pointing outward from loop (y, z) - m = ( - Matrix.Translation((0.0, py, pz)) - @ Matrix.Rotation(ang, 4, "X") - @ Matrix.Diagonal((track_w, 0.085, 0.026, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - break - acc += sl - - vc.make_bmesh_object(f"{name}_shoes", build_shoes, "gunmetal", parent=pod) - - # Armored track fender & upper side skirt (Brokkr plate.v0 slab) - vc.make_box(f"{name}_fender_top", (track_w + 0.06, 3.24, 0.055), "olive_armor", parent=pod, location=(0.0, -0.02, 0.79), bevel=0.008) - vc.make_box(f"{name}_fender_front", (track_w + 0.06, 0.34, 0.055), "olive_armor", parent=pod, location=(0.0, -1.72, 0.68), rotation_deg=(36.0, 0.0, 0.0), bevel=0.008) - vc.make_box(f"{name}_fender_rear", (track_w + 0.06, 0.32, 0.055), "olive_armor", parent=pod, location=(0.0, 1.66, 0.68), rotation_deg=(-36.0, 0.0, 0.0), bevel=0.008) - - # Outer bolted track skirt covering upper roadwheels - skirt_pts = [ - [side * 0.22, -1.36, 0.78], - [side * 0.22, 1.36, 0.78], - [side * 0.22, 1.18, 0.36], - [side * 0.22, -1.16, 0.36], - ] - vc.make_box( - f"{name}_skirt", - (0.045, 2.52, 0.40), - "olive_armor", - parent=pod, - location=(side * (track_w * 0.5 + 0.025), 0.0, 0.58), - bevel=0.008, - ) - - -def build_ferret() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("FerretRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # --- 1. Lower Tub & Wedge Glacis Hull (Brokkr plate.v0 convex hull) --- - vc.make_box("lower_tub", (1.28, 3.06, 0.44), "gunmetal", parent=chassis, location=(0.0, -0.04, 0.46), bevel=0.012) - - hull_pts = [ - [-0.64, -1.68, 0.46], [0.64, -1.68, 0.46], - [0.68, -1.68, 0.64], [-0.68, -1.68, 0.64], - [-0.68, -0.78, 1.04], [0.68, -0.78, 1.04], - [-0.68, 0.66, 1.04], [0.68, 0.66, 1.04], - [-0.64, 1.66, 0.80], [0.64, 1.66, 0.80], - [-0.64, 1.66, 0.50], [0.64, 1.66, 0.50], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "ferret_hull", - "mat": "olive_armor", - "bevel": 0.014, - "sides": "one", - "mirror": False, - "points": hull_pts, - "clad": { - "mat": "olive_armor", - "facets": [{"n": [0.0, -0.45, 0.89], "cos": 0.90}], - "min_area": 0.12, - "lifts": [0.008, 0.014], - "inset": 0.05, - "gap": 0.016, - "split": 0.90, - "seed": 601, - "bolt_r": 0.012, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - }, - # Sloped upper hull sponson cheek plates - { - "name": "ferret_sponson", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.76, 0.14, 0.90], - "normal": [0.85, 0.0, 0.52], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.94, -0.14], [0.94, -0.14], [0.76, 0.14], [-0.78, 0.14]], - "thick": 0.05, - "taper": 0.014, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.30, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Headlights, tow shackles, and flank cylindrical mufflers - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"headlight_{tag}", (0.12, 0.12, 0.10), "gunmetal", parent=chassis, location=(side * 0.82, -1.52, 0.88), bevel=0.008) - vc.make_box(f"tow_shackle_{tag}", (0.06, 0.10, 0.10), "signal_orange", parent=chassis, location=(side * 0.42, -1.72, 0.56), bevel=0.005) - # Side exhaust muffler + copper pipes - vc.make_tube_part( - f"muffler_{tag}", 0.085, 0.085, 0.62, segments=12, - mat_name="gunmetal", parent=chassis, location=(side * 0.80, 0.72, 0.92), rotation_deg=(-90.0, 0.0, 0.0), - ) - vc.make_swept_tube( - f"muffler_pipe_{tag}", - [[side * 0.62, 0.64, 0.92], [side * 0.80, 0.72, 0.92], [side * 0.80, 1.44, 0.90]], - 0.032, segments=8, mat_name="copper_rad", parent=chassis, fillet_r=0.03, - ) - - # --- 2. Wide Articulated Track Pods --- - _build_track_pod("track_pod_L", 1.0, chassis) - _build_track_pod("track_pod_R", -1.0, chassis) - - # --- 3. Low Octagonal Turret (joint.turret_yaw) --- - turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, -0.18, 1.04)) - vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0) - joints_manifest = [{"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0}] - - # Turret ring race - vc.make_tube_part("turret_race", 0.54, 0.58, 0.07, segments=20, mat_name="gunmetal", parent=turret_pivot, location=(0.0, 0.0, 0.0)) - - turret_pts = [ - [-0.46, -0.52, 0.06], [0.46, -0.52, 0.06], - [0.54, -0.10, 0.06], [0.48, 0.56, 0.06], - [-0.48, 0.56, 0.06], [-0.54, -0.10, 0.06], - [-0.36, -0.40, 0.42], [0.36, -0.40, 0.42], - [0.42, -0.06, 0.42], [0.38, 0.46, 0.42], - [-0.38, 0.46, 0.42], [-0.42, -0.06, 0.42], - ] - turret_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "ferret_turret_shell", - "mat": "olive_armor", - "bevel": 0.012, - "sides": "one", - "mirror": False, - "points": turret_pts, - }, - ], - } - vc.make_plates(turret_doc, parent=turret_pivot) - - # Commander hatch & front optic prism + cheek pylon shelf - vc.make_tube_part("commander_cupola", 0.17, 0.18, 0.08, segments=12, mat_name="olive_armor", parent=turret_pivot, location=(-0.16, 0.14, 0.42)) - vc.make_box("turret_optic", (0.14, 0.16, 0.10), "smoked_glass", parent=turret_pivot, location=(0.18, -0.26, 0.45), bevel=0.006) - vc.make_box("turret_mantlet_collar", (0.28, 0.16, 0.22), "gunmetal", parent=turret_pivot, location=(0.0, -0.50, 0.24), bevel=0.008) - vc.make_box("cheek_pylon_shelf", (0.24, 0.34, 0.08), "gunmetal", parent=turret_pivot, location=(0.56, 0.02, 0.22), bevel=0.006) - - # --- 4. Visible Exterior Hardpoints (3x4 Dorsal Grid) --- - # 1) Front wedge glacis armor stud rail - vc.add_hardpoint_slot( - "hp.armor.glacis", - "armor", - parent=chassis, - location=(0.0, -1.24, 0.85), - rotation_deg=(66.0, 0.0, 0.0), - size=(1.12, 0.34, 0.08), - plinth_depth=0.03, - ) - # 2) Main turret weapon collar - vc.add_hardpoint_slot( - "hp.weapon.turret", - "weapon", - parent=turret_pivot, - location=(0.0, -0.02, 0.43), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.62, 0.62, 0.10), - ) - # 3) Turret cheek pod weapon collar (on left +X cheek pylon shelf) - vc.add_hardpoint_slot( - "hp.weapon.pod", - "weapon", - parent=turret_pivot, - location=(0.58, 0.02, 0.27), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.34, 0.34, 0.07), - ) - # 4) Rear engine bay frame (sloped deck surface at y=0.82 is z=1.00) - vc.add_hardpoint_slot( - "hp.engine.rear", - "engine", - parent=chassis, - location=(0.0, 0.82, 0.99), - rotation_deg=(-13.5, 0.0, 0.0), - size=(0.86, 0.66, 0.13), - plinth_depth=0.04, - ) - # 5) Rear deck copper radiator louver bay (sloped deck surface at y=1.42 is z=0.858) - vc.add_hardpoint_slot( - "hp.radiator.deck", - "radiator", - parent=chassis, - location=(0.0, 1.42, 0.845), - rotation_deg=(-13.5, 0.0, 0.0), - size=(0.88, 0.44, 0.09), - plinth_depth=0.04, - ) - - # --- 5. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "ferret" / "ferret.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "ferret" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "ferret_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="ferret", - name="Ferret", - vehicle_class="Light Tracked Scout Tankette", - grid_width=3, - grid_height=4, - mask=[ - "###", - "###", - "###", - "###", - ], - hardpoints=[ - {"id": "hp.armor.glacis", "kind": "armor", "x": 0, "y": 0, "w": 3, "h": 1, "modelNodeId": "hp.armor.glacis"}, - {"id": "hp.weapon.pod", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.weapon.pod"}, - {"id": "hp.weapon.turret", "kind": "weapon", "x": 1, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.turret"}, - {"id": "hp.engine.rear", "kind": "engine", "x": 2, "y": 2, "w": 1, "h": 2, "modelNodeId": "hp.engine.rear"}, - {"id": "hp.radiator.deck", "kind": "radiator", "x": 1, "y": 3, "w": 1, "h": 1, "modelNodeId": "hp.radiator.deck"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[ferret] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "ferret", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_ferret() diff --git a/tools/vehicles/build_gear.py b/tools/vehicles/build_gear.py deleted file mode 100644 index 60b095d..0000000 --- a/tools/vehicles/build_gear.py +++ /dev/null @@ -1,144 +0,0 @@ -"""Build the 6 modular starter gear GLBs into assets/gear/.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _export_gear(name: str, root) -> tuple[int, dict]: - glb_path = vc.ASSETS_GEAR_DIR / f"{name}.glb" - tris, bounds = vc.export_vehicle_glb(glb_path, root=root) - print(f"[gear:{name}] tris={tris} bounds={bounds} glb={glb_path}") - return tris, bounds - - -def build_mg_762() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Pintle base + yoke + receiver + perforated barrel shroud + side ammo box + spade grips - vc.make_tube_part("pintle_base", 0.14, 0.12, 0.06, segments=12, mat_name="gunmetal", parent=root) - vc.make_box("cradle_yoke", (0.14, 0.18, 0.18), "gunmetal", parent=root, location=(0.0, 0.0, 0.15), bevel=0.006) - vc.make_box("receiver", (0.12, 0.44, 0.14), "olive_armor", parent=root, location=(0.0, -0.04, 0.28), bevel=0.006) - vc.make_tube_part("barrel_shroud", 0.032, 0.028, 0.48, segments=10, mat_name="gunmetal", parent=root, location=(0.0, -0.24, 0.29), rotation_deg=(90.0, 0.0, 0.0)) - vc.make_tube_part("barrel_inner", 0.014, 0.014, 0.68, segments=8, mat_name="gunmetal", parent=root, location=(0.0, -0.24, 0.29), rotation_deg=(90.0, 0.0, 0.0)) - vc.make_box("ammo_box", (0.14, 0.22, 0.16), "olive_armor", parent=root, location=(0.14, -0.02, 0.25), bevel=0.006) - vc.make_box("ammo_latch", (0.04, 0.10, 0.04), "signal_orange", parent=root, location=(0.14, -0.02, 0.34), bevel=0.003) - for side in (-1.0, 1.0): - vc.make_tube_part(f"grip_{'L' if side > 0 else 'R'}", 0.012, 0.012, 0.10, segments=6, mat_name="rubber_dark", parent=root, location=(side * 0.06, 0.22, 0.23)) - _export_gear("mg_762", root) - - -def build_autocannon() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Turret base ring + twin armored trunnion cheeks + dual 20mm barrels + twin ammo drums - vc.make_tube_part("turret_collar", 0.26, 0.24, 0.08, segments=16, mat_name="gunmetal", parent=root) - vc.make_box("gun_housing", (0.30, 0.46, 0.24), "olive_armor", parent=root, location=(0.0, 0.04, 0.20), bevel=0.010) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_tube_part(f"barrel_jacket_{tag}", 0.036, 0.030, 0.42, segments=10, mat_name="gunmetal", parent=root, location=(side * 0.085, -0.18, 0.22), rotation_deg=(90.0, 0.0, 0.0)) - vc.make_tube_part(f"barrel_tube_{tag}", 0.018, 0.018, 0.88, segments=8, mat_name="gunmetal", parent=root, location=(side * 0.085, -0.18, 0.22), rotation_deg=(90.0, 0.0, 0.0)) - vc.make_tube_part(f"muzzle_brake_{tag}", 0.028, 0.028, 0.09, segments=8, mat_name="copper_rad", parent=root, location=(side * 0.085, -1.00, 0.22), rotation_deg=(90.0, 0.0, 0.0)) - vc.make_tube_part(f"ammo_drum_{tag}", 0.13, 0.13, 0.16, segments=14, mat_name="olive_armor", parent=root, location=(side * 0.22, 0.14, 0.24), rotation_deg=(0.0, 90.0 * side, 0.0)) - vc.make_box("optic_pod", (0.10, 0.14, 0.09), "smoked_glass", parent=root, location=(0.0, -0.08, 0.36), bevel=0.005) - _export_gear("autocannon", root) - - -def build_recoilless() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Pedestal + heavy long recoilless tube + flared rear venturi + top optic rail - vc.make_tube_part("base_flange", 0.20, 0.18, 0.07, segments=14, mat_name="gunmetal", parent=root) - vc.make_box("trunnion_post", (0.14, 0.20, 0.20), "gunmetal", parent=root, location=(0.0, 0.02, 0.16), bevel=0.008) - tube_prof = [ - [0.055, -0.58], - [0.085, -0.58], - [0.095, -0.35], - [0.095, 0.42], - [0.072, 0.46], - [0.072, 0.78], - [0.088, 0.82], - [0.062, 0.82], - [0.055, 0.44], - ] - vc.make_lathe_part("launcher_tube", tube_prof, segments=16, loop=True, smooth=True, mat_name="olive_armor", parent=root, location=(0.0, 0.0, 0.32), rotation_deg=(-90.0, 0.0, 0.0)) - vc.make_box("breech_band", (0.20, 0.12, 0.20), "signal_orange", parent=root, location=(0.0, 0.26, 0.32), bevel=0.006) - vc.make_tube_part("sight_tube", 0.028, 0.032, 0.22, segments=10, mat_name="gunmetal", parent=root, location=(0.11, -0.02, 0.36), rotation_deg=(90.0, 0.0, 0.0)) - _export_gear("recoilless", root) - - -def build_copper_rad() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Industrial copper finned radiator bank + armored end tanks + coolant pipes + base flange - vc.make_box("base_flange", (0.48, 0.42, 0.045), "gunmetal", parent=root, location=(0.0, 0.0, 0.0225), bevel=0.006) - vc.make_kit_part( - "copper_fins", - "mechanical", - "radiator_stack", - {"fins": 10, "fin_w": 0.36, "fin_h": 0.24, "fin_t": 0.008, "pitch": 0.032, "segments": 10}, - mat_name="copper_rad", - parent=root, - location=(0.0, -0.145, 0.18), - rotation_deg=(-90.0, 0.0, 0.0), - ) - for side in (-1.0, 1.0): - vc.make_box(f"end_tank_{'L' if side > 0 else 'R'}", (0.06, 0.38, 0.26), "gunmetal", parent=root, location=(side * 0.21, 0.0, 0.18), bevel=0.008) - vc.make_swept_tube(f"coolant_pipe_{'L' if side > 0 else 'R'}", [[side * 0.21, 0.14, 0.26], [side * 0.21, 0.24, 0.18], [side * 0.16, 0.24, 0.06]], 0.018, segments=8, mat_name="copper_rad", parent=root, fillet_r=0.02) - vc.make_box("top_cap_bar", (0.44, 0.06, 0.04), "signal_orange", parent=root, location=(0.0, -0.15, 0.31), bevel=0.004) - _export_gear("copper_rad", root) - - -def build_gilded_lance() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Imperial Tourist ornate gilded thermal lance with ivory cowl, gold flutes, and cyan condenser rings - vc.make_tube_part("imperial_base", 0.24, 0.21, 0.08, segments=18, mat_name="imperial_gold", parent=root) - vc.make_box("ivory_cowl", (0.28, 0.52, 0.22), "imperial_ivory", parent=root, location=(0.0, 0.02, 0.20), bevel=0.014) - vc.make_box("gold_crest", (0.10, 0.44, 0.08), "imperial_gold", parent=root, location=(0.0, 0.02, 0.32), bevel=0.008) - vc.make_tube_part("lance_core", 0.042, 0.026, 0.96, segments=14, mat_name="imperial_gold", parent=root, location=(0.0, -0.20, 0.22), rotation_deg=(90.0, 0.0, 0.0)) - for i, dy in enumerate((-0.42, -0.64, -0.86)): - vc.make_tube_part(f"condenser_ring_{i}", 0.062 - i * 0.006, 0.062 - i * 0.006, 0.04, segments=14, mat_name="cyan_coil", parent=root, location=(0.0, dy, 0.22), rotation_deg=(90.0, 0.0, 0.0)) - _export_gear("gilded_lance", root) - - -def build_gold_radiator() -> None: - vc.reset_scene() - vc.ensure_materials() - root = vc.make_empty("GearRoot") - # Imperial Tourist ornate gilded louver array with ivory housing & cyan thermal core - vc.make_box("imperial_flange", (0.48, 0.42, 0.045), "imperial_gold", parent=root, location=(0.0, 0.0, 0.0225), bevel=0.006) - vc.make_box("ivory_shroud", (0.44, 0.38, 0.22), "imperial_ivory", parent=root, location=(0.0, 0.0, 0.155), bevel=0.012) - vc.make_box("cyan_core", (0.34, 0.28, 0.16), "cyan_coil", parent=root, location=(0.0, 0.0, 0.16), bevel=0.004) - def build_gold_vanes(bm: bmesh.types.BMesh) -> None: - for i in range(7): - y = -0.14 + 0.28 * (i / 6.0) - m = Matrix.Translation((0.0, y, 0.265)) @ Matrix.Rotation(math.radians(20.0), 4, "X") @ Matrix.Diagonal((0.38, 0.022, 0.055, 1.0)) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - vc.make_bmesh_object("gold_vanes", build_gold_vanes, "imperial_gold", parent=root) - _export_gear("gold_radiator", root) - - -def build_all_gear() -> None: - build_mg_762() - build_autocannon() - build_recoilless() - build_copper_rad() - build_gilded_lance() - build_gold_radiator() - - -if __name__ == "__main__": - build_all_gear() diff --git a/tools/vehicles/build_hornet.py b/tools/vehicles/build_hornet.py deleted file mode 100644 index bb073e1..0000000 --- a/tools/vehicles/build_hornet.py +++ /dev/null @@ -1,400 +0,0 @@ -"""Build the Hornet (Light Ducted-Fan VTOL Gunship) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _build_ducted_nacelle(name: str, side: float, parent, joints_manifest: list[dict]) -> None: - """Build a pivoting armored ducted-fan nacelle with inner copper thrust collar and spinning rotor.""" - nacelle_id = f"joint.nacelle_{'l' if side > 0 else 'r'}" - nacelle_pivot = vc.make_empty( - nacelle_id, - parent=parent, - location=(side * 1.18, 0.10, 1.32), - rotation_deg=(-18.0, 0.0, 0.0), - ) - vc.tag_joint(nacelle_pivot, nacelle_id, [1.0, 0.0, 0.0], -45.0, 75.0) - joints_manifest.append({"id": nacelle_id, "axis": [1.0, 0.0, 0.0], "min": -45.0, "max": 75.0}) - - # Upper olive-drab armored duct shroud (CCW in (r, z) for core.lathe) - shroud_prof = [ - [0.34, -0.06], - [0.44, -0.06], - [0.47, 0.02], - [0.47, 0.22], - [0.43, 0.28], - [0.35, 0.28], - [0.33, 0.20], - [0.34, -0.06], - ] - vc.make_lathe_part( - f"{name}_shroud", - shroud_prof[:-1], - segments=22, - loop=True, - smooth=True, - mat_name="olive_armor", - parent=nacelle_pivot, - ) - # Lower copper thermal exhaust skirt - skirt_prof = [ - [0.33, -0.20], - [0.41, -0.20], - [0.44, -0.06], - [0.34, -0.06], - ] - vc.make_lathe_part( - f"{name}_skirt", - skirt_prof, - segments=22, - loop=True, - smooth=True, - mat_name="copper_rad", - parent=nacelle_pivot, - ) - # Stator cross vanes + hinge yoke collar - for ang_deg in (0.0, 90.0): - vc.make_box( - f"{name}_stator_{int(ang_deg)}", - (0.68, 0.04, 0.06), - "gunmetal", - parent=nacelle_pivot, - location=(0.0, 0.0, -0.08), - rotation_deg=(0.0, 0.0, ang_deg), - bevel=0.004, - ) - vc.make_box( - f"{name}_hinge_lug", - (0.16, 0.22, 0.16), - "gunmetal", - parent=nacelle_pivot, - location=(-side * 0.44, 0.0, 0.08), - bevel=0.008, - ) - - # Spinning rotor hub + 4 pitched fan blades (about glTF +Y = Blender +Z) - rotor_id = f"joint.rotor_{'l' if side > 0 else 'r'}" - rotor_pivot = vc.make_empty(rotor_id, parent=nacelle_pivot, location=(0.0, 0.0, 0.04)) - vc.tag_joint(rotor_pivot, rotor_id, [0.0, 1.0, 0.0], -360.0, 360.0) - joints_manifest.append({"id": rotor_id, "axis": [0.0, 1.0, 0.0], "min": -360.0, "max": 360.0}) - - spinner_prof = [ - [0.0, -0.04], - [0.10, -0.04], - [0.10, 0.06], - [0.06, 0.16], - [0.0, 0.22], - ] - vc.make_lathe_part(f"{name}_spinner", spinner_prof, segments=14, loop=False, smooth=True, mat_name="gunmetal", parent=rotor_pivot) - - def build_blades(bm: bmesh.types.BMesh) -> None: - for i in range(4): - a = i * math.pi * 0.5 - m = ( - Matrix.Rotation(a, 4, "Z") - @ Matrix.Translation((0.20, 0.0, 0.02)) - @ Matrix.Rotation(math.radians(22.0), 4, "X") - @ Matrix.Diagonal((0.24, 0.085, 0.014, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - - vc.make_bmesh_object(f"{name}_blades", build_blades, "gunmetal", parent=rotor_pivot) - - -def build_hornet() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("HornetRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # --- 1. Rugged Steel Landing Skids (grounded at Z = 0) --- - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_swept_tube( - f"skid_runner_{tag}", - [ - [side * 0.72, -1.56, 0.16], - [side * 0.72, -1.24, 0.032], - [side * 0.72, 1.06, 0.032], - ], - 0.032, - segments=8, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.08, - ) - # Front & rear diagonal skid struts up to fuselage belly - for s_tag, sy_lo, sy_hi in (("f", -0.82, -0.68), ("r", 0.52, 0.44)): - vc.make_swept_tube( - f"skid_strut_{tag}_{s_tag}", - [[side * 0.72, sy_lo, 0.04], [side * 0.40, sy_hi, 0.54]], - 0.026, - segments=8, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.0, - ) - - # --- 2. Faceted Armored Cockpit & Fuselage Hull (Brokkr plate.v0) --- - hull_pts = [ - [-0.28, -1.86, 0.56], [0.28, -1.86, 0.56], - [-0.36, -1.78, 0.78], [0.36, -1.78, 0.78], - [-0.58, -0.86, 0.46], [0.58, -0.86, 0.46], - [-0.64, -0.64, 1.02], [0.64, -0.64, 1.02], - [-0.64, 0.76, 1.02], [0.64, 0.76, 1.02], - [-0.56, 0.88, 0.54], [0.56, 0.88, 0.54], - [-0.44, 0.64, 1.44], [0.44, 0.64, 1.44], - [-0.44, -0.26, 1.44], [0.44, -0.26, 1.44], - ] - canopy_pts = [ - [-0.34, -1.66, 0.78], [0.34, -1.66, 0.78], - [-0.52, -0.88, 1.02], [0.52, -0.88, 1.02], - [-0.42, -0.28, 1.40], [0.42, -0.28, 1.40], - [-0.36, -0.88, 1.38], [0.36, -0.88, 1.38], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "hornet_fuselage", - "mat": "olive_armor", - "bevel": 0.014, - "sides": "one", - "mirror": False, - "points": hull_pts, - }, - { - "name": "hornet_canopy", - "mat": "smoked_glass", - "bevel": 0.008, - "sides": "one", - "mirror": False, - "points": canopy_pts, - }, - # Cheek armor skirts with bolts - { - "name": "hornet_cheek", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.58, -0.62, 0.76], - "normal": [0.92, -0.28, 0.26], - "up": [0.0, 0.0, 1.0], - "right": [-0.28, -0.96, 0.0], - "outline": [[-0.56, -0.14], [0.52, -0.18], [0.48, 0.16], [-0.46, 0.14]], - "thick": 0.04, - "taper": 0.012, - "back": 0.90, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.24, "mat": "gunmetal", "params": "r=0.011"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Canopy structural armor ribs + nose EO/IR optics pod - vc.make_swept_tube( - "canopy_spine", - [[0.0, -1.68, 0.78], [0.0, -0.90, 1.40], [0.0, -0.26, 1.44]], - 0.024, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04, - ) - for side in (-1.0, 1.0): - vc.make_swept_tube( - f"canopy_rib_{'L' if side > 0 else 'R'}", - [[side * 0.33, -1.65, 0.78], [side * 0.37, -0.89, 1.38], [side * 0.43, -0.28, 1.42]], - 0.020, segments=6, mat_name="olive_armor", parent=chassis, fillet_r=0.04, - ) - vc.make_box("nose_optics_housing", (0.24, 0.20, 0.18), "gunmetal", parent=chassis, location=(0.0, -1.86, 0.66), bevel=0.01) - vc.make_tube_part("nose_optics_lens", 0.065, 0.065, 0.06, segments=12, mat_name="smoked_glass", parent=chassis, location=(0.0, -1.94, 0.66), rotation_deg=(90.0, 0.0, 0.0)) - - # Stub wings + nacelle outrigger arms - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box( - f"stub_wing_{tag}", - (0.68, 0.56, 0.09), - "olive_armor", - parent=chassis, - location=(side * 0.74, 0.14, 0.74), - rotation_deg=(0.0, side * 8.0, side * -10.0), - bevel=0.01, - ) - vc.make_box( - f"nacelle_arm_{tag}", - (0.46, 0.30, 0.18), - "gunmetal", - parent=chassis, - location=(side * 0.62, 0.10, 1.32), - bevel=0.01, - ) - - # --- 3. Pivoting Ducted-Fan Nacelles + Hydraulic Tilt Actuators --- - joints_manifest: list[dict] = [] - for side in (1.0, -1.0): - tag = "L" if side > 0 else "R" - _build_ducted_nacelle(f"nacelle_{tag}", side, chassis, joints_manifest) - # Dual hydraulic tilt actuator from dorsal shoulder clevis out to nacelle hinge lug - vc.make_box(f"tilt_clevis_{tag}", (0.10, 0.14, 0.10), "gunmetal", parent=chassis, location=(side * 0.44, -0.10, 1.38), bevel=0.005) - vc.make_ram_span( - f"tilt_actuator_{tag}", - [side * 0.44, -0.10, 1.38], - [side * 0.78, 0.08, 1.38], - body_r=0.028, - rod_r=0.015, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - - # --- 4. Skeletal Truss Tail Boom & V/T Tailfins --- - # Rear boom mounting bulkhead + 3-chord space-frame tail boom anchored inside fuselage - vc.make_box("tail_boom_collar", (0.44, 0.28, 0.42), "gunmetal", parent=chassis, location=(0.0, 0.74, 1.10), bevel=0.01) - boom_top_l = [0.16, 0.62, 1.24] - boom_top_r = [-0.16, 0.62, 1.24] - boom_bot = [0.0, 0.62, 0.94] - tail_top_l = [0.07, 2.38, 1.34] - tail_top_r = [-0.07, 2.38, 1.34] - tail_bot = [0.0, 2.38, 1.16] - for cname, p0, p1 in [ - ("boom_tl", boom_top_l, tail_top_l), - ("boom_tr", boom_top_r, tail_top_r), - ("boom_bt", boom_bot, tail_bot), - ]: - vc.make_swept_tube(cname, [p0, p1], 0.020, segments=6, mat_name="gunmetal", parent=chassis, fillet_r=0.0) - - # Truss bay diagonals along the tail boom - n_bays = 5 - def lerp3(a, b, t): - return [a[k] + (b[k] - a[k]) * t for k in range(3)] - - for i in range(n_bays): - t0 = i / n_bays - t1 = (i + 1) / n_bays - p_tl0, p_tr0, p_b0 = lerp3(boom_top_l, tail_top_l, t0), lerp3(boom_top_r, tail_top_r, t0), lerp3(boom_bot, tail_bot, t0) - p_tl1, p_tr1, p_b1 = lerp3(boom_top_l, tail_top_l, t1), lerp3(boom_top_r, tail_top_r, t1), lerp3(boom_bot, tail_bot, t1) - vc.make_swept_tube(f"boom_cross_{i}", [p_tl1, p_tr1, p_b1, p_tl1], 0.012, segments=6, mat_name="gunmetal", parent=chassis, fillet_r=0.0) - vc.make_swept_tube(f"boom_diag_l_{i}", [p_tl0, p_b1], 0.011, segments=6, mat_name="gunmetal", parent=chassis, fillet_r=0.0) - vc.make_swept_tube(f"boom_diag_r_{i}", [p_tr0, p_b1], 0.011, segments=6, mat_name="gunmetal", parent=chassis, fillet_r=0.0) - - # Swept-back V-tail stabilizers + ventral fin + tail hub - vc.make_box("tail_fin_hub", (0.16, 0.24, 0.20), "gunmetal", parent=chassis, location=(0.0, 2.36, 1.26), bevel=0.008) - for side in (-1.0, 1.0): - vc.make_box( - f"vtail_{'L' if side > 0 else 'R'}", - (0.04, 0.34, 0.62), - "olive_armor", - parent=chassis, - location=(side * 0.24, 2.40, 1.54), - rotation_deg=(22.0, side * -38.0, 0.0), - bevel=0.006, - ) - vc.make_box("ventral_fin", (0.035, 0.26, 0.24), "olive_armor", parent=chassis, location=(0.0, 2.36, 1.04), rotation_deg=(22.0, 0.0, 0.0), bevel=0.006) - - # --- 5. Visible Exterior Hardpoints (4x4 Dorsal Grid) --- - # 1) Chin gimbal collar (under nose, pointing +Z forward and -Y downward) - vc.add_hardpoint_slot( - "hp.weapon.chin", - "weapon", - parent=chassis, - location=(0.0, -1.46, 0.525), - rotation_deg=(5.7, 180.0, 0.0), - size=(0.42, 0.42, 0.08), - plinth_depth=0.04, - ) - # 2 & 3) Stub-wing weapon pylons (under left/right wings) - vc.add_hardpoint_slot( - "hp.weapon.wing_l", - "weapon", - parent=chassis, - location=(0.88, 0.14, 0.69), - rotation_deg=(0.0, 180.0, 0.0), - size=(0.34, 0.34, 0.07), - ) - vc.add_hardpoint_slot( - "hp.weapon.wing_r", - "weapon", - parent=chassis, - location=(-0.88, 0.14, 0.69), - rotation_deg=(0.0, 180.0, 0.0), - size=(0.34, 0.34, 0.07), - ) - # 4) Dorsal turbine core engine bay - vc.add_hardpoint_slot( - "hp.engine.core", - "engine", - parent=chassis, - location=(0.0, 0.26, 1.44), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.74, 0.80, 0.13), - ) - # 5 & 6) Twin copper-louvered nacelle root exhaust radiator bays - vc.add_hardpoint_slot( - "hp.radiator.nacelle_l", - "radiator", - parent=chassis, - location=(0.54, -0.32, 1.23), - rotation_deg=(72.0, 0.0, 34.0), - size=(0.36, 0.32, 0.09), - plinth_depth=0.04, - ) - vc.add_hardpoint_slot( - "hp.radiator.nacelle_r", - "radiator", - parent=chassis, - location=(-0.54, -0.32, 1.23), - rotation_deg=(72.0, 0.0, -34.0), - size=(0.36, 0.32, 0.09), - plinth_depth=0.04, - ) - - # --- 6. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "hornet" / "hornet.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "hornet" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "hornet_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="hornet", - name="Hornet", - vehicle_class="Light Ducted-Fan VTOL Gunship", - grid_width=4, - grid_height=4, - mask=[ - ".##.", - "####", - "####", - ".##.", - ], - hardpoints=[ - {"id": "hp.weapon.chin", "kind": "weapon", "x": 1, "y": 0, "w": 1, "h": 2, "modelNodeId": "hp.weapon.chin"}, - {"id": "hp.radiator.nacelle_l", "kind": "radiator", "x": 0, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.radiator.nacelle_l"}, - {"id": "hp.radiator.nacelle_r", "kind": "radiator", "x": 3, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.radiator.nacelle_r"}, - {"id": "hp.weapon.wing_l", "kind": "weapon", "x": 0, "y": 2, "w": 1, "h": 1, "modelNodeId": "hp.weapon.wing_l"}, - {"id": "hp.engine.core", "kind": "engine", "x": 1, "y": 2, "w": 2, "h": 2, "modelNodeId": "hp.engine.core"}, - {"id": "hp.weapon.wing_r", "kind": "weapon", "x": 3, "y": 2, "w": 1, "h": 1, "modelNodeId": "hp.weapon.wing_r"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[hornet] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "hornet", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_hornet() diff --git a/tools/vehicles/build_ironclad.py b/tools/vehicles/build_ironclad.py deleted file mode 100644 index a20dfeb..0000000 --- a/tools/vehicles/build_ironclad.py +++ /dev/null @@ -1,423 +0,0 @@ -"""Build the Ironclad (Medium Tracked Battle Tank) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def _build_mbt_track_pod(name: str, side: float, parent) -> None: - """Build one wide MBT track assembly with 5 double roadwheels, idler, sprocket, shoes, and bolted side skirt.""" - pod_x = side * 1.12 - pod = vc.make_empty(name, parent=parent, location=(pod_x, 0.0, 0.0)) - - rw_r = 0.28 - rw_z = rw_r + 0.045 - rw_ys = (-1.28, -0.64, 0.0, 0.64, 1.28) - idler_y, idler_z, idler_r = -1.94, 0.56, 0.25 - sproc_y, sproc_z, sproc_r = 1.92, 0.58, 0.26 - track_w = 0.48 - - # Roadwheels (5) + 3 return rollers + Front Idler + Rear Drive Sprocket - for i, ry in enumerate(rw_ys): - vc.make_tube_part( - f"{name}_rw_tire_{i}", rw_r, rw_r, track_w * 0.84, segments=16, - mat_name="rubber_dark", parent=pod, location=(-track_w * 0.42, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_rw_dish_{i}", rw_r * 0.68, rw_r * 0.68, track_w * 0.90, segments=12, - mat_name="olive_armor", parent=pod, location=(-track_w * 0.45, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_rw_cap_{i}", rw_r * 0.28, rw_r * 0.28, track_w * 0.94, segments=10, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.47, ry, rw_z), rotation_deg=(0.0, 90.0, 0.0), - ) - for j, rry in enumerate((-0.96, 0.0, 0.96)): - vc.make_tube_part( - f"{name}_ret_{j}", 0.09, 0.09, track_w * 0.68, segments=10, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.34, rry, 0.78), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_idler", idler_r, idler_r, track_w * 0.80, segments=14, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.40, idler_y, idler_z), rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_tube_part( - f"{name}_sprocket", sproc_r, sproc_r, track_w * 0.84, segments=14, - mat_name="gunmetal", parent=pod, location=(-track_w * 0.42, sproc_y, sproc_z), rotation_deg=(0.0, 90.0, 0.0), - ) - - # Track loop polyline in (y, z) - loop_yz: list[tuple[float, float]] = [] - for k in range(7): - ang = math.radians(95.0 + 145.0 * (k / 6.0)) - loop_yz.append((idler_y + math.cos(ang) * (idler_r + 0.03), idler_z + math.sin(ang) * (idler_r + 0.03))) - loop_yz.append((-1.28, 0.025)) - loop_yz.append((1.28, 0.025)) - for k in range(7): - ang = math.radians(-65.0 + 145.0 * (k / 6.0)) - loop_yz.append((sproc_y + math.cos(ang) * (sproc_r + 0.03), sproc_z + math.sin(ang) * (sproc_r + 0.03))) - loop_yz.append((0.60, 0.89)) - loop_yz.append((-0.60, 0.89)) - - path_3d = [[0.0, y, z] for (y, z) in loop_yz] - vc.make_swept_profile( - f"{name}_track_band", - "box", - 0.034, - track_w * 0.92, - 0.034, - path_3d, - up=[1.0, 0.0, 0.0], - mat_name="rubber_dark", - parent=pod, - closed=True, - ) - - # Articulated steel grouser shoes - pts = loop_yz + [loop_yz[0]] - segs = [math.hypot(pts[i + 1][0] - pts[i][0], pts[i + 1][1] - pts[i][1]) for i in range(len(loop_yz))] - total_len = sum(segs) - n_shoes = 46 - - def build_shoes(bm: bmesh.types.BMesh) -> None: - for s_idx in range(n_shoes): - target_d = (s_idx / n_shoes) * total_len - acc = 0.0 - for i, sl in enumerate(segs): - if acc + sl >= target_d or i == len(segs) - 1: - t = (target_d - acc) / max(sl, 1e-6) - y0, z0 = pts[i] - y1, z1 = pts[i + 1] - py = y0 + (y1 - y0) * t - pz = z0 + (z1 - z0) * t - ang = math.atan2(z1 - z0, y1 - y0) - m = ( - Matrix.Translation((0.0, py, pz)) - @ Matrix.Rotation(ang, 4, "X") - @ Matrix.Diagonal((track_w, 0.095, 0.030, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - break - acc += sl - - vc.make_bmesh_object(f"{name}_shoes", build_shoes, "gunmetal", parent=pod) - - # Full-length top track fender + front/rear mudflaps - vc.make_box(f"{name}_fender_top", (track_w + 0.08, 4.18, 0.065), "olive_armor", parent=pod, location=(0.0, -0.02, 0.96), bevel=0.01) - vc.make_box(f"{name}_fender_front", (track_w + 0.08, 0.36, 0.06), "olive_armor", parent=pod, location=(0.0, -2.20, 0.84), rotation_deg=(38.0, 0.0, 0.0), bevel=0.008) - vc.make_box(f"{name}_fender_rear", (track_w + 0.08, 0.34, 0.06), "olive_armor", parent=pod, location=(0.0, 2.16, 0.84), rotation_deg=(-38.0, 0.0, 0.0), bevel=0.008) - - -def build_ironclad() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("IroncladRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # --- 1. Lower Armored Tub & Welded Angular MBT Hull (Brokkr plate.v0) --- - vc.make_box("lower_tub", (1.74, 4.10, 0.52), "gunmetal", parent=chassis, location=(0.0, -0.02, 0.56), bevel=0.014) - - hull_pts = [ - [-0.87, -2.26, 0.52], [0.87, -2.26, 0.52], - [-0.90, -2.24, 0.74], [0.90, -2.24, 0.74], - [-0.92, -1.16, 1.16], [0.92, -1.16, 1.16], - [-0.92, 0.96, 1.16], [0.92, 0.96, 1.16], - [-0.88, 2.18, 0.96], [0.88, 2.18, 0.96], - [-0.86, 2.16, 0.54], [0.86, 2.16, 0.54], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "ironclad_hull", - "mat": "olive_armor", - "bevel": 0.015, - "sides": "one", - "mirror": False, - "points": hull_pts, - "clad": { - "mat": "olive_armor", - "facets": [{"n": [0.0, -0.36, 0.93], "cos": 0.88}], - "min_area": 0.16, - "lifts": [0.008, 0.014], - "inset": 0.06, - "gap": 0.018, - "split": 0.88, - "seed": 701, - "bolt_r": 0.013, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - }, - # Heavy bolted forward/mid track skirts (leaves rear flank clear for radiator bays) - { - "name": "ironclad_track_skirt", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [1.39, -0.44, 0.68], - "normal": [1.0, 0.0, 0.0], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -1.0, 0.0], - "outline": [[-1.34, -0.26], [1.44, -0.26], [1.26, 0.28], [-1.34, 0.28]], - "thick": 0.048, - "taper": 0.010, - "back": 0.92, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.10, - "lifts": [0.008, 0.014], - "inset": 0.04, - "gap": 0.016, - "split": 0.72, - "seed": 702, - "bolt_r": 0.013, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "bolts", "inset": 0.025, "spacing": 0.34, "mat": "gunmetal", "params": "r=0.013"}, - ], - }, - # Sloped upper hull sponson shoulders - { - "name": "ironclad_sponson", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [1.08, 0.16, 1.04], - "normal": [0.76, 0.0, 0.65], - "up": [-0.65, 0.0, 0.76], - "right": [0.0, -1.0, 0.0], - "outline": [[-1.72, -0.18], [1.72, -0.18], [1.56, 0.18], [-1.56, 0.18]], - "thick": 0.05, - "taper": 0.014, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.36, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Rear flank armored housings for radiator bays + driver periscope + headlights + tow shackles - vc.make_box("driver_periscope", (0.42, 0.14, 0.09), "smoked_glass", parent=chassis, location=(-0.30, -1.32, 1.18), bevel=0.005) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"headlight_box_{tag}", (0.18, 0.14, 0.12), "gunmetal", parent=chassis, location=(side * 1.08, -2.06, 1.04), bevel=0.008) - vc.make_box(f"headlight_lens_{tag}", (0.12, 0.04, 0.07), "smoked_glass", parent=chassis, location=(side * 1.08, -2.13, 1.04), bevel=0.003) - vc.make_box(f"tow_shackle_{tag}", (0.07, 0.12, 0.12), "signal_orange", parent=chassis, location=(side * 0.56, -2.28, 0.62), bevel=0.006) - # Rear flank radiator mounting box + exhaust armor box - vc.make_box(f"rear_rad_housing_{tag}", (0.18, 1.04, 0.50), "olive_armor", parent=chassis, location=(side * 1.28, 1.36, 0.78), bevel=0.01) - vc.make_box(f"rear_exhaust_box_{tag}", (0.42, 0.34, 0.24), "gunmetal", parent=chassis, location=(side * 0.62, 2.08, 0.86), bevel=0.01) - vc.make_swept_tube( - f"exhaust_pipe_{tag}", - [[side * 0.62, 2.12, 0.86], [side * 0.72, 2.26, 0.88], [side * 0.72, 2.34, 0.78]], - 0.042, - segments=10, - mat_name="copper_rad", - parent=chassis, - fillet_r=0.03, - ) - # External cylindrical stern fuel drums (signature Ironclad silhouette; tank extends along local +Z) - vc.make_kit_part( - f"stern_fuel_drum_{tag}", - "mechanical", - "tank", - {"radius": 0.17, "length": 0.76, "segments": 14}, - mat_name="olive_armor", - parent=chassis, - location=(side * 0.06, 2.24, 1.04), - rotation_deg=(0.0, side * 90.0, 0.0), - ) - - # --- 2. Wide Articulated MBT Track Pods --- - _build_mbt_track_pod("track_pod_L", 1.0, chassis) - _build_mbt_track_pod("track_pod_R", -1.0, chassis) - - # --- 3. Faceted Central MBT Turret (joint.turret_yaw) --- - turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, -0.18, 1.16)) - vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0) - joints_manifest = [{"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0}] - - vc.make_tube_part("turret_race", 0.76, 0.82, 0.08, segments=24, mat_name="gunmetal", parent=turret_pivot) - - turret_pts = [ - [-0.58, -0.84, 0.08], [0.58, -0.84, 0.08], - [0.86, -0.20, 0.08], [0.76, 0.88, 0.08], - [-0.76, 0.88, 0.08], [-0.86, -0.20, 0.08], - [-0.46, -0.60, 0.50], [0.46, -0.60, 0.50], - [0.64, -0.10, 0.50], [0.58, 0.76, 0.50], - [-0.58, 0.76, 0.50], [-0.64, -0.10, 0.50], - ] - turret_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "ironclad_turret_shell", - "mat": "olive_armor", - "bevel": 0.014, - "sides": "one", - "mirror": False, - "points": turret_pts, - }, - { - "name": "ironclad_turret_cheek", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.62, -0.52, 0.28], - "normal": [0.64, -0.68, 0.35], - "up": [-0.24, 0.25, 0.94], - "right": [-0.73, -0.68, 0.0], - "outline": [[-0.28, -0.16], [0.28, -0.16], [0.22, 0.16], [-0.22, 0.16]], - "thick": 0.05, - "taper": 0.012, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.20, "mat": "gunmetal", "params": "r=0.011"}, - ], - }, - ], - } - vc.make_plates(turret_doc, parent=turret_pivot) - - # Turret mantlet, bustle rack, commander cupola, CITV optic, smoke dischargers & coax bracket - vc.make_box("turret_mantlet", (0.52, 0.24, 0.26), "gunmetal", parent=turret_pivot, location=(0.0, -0.82, 0.28), bevel=0.01) - vc.make_box("turret_bustle", (1.10, 0.44, 0.32), "olive_armor", parent=turret_pivot, location=(0.0, 0.98, 0.32), bevel=0.01) - vc.make_tube_part("commander_cupola", 0.17, 0.19, 0.09, segments=14, mat_name="olive_armor", parent=turret_pivot, location=(-0.36, 0.46, 0.50)) - vc.make_box("turret_citv_pod", (0.18, 0.20, 0.16), "gunmetal", parent=turret_pivot, location=(0.34, -0.32, 0.56), bevel=0.008) - vc.make_box("turret_citv_lens", (0.12, 0.05, 0.09), "smoked_glass", parent=turret_pivot, location=(0.34, -0.42, 0.57), bevel=0.004) - vc.make_box("coax_bracket", (0.36, 0.42, 0.10), "gunmetal", parent=turret_pivot, location=(0.64, -0.22, 0.34), bevel=0.008) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - for k in range(3): - vc.make_tube_part( - f"smoke_tube_{tag}_{k}", 0.030, 0.030, 0.17, segments=8, - mat_name="gunmetal", parent=turret_pivot, - location=(side * 0.80, 0.36 + k * 0.10, 0.30), rotation_deg=(-58.0, 0.0, side * 22.0), - ) - - # --- 4. Visible Exterior Hardpoints (4x5 Dorsal Grid) --- - # 1) hp.armor.front (0,0, 4x1) - vc.add_hardpoint_slot( - "hp.armor.front", - "armor", - parent=chassis, - location=(0.0, -1.72, 0.94), - rotation_deg=(68.0, 0.0, 0.0), - size=(1.46, 0.36, 0.09), - plinth_depth=0.04, - ) - # 2) hp.weapon.main (1,1, 2x2) - vc.add_hardpoint_slot( - "hp.weapon.main", - "weapon", - parent=turret_pivot, - location=(0.0, -0.02, 0.51), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.82, 0.82, 0.11), - ) - # 3) hp.weapon.coax (0,1, 1x1) on left turret cheek bracket - vc.add_hardpoint_slot( - "hp.weapon.coax", - "weapon", - parent=turret_pivot, - location=(0.66, -0.22, 0.39), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.38, 0.38, 0.08), - ) - # 4) hp.armor.skirts (3,1, 1x2) on right (-X) track skirt - vc.add_hardpoint_slot( - "hp.armor.skirts", - "armor", - parent=chassis, - location=(-1.42, -0.38, 0.68), - rotation_deg=(90.0, 0.0, -90.0), - size=(1.28, 0.32, 0.09), - ) - # 5) hp.engine.rear (1,3, 2x2) - vc.add_hardpoint_slot( - "hp.engine.rear", - "engine", - parent=chassis, - location=(0.0, 1.48, 1.08), - rotation_deg=(-9.0, 0.0, 0.0), - size=(1.08, 0.92, 0.13), - ) - # 6 & 7) hp.radiator.l (0,3, 1x2) & hp.radiator.r (3,3, 1x2) - vc.add_hardpoint_slot( - "hp.radiator.l", - "radiator", - parent=chassis, - location=(1.36, 1.36, 0.78), - rotation_deg=(90.0, 0.0, 90.0), - size=(0.94, 0.44, 0.12), - ) - vc.add_hardpoint_slot( - "hp.radiator.r", - "radiator", - parent=chassis, - location=(-1.36, 1.36, 0.78), - rotation_deg=(90.0, 0.0, -90.0), - size=(0.94, 0.44, 0.12), - ) - - # --- 5. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "ironclad" / "ironclad.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "ironclad" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "ironclad_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="ironclad", - name="Ironclad", - vehicle_class="Medium Tracked Battle Tank", - grid_width=4, - grid_height=5, - mask=[ - "####", - "####", - "####", - "####", - "####", - ], - hardpoints=[ - {"id": "hp.armor.front", "kind": "armor", "x": 0, "y": 0, "w": 4, "h": 1, "modelNodeId": "hp.armor.front"}, - {"id": "hp.weapon.coax", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.weapon.coax"}, - {"id": "hp.weapon.main", "kind": "weapon", "x": 1, "y": 1, "w": 2, "h": 2, "modelNodeId": "hp.weapon.main"}, - {"id": "hp.armor.skirts", "kind": "armor", "x": 3, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.armor.skirts"}, - {"id": "hp.radiator.l", "kind": "radiator", "x": 0, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.l"}, - {"id": "hp.engine.rear", "kind": "engine", "x": 1, "y": 3, "w": 2, "h": 2, "modelNodeId": "hp.engine.rear"}, - {"id": "hp.radiator.r", "kind": "radiator", "x": 3, "y": 3, "w": 1, "h": 2, "modelNodeId": "hp.radiator.r"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[ironclad] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "ironclad", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_ironclad() diff --git a/tools/vehicles/build_jackal.py b/tools/vehicles/build_jackal.py deleted file mode 100644 index 97bd932..0000000 --- a/tools/vehicles/build_jackal.py +++ /dev/null @@ -1,405 +0,0 @@ -"""Build the Jackal (Light Wheeled Dune Buggy) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def build_jackal() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("JackalRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # Dimensions & key coordinates (Blender: -Y forward, +Z up, +X left) - front_y = -1.12 - rear_y = 1.08 - track_x = 0.84 - wheel_r = 0.41 - wheel_w = 0.29 - axle_z = wheel_r - - # --- 1. Belly pan & central backbone --- - vc.make_box("belly_pan", (0.76, 2.24, 0.08), "gunmetal", parent=chassis, location=(0.0, 0.0, 0.34), bevel=0.01) - vc.make_box("front_diff", (0.28, 0.28, 0.20), "gunmetal", parent=chassis, location=(0.0, front_y, 0.42), bevel=0.01) - vc.make_box("rear_transaxle", (0.34, 0.36, 0.24), "gunmetal", parent=chassis, location=(0.0, rear_y, 0.44), bevel=0.01) - - # --- 2. Tubular Chromoly Rollcage & Bullbar (Brokkr core.sweep) --- - r_main = 0.025 - r_brace = 0.020 - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - # Lower sill rail - vc.make_swept_tube( - f"cage_sill_{tag}", - [ - [side * 0.30, -1.42, 0.48], - [side * 0.48, -0.78, 0.36], - [side * 0.48, 0.56, 0.36], - [side * 0.42, 1.38, 0.56], - ], - r_main, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - # Main A-pillar -> roof rail -> fastback B/C-pillar - vc.make_swept_tube( - f"cage_arch_{tag}", - [ - [side * 0.34, -1.24, 0.62], - [side * 0.44, -0.70, 0.82], - [side * 0.39, -0.14, 1.44], - [side * 0.39, 0.44, 1.44], - [side * 0.42, 1.38, 0.82], - [side * 0.42, 1.38, 0.56], - ], - r_main, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - # Mid beltline side bar + diagonal door brace - vc.make_swept_tube( - f"cage_belt_{tag}", - [ - [side * 0.45, -0.70, 0.78], - [side * 0.48, 0.52, 0.78], - [side * 0.42, 1.36, 0.80], - ], - r_brace, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - vc.make_swept_tube( - f"cage_diag_{tag}", - [[side * 0.46, -0.45, 0.42], [side * 0.41, 0.42, 1.42]], - r_brace, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - # Shock tower hoop - vc.make_swept_tube( - f"shock_hoop_{tag}", - [ - [side * 0.32, -1.28, 0.54], - [side * 0.38, -1.04, 0.80], - [side * 0.38, -0.78, 0.74], - ], - r_brace, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - - # Transverse rollcage crossbars & front tubular bullbar - for idx, (y_pos, z_pos, half_w) in enumerate([ - (-0.70, 0.82, 0.44), - (-0.14, 1.44, 0.39), - (0.44, 1.44, 0.39), - (0.54, 0.78, 0.46), - (1.38, 0.82, 0.42), - (1.38, 0.56, 0.42), - ]): - vc.make_swept_tube( - f"cage_cross_{idx}", - [[-half_w, y_pos, z_pos], [half_w, y_pos, z_pos]], - r_brace, - segments=8, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.0, - ) - - # Front stinger bullbar + twin headlights - vc.make_swept_tube( - "front_bullbar", - [ - [-0.32, -1.40, 0.48], - [-0.24, -1.64, 0.56], - [-0.16, -1.68, 0.68], - [0.16, -1.68, 0.68], - [0.24, -1.64, 0.56], - [0.32, -1.40, 0.48], - ], - r_main, - segments=8, - mat_name="gunmetal", - parent=chassis, - ) - for side in (-1.0, 1.0): - vc.make_tube_part( - f"headlight_{'L' if side > 0 else 'R'}", - r0=0.045, - r1=0.055, - length=0.08, - segments=12, - mat_name="gunmetal", - parent=chassis, - location=(side * 0.28, -1.46, 0.66), - rotation_deg=(90.0, 0.0, 0.0), - ) - - # --- 3. Hard Armour Plates (Brokkr plate.v0) --- - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "jackal_side", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.47, -0.05, 0.58], - "normal": [1.0, 0.0, 0.14], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.58, -0.16], [0.58, -0.14], [0.68, 0.16], [-0.42, 0.22]], - "thick": 0.04, - "taper": 0.015, - "back": 0.92, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.04, - "lifts": [0.008, 0.012], - "inset": 0.04, - "gap": 0.015, - "split": 0.55, - "seed": 401, - "bolt_r": 0.012, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.26, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - { - "name": "jackal_hood", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "one", - "mirror": False, - "slab": { - "at": [0.0, -0.98, 0.73], - "normal": [0.0, -0.32, 0.95], - "up": [0.0, -0.95, -0.32], - "right": [1.0, 0.0, 0.0], - "outline": [[-0.28, 0.30], [0.28, 0.30], [0.38, -0.28], [-0.38, -0.28]], - "thick": 0.045, - "taper": 0.018, - "back": 0.90, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.05, - "lifts": [0.008, 0.014], - "inset": 0.04, - "gap": 0.014, - "split": 0.60, - "seed": 402, - "bolt_r": 0.012, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.24, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - { - "name": "jackal_roof", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "one", - "mirror": False, - "slab": { - "at": [0.0, 0.14, 1.455], - "normal": [0.0, 0.0, 1.0], - "up": [0.0, -1.0, 0.0], - "right": [1.0, 0.0, 0.0], - "outline": {"w": 0.74, "h": 0.62, "clip": 0.08}, - "thick": 0.036, - "taper": 0.012, - "back": 0.94, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.22, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # --- 4. Cockpit Seats & Firewall --- - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"seat_base_{tag}", (0.32, 0.34, 0.08), "rubber_dark", parent=chassis, location=(side * 0.20, 0.08, 0.42), bevel=0.01) - vc.make_box(f"seat_back_{tag}", (0.30, 0.08, 0.48), "rubber_dark", parent=chassis, location=(side * 0.20, 0.24, 0.68), rotation_deg=(14.0, 0.0, 0.0), bevel=0.01) - vc.make_box("rear_firewall", (0.76, 0.04, 0.42), "gunmetal", parent=chassis, location=(0.0, 0.46, 0.60), bevel=0.005) - vc.make_swept_tube("steer_col", [[0.18, -0.58, 0.80], [0.18, -0.34, 0.92]], 0.018, segments=8, mat_name="gunmetal", parent=chassis, fillet_r=0.0) - - # --- 5. Double-Wishbone Suspension, Coilovers & 4 Knobby Wheels --- - joints_manifest: list[dict] = [] - - for is_front, y_ax, prefix in [(True, front_y, "f"), (False, rear_y, "r")]: - for side, s_tag in [(1.0, "l"), (-1.0, "r")]: - j_suffix = f"{prefix}{s_tag}" - in_x = side * 0.24 - out_x = side * 0.68 - # Upper & lower A-arms (two separate wishbone legs meeting at the ball joint) - for leg_tag, dy in (("a", -0.16), ("b", 0.16)): - vc.make_swept_tube( - f"wishbone_lo_{j_suffix}_{leg_tag}", - [[in_x, y_ax + dy, 0.36], [out_x, y_ax, axle_z - 0.06]], - 0.018, - segments=6, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.0, - ) - for leg_tag, dy in (("a", -0.14), ("b", 0.14)): - vc.make_swept_tube( - f"wishbone_hi_{j_suffix}_{leg_tag}", - [[in_x, y_ax + dy, 0.52], [out_x, y_ax, axle_z + 0.08]], - 0.016, - segments=6, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.0, - ) - # Coilover shock strut from knuckle up to shock tower - tower_z = 0.80 if is_front else 0.86 - tower_y = y_ax + (0.04 if is_front else -0.06) - vc.make_ram_span( - f"coilover_{j_suffix}", - [side * 0.40, tower_y, tower_z], - [side * 0.62, y_ax, axle_z - 0.02], - body_r=0.028, - rod_r=0.016, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="gunmetal", - coil_rings=6, - ) - - # Steering knuckle (front only) + wheel hub spin joint - knuckle_loc = (side * track_x, y_ax, axle_z) - if is_front: - steer_id = f"joint.steer_{j_suffix}" - steer_node = vc.make_empty(steer_id, parent=chassis, location=(side * 0.68, y_ax, axle_z)) - vc.tag_joint(steer_node, steer_id, [0.0, 1.0, 0.0], -32.0, 32.0) - joints_manifest.append({"id": steer_id, "axis": [0.0, 1.0, 0.0], "min": -32.0, "max": 32.0}) - vc.make_box(f"knuckle_{j_suffix}", (0.08, 0.11, 0.18), "gunmetal", parent=steer_node, bevel=0.005) - wheel_parent = steer_node - wheel_loc = (side * (track_x - 0.68), 0.0, 0.0) - else: - vc.make_box(f"hub_carrier_{j_suffix}", (0.10, 0.12, 0.18), "gunmetal", parent=chassis, location=(side * 0.68, y_ax, axle_z), bevel=0.005) - wheel_parent = chassis - wheel_loc = knuckle_loc - - wheel_id = f"joint.wheel_{j_suffix}" - wheel_pivot = vc.make_knobby_wheel( - wheel_id, - radius=wheel_r, - width=wheel_w, - parent=wheel_parent, - location=wheel_loc, - tread_lugs=16, - rim_segments=18, - side_sign=int(side), - ) - wheel_pivot.name = wheel_id - vc.tag_joint(wheel_pivot, wheel_id, [1.0, 0.0, 0.0], -360.0, 360.0) - joints_manifest.append({"id": wheel_id, "axis": [1.0, 0.0, 0.0], "min": -360.0, "max": 360.0}) - - # --- 6. Visible Exterior Hardpoint Slots --- - # 1) Roof weapon collar ring - vc.add_hardpoint_slot( - "hp.weapon.roof", - "weapon", - parent=chassis, - location=(0.0, 0.14, 1.47), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.62, 0.62, 0.10), - ) - # 2) Open rear engine bay frame + mounting tray + twin exhaust sweeps - vc.make_box("rear_engine_tray", (0.64, 0.74, 0.06), "gunmetal", parent=chassis, location=(0.0, 0.90, 0.51), bevel=0.006) - vc.add_hardpoint_slot( - "hp.engine.rear", - "engine", - parent=chassis, - location=(0.0, 0.90, 0.53), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.62, 0.72, 0.16), - ) - for side in (-1.0, 1.0): - vc.make_swept_tube( - f"exhaust_{'L' if side > 0 else 'R'}", - [ - [side * 0.24, 0.78, 0.68], - [side * 0.36, 1.12, 0.66], - [side * 0.38, 1.48, 0.74], - ], - 0.028, - segments=8, - mat_name="copper_rad", - parent=chassis, - ) - # 3) Upright rear copper radiator louver bay seated on rear cage shroud - vc.make_box("rear_rad_shroud", (0.60, 0.06, 0.36), "gunmetal", parent=chassis, location=(0.0, 1.36, 0.74), rotation_deg=(28.0, 0.0, 0.0), bevel=0.006) - vc.add_hardpoint_slot( - "hp.radiator.rear", - "radiator", - parent=chassis, - location=(0.0, 1.34, 0.75), - rotation_deg=(-62.0, 0.0, 0.0), - size=(0.58, 0.44, 0.11), - ) - vc.make_box("rad_header_tank", (0.58, 0.09, 0.08), "copper_rad", parent=chassis, location=(0.0, 1.44, 0.95), bevel=0.008) - - # --- 7. Export GLB, Manifest & 4-Panel Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "jackal" / "jackal.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "jackal" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "jackal_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="jackal", - name="Jackal", - vehicle_class="Light Wheeled Dune Buggy", - grid_width=3, - grid_height=4, - mask=[ - "###", - "###", - "###", - "###", - ], - hardpoints=[ - {"id": "hp.weapon.roof", "kind": "weapon", "x": 1, "y": 0, "w": 1, "h": 2, "modelNodeId": "hp.weapon.roof"}, - {"id": "hp.engine.rear", "kind": "engine", "x": 1, "y": 2, "w": 1, "h": 2, "modelNodeId": "hp.engine.rear"}, - {"id": "hp.radiator.rear", "kind": "radiator", "x": 2, "y": 3, "w": 1, "h": 1, "modelNodeId": "hp.radiator.rear"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[jackal] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "jackal", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_jackal() diff --git a/tools/vehicles/build_mammoth.py b/tools/vehicles/build_mammoth.py deleted file mode 100644 index e4292ff..0000000 --- a/tools/vehicles/build_mammoth.py +++ /dev/null @@ -1,460 +0,0 @@ -"""Build the Mammoth (Heavy 8x8 Armored Fire Support Rig) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import math -import sys -from pathlib import Path - -import bmesh -from mathutils import Matrix - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def build_mammoth() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("MammothRoot") - chassis = vc.make_empty("Chassis", parent=root) - - # Dimensions (Blender: -Y forward, +Z up, +X left) - axle_ys = [ - ("f1", -1.90, True), - ("f2", -0.74, True), - ("r1", 0.74, False), - ("r2", 1.90, False), - ] - track_x = 1.24 - wheel_r = 0.52 - wheel_w = 0.38 - axle_z = wheel_r - - # --- 1. Heavy Armored Lower Tub, Frame Rails, Axles & Suspension --- - vc.make_box("lower_tub", (1.64, 4.94, 0.62), "gunmetal", parent=chassis, location=(0.0, -0.02, 0.82), bevel=0.015) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"frame_rail_{tag}", (0.14, 5.10, 0.20), "gunmetal", parent=chassis, location=(side * 0.68, -0.04, 0.62), bevel=0.01) - # Side fuel tank / battery box tucked between front and rear tandem wheel pairs - vc.make_box(f"side_stowage_{tag}", (0.42, 0.72, 0.44), "olive_armor", parent=chassis, location=(side * 1.08, 0.0, 0.86), bevel=0.01) - # Crew entry door + boarding ladder step on mid-hull flank - vc.make_box(f"crew_step_{tag}", (0.16, 0.44, 0.06), "gunmetal", parent=chassis, location=(side * 1.32, 0.0, 0.62), bevel=0.006) - vc.make_box(f"crew_door_{tag}", (0.06, 0.56, 0.78), "olive_armor", parent=chassis, location=(side * 1.28, 0.0, 1.24), bevel=0.008) - - for idx, (a_tag, y_ax, _) in enumerate(axle_ys): - vc.make_tube_part( - f"axle_tube_{a_tag}", - 0.075, - 0.075, - track_x * 1.68, - segments=10, - mat_name="gunmetal", - parent=chassis, - location=(-track_x * 0.84, y_ax, axle_z), - rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_box(f"diff_{a_tag}", (0.34, 0.34, 0.28), "gunmetal", parent=chassis, location=(0.0, y_ax, axle_z), bevel=0.012) - for side in (-1.0, 1.0): - s_tag = "L" if side > 0 else "R" - vc.make_ram_span( - f"strut_{a_tag}_{s_tag}", - [side * 0.74, y_ax, 1.02], - [side * 0.98, y_ax, axle_z + 0.02], - body_r=0.040, - rod_r=0.022, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - coil_rings=0, - ) - - # --- 2. Faceted 8x8 Armored Hull & Bolted Sponson Plates (Brokkr plate.v0) --- - hull_pts = [ - # Lower hull belt above wheel arches (z = 1.14) - [-1.34, -2.26, 1.14], [1.34, -2.26, 1.14], - [-1.36, 2.26, 1.14], [1.36, 2.26, 1.14], - # Lower nose & lower tail bevel - [-1.08, -2.62, 1.02], [1.08, -2.62, 1.02], - [-1.12, 2.64, 1.12], [1.12, 2.64, 1.12], - # Roof deck (z = 1.66) - [-1.14, -1.78, 1.66], [1.14, -1.78, 1.66], - [-1.16, 1.88, 1.66], [1.16, 1.88, 1.66], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "mammoth_hull", - "mat": "olive_armor", - "bevel": 0.016, - "sides": "one", - "mirror": False, - "points": hull_pts, - "clad": { - "mat": "olive_armor", - "facets": [{"n": [0.0, -0.55, 0.83], "cos": 0.85}, {"n": [0.0, 0.0, 1.0], "cos": 0.95}], - "min_area": 0.18, - "lifts": [0.008, 0.014], - "inset": 0.06, - "gap": 0.018, - "split": 0.88, - "seed": 801, - "bolt_r": 0.014, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - }, - # Sloped upper side cheek armor with bolted applique panels - { - "name": "mammoth_side_cheek", - "mat": "olive_armor", - "bevel": 0.010, - "sides": "both", - "mirror": False, - "slab": { - "at": [1.26, -0.04, 1.40], - "normal": [0.92, 0.0, 0.38], - "up": [-0.38, 0.0, 0.92], - "right": [0.0, -1.0, 0.0], - "outline": [[-1.92, -0.24], [1.92, -0.24], [1.72, 0.24], [-1.72, 0.24]], - "thick": 0.055, - "taper": 0.015, - "back": 0.92, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.14, - "lifts": [0.008, 0.014], - "inset": 0.05, - "gap": 0.016, - "split": 0.72, - "seed": 802, - "bolt_r": 0.013, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "bolts", "inset": 0.025, "spacing": 0.36, "mat": "gunmetal", "params": "r=0.013"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Heavy flared wheel arches over all 4 wheel stations on each side - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - for a_tag, y_ax, _ in axle_ys: - # Top arch cap + angled front/rear lip flaps - vc.make_box(f"arch_top_{tag}_{a_tag}", (0.44, 0.68, 0.07), "olive_armor", parent=chassis, location=(side * 1.24, y_ax, 1.14), bevel=0.008) - vc.make_box(f"arch_f_{tag}_{a_tag}", (0.44, 0.32, 0.07), "olive_armor", parent=chassis, location=(side * 1.24, y_ax - 0.44, 1.02), rotation_deg=(36.0, 0.0, 0.0), bevel=0.008) - vc.make_box(f"arch_r_{tag}_{a_tag}", (0.44, 0.32, 0.07), "olive_armor", parent=chassis, location=(side * 1.24, y_ax + 0.44, 1.02), rotation_deg=(-36.0, 0.0, 0.0), bevel=0.008) - - # Front nose recessed grille, armored headlights, driver slit & rearview mirrors - vc.make_box("front_grille", (1.22, 0.14, 0.34), "socket_bay", parent=chassis, location=(0.0, -2.58, 0.96), bevel=0.008) - for k in range(4): - vc.make_box(f"grille_slat_{k}", (1.16, 0.06, 0.03), "gunmetal", parent=chassis, location=(0.0, -2.64, 0.86 + k * 0.07), bevel=0.003) - vc.make_box("driver_periscope", (0.56, 0.16, 0.10), "smoked_glass", parent=chassis, location=(-0.38, -1.96, 1.60), rotation_deg=(-22.0, 0.0, 0.0), bevel=0.005) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"headlight_box_{tag}", (0.24, 0.16, 0.16), "gunmetal", parent=chassis, location=(side * 0.88, -2.54, 1.06), bevel=0.008) - vc.make_box(f"headlight_lens_{tag}", (0.16, 0.04, 0.09), "smoked_glass", parent=chassis, location=(side * 0.88, -2.62, 1.06), bevel=0.003) - vc.make_box(f"tow_shackle_{tag}", (0.08, 0.14, 0.14), "signal_orange", parent=chassis, location=(side * 0.48, -2.66, 0.72), bevel=0.006) - # Rear corner tail light housing - vc.make_box(f"taillight_{tag}", (0.18, 0.12, 0.14), "gunmetal", parent=chassis, location=(side * 1.04, 2.58, 1.12), bevel=0.006) - - # --- 3. Reinforced Front Dozer Ram Plow --- - plow_root = vc.make_empty("dozer_plow", parent=chassis, location=(0.0, -2.86, 0.56)) - def build_plow_blade(bm: bmesh.types.BMesh) -> None: - # Curved multi-segment scoop profile extruded across width X = [-1.34, +1.34] - prof = [ - (-0.34, -0.34), # bottom cutting lip - (-0.22, -0.14), - (-0.04, 0.06), - (0.02, 0.26), - (-0.14, 0.42), # upper curved spill lip - (0.04, 0.42), - (0.14, 0.22), - (0.08, -0.12), - (-0.18, -0.34), - ] - hw = 1.34 - verts_l = [bm.verts.new((hw, y, z)) for (y, z) in prof] - verts_r = [bm.verts.new((-hw, y, z)) for (y, z) in prof] - n = len(prof) - for i in range(n): - j = (i + 1) % n - bm.faces.new([verts_l[i], verts_l[j], verts_r[j], verts_r[i]]) - bm.faces.new(verts_l) - bm.faces.new(list(reversed(verts_r))) - - vc.make_bmesh_object("plow_moldboard", build_plow_blade, "olive_armor", parent=plow_root, bevel=0.012) - vc.make_box("plow_cutting_edge", (2.72, 0.16, 0.07), "gunmetal", parent=plow_root, location=(0.0, -0.28, -0.32), rotation_deg=(16.0, 0.0, 0.0), bevel=0.006) - for gx in (-0.98, -0.48, 0.0, 0.48, 0.98): - vc.make_box(f"plow_rib_{gx:.2f}", (0.07, 0.18, 0.62), "gunmetal", parent=plow_root, location=(gx, 0.12, 0.06), bevel=0.006) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"plow_wing_{tag}", (0.12, 0.48, 0.68), "olive_armor", parent=plow_root, location=(side * 1.36, -0.10, 0.04), bevel=0.008) - # Hydraulic push arms + tilt rams - vc.make_box(f"plow_pusharm_{tag}", (0.12, 0.72, 0.14), "gunmetal", parent=chassis, location=(side * 0.66, -2.56, 0.56), bevel=0.008) - vc.make_ram_span( - f"plow_ram_{tag}", - [side * 0.66, -2.42, 0.90], - [side * 0.66, -2.80, 0.76], - body_r=0.042, - rod_r=0.024, - parent=chassis, - mat_barrel="gunmetal", - mat_rod="copper_rad", - ) - - # --- 4. Rear Diesel Exhaust Stacks --- - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_swept_tube( - f"exhaust_stack_{tag}", - [ - [side * 1.02, 2.24, 1.36], - [side * 1.06, 2.46, 1.56], - [side * 1.06, 2.46, 2.18], - [side * 1.06, 2.60, 2.30], - ], - 0.062, - segments=12, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.06, - ) - vc.make_tube_part( - f"exhaust_shield_{tag}", - 0.09, - 0.09, - 0.52, - segments=10, - inner0=0.078, - inner1=0.078, - mat_name="copper_rad", - parent=chassis, - location=(side * 1.06, 2.46, 1.62), - ) - - # --- 5. 8x8 Wheels & Front 4 Steering Knuckles --- - joints_manifest: list[dict] = [] - for a_tag, y_ax, steerable in axle_ys: - for side, s_tag in ((1.0, "l"), (-1.0, "r")): - j_suffix = f"{a_tag[0]}{s_tag}{a_tag[1]}" # fl1, fr1, fl2, fr2, rl1, rr1, rl2, rr2 - if steerable: - steer_id = f"joint.steer_{j_suffix}" - steer_node = vc.make_empty(steer_id, parent=chassis, location=(side * 0.98, y_ax, axle_z)) - vc.tag_joint(steer_node, steer_id, [0.0, 1.0, 0.0], -28.0, 28.0) - joints_manifest.append({"id": steer_id, "axis": [0.0, 1.0, 0.0], "min": -28.0, "max": 28.0}) - vc.make_box(f"knuckle_{j_suffix}", (0.10, 0.14, 0.22), "gunmetal", parent=steer_node, bevel=0.006) - wheel_parent = steer_node - wheel_loc = (side * (track_x - 0.98), 0.0, 0.0) - else: - vc.make_box(f"hub_carrier_{j_suffix}", (0.12, 0.16, 0.22), "gunmetal", parent=chassis, location=(side * 0.98, y_ax, axle_z), bevel=0.006) - wheel_parent = chassis - wheel_loc = (side * track_x, y_ax, axle_z) - - wheel_id = f"joint.wheel_{j_suffix}" - wheel_pivot = vc.make_knobby_wheel( - wheel_id, - radius=wheel_r, - width=wheel_w, - parent=wheel_parent, - location=wheel_loc, - tread_lugs=14, - rim_segments=16, - side_sign=int(side), - ) - wheel_pivot.name = wheel_id - vc.tag_joint(wheel_pivot, wheel_id, [1.0, 0.0, 0.0], -360.0, 360.0) - joints_manifest.append({"id": wheel_id, "axis": [1.0, 0.0, 0.0], "min": -360.0, "max": 360.0}) - - # --- 6. Broad Angular Central Turret (joint.turret_yaw) --- - turret_pivot = vc.make_empty("joint.turret_yaw", parent=chassis, location=(0.0, -0.18, 1.66)) - vc.tag_joint(turret_pivot, "joint.turret_yaw", [0.0, 1.0, 0.0], -180.0, 180.0) - joints_manifest.append({"id": "joint.turret_yaw", "axis": [0.0, 1.0, 0.0], "min": -180.0, "max": 180.0}) - - vc.make_tube_part("turret_race", 0.74, 0.80, 0.08, segments=24, mat_name="gunmetal", parent=turret_pivot) - turret_pts = [ - [-0.64, -0.78, 0.08], [0.64, -0.78, 0.08], - [0.84, -0.22, 0.08], [0.76, 0.94, 0.08], - [-0.76, 0.94, 0.08], [-0.84, -0.22, 0.08], - [-0.50, -0.60, 0.56], [0.50, -0.60, 0.56], - [0.64, -0.14, 0.56], [0.58, 0.78, 0.56], - [-0.58, 0.78, 0.56], [-0.64, -0.14, 0.56], - ] - turret_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "mammoth_turret_shell", - "mat": "olive_armor", - "bevel": 0.015, - "sides": "one", - "mirror": False, - "points": turret_pts, - }, - { - "name": "mammoth_turret_cheek", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.74, 0.14, 0.30], - "normal": [0.94, 0.0, 0.34], - "up": [-0.34, 0.0, 0.94], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.52, -0.16], [0.52, -0.16], [0.42, 0.16], [-0.42, 0.16]], - "thick": 0.045, - "taper": 0.012, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.24, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - ], - } - vc.make_plates(turret_doc, parent=turret_pivot) - - # Turret bustle stowage rack, commander hatch, optics & smoke launchers - vc.make_box("turret_bustle", (1.08, 0.42, 0.34), "gunmetal", parent=turret_pivot, location=(0.0, 0.98, 0.34), bevel=0.01) - vc.make_tube_part("commander_cupola", 0.22, 0.24, 0.10, segments=14, mat_name="olive_armor", parent=turret_pivot, location=(-0.28, 0.34, 0.56)) - vc.make_box("turret_sight", (0.20, 0.22, 0.14), "smoked_glass", parent=turret_pivot, location=(0.24, -0.38, 0.62), bevel=0.008) - vc.make_box("turret_mantlet_bar", (0.94, 0.18, 0.18), "gunmetal", parent=turret_pivot, location=(0.0, -0.70, 0.30), bevel=0.01) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - for k in range(3): - vc.make_tube_part( - f"smoke_tube_{tag}_{k}", - 0.032, - 0.032, - 0.18, - segments=8, - mat_name="gunmetal", - parent=turret_pivot, - location=(side * 0.78, 0.42 + k * 0.10, 0.34), - rotation_deg=(-58.0, 0.0, side * 22.0), - ) - - # --- 7. Visible Exterior Hardpoints (4x6 Dorsal Grid) --- - # 1) hp.armor.glacis (0,0, 4x1) - vc.add_hardpoint_slot( - "hp.armor.glacis", - "armor", - parent=chassis, - location=(0.0, -2.20, 1.36), - rotation_deg=(53.0, 0.0, 0.0), - size=(1.54, 0.38, 0.10), - plinth_depth=0.03, - ) - # 2) hp.weapon.bow (0,1, 1x1) on front-left bow deck - vc.make_box("bow_weapon_plinth", (0.48, 0.50, 0.12), "gunmetal", parent=chassis, location=(0.88, -1.48, 1.62), bevel=0.008) - vc.add_hardpoint_slot( - "hp.weapon.bow", - "weapon", - parent=chassis, - location=(0.88, -1.48, 1.68), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.46, 0.46, 0.09), - ) - # 3) hp.weapon.turret_l (1,1, 1x2) & 4) hp.weapon.turret_r (2,1, 1x2) on turret roof - vc.add_hardpoint_slot( - "hp.weapon.turret_l", - "weapon", - parent=turret_pivot, - location=(0.36, -0.10, 0.57), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.56, 0.56, 0.10), - ) - vc.add_hardpoint_slot( - "hp.weapon.turret_r", - "weapon", - parent=turret_pivot, - location=(-0.36, -0.10, 0.57), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.56, 0.56, 0.10), - ) - # 5) hp.armor.flanks (3,1, 1x2) on right (-X) upper cheek - vc.add_hardpoint_slot( - "hp.armor.flanks", - "armor", - parent=chassis, - location=(-1.32, -0.16, 1.38), - rotation_deg=(90.0, 0.0, -90.0), - size=(1.12, 0.32, 0.10), - ) - # 6) hp.engine.rear (1,3, 2x2) - vc.add_hardpoint_slot( - "hp.engine.rear", - "engine", - parent=chassis, - location=(0.0, 1.34, 1.66), - rotation_deg=(0.0, 0.0, 0.0), - size=(1.14, 1.04, 0.14), - ) - # 7 & 8) hp.radiator.l (0,4, 1x2) & hp.radiator.r (3,4, 1x2) - vc.add_hardpoint_slot( - "hp.radiator.l", - "radiator", - parent=chassis, - location=(1.28, 1.40, 1.38), - rotation_deg=(90.0, 0.0, 90.0), - size=(0.98, 0.44, 0.12), - ) - vc.add_hardpoint_slot( - "hp.radiator.r", - "radiator", - parent=chassis, - location=(-1.28, 1.40, 1.38), - rotation_deg=(90.0, 0.0, -90.0), - size=(0.98, 0.44, 0.12), - ) - - # --- 8. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "mammoth" / "mammoth.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "mammoth" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "mammoth_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="mammoth", - name="Mammoth", - vehicle_class="Heavy 8x8 Armored Fire Support Rig", - grid_width=4, - grid_height=6, - mask=[ - "####", - "####", - "####", - "####", - "####", - "####", - ], - hardpoints=[ - {"id": "hp.armor.glacis", "kind": "armor", "x": 0, "y": 0, "w": 4, "h": 1, "modelNodeId": "hp.armor.glacis"}, - {"id": "hp.weapon.bow", "kind": "weapon", "x": 0, "y": 1, "w": 1, "h": 1, "modelNodeId": "hp.weapon.bow"}, - {"id": "hp.weapon.turret_l", "kind": "weapon", "x": 1, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.turret_l"}, - {"id": "hp.weapon.turret_r", "kind": "weapon", "x": 2, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.weapon.turret_r"}, - {"id": "hp.armor.flanks", "kind": "armor", "x": 3, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.armor.flanks"}, - {"id": "hp.engine.rear", "kind": "engine", "x": 1, "y": 3, "w": 2, "h": 2, "modelNodeId": "hp.engine.rear"}, - {"id": "hp.radiator.l", "kind": "radiator", "x": 0, "y": 4, "w": 1, "h": 2, "modelNodeId": "hp.radiator.l"}, - {"id": "hp.radiator.r", "kind": "radiator", "x": 3, "y": 4, "w": 1, "h": 2, "modelNodeId": "hp.radiator.r"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[mammoth] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "mammoth", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_mammoth() diff --git a/tools/vehicles/build_mule.py b/tools/vehicles/build_mule.py deleted file mode 100644 index b5223dd..0000000 --- a/tools/vehicles/build_mule.py +++ /dev/null @@ -1,299 +0,0 @@ -"""Build the Mule (Medium 6x6 Armored Gun Truck) chassis GLB, manifest.json, and preview.""" -from __future__ import annotations - -import sys -from pathlib import Path - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -def build_mule() -> dict: - vc.reset_scene() - vc.ensure_materials() - - root = vc.make_empty("MuleRoot") - chassis = vc.make_empty("Chassis", parent=root) - - front_y = -1.52 - mid_y = 0.88 - rear_y = 1.92 - track_x = 0.98 - wheel_r = 0.49 - wheel_w = 0.34 - axle_z = wheel_r - - # --- 1. Ladder Frame Rails, Axles, Bumper & Fuel Tanks --- - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"frame_rail_{tag}", (0.12, 4.54, 0.18), "gunmetal", parent=chassis, location=(side * 0.46, 0.0, 0.62), bevel=0.008) - # Side cylindrical fuel tanks (Brokkr mechanical kit tank) - vc.make_kit_part( - f"fuel_tank_{tag}", - "mechanical", - "tank", - {"radius": 0.19, "length": 0.86, "segments": 14}, - mat_name="gunmetal", - parent=chassis, - location=(side * 0.78, -0.35, 0.56), - rotation_deg=(90.0, 0.0, 0.0), - ) - - for idx, y_ax in enumerate((front_y, mid_y, rear_y)): - vc.make_tube_part( - f"axle_tube_{idx}", - 0.065, - 0.065, - track_x * 1.66, - segments=10, - mat_name="gunmetal", - parent=chassis, - location=(-track_x * 0.83, y_ax, axle_z), - rotation_deg=(0.0, 90.0, 0.0), - ) - vc.make_box(f"diff_{idx}", (0.28, 0.28, 0.24), "gunmetal", parent=chassis, location=(0.0, y_ax, axle_z), bevel=0.01) - - # Heavy front steel bumper + tow shackles - vc.make_box("front_bumper", (2.16, 0.24, 0.24), "gunmetal", parent=chassis, location=(0.0, -2.26, 0.66), bevel=0.014) - for side in (-1.0, 1.0): - vc.make_box(f"bumper_shackle_{'L' if side > 0 else 'R'}", (0.07, 0.12, 0.14), "signal_orange", parent=chassis, location=(side * 0.52, -2.40, 0.62), bevel=0.006) - vc.make_box(f"headlight_box_{'L' if side > 0 else 'R'}", (0.16, 0.12, 0.14), "gunmetal", parent=chassis, location=(side * 0.78, -2.18, 0.92), bevel=0.008) - - # --- 2. Armored Hood & Sloped Armored Cab (Brokkr plate.v0 + faceted cab) --- - # Hood core + front grille frame - vc.make_box("hood_core", (1.36, 1.06, 0.60), "olive_armor", parent=chassis, location=(0.0, -1.66, 1.04), bevel=0.015) - vc.make_box("cab_lower", (1.84, 1.18, 0.68), "olive_armor", parent=chassis, location=(0.0, -0.54, 1.06), bevel=0.015) - - # Sloped upper armored cab via plate.v0 convex hull ("faces" / "points") - cab_pts = [ - [-0.90, -1.12, 1.34], [0.90, -1.12, 1.34], - [0.90, 0.04, 1.34], [-0.90, 0.04, 1.34], - [-0.78, -0.82, 2.02], [0.78, -0.82, 2.02], - [0.80, 0.02, 2.02], [-0.80, 0.02, 2.02], - ] - plates_doc = { - "schema": "brokkr.plates.v0", - "plates": [ - { - "name": "mule_cab_upper", - "mat": "olive_armor", - "bevel": 0.016, - "sides": "one", - "mirror": False, - "points": cab_pts, - }, - # Flared front wheel fenders - { - "name": "mule_fender_front", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.92, -1.52, 1.08], - "normal": [0.18, 0.0, 0.98], - "up": [0.0, -1.0, 0.0], - "right": [0.98, 0.0, -0.18], - "outline": [[-0.24, 0.54], [0.24, 0.54], [0.24, -0.54], [-0.24, -0.54]], - "thick": 0.06, - "taper": 0.015, - "back": 0.92, - }, - "fits": [ - {"kind": "bolts", "inset": 0.02, "spacing": 0.28, "mat": "gunmetal", "params": "r=0.012"}, - ], - }, - # Armored cab doors with stepped clad panels - { - "name": "mule_door", - "mat": "olive_armor", - "bevel": 0.008, - "sides": "both", - "mirror": False, - "slab": { - "at": [0.93, -0.54, 1.18], - "normal": [1.0, 0.0, 0.0], - "up": [0.0, 0.0, 1.0], - "right": [0.0, -1.0, 0.0], - "outline": [[-0.44, -0.34], [0.44, -0.34], [0.40, 0.36], [-0.44, 0.36]], - "thick": 0.04, - "taper": 0.012, - "back": 0.94, - }, - "clad": { - "mat": "olive_armor", - "facets": "outer", - "min_area": 0.06, - "lifts": [0.008, 0.012], - "inset": 0.04, - "gap": 0.014, - "split": 0.65, - "seed": 501, - "bolt_r": 0.012, - "bolt_mat": "gunmetal", - "bevel": 0.004, - }, - "fits": [ - {"kind": "part", "part": "handle", "at": [0.24, -0.04], "roll": 0.0, "mat": "gunmetal", "params": "length=0.20;lift=0.045;r=0.012"}, - ], - }, - ], - } - vc.make_plates(plates_doc, parent=chassis) - - # Armored smoked glass windshield slit & side viewports - vc.make_box("windshield_slit", (1.28, 0.08, 0.16), "smoked_glass", parent=chassis, location=(0.0, -0.98, 1.68), rotation_deg=(-22.0, 0.0, 0.0), bevel=0.004) - for side in (-1.0, 1.0): - vc.make_box(f"side_glass_{'L' if side > 0 else 'R'}", (0.06, 0.46, 0.22), "smoked_glass", parent=chassis, location=(side * 0.86, -0.46, 1.66), rotation_deg=(0.0, side * -12.0, 0.0), bevel=0.004) - - # --- 3. Open Armored Cargo Bed + Rear Mudguards --- - vc.make_box("bed_floor", (2.06, 2.26, 0.12), "gunmetal", parent=chassis, location=(0.0, 1.24, 0.92), bevel=0.01) - # Bed side walls (stepped armor with ribs & tubular top grab rail) - for side in (-1.0, 1.0): - tag = "L" if side > 0 else "R" - vc.make_box(f"bed_wall_{tag}", (0.10, 2.22, 0.68), "olive_armor", parent=chassis, location=(side * 0.98, 1.24, 1.32), bevel=0.01) - for ry in (0.35, 0.95, 1.55, 2.15): - vc.make_box(f"bed_rib_{tag}_{ry:.2f}", (0.05, 0.08, 0.64), "olive_armor", parent=chassis, location=(side * 1.04, ry, 1.32), bevel=0.004) - vc.make_swept_tube( - f"bed_rail_{tag}", - [[side * 0.98, 0.16, 1.68], [side * 0.98, 0.16, 1.82], [side * 0.98, 2.32, 1.82], [side * 0.98, 2.32, 1.68]], - 0.022, - segments=8, - mat_name="gunmetal", - parent=chassis, - fillet_r=0.03, - ) - # Rear tandem fender flare - vc.make_box(f"rear_fender_{tag}", (0.38, 1.98, 0.08), "olive_armor", parent=chassis, location=(side * 0.94, 1.40, 1.06), bevel=0.008) - - # Tailgate - vc.make_box("bed_tailgate", (1.92, 0.10, 0.62), "olive_armor", parent=chassis, location=(0.0, 2.32, 1.29), bevel=0.01) - # Central turret pedestal drum in cargo bed - vc.make_tube_part("bed_pedestal", 0.44, 0.48, 0.58, segments=16, mat_name="gunmetal", parent=chassis, location=(0.0, 1.36, 0.98)) - - # --- 4. 6x6 Off-Road Wheels & Front Steering Knuckles --- - joints_manifest: list[dict] = [] - for axle_tag, y_ax, steerable in (("f", front_y, True), ("m", mid_y, False), ("r", rear_y, False)): - for side, s_tag in ((1.0, "l"), (-1.0, "r")): - j_suffix = f"{axle_tag}{s_tag}" - if steerable: - steer_id = f"joint.steer_{j_suffix}" - steer_node = vc.make_empty(steer_id, parent=chassis, location=(side * 0.80, y_ax, axle_z)) - vc.tag_joint(steer_node, steer_id, [0.0, 1.0, 0.0], -30.0, 30.0) - joints_manifest.append({"id": steer_id, "axis": [0.0, 1.0, 0.0], "min": -30.0, "max": 30.0}) - wheel_parent = steer_node - wheel_loc = (side * (track_x - 0.80), 0.0, 0.0) - else: - wheel_parent = chassis - wheel_loc = (side * track_x, y_ax, axle_z) - - wheel_id = f"joint.wheel_{j_suffix}" - wheel_pivot = vc.make_knobby_wheel( - wheel_id, - radius=wheel_r, - width=wheel_w, - parent=wheel_parent, - location=wheel_loc, - tread_lugs=16, - rim_segments=18, - side_sign=int(side), - ) - wheel_pivot.name = wheel_id - vc.tag_joint(wheel_pivot, wheel_id, [1.0, 0.0, 0.0], -360.0, 360.0) - joints_manifest.append({"id": wheel_id, "axis": [1.0, 0.0, 0.0], "min": -360.0, "max": 360.0}) - - # --- 5. Visible Exterior Hardpoints (3x5 Dorsal Grid) --- - # Front bumper/grille armor rail - vc.add_hardpoint_slot( - "hp.armor.front", - "armor", - parent=chassis, - location=(0.0, -2.18, 1.00), - rotation_deg=(90.0, 0.0, 0.0), - size=(1.32, 0.36, 0.09), - plinth_depth=0.03, - ) - # Hood engine bay frame - vc.add_hardpoint_slot( - "hp.engine.front", - "engine", - parent=chassis, - location=(0.0, -1.66, 1.32), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.88, 0.86, 0.14), - ) - # Cab roof weapon pintle ring - vc.add_hardpoint_slot( - "hp.weapon.cab", - "weapon", - parent=chassis, - location=(0.0, -0.44, 2.02), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.56, 0.56, 0.09), - ) - # Main cargo-bed turret ring - vc.add_hardpoint_slot( - "hp.weapon.bed_main", - "weapon", - parent=chassis, - location=(0.0, 1.36, 1.56), - rotation_deg=(0.0, 0.0, 0.0), - size=(0.98, 0.98, 0.12), - ) - # Twin flank radiator louver pods behind cab (horizontal louvers: local +Y = +Z up) - vc.add_hardpoint_slot( - "hp.radiator.left", - "radiator", - parent=chassis, - location=(1.04, 0.56, 1.40), - rotation_deg=(90.0, 0.0, 90.0), - size=(0.78, 0.72, 0.14), - ) - vc.add_hardpoint_slot( - "hp.radiator.right", - "radiator", - parent=chassis, - location=(-1.04, 0.56, 1.40), - rotation_deg=(90.0, 0.0, -90.0), - size=(0.78, 0.72, 0.14), - ) - - # --- 6. Export GLB, Manifest & Preview --- - glb_path = vc.ASSETS_VEHICLES_DIR / "mule" / "mule.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / "mule" / "manifest.json" - preview_path = vc.PREVIEWS_DIR / "mule_preview.png" - - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=root) - vc.write_manifest( - manifest_path, - vehicle_id="mule", - name="Mule", - vehicle_class="Medium 6x6 Armored Gun Truck", - grid_width=3, - grid_height=5, - mask=[ - "###", - "###", - "###", - "###", - "###", - ], - hardpoints=[ - {"id": "hp.armor.front", "kind": "armor", "x": 0, "y": 0, "w": 3, "h": 1, "modelNodeId": "hp.armor.front"}, - {"id": "hp.radiator.left", "kind": "radiator", "x": 0, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.radiator.left"}, - {"id": "hp.engine.front", "kind": "engine", "x": 1, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.engine.front"}, - {"id": "hp.radiator.right", "kind": "radiator", "x": 2, "y": 1, "w": 1, "h": 2, "modelNodeId": "hp.radiator.right"}, - {"id": "hp.weapon.cab", "kind": "weapon", "x": 0, "y": 3, "w": 1, "h": 1, "modelNodeId": "hp.weapon.cab"}, - {"id": "hp.weapon.bed_main", "kind": "weapon", "x": 1, "y": 3, "w": 2, "h": 2, "modelNodeId": "hp.weapon.bed_main"}, - ], - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - ) - vc.render_four_panel_preview(preview_path) - print(f"[mule] tris={tri_count} bounds={bounds} glb={glb_path}") - return {"id": "mule", "tris": tri_count, "bounds": bounds} - - -if __name__ == "__main__": - build_mule() diff --git a/tools/vehicles/previews/anvil_preview.png b/tools/vehicles/previews/anvil_preview.png deleted file mode 100644 index 4e5fc09..0000000 Binary files a/tools/vehicles/previews/anvil_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/bastion_preview.png b/tools/vehicles/previews/bastion_preview.png deleted file mode 100644 index 96022c9..0000000 Binary files a/tools/vehicles/previews/bastion_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/breaker_preview.png b/tools/vehicles/previews/breaker_preview.png deleted file mode 100644 index 2a62be9..0000000 Binary files a/tools/vehicles/previews/breaker_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/condor_preview.png b/tools/vehicles/previews/condor_preview.png deleted file mode 100644 index c8ef101..0000000 Binary files a/tools/vehicles/previews/condor_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/ferret_preview.png b/tools/vehicles/previews/ferret_preview.png deleted file mode 100644 index a6fe46e..0000000 Binary files a/tools/vehicles/previews/ferret_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/hornet_preview.png b/tools/vehicles/previews/hornet_preview.png deleted file mode 100644 index dbdf035..0000000 Binary files a/tools/vehicles/previews/hornet_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/ironclad_preview.png b/tools/vehicles/previews/ironclad_preview.png deleted file mode 100644 index 2c217db..0000000 Binary files a/tools/vehicles/previews/ironclad_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/jackal_preview.png b/tools/vehicles/previews/jackal_preview.png deleted file mode 100644 index 7cf2b1a..0000000 Binary files a/tools/vehicles/previews/jackal_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/kestrel_preview.png b/tools/vehicles/previews/kestrel_preview.png deleted file mode 100644 index e177be2..0000000 Binary files a/tools/vehicles/previews/kestrel_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/mammoth_preview.png b/tools/vehicles/previews/mammoth_preview.png deleted file mode 100644 index ce921ce..0000000 Binary files a/tools/vehicles/previews/mammoth_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/manticore_preview.png b/tools/vehicles/previews/manticore_preview.png deleted file mode 100644 index e90a2bb..0000000 Binary files a/tools/vehicles/previews/manticore_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/mule_preview.png b/tools/vehicles/previews/mule_preview.png deleted file mode 100644 index 5180720..0000000 Binary files a/tools/vehicles/previews/mule_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/paladin_preview.png b/tools/vehicles/previews/paladin_preview.png deleted file mode 100644 index 8cebb84..0000000 Binary files a/tools/vehicles/previews/paladin_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/raptor_preview.png b/tools/vehicles/previews/raptor_preview.png deleted file mode 100644 index 6e662e4..0000000 Binary files a/tools/vehicles/previews/raptor_preview.png and /dev/null differ diff --git a/tools/vehicles/previews/spectre_preview.png b/tools/vehicles/previews/spectre_preview.png deleted file mode 100644 index 9506ebb..0000000 Binary files a/tools/vehicles/previews/spectre_preview.png and /dev/null differ diff --git a/tools/vehicles/retrofit_mechs.py b/tools/vehicles/retrofit_mechs.py deleted file mode 100644 index e936f7e..0000000 --- a/tools/vehicles/retrofit_mechs.py +++ /dev/null @@ -1,2499 +0,0 @@ -"""Retrofit Brokkr kit-built mechs for Rust to Dust: -- Strip built-in weapon loadouts and studio backdrop/rig helpers (read-only on source .blend/.json). -- Normalize procedural Brokkr shaders to clean glTF 2.0 Principled BSDF PBR materials. -- Apply skinning-preserving / silhouette-preserving LOD decimation (target ~26k-32k tris). -- Reorient from Brokkr (+Y forward, -X left) to RTD (+Z forward glTF / -Y Blender, +X left), grounded at minY = 0. -- Attach visible exterior hardpoint collars/bays (`add_hardpoint_slot`) and joint tags (`tag_joint`). -- Emit `.glb`, `manifest.json` (including `mechanisms` when model JSON has rams/scissors/struts), and 4-panel preview PNG. - -Adding a future Brokkr mech (e.g. `bastion`, `seraph`): add a `MechRetrofitSpec` entry in `SPECS`. -""" -from __future__ import annotations - -import argparse -import json -import math -import sys -from dataclasses import dataclass, field -from pathlib import Path -from typing import Any - -import bmesh -import bpy -from mathutils import Euler, Matrix, Vector -from mathutils.bvhtree import BVHTree - -sys.path.insert(0, str(Path(__file__).resolve().parent)) -import vehicle_common as vc # noqa: E402 - - -@dataclass(frozen=True) -class HardpointMount: - hp_id: str - kind: str - x: int - y: int - w: int - h: int - parent_name: str - parent_bone: str | None - world_pos: tuple[float, float, float] - world_normal: tuple[float, float, float] - size: tuple[float, float, float] - - -@dataclass(frozen=True) -class JointTagSpec: - joint_id: str - target_name: str - parent_bone: str | None - axis_gltf: tuple[float, float, float] - min_val: float - max_val: float - - -@dataclass(frozen=True) -class MechRetrofitSpec: - mech_id: str - name: str - vehicle_class: str - plane: str - grid_width: int - grid_height: int - mask: tuple[str, ...] - blend_path: Path - model_json_path: Path | None - target_mech_tris: int - drop_collections: tuple[str, ...] = () - strip_prefixes: tuple[str, ...] = () - strip_vertex_groups: tuple[str, ...] = () - strip_islands: tuple[tuple[str, str, float], ...] = () - armature_name: str | None = None - hardpoints: tuple[HardpointMount, ...] = () - joints: tuple[JointTagSpec, ...] = () - extra_notes: str = "" - - -SPECS: dict[str, MechRetrofitSpec] = { - "breaker": MechRetrofitSpec( - mech_id="breaker", - name="Breaker", - vehicle_class="Heavy Assault Biped", - plane="Coronal", - grid_width=5, - grid_height=6, - mask=( - ".###.", - "#####", - "#####", - "#####", - ".#.#.", - ".#.#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-breaker-3\out\breaker\breaker_walk.blend"), - model_json_path=None, - target_mech_tris=32000, - drop_collections=(), - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "CannonL", "CannonR"), - strip_vertex_groups=(), - armature_name=None, - hardpoints=( - HardpointMount("hp.weapon.arm_l", "weapon", 0, 1, 1, 2, "ForearmL", None, (-2.18, 0.45, 3.52), (-1.0, 0.0, 0.0), (0.54, 0.54, 0.11)), - HardpointMount("hp.weapon.arm_r", "weapon", 4, 1, 1, 2, "ForearmR", None, (2.14, 0.65, 3.55), (1.0, 0.0, 0.0), (0.54, 0.54, 0.11)), - HardpointMount("hp.weapon.shoulder_l", "weapon", 1, 0, 1, 1, "Core", None, (-1.48, 0.12, 5.99), (0.0, 0.0, 1.0), (0.72, 0.72, 0.12)), - HardpointMount("hp.armor.torso", "armor", 2, 1, 1, 1, "Core", None, (0.0, 1.32, 5.05), (0.0, 0.82, 0.57), (1.02, 0.40, 0.11)), - HardpointMount("hp.engine.chest", "engine", 2, 2, 1, 2, "Core", None, (0.0, 1.76, 4.48), (0.0, 1.0, 0.0), (0.78, 0.56, 0.13)), - HardpointMount("hp.radiator.back_l", "radiator", 1, 1, 1, 1, "Core", None, (-1.50, -1.14, 5.22), (0.0, -1.0, 0.0), (0.68, 0.92, 0.12)), - HardpointMount("hp.radiator.back_r", "radiator", 3, 1, 1, 1, "Core", None, (1.50, -1.14, 5.22), (0.0, -1.0, 0.0), (0.68, 0.92, 0.12)), - ), - joints=( - JointTagSpec("joint.torso_yaw", "Core", None, (0.0, 1.0, 0.0), -90.0, 90.0), - JointTagSpec("joint.arm_l_pitch", "ShoulderYokeL", None, (1.0, 0.0, 0.0), -45.0, 60.0), - JointTagSpec("joint.arm_r_pitch", "ShoulderYokeR", None, (1.0, 0.0, 0.0), -45.0, 60.0), - ), - ), - "paladin": MechRetrofitSpec( - mech_id="paladin", - name="Paladin", - vehicle_class="Heavy Assault Biped", - plane="Coronal", - grid_width=6, - grid_height=7, - mask=( - "..##..", - ".####.", - "######", - "######", - ".####.", - ".#..#.", - ".#..#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-paladin-3\out\paladin\paladin.blend"), - model_json_path=None, - target_mech_tris=29000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "Battery.", "EW.", "EWLow.", "Gatling.", "Emitter."), - hardpoints=( - HardpointMount("hp.weapon.sh_l", "weapon", 1, 1, 1, 1, "Trunk", None, (-2.88, 0.35, 9.82), (0.0, 0.0, 1.0), (0.94, 0.94, 0.15)), - HardpointMount("hp.armor.torso", "armor", 2, 1, 2, 1, "Trunk", None, (0.0, 1.80, 8.75), (0.0, 0.60, 0.80), (1.22, 0.40, 0.12)), - HardpointMount("hp.weapon.sh_r", "weapon", 4, 1, 1, 1, "Trunk", None, (2.88, 0.35, 9.82), (0.0, 0.0, 1.0), (0.94, 0.94, 0.15)), - HardpointMount("hp.weapon.arm_l", "weapon", 0, 2, 1, 2, "ArmL.Lower", None, (-3.44, 0.85, 5.75), (-1.0, 0.0, 0.0), (0.74, 0.74, 0.13)), - HardpointMount("hp.engine.chest", "engine", 2, 2, 2, 2, "Trunk", None, (0.0, 2.22, 8.05), (0.0, 0.94, 0.34), (0.82, 0.54, 0.14)), - HardpointMount("hp.weapon.arm_r", "weapon", 5, 2, 1, 2, "ArmR.Lower", None, (3.52, 1.05, 6.22), (1.0, 0.0, 0.0), (0.72, 0.72, 0.13)), - HardpointMount("hp.radiator.back_l", "radiator", 1, 4, 1, 1, "Trunk", None, (-0.92, -1.44, 8.65), (0.0, -1.0, 0.0), (0.82, 1.35, 0.14)), - HardpointMount("hp.armor.legs", "armor", 2, 4, 2, 1, "Pelvis", None, (0.0, 1.18, 5.55), (0.0, 1.0, 0.0), (0.95, 0.38, 0.11)), - HardpointMount("hp.radiator.back_r", "radiator", 4, 4, 1, 1, "Trunk", None, (0.92, -1.44, 8.65), (0.0, -1.0, 0.0), (0.82, 1.35, 0.14)), - ), - joints=( - JointTagSpec("joint.torso_yaw", "Trunk", None, (0.0, 1.0, 0.0), -90.0, 90.0), - JointTagSpec("joint.arm_l_pitch", "ArmL.Upper", None, (1.0, 0.0, 0.0), -40.0, 70.0), - JointTagSpec("joint.arm_r_pitch", "ArmR.Upper", None, (1.0, 0.0, 0.0), -40.0, 70.0), - ), - ), - "raptor": MechRetrofitSpec( - mech_id="raptor", - name="Raptor", - vehicle_class="Medium Theropod Biped", - plane="Coronal", - grid_width=5, - grid_height=6, - mask=( - "..#..", - ".###.", - "#####", - "#.#.#", - ".#.#.", - ".#.#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-raptor-4\out\raptor\raptor.blend"), - model_json_path=None, - target_mech_tris=28000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "Bank0.", "Bank1.", "LaserL.", "LaserR."), - hardpoints=( - HardpointMount("hp.radiator.sh_l", "radiator", 1, 1, 1, 1, "_ROOT_", None, (-0.56, 0.05, 6.26), (-0.25, 0.0, 0.97), (0.64, 1.00, 0.12)), - HardpointMount("hp.radiator.sh_r", "radiator", 3, 1, 1, 1, "_ROOT_", None, (0.56, 0.05, 6.26), (0.25, 0.0, 0.97), (0.64, 1.00, 0.12)), - HardpointMount("hp.weapon.arm_l", "weapon", 0, 2, 1, 2, "ArmL.Fore", None, (-1.32, 2.14, 3.86), (-1.0, 0.0, 0.0), (0.48, 0.48, 0.11)), - HardpointMount("hp.engine.chest", "engine", 2, 2, 1, 2, "_ROOT_", None, (0.0, -2.02, 6.78), (0.0, 0.0, 1.0), (0.82, 1.06, 0.14)), - HardpointMount("hp.weapon.arm_r", "weapon", 4, 2, 1, 2, "ArmR.Fore", None, (1.32, 2.14, 3.86), (1.0, 0.0, 0.0), (0.48, 0.48, 0.11)), - ), - joints=( - JointTagSpec("joint.arm_l_pitch", "ArmL.Upper", None, (1.0, 0.0, 0.0), -45.0, 45.0), - JointTagSpec("joint.arm_r_pitch", "ArmR.Upper", None, (1.0, 0.0, 0.0), -45.0, 45.0), - ), - ), - "manticore": MechRetrofitSpec( - mech_id="manticore", - name="Manticore", - vehicle_class="Heavy Quadruped Scorpion", - plane="Dorsal", - grid_width=5, - grid_height=5, - mask=( - "#####", - ".###.", - "#####", - ".###.", - "#.#.#", - ), - blend_path=Path(r"F:\aeth-wt\fable-manticore-3\out\manticore\manticore.blend"), - model_json_path=None, - target_mech_tris=28000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "Laser.light", "Launcher.", "ArmGunL.", "ArmGunR."), - hardpoints=( - HardpointMount("hp.weapon.chin", "weapon", 2, 0, 1, 1, "Hull", None, (0.0, 3.34, 1.38), (0.0, 0.94, -0.34), (0.64, 0.64, 0.12)), - HardpointMount("hp.radiator.flank_l", "radiator", 1, 1, 1, 1, "Hull", None, (-1.18, -0.35, 2.76), (-0.22, 0.0, 0.97), (0.56, 0.98, 0.12)), - HardpointMount("hp.engine.core", "engine", 2, 1, 1, 2, "Hull", None, (0.0, -0.25, 2.94), (0.0, 0.14, 0.99), (0.86, 1.20, 0.14)), - HardpointMount("hp.radiator.flank_r", "radiator", 3, 1, 1, 1, "Hull", None, (1.18, -0.35, 2.76), (0.22, 0.0, 0.97), (0.56, 0.98, 0.12)), - HardpointMount("hp.weapon.l", "weapon", 0, 2, 1, 1, "ArmL.Upper", None, (-0.96, 2.75, 0.72), (-0.65, 0.76, 0.0), (0.56, 0.56, 0.11)), - HardpointMount("hp.weapon.r", "weapon", 4, 2, 1, 1, "ArmR.Upper", None, (0.96, 2.75, 0.72), (0.65, 0.76, 0.0), (0.56, 0.56, 0.11)), - HardpointMount("hp.armor.prow", "armor", 2, 3, 1, 1, "Hull", None, (0.0, 3.14, 1.94), (0.0, 0.85, 0.53), (0.88, 0.34, 0.11)), - ), - joints=( - JointTagSpec("joint.tail_yaw", "Tail.Coxa", None, (0.0, 1.0, 0.0), -75.0, 75.0), - JointTagSpec("joint.tail_s1", "Tail.S1", None, (1.0, 0.0, 0.0), -60.0, 60.0), - JointTagSpec("joint.tail_s2", "Tail.S2", None, (1.0, 0.0, 0.0), -75.0, 15.0), - JointTagSpec("joint.tail_s3", "Tail.S3", None, (1.0, 0.0, 0.0), -80.0, 10.0), - JointTagSpec("joint.tail_elev", "Tail.Elev", None, (1.0, 0.0, 0.0), -40.0, 30.0), - ), - ), - "bastion": MechRetrofitSpec( - mech_id="bastion", - name="Bastion", - vehicle_class="Heavy Siege Quadruped", - plane="Dorsal", - grid_width=6, - grid_height=6, - mask=( - "..##..", - ".####.", - "######", - "######", - ".####.", - ".#..#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-bastion-2\out\bastion\bastion.blend"), - model_json_path=None, - target_mech_tris=32000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "Aim.Gun", "Gun.", "Magazine.", "Interceptor."), - hardpoints=( - HardpointMount("hp.armor.prow", "armor", 2, 0, 2, 1, "Trunk", None, (0.0, 5.16, 6.50), (0.0, 0.29, 0.96), (1.35, 0.42, 0.12)), - HardpointMount("hp.weapon.turret_pd", "weapon", 1, 1, 1, 1, "Aim.Turret", None, (0.0, -1.80, 9.11), (0.0, 0.0, 1.0), (0.68, 0.68, 0.12)), - HardpointMount("hp.weapon.turret_main", "weapon", 2, 1, 2, 2, "Aim.Turret", None, (0.0, 0.45, 9.07), (0.0, 0.03, 1.0), (1.30, 1.30, 0.16)), - HardpointMount("hp.weapon.flank_l", "weapon", 0, 2, 1, 2, "Trunk", None, (-3.70, -0.22, 6.18), (-1.0, 0.0, 0.0), (0.85, 0.85, 0.14)), - HardpointMount("hp.weapon.flank_r", "weapon", 5, 2, 1, 2, "Trunk", None, (3.70, -0.22, 6.18), (1.0, 0.0, 0.0), (0.85, 0.85, 0.14)), - HardpointMount("hp.engine.core", "engine", 2, 3, 2, 2, "Trunk", None, (0.0, -5.70, 7.34), (0.0, 0.0, 1.0), (1.50, 1.35, 0.16)), - HardpointMount("hp.radiator.rear_l", "radiator", 1, 4, 1, 2, "Trunk", None, (-2.55, -5.75, 7.38), (0.0, 0.0, 1.0), (0.98, 1.38, 0.14)), - HardpointMount("hp.radiator.rear_r", "radiator", 4, 4, 1, 2, "Trunk", None, (2.55, -5.75, 7.38), (0.0, 0.0, 1.0), (0.98, 1.38, 0.14)), - ), - joints=( - JointTagSpec("joint.turret_yaw", "Aim.Turret", None, (0.0, 1.0, 0.0), -180.0, 180.0), - ), - ), - "spectre": MechRetrofitSpec( - mech_id="spectre", - name="Spectre", - vehicle_class="Medium Recon/Skirmisher Biped", - plane="Coronal", - grid_width=5, - grid_height=6, - mask=( - ".#...", - ".###.", - "#####", - "#####", - ".#.#.", - ".#.#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-spectre-3\out\spectre\spectre.blend"), - model_json_path=None, - target_mech_tris=27000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "Rack.", "RackTail.", "GunL.lamp", "GunR.lamp", "GunR.glass"), - strip_islands=( - ("GunL.gunmetal", "max_y>", 2.0), - ("GunR.gunmetal", "max_y>", 3.15), - ("GunR.khaki", "max_y>", 3.15), - ), - hardpoints=( - HardpointMount("hp.weapon.shoulder_l", "weapon", 1, 0, 1, 1, "Waist", None, (-2.22, 0.15, 7.48), (-0.17, 0.23, 0.96), (0.78, 0.78, 0.13)), - HardpointMount("hp.armor.torso", "armor", 2, 1, 1, 1, "Waist", None, (0.0, 3.10, 5.68), (0.0, 0.11, -0.99), (0.74, 0.28, 0.10)), - HardpointMount("hp.weapon.arm_l", "weapon", 0, 2, 1, 2, "ShoulderL", None, (-2.81, 1.75, 5.15), (-1.0, 0.0, 0.0), (0.52, 0.52, 0.11)), - HardpointMount("hp.radiator.back_l", "radiator", 1, 2, 1, 1, "Waist", None, (-2.20, -0.79, 7.00), (0.0, -1.0, 0.0), (0.76, 0.96, 0.12)), - HardpointMount("hp.engine.core", "engine", 2, 2, 1, 2, "Waist", None, (0.0, -2.30, 7.00), (0.0, -1.0, 0.0), (0.86, 1.18, 0.14)), - HardpointMount("hp.radiator.back_r", "radiator", 3, 2, 1, 1, "Waist", None, (2.20, -0.79, 7.00), (0.0, -1.0, 0.0), (0.76, 0.96, 0.12)), - HardpointMount("hp.weapon.arm_r", "weapon", 4, 2, 1, 2, "ShoulderR", None, (2.66, 1.75, 5.05), (1.0, 0.0, 0.0), (0.52, 0.52, 0.11)), - ), - joints=( - JointTagSpec("joint.torso_yaw", "Waist", None, (0.0, 1.0, 0.0), -90.0, 90.0), - JointTagSpec("joint.arm_l_pitch", "ShoulderL", None, (1.0, 0.0, 0.0), -45.0, 60.0), - JointTagSpec("joint.arm_r_pitch", "ShoulderR", None, (1.0, 0.0, 0.0), -45.0, 60.0), - ), - ), - "kestrel": MechRetrofitSpec( - mech_id="kestrel", - name="Kestrel", - vehicle_class="Light Scout Biped", - plane="Coronal", - grid_width=5, - grid_height=5, - mask=( - "..#..", - ".###.", - ".####", - ".####", - ".#.#.", - ), - blend_path=Path(r"F:\aeth-wt\fable-kestrel-2\out\kestrel\kestrel.blend"), - model_json_path=None, - target_mech_tris=27000, - strip_prefixes=("Rig", "Cam", "Sun", "Back", "Bounce", "Ground", "Horizon", "WeaponArm.accent_yellow"), - strip_islands=( - ("WeaponArm.gunmetal", "max_y>", 2.30), - ), - hardpoints=( - HardpointMount("hp.weapon.dorsal", "weapon", 2, 0, 1, 1, "Torso.pose", None, (0.0, 0.23, 9.25), (0.0, 0.38, 0.92), (0.56, 0.56, 0.11)), - HardpointMount("hp.armor.chest", "armor", 2, 1, 1, 1, "Torso.pose", None, (0.0, 2.28, 6.87), (0.0, 0.88, -0.47), (0.72, 0.32, 0.10)), - HardpointMount("hp.radiator.back", "radiator", 1, 2, 1, 1, "Torso.pose", None, (-1.02, -1.86, 8.35), (0.0, -0.97, 0.26), (0.58, 0.78, 0.11)), - HardpointMount("hp.engine.core", "engine", 2, 2, 1, 2, "Torso.pose", None, (0.0, -1.72, 8.20), (0.0, -0.93, 0.36), (0.76, 1.02, 0.13)), - HardpointMount("hp.weapon.arm_r", "weapon", 4, 2, 1, 2, "ArmR", None, (2.29, 1.15, 5.95), (1.0, 0.0, 0.0), (0.46, 0.46, 0.10)), - ), - joints=( - JointTagSpec("joint.torso_yaw", "Torso.pose", None, (0.0, 1.0, 0.0), -90.0, 90.0), - JointTagSpec("joint.arm_l_pitch", "ArmL", None, (1.0, 0.0, 0.0), -45.0, 60.0), - JointTagSpec("joint.arm_r_pitch", "ArmR", None, (1.0, 0.0, 0.0), -45.0, 60.0), - ), - ), -} - - -def _should_strip(name: str, prefixes: tuple[str, ...]) -> bool: - return any(name == p or name.startswith(p) or name.startswith(p.rstrip(".")) and name == p.rstrip(".") for p in prefixes) - - -def _remove_object_recursive(obj: bpy.types.Object) -> None: - for ch in list(obj.children): - _remove_object_recursive(ch) - if obj.name in bpy.data.objects: - bpy.data.objects.remove(obj, do_unlink=True) - - -def _strip_scene_objects(spec: MechRetrofitSpec) -> list[str]: - stripped: list[str] = [] - - # 1. Drop excluded build collections (e.g. breaker.build) - for col_name in spec.drop_collections: - col = bpy.data.collections.get(col_name) - if col is not None: - for obj_name in [o.name for o in col.objects]: - stripped.append(obj_name) - obj = bpy.data.objects.get(obj_name) - if obj is not None: - bpy.data.objects.remove(obj, do_unlink=True) - bpy.data.collections.remove(col) - - # 2. Strip matching prefixes, studio lights/cameras/fonts, and hidden boolean cutters - for obj_name in [o.name for o in bpy.data.objects]: - obj = bpy.data.objects.get(obj_name) - if obj is None: - continue - if obj.type in ("LIGHT", "CAMERA", "FONT"): - stripped.append(obj_name) - bpy.data.objects.remove(obj, do_unlink=True) - continue - is_skeleton_pivot = obj.get("kit_part") in ("bone", "trunk") - if not is_skeleton_pivot and (obj.hide_viewport or obj.hide_render or obj.display_type in ("WIRE", "BOUNDS")): - stripped.append(obj_name) - bpy.data.objects.remove(obj, do_unlink=True) - continue - if _should_strip(obj_name, spec.strip_prefixes): - stripped.append(obj_name) - _remove_object_recursive(obj) - continue - if not spec.armature_name and ".bolts" in obj_name: - stripped.append(obj_name) - bpy.data.objects.remove(obj, do_unlink=True) - - return sorted(set(stripped)) - - -def _strip_vertex_groups_from_mesh(obj: bpy.types.Object, vg_names: tuple[str, ...]) -> int: - if not vg_names or obj.type != "MESH": - return 0 - target_indices = { - obj.vertex_groups[name].index - for name in vg_names - if name in obj.vertex_groups - } - if not target_indices: - return 0 - bm = bmesh.new() - bm.from_mesh(obj.data) - dlayer = bm.verts.layers.deform.active - removed_verts = 0 - if dlayer is not None: - to_delete = [] - for v in bm.verts: - dw = v[dlayer] - if any(dw.get(idx, 0.0) > 0.5 for idx in target_indices): - to_delete.append(v) - removed_verts = len(to_delete) - if to_delete: - bmesh.ops.delete(bm, geom=to_delete, context="VERTS") - bm.to_mesh(obj.data) - bm.free() - obj.data.validate(verbose=False) - obj.data.update() - return removed_verts - - -def _strip_mesh_islands(strip_islands: tuple[tuple[str, str, float], ...]) -> dict[str, int]: - """Remove disconnected mesh islands matching world-space predicates (e.g. protruding gun barrels).""" - removed: dict[str, int] = {} - for obj_name, op, thresh in strip_islands: - obj = bpy.data.objects.get(obj_name) - if obj is None or obj.type != "MESH" or obj.data is None: - continue - bm = bmesh.new() - bm.from_mesh(obj.data) - bm.verts.ensure_lookup_table() - mw = obj.matrix_world - visited: set[int] = set() - del_verts: list[bmesh.types.BMVert] = [] - for v in bm.verts: - if v.index in visited: - continue - comp: list[bmesh.types.BMVert] = [] - stack = [v] - visited.add(v.index) - while stack: - cur = stack.pop() - comp.append(cur) - for e in cur.link_edges: - ov = e.other_vert(cur) - if ov.index not in visited: - visited.add(ov.index) - stack.append(ov) - pts = [mw @ c.co for c in comp] - hit = False - if op == "max_y>": - hit = max(p.y for p in pts) > thresh - elif op == "min_y<": - hit = min(p.y for p in pts) < thresh - elif op == "max_z>": - hit = max(p.z for p in pts) > thresh - if hit: - del_verts.extend(comp) - if del_verts: - bmesh.ops.delete(bm, geom=del_verts, context="VERTS") - bm.to_mesh(obj.data) - obj.data.validate(verbose=False) - obj.data.update() - removed[obj_name] = len(del_verts) - bm.free() - return removed - - -def _reparent_keep_world(obj: bpy.types.Object, parent: bpy.types.Object) -> None: - mw = obj.matrix_world.copy() - obj.parent = parent - obj.matrix_parent_inverse = Matrix.Identity(4) - obj.matrix_local = parent.matrix_world.inverted() @ mw - - -def _split_mesh_by_world_z( - obj: bpy.types.Object, - z_split: float, - upper_name: str, - lower_name: str, -) -> tuple[bpy.types.Object, bpy.types.Object]: - """Split a disconnected multi-island mesh object into upper (z > z_split) and lower (z <= z_split) objects.""" - lower_obj = obj.copy() - lower_obj.data = obj.data.copy() - for col in obj.users_collection: - col.objects.link(lower_obj) - if not obj.users_collection: - bpy.context.scene.collection.objects.link(lower_obj) - - mw = obj.matrix_world.copy() - for target, keep_upper in ((obj, True), (lower_obj, False)): - bm = bmesh.new() - bm.from_mesh(target.data) - drop_verts = [ - v for v in bm.verts - if (keep_upper and (mw @ v.co).z <= z_split) or (not keep_upper and (mw @ v.co).z > z_split) - ] - if drop_verts: - bmesh.ops.delete(bm, geom=drop_verts, context="VERTS") - bm.to_mesh(target.data) - bm.free() - target.data.update() - - obj.name = upper_name - obj.data.name = upper_name - lower_obj.name = lower_name - lower_obj.data.name = lower_name - return obj, lower_obj - - -def _assemble_kestrel_hierarchy() -> None: - """Group Kestrel's flat root parts under Pelvis, Leg{L,R}.{Thigh,Shin,Foot}, Torso.pose, ArmL, and ArmR pivots.""" - torso_pose = bpy.data.objects.get("Torso.pose") - if torso_pose is None: - return - - pelvis = vc.make_empty("Pelvis", parent=None, location=(0.0, 0.0, 0.0)) - arm_l = vc.make_empty("ArmL", parent=torso_pose, location=(-1.62, 0.65, 1.50)) - arm_r = vc.make_empty("ArmR", parent=torso_pose, location=(1.62, 0.65, 1.50)) - bpy.context.view_layer.update() - - # Split combined LegJoints{L,R}.* (hip + knee drums in one mesh) into distinct hip (z > 5.0) and knee (z <= 5.0) meshes - for side in ("L", "R"): - for mat_suffix in ("gunmetal", "khaki", "machine"): - joint_obj = bpy.data.objects.get(f"LegJoints{side}.{mat_suffix}") - if joint_obj is not None and joint_obj.type == "MESH": - _split_mesh_by_world_z( - joint_obj, - z_split=5.0, - upper_name=f"LegJoints{side}Hip.{mat_suffix}", - lower_name=f"LegJoints{side}Knee.{mat_suffix}", - ) - - # Create articulated leg pivot chains at exact hip, knee, and ankle drum centers - leg_pivots: dict[str, tuple[bpy.types.Object, bpy.types.Object, bpy.types.Object]] = {} - for side in ("L", "R"): - hip_b = _obj_bounds_in_ref([f"LegJoints{side}Hip.gunmetal"], pelvis) - knee_b = _obj_bounds_in_ref([f"LegJoints{side}Knee.gunmetal"], pelvis) - ankle_b = _obj_bounds_in_ref([f"Ankle{side}.foot.machine.body"], pelvis) - assert hip_b is not None and knee_b is not None and ankle_b is not None, ( - f"kestrel: missing leg drum bounds for side {side}" - ) - hip_c = 0.5 * (hip_b[0] + hip_b[1]) - knee_c = 0.5 * (knee_b[0] + knee_b[1]) - ankle_c = 0.5 * (ankle_b[0] + ankle_b[1]) - - leg_thigh = vc.make_empty(f"Leg{side}.Thigh", parent=pelvis, location=tuple(hip_c)) - bpy.context.view_layer.update() - leg_shin = vc.make_empty(f"Leg{side}.Shin", parent=leg_thigh, location=tuple(knee_c - hip_c)) - bpy.context.view_layer.update() - leg_foot = vc.make_empty(f"Leg{side}.Foot", parent=leg_shin, location=tuple(ankle_c - knee_c)) - bpy.context.view_layer.update() - leg_pivots[side] = (leg_thigh, leg_shin, leg_foot) - - protected = {pelvis, torso_pose, arm_l, arm_r} - for pivots in leg_pivots.values(): - protected.update(pivots) - - for obj in list(bpy.data.objects): - if obj in protected: - continue - name = obj.name - if obj.parent is None and name.startswith("Pelvis."): - _reparent_keep_world(obj, pelvis) - elif obj.parent is None and name.startswith(("ThighL.", "LegJointsLHip.")): - _reparent_keep_world(obj, leg_pivots["L"][0]) - elif obj.parent is None and name.startswith(("ThighR.", "LegJointsRHip.")): - _reparent_keep_world(obj, leg_pivots["R"][0]) - elif obj.parent is None and name.startswith(("ShinL.", "LegJointsLKnee.", "AnkleL.root.")): - _reparent_keep_world(obj, leg_pivots["L"][1]) - elif obj.parent is None and name.startswith(("ShinR.", "LegJointsRKnee.", "AnkleR.root.")): - _reparent_keep_world(obj, leg_pivots["R"][1]) - elif obj.parent is None and name.startswith(("FootL.", "AnkleL.foot.")): - _reparent_keep_world(obj, leg_pivots["L"][2]) - elif obj.parent is None and name.startswith(("FootR.", "AnkleR.foot.")): - _reparent_keep_world(obj, leg_pivots["R"][2]) - elif obj.parent is None and (name.startswith("Neck.") or name.startswith("Shoulder")): - _reparent_keep_world(obj, torso_pose) - elif name.startswith("UpperArmL.") or name.startswith("ElbowL.") or name.startswith("ForearmL.") or name.startswith("HandL."): - _reparent_keep_world(obj, arm_l) - elif name.startswith("UpperArmR.") or name.startswith("ElbowR.") or name.startswith("WeaponArm."): - _reparent_keep_world(obj, arm_r) - bpy.context.view_layer.update() - - -def _apply_existing_modifiers() -> None: - """Drop BEVEL (which causes decimate spikes) and bake SOLIDIFY/BOOLEAN before stripping cutters.""" - for obj_name in [o.name for o in bpy.data.objects]: - obj = bpy.data.objects.get(obj_name) - if obj is None or obj.type != "MESH" or not obj.modifiers: - continue - for mod in list(obj.modifiers): - if mod.type == "BEVEL": - obj.modifiers.remove(mod) - depsgraph = bpy.context.evaluated_depsgraph_get() - for obj_name in [o.name for o in bpy.data.objects]: - obj = bpy.data.objects.get(obj_name) - if obj is None or obj.type != "MESH" or not obj.modifiers: - continue - if any(m.type == "ARMATURE" for m in obj.modifiers): - continue - ev = obj.evaluated_get(depsgraph) - new_mesh = bpy.data.meshes.new_from_object(ev, preserve_all_data_layers=True, depsgraph=depsgraph) - new_mesh.name = f"{obj.name}_baked" - obj.modifiers.clear() - obj.data = new_mesh - - -def _convert_surviving_curves() -> None: - """Convert surviving CURVE hydraulic hoses to MESH.""" - view_layer = bpy.context.view_layer - curves = [o for o in bpy.data.objects if o.type == "CURVE"] - if curves: - bpy.ops.object.select_all(action="DESELECT") - for c in curves: - c.select_set(True) - view_layer.objects.active = curves[0] - bpy.ops.object.convert(target="MESH") - - -def _normalize_materials_for_gltf() -> None: - """Replace linked procedural shader trees with clean flat Principled BSDF PBR values.""" - vc.ensure_materials() - pal_map = { - "armour": "olive_armor", - "armor": "olive_armor", - "olive": "olive_armor", - "khaki": "olive_armor", - "metal": "gunmetal", - "gunmetal": "gunmetal", - "machine": "gunmetal", - "rubber": "rubber_dark", - "hazard": "signal_orange", - "brass": "copper_rad", - "copper": "copper_rad", - "glass": "smoked_glass", - "optic": "smoked_glass", - "pit": "socket_bay", - } - for mat in list(bpy.data.materials): - if mat.name in vc.PALETTE or not mat.use_nodes or not mat.node_tree: - continue - nt = mat.node_tree - bsdf = next((n for n in nt.nodes if n.type == "BSDF_PRINCIPLED"), None) - if bsdf is None: - continue - lname = mat.name.lower() - - # Extract Group node overrides if authored by Brokkr paint_pinned - grp = next((n for n in nt.nodes if n.type == "GROUP"), None) - base_col = None - cover_col = None - cover_amt = 0.0 - metallic = None - roughness = None - if grp is not None: - if "Base Color" in grp.inputs and hasattr(grp.inputs["Base Color"], "default_value"): - base_col = tuple(grp.inputs["Base Color"].default_value) - if "Cover Color" in grp.inputs and hasattr(grp.inputs["Cover Color"], "default_value"): - cover_col = tuple(grp.inputs["Cover Color"].default_value) - if "Cover" in grp.inputs and hasattr(grp.inputs["Cover"], "default_value"): - cover_amt = float(grp.inputs["Cover"].default_value) - if "Metallic" in grp.inputs and hasattr(grp.inputs["Metallic"], "default_value"): - metallic = float(grp.inputs["Metallic"].default_value) - if "Roughness" in grp.inputs and hasattr(grp.inputs["Roughness"], "default_value"): - roughness = float(grp.inputs["Roughness"].default_value) - - # Fallback to matching shared RTD palette entry for linked/procedural mats - matched_pal = None - for key, pal_name in pal_map.items(): - if key in lname: - matched_pal = vc.PALETTE[pal_name] - break - - # Clear links on Principled BSDF and reset overrides (e.g. Emission/Transmission) - for inp in bsdf.inputs: - for lk in list(inp.links): - nt.links.remove(lk) - if "Emission Strength" in bsdf.inputs: - bsdf.inputs["Emission Strength"].default_value = 0.0 - if "Emission Color" in bsdf.inputs: - bsdf.inputs["Emission Color"].default_value = (0.0, 0.0, 0.0, 1.0) - if "Transmission Weight" in bsdf.inputs: - bsdf.inputs["Transmission Weight"].default_value = 0.0 - if "Coat Weight" in bsdf.inputs: - bsdf.inputs["Coat Weight"].default_value = 0.0 - - if "glow_blue" in lname: - bsdf.inputs["Base Color"].default_value = vc.srgb_hex_to_linear("#38c9d8") - bsdf.inputs["Roughness"].default_value = 0.20 - bsdf.inputs["Emission Color"].default_value = vc.srgb_hex_to_linear("#38c9d8") - bsdf.inputs["Emission Strength"].default_value = 2.4 - elif any(k in lname for k in ("lamp", "glow", "amber")): - col = vc.srgb_hex_to_linear("#ff9f2e") - bsdf.inputs["Base Color"].default_value = col - bsdf.inputs["Roughness"].default_value = 0.20 - bsdf.inputs["Emission Color"].default_value = col - bsdf.inputs["Emission Strength"].default_value = 2.2 - elif "steel" in lname: - bsdf.inputs["Base Color"].default_value = (0.58, 0.60, 0.62, 1.0) - bsdf.inputs["Metallic"].default_value = 0.94 - bsdf.inputs["Roughness"].default_value = 0.22 - elif "optic_red" in lname: - bsdf.inputs["Base Color"].default_value = (0.14, 0.02, 0.015, 1.0) - bsdf.inputs["Metallic"].default_value = 0.0 - bsdf.inputs["Roughness"].default_value = 0.15 - if "Emission Color" in bsdf.inputs: - bsdf.inputs["Emission Color"].default_value = (1.0, 0.08, 0.03, 1.0) - if "Emission Strength" in bsdf.inputs: - bsdf.inputs["Emission Strength"].default_value = 1.6 - elif "warhead" in lname: - bsdf.inputs["Base Color"].default_value = (0.28, 0.10, 0.06, 1.0) - bsdf.inputs["Metallic"].default_value = 0.35 - bsdf.inputs["Roughness"].default_value = 0.45 - elif "mark" in lname: - bsdf.inputs["Base Color"].default_value = cover_col if (cover_col is not None and cover_amt >= 0.5) else (0.48, 0.46, 0.42, 1.0) - bsdf.inputs["Metallic"].default_value = 0.0 - bsdf.inputs["Roughness"].default_value = roughness if roughness is not None else 0.72 - elif matched_pal is not None: - bsdf.inputs["Base Color"].default_value = vc.srgb_hex_to_linear(matched_pal["hex"]) - bsdf.inputs["Metallic"].default_value = float(matched_pal["metallic"]) - bsdf.inputs["Roughness"].default_value = float(matched_pal["roughness"]) - if "alpha" in matched_pal: - bsdf.inputs["Alpha"].default_value = float(matched_pal["alpha"]) - if hasattr(mat, "blend_method"): - mat.blend_method = "BLEND" - elif base_col is not None: - bsdf.inputs["Base Color"].default_value = base_col - if metallic is not None: - bsdf.inputs["Metallic"].default_value = metallic - if roughness is not None: - bsdf.inputs["Roughness"].default_value = roughness - - -def _mesh_tri_count(obj: bpy.types.Object) -> int: - obj.data.calc_loop_triangles() - return len(obj.data.loop_triangles) - - -def _apply_crisp_normals_and_decimate(obj: bpy.types.Object, ratio: float) -> int: - view_layer = bpy.context.view_layer - if obj.data.users > 1: - obj.data = obj.data.copy() - bpy.ops.object.select_all(action="DESELECT") - obj.select_set(True) - view_layer.objects.active = obj - - if ratio < 0.99: - mod = obj.modifiers.new("LOD_Decimate", "DECIMATE") - mod.decimate_type = "COLLAPSE" - mod.ratio = ratio - mod.use_collapse_triangulate = True - if len(obj.modifiers) > 1: - bpy.ops.object.modifier_move_to_index(modifier=mod.name, index=0) - bpy.ops.object.modifier_apply(modifier=mod.name) - - # Split sharp armor edges (>36 deg) so decimated bevel corners never look pillowed - es = obj.modifiers.new("LOD_EdgeSplit", "EDGE_SPLIT") - es.use_edge_angle = True - es.split_angle = math.radians(36.0) - es.use_edge_sharp = True - if len(obj.modifiers) > 1: - bpy.ops.object.modifier_move_to_index(modifier=es.name, index=0) - bpy.ops.object.modifier_apply(modifier=es.name) - obj.data.validate(verbose=False) - obj.data.update() - return _mesh_tri_count(obj) - - -def _decimate_mech_meshes(meshes: list[bpy.types.Object], target_tris: int, min_keep_tris: int = 48) -> tuple[int, int]: - """Decimate mech meshes adaptively to target_tris while keeping armor plates crisp and spike-free.""" - tri_counts = [_mesh_tri_count(o) for o in meshes] - raw_total = sum(tri_counts) - if raw_total == 0: - return 0, 0 - - # Single-mesh rigged path (e.g. breaker.mesh) -> modifier_apply preserves armature + skinning - if len(meshes) == 1: - obj = meshes[0] - ratio = max(0.02, min(1.0, target_tris / raw_total)) - after = _apply_crisp_normals_and_decimate(obj, ratio) - return raw_total, after - - min_main_ratio = 0.125 if raw_total > 150000 else 0.20 - - def _target_for(obj: bpy.types.Object, t: int, k_val: float) -> int: - if t <= min_keep_tris: - return t - is_detail = ( - obj.name.startswith("Foot") - or ".Foot" in obj.name - or ".fit." in obj.name - or ".ferrules" in obj.name - or ".panels" in obj.name - ) - if is_detail: - return max(24, int(round(t * max(k_val * 0.50, 0.06)))) - if t <= 220: - return max(min(t, 44), int(round(t * max(k_val, 0.28)))) - return max(84, int(round(t * max(k_val, min_main_ratio)))) - - if raw_total <= target_tris: - k = 1.0 - else: - lo, hi = 0.10, 1.0 - for _ in range(28): - mid = 0.5 * (lo + hi) - est = sum(_target_for(obj, t, mid) for obj, t in zip(meshes, tri_counts)) - if est > target_tris: - hi = mid - else: - lo = mid - k = 0.5 * (lo + hi) - - # Queue DECIMATE + EDGE_SPLIT on all objects, then evaluate in one depsgraph pass - for obj, t in zip(meshes, tri_counts): - tgt = _target_for(obj, t, k) - if tgt < t: - ratio = max(0.08, min(1.0, tgt / t)) - if ratio < 0.99: - mod = obj.modifiers.new("LOD_Decimate", "DECIMATE") - mod.decimate_type = "COLLAPSE" - mod.ratio = ratio - mod.use_collapse_triangulate = True - es = obj.modifiers.new("LOD_EdgeSplit", "EDGE_SPLIT") - es.use_edge_angle = True - es.split_angle = math.radians(36.0) - es.use_edge_sharp = True - - depsgraph = bpy.context.evaluated_depsgraph_get() - after_total = 0 - for obj in meshes: - ev = obj.evaluated_get(depsgraph) - new_mesh = bpy.data.meshes.new_from_object(ev, preserve_all_data_layers=True, depsgraph=depsgraph) - new_mesh.name = f"{obj.name}_lod" - new_mesh.validate(verbose=False) - obj.modifiers.clear() - obj.data = new_mesh - after_total += _mesh_tri_count(obj) - - return raw_total, after_total - - -def _collect_subtree_meshes(root_obj: bpy.types.Object) -> list[bpy.types.Object]: - out: list[bpy.types.Object] = [] - def walk(obj: bpy.types.Object) -> None: - if obj.name.startswith("slot_frame."): - return - if obj.type == "MESH" and obj.data is not None and len(obj.data.polygons) > 0: - out.append(obj) - for ch in obj.children: - walk(ch) - walk(root_obj) - return out - - -def _build_hull_bvh(mesh_objs: list[bpy.types.Object]) -> BVHTree | None: - if not mesh_objs: - return None - depsgraph = bpy.context.evaluated_depsgraph_get() - bm = bmesh.new() - for obj in mesh_objs: - ev = obj.evaluated_get(depsgraph) - me = ev.to_mesh() - if me is not None and len(me.polygons) > 0: - me.transform(obj.matrix_world) - bm.from_mesh(me) - ev.to_mesh_clear() - if len(bm.verts) == 0 or len(bm.faces) == 0: - bm.free() - return None - bvh = BVHTree.FromBMesh(bm) - bm.free() - return bvh - - -def _snap_hardpoint_bvh( - hp: HardpointMount, - parent_obj: bpy.types.Object, - root_obj: bpy.types.Object, - full_bvh: BVHTree, - bvh_cache: dict[str, BVHTree], -) -> tuple[Vector, float, tuple[float, float, float]]: - """Snap hardpoint anchor onto actual hull surface via 5-point BVH raycast + recessed plinth.""" - bvh = full_bvh - if parent_obj != root_obj and hp.parent_bone is None: - if parent_obj.name not in bvh_cache: - sub_meshes = _collect_subtree_meshes(parent_obj) - sub_bvh = _build_hull_bvh(sub_meshes) - if sub_bvh is not None: - bvh_cache[parent_obj.name] = sub_bvh - bvh = bvh_cache.get(parent_obj.name, full_bvh) - - p0 = Vector(hp.world_pos) - n = Vector(hp.world_normal).normalized() - q = Vector((0.0, 0.0, 1.0)).rotation_difference(n) - tu = q @ Vector((1.0, 0.0, 0.0)) - tv = q @ Vector((0.0, 1.0, 0.0)) - - sx, sy, sz = hp.size - if hp.kind == "weapon": - r = min(sx, sy) * 0.48 * 0.78 - rx, ry = r, r - elif hp.kind == "armor": - rx, ry = sx * 0.38, sy * 0.14 - else: - rx, ry = sx * 0.38, sy * 0.38 - - offsets = [(0.0, 0.0), (-rx, -ry), (rx, -ry), (rx, ry), (-rx, ry)] - raw_hits: list[float | None] = [] - for ox, oy in offsets: - pt = p0 + tu * ox + tv * oy - # Cast from +1.5m along +normal toward -normal; guard against far overhang hits by also trying +0.55m - loc, _, _, _ = bvh.ray_cast(pt + n * 0.65, -n, 1.35) - if loc is None: - loc, _, _, _ = bvh.ray_cast(pt + n * 1.5, -n, 3.0) - raw_hits.append((loc - p0).dot(n) if loc is not None else None) - - h_center = raw_hits[0] - if h_center is None: - near_loc, _, _, _ = bvh.find_nearest(p0) - if near_loc is not None: - h_center = (near_loc - p0).dot(n) - else: - h_center = 0.0 - # Guard against thin lifting-eye/antenna spikes lifting the entire base off the armor roof - corner_vals = sorted(h for h in raw_hits[1:] if h is not None) - if len(corner_vals) >= 3: - c_med = corner_vals[len(corner_vals) // 2] - if h_center - c_med > 0.08: - tight_hits: list[float] = [] - for tx, ty in ((-0.07, 0.0), (0.07, 0.0), (0.0, -0.07), (0.0, 0.07)): - t_loc, _, _, _ = bvh.ray_cast(p0 + tu * tx + tv * ty + n * 0.65, -n, 1.35) - if t_loc is not None: - tight_hits.append((t_loc - p0).dot(n)) - t_med = sorted(tight_hits)[len(tight_hits) // 2] if tight_hits else h_center - if h_center - t_med > 0.06: - h_center = c_med - - # Keep corner hits near the local surface patch; replace misses/cliffs with nearest or conservative drop - valid_corners: list[float] = [h_center] - misses = 0 - for idx, h in enumerate(raw_hits[1:], start=1): - if h is None or abs(h - h_center) > 0.18: - misses += 1 - ox, oy = offsets[idx] - near_loc, _, _, _ = bvh.find_nearest(p0 + tu * ox + tv * oy + n * h_center) - if near_loc is not None: - hn = (near_loc - p0).dot(n) - if abs(hn - h_center) <= 0.18: - valid_corners.append(hn) - continue - valid_corners.append(h_center - 0.035) - else: - valid_corners.append(h) - - h_min = min(valid_corners) - h_max = max(valid_corners) - # Seat bay origin recessed into surface at center (<= 0.022m from surface so verify_glbs passes) - # while extending plinth down past h_min and keeping rim proud above h_max - h_seat = h_center - 0.020 - if h_max - h_seat > sz * 0.55: - sz_out = max(sz, (h_max - h_seat) + 0.055) - else: - sz_out = sz - plinth_depth = max(0.050, min(0.18, (h_seat - h_min) + 0.045)) - snapped_pos = p0 + n * h_seat - print( - f" [snap] {hp.hp_id:22s} | dh_c={h_center:+.3f} span=[{h_min:+.3f},{h_max:+.3f}] " - f"seat={h_seat:+.3f} plinth={plinth_depth:.3f} miss={misses}" - ) - return snapped_pos, plinth_depth, (sx, sy, sz_out) - - -def _attach_hardpoint_world( - hp: HardpointMount, - root_obj: bpy.types.Object, - full_bvh: BVHTree, - bvh_cache: dict[str, BVHTree], -) -> None: - parent_obj = root_obj if hp.parent_name == "_ROOT_" else bpy.data.objects[hp.parent_name] - snapped_pos, plinth_depth, adj_size = _snap_hardpoint_bvh(hp, parent_obj, root_obj, full_bvh, bvh_cache) - anchor = vc.add_hardpoint_slot( - hp.hp_id, - hp.kind, - parent=parent_obj, - location=(0.0, 0.0, 0.0), - rotation_deg=(0.0, 0.0, 0.0), - size=adj_size, - plinth_depth=plinth_depth, - ) - bay_root = anchor.parent - if hp.parent_bone is not None: - bay_root.parent_type = "BONE" - bay_root.parent_bone = hp.parent_bone - - bpy.context.view_layer.update() - n = Vector(hp.world_normal).normalized() - q = Vector((0.0, 0.0, 1.0)).rotation_difference(n) - m_world = Matrix.Translation(snapped_pos) @ q.to_matrix().to_4x4() - - if hp.parent_bone is not None and parent_obj.type == "ARMATURE": - pb = parent_obj.pose.bones[hp.parent_bone] - # Blender bone parenting attaches at the pose bone tail with bone axes - bone_tail_mat = parent_obj.matrix_world @ pb.matrix @ Matrix.Translation((0.0, pb.length, 0.0)) - m_local = bone_tail_mat.inverted() @ m_world - else: - m_local = parent_obj.matrix_world.inverted() @ m_world - - loc, rot, _ = m_local.decompose() - bay_root.location = loc - bay_root.rotation_mode = "XYZ" - bay_root.rotation_euler = rot.to_euler("XYZ") - - -def _apply_joint_tags(spec: MechRetrofitSpec) -> list[dict[str, Any]]: - joints_manifest: list[dict[str, Any]] = [] - for j in spec.joints: - target = bpy.data.objects[j.target_name] - if j.parent_bone is not None and target.type == "ARMATURE": - node = vc.make_empty(j.joint_id, parent=target, display_size=0.16) - node.parent_type = "BONE" - node.parent_bone = j.parent_bone - bpy.context.view_layer.update() - pb = target.pose.bones[j.parent_bone] - bone_head_w = target.matrix_world @ pb.head - bone_tail_mat = target.matrix_world @ pb.matrix @ Matrix.Translation((0.0, pb.length, 0.0)) - m_local = bone_tail_mat.inverted() @ Matrix.Translation(bone_head_w) - node.location = m_local.to_translation() - else: - node = target - vc.tag_joint(node, j.joint_id, j.axis_gltf, j.min_val, j.max_val) - joints_manifest.append({ - "id": j.joint_id, - "axis": [float(v) for v in j.axis_gltf], - "min": float(j.min_val), - "max": float(j.max_val), - }) - return joints_manifest - - -def _brokkr_vec_to_gltf(v: list[float], ground_z_shift: float = 0.0) -> list[float]: - """Convert raw Brokkr Blender (+Y fwd, -X left, +Z up) after 180 deg Z rot to glTF (+Z fwd, +X left, +Y up).""" - return [round(-float(v[0]), 6), round(float(v[2]) + ground_z_shift, 6), round(float(v[1]), 6)] - - -def _brokkr_dir_to_gltf(v: list[float]) -> list[float]: - return [round(-float(v[0]), 6), round(float(v[2]), 6), round(float(v[1]), 6)] - - -def _extract_mechanisms(model_json_path: Path, ground_z_shift: float = 0.0) -> dict[str, Any]: - raw = json.loads(model_json_path.read_text(encoding="utf-8")) - dofs_out = [] - for d in raw.get("dofs", []): - entry = { - "name": d["name"], - "parent": d["parent"], - "kind": d["kind"], - "mechanism": d.get("mechanism"), - "side": d.get("side"), - "origin": _brokkr_vec_to_gltf(d["origin"], ground_z_shift), - "axis": _brokkr_dir_to_gltf(d["axis"]), - "lo": d["lo"], - "hi": d["hi"], - "depth": d["depth"], - } - if "compliance" in d: - entry["compliance"] = d["compliance"] - if "stopped_by" in d: - entry["stopped_by"] = d["stopped_by"] - dofs_out.append(entry) - - points_raw = raw.get("points", {}) - dirs_raw = raw.get("dirs", {}) - rams_out = [] - for r in raw.get("rams", []): - pt_a = points_raw.get(r["a"]) - pt_b = points_raw.get(r["b"]) - dir_pin = dirs_raw.get(r["pin"]) - rams_out.append({ - "name": r["name"], - "barrel_bone": r["barrel_bone"], - "rod_bone": r["rod_bone"], - "spans": r.get("spans", []), - "bore": r.get("bore"), - "body": r.get("body"), - "inner": r.get("inner"), - "extension": r.get("extension"), - "rest": r.get("rest"), - "stroke": r.get("stroke"), - "a_parent_dof": pt_a[0] if pt_a else None, - "a_pos": _brokkr_vec_to_gltf(pt_a[1], ground_z_shift) if pt_a else None, - "b_parent_dof": pt_b[0] if pt_b else None, - "b_pos": _brokkr_vec_to_gltf(pt_b[1], ground_z_shift) if pt_b else None, - "pin_dir": _brokkr_dir_to_gltf(dir_pin[1]) if dir_pin else None, - }) - - scissors_out = [] - for s in raw.get("scissors", []): - pt_a = points_raw.get(s["a"]) - pt_b = points_raw.get(s["b"]) - dir_out = dirs_raw.get(s["out"]) - scissors_out.append({ - "name": s["name"], - "upper_bone": s["upper_bone"], - "lower_bone": s["lower_bone"], - "arm": s.get("arm"), - "a_parent_dof": pt_a[0] if pt_a else None, - "a_pos": _brokkr_vec_to_gltf(pt_a[1], ground_z_shift) if pt_a else None, - "b_parent_dof": pt_b[0] if pt_b else None, - "b_pos": _brokkr_vec_to_gltf(pt_b[1], ground_z_shift) if pt_b else None, - "out_dir": _brokkr_dir_to_gltf(dir_out[1]) if dir_out else None, - }) - - struts_out = [ - { - "name": st["name"], - "side": st.get("side"), - "dof": st["dof"], - "travel": st["travel"], - "hertz": st["hertz"], - "damping_ratio": st["damping_ratio"], - } - for st in raw.get("struts", []) - ] - - return { - "frame": "gltf (+Y up, +Z forward, +X left, meters)", - "rootOrigin": _brokkr_vec_to_gltf(raw.get("root", [0.0, 0.0, 0.0]), ground_z_shift), - "dofs": dofs_out, - "rams": rams_out, - "scissors": scissors_out, - "struts": struts_out, - } - - -def _extract_mechanisms_from_blend_raw(root_name: str = "Pelvis") -> dict[str, Any] | None: - """Extract raw Brokkr-frame DOFs, hydraulic rams, torque scissors, and oleo struts from kit_* props.""" - root_obj = bpy.data.objects.get(root_name) - if root_obj is None or "kit_part" not in root_obj: - return None - bpy.context.view_layer.update() - - def _side_of(name: str) -> str: - for tag, s in (("LegL", "L"), ("LegR", "R")): - if name.startswith(tag): - return s - base = name.split(".")[0] - if base.endswith("L"): - return "L" - if base.endswith("R"): - return "R" - return "" - - limits_deg = { - "hip": (-60.0, 60.0), "hip yaw": (-35.0, 35.0), "knee": (-100.0, 100.0), - "ankle": (-40.0, 40.0), "waist": (-110.0, 110.0), "shoulder slew": (-100.0, 100.0), - "shoulder hinge": (-45.0, 45.0), "arm twist": (-90.0, 90.0), "elbow": (-100.0, 100.0), - "hinge": (-60.0, 60.0), "slew": (-90.0, 90.0), - } - - dofs_raw: list[dict[str, Any]] = [] - obj_to_dof: dict[str, int] = {} - - def walk(obj: bpy.types.Object, parent_dof: int, depth: int) -> None: - here = parent_dof - here_depth = depth - if obj != root_obj and "kit_socket" in obj and obj.get("kit_part") != "ram" and obj.parent is not None and "kit_part" in obj.parent: - part = str(obj["kit_part"]) - ppart = str(obj.parent["kit_part"]) - psock = str(obj.get("kit_parent_socket", "")) - kind: str | None = None - if ppart == "slew_ring" and psock == "top": - kind = "slew" - elif str(obj.get("kit_mechanism", "")) == "oleo": - kind = "slide" - elif psock == "clevis": - kind = "hinge" - if kind is not None: - if kind == "slew": - # Slew axis is the parent slew_ring's Z axis at the top socket - origin_v = obj.parent.matrix_world.translation.copy() - axis_v = obj.parent.matrix_world.to_3x3().col[2].normalized() - else: - origin_v = obj.matrix_world.translation.copy() - axis_v = obj.matrix_world.to_3x3().col[2].normalized() - - grand = obj.parent.parent.get("kit_part", "") if obj.parent.parent else "" - if kind == "slide": - mech = str(obj.get("kit_mechanism", "oleo")) - val = float(obj.get("kit_slide", 0.0)) - lo = float(obj.get("kit_min", 0.0)) - val - hi = float(obj.get("kit_max", 0.2)) - val - elif kind == "slew": - mech = ( - "hip" if part in ("thigh", "hip_stub") - else "hip yaw" if part == "shank" - else "waist" if part == "chassis" - else ("shoulder slew" if grand == "chassis" else "arm twist") if part == "yoke" - else "slew" - ) - lo, hi = (math.radians(v) for v in limits_deg[mech]) - else: - if "kit_min" in obj and obj.get("kit_mechanism"): - mech = str(obj["kit_mechanism"]).replace("_", " ") - roll = float(obj.get("kit_roll", 0.0)) - lo = math.radians(float(obj["kit_min"]) - roll) - hi = math.radians(float(obj["kit_max"]) - roll) - else: - if part in ("foot", "foot_core"): - mech = "ankle" - elif part in ("link", "strut_shin"): - mech = "knee" - elif part == "wrist": - up_m = dofs_raw[parent_dof]["mechanism"] if parent_dof >= 0 else "" - mech = "shoulder hinge" if up_m == "shoulder slew" else "elbow" if up_m == "arm twist" else "hinge" - else: - mech = "hinge" - lo, hi = (math.radians(v) for v in limits_deg[mech]) - - entry: dict[str, Any] = { - "name": obj.name, - "parent": parent_dof, - "kind": kind, - "mechanism": mech, - "side": _side_of(obj.name), - "origin": [float(origin_v.x), float(origin_v.y), float(origin_v.z)], - "axis": [float(axis_v.x), float(axis_v.y), float(axis_v.z)], - "lo": float(lo), - "hi": float(hi), - "depth": depth, - } - if obj.get("kit_compliance"): - entry["compliance"] = json.loads(str(obj["kit_compliance"])) - if mech == "ankle": - entry["stopped_by"] = "ram" - here = len(dofs_raw) - here_depth = depth + 1 - dofs_raw.append(entry) - obj_to_dof[obj.name] = here - for ch in obj.children: - walk(ch, here, here_depth) - - walk(root_obj, -1, 0) - - rams_raw: list[dict[str, Any]] = [] - for obj in sorted(bpy.data.objects, key=lambda o: o.name): - if obj.get("kit_part") != "ram" or obj.parent is None: - continue - raw_close = obj.get("kit_close_to") - if raw_close is None: - continue - close_to = ( - raw_close - if isinstance(raw_close, bpy.types.Object) - else bpy.data.objects.get(raw_close.name if hasattr(raw_close, "name") else str(raw_close)) - ) - if close_to is None: - continue - params = json.loads(str(obj.get("kit_params", "{}"))) - lug_b_params = json.loads(str(close_to.get("kit_params", "{}"))) - a_pos = obj.matrix_world.translation.copy() - # Lug pivot sits at local (0, 0, height) - b_h = float(lug_b_params.get("height", 0.234)) - b_pos = close_to.matrix_world @ Vector((0.0, 0.0, b_h)) - rest = float((b_pos - a_pos).length) - pin_dir = obj.parent.matrix_world.to_3x3().col[0].normalized() - body = float(params.get("body_len", 0.68)) - ext = float(params.get("extension", 0.40)) - a_dof = obj_to_dof.get(obj.parent.name, -1) - b_dof = obj_to_dof.get(close_to.name, -1) - rams_raw.append({ - "name": obj.name, - "barrel_bone": f"{obj.name}.barrel", - "rod_bone": f"{obj.name}.rod", - "spans": [dofs_raw[i]["name"] for i in (a_dof + 1, b_dof) if 0 <= i < len(dofs_raw)], - "bore": float(params.get("bore_r", 0.09)), - "body": body, - "inner": rest - body * 0.85, - "extension": ext, - "rest": rest, - "stroke": [-ext, max(0.2, body - 0.15)], - "a_parent_dof": a_dof, - "a_pos": [float(a_pos.x), float(a_pos.y), float(a_pos.z)], - "b_parent_dof": b_dof, - "b_pos": [float(b_pos.x), float(b_pos.y), float(b_pos.z)], - "pin_dir": [float(pin_dir.x), float(pin_dir.y), float(pin_dir.z)], - }) - - scissors_raw: list[dict[str, Any]] = [] - for sc in json.loads(str(bpy.context.scene.get("mech_scissors", "[]"))): - oa = bpy.data.objects.get(sc["a"][0]) - ob = bpy.data.objects.get(sc["b"][0]) - oo = bpy.data.objects.get(sc["out"][0]) - if oa is None or ob is None or oo is None: - continue - pa = oa.matrix_world @ Vector(sc["a"][1]) - pb = ob.matrix_world @ Vector(sc["b"][1]) - dout = (oo.matrix_world.to_3x3() @ Vector(sc["out"][1])).normalized() - scissors_raw.append({ - "name": sc["name"], - "upper_bone": f"{sc['name']}.upper", - "lower_bone": f"{sc['name']}.lower", - "arm": float(sc["arm"]), - "a_parent_dof": obj_to_dof.get(oa.name, -1), - "a_pos": [float(pa.x), float(pa.y), float(pa.z)], - "b_parent_dof": obj_to_dof.get(ob.name, -1), - "b_pos": [float(pb.x), float(pb.y), float(pb.z)], - "out_dir": [float(dout.x), float(dout.y), float(dout.z)], - }) - - struts_raw = [ - { - "name": d["name"], - "side": d["side"], - "dof": d["name"], - "travel": round(abs(d["hi"] - d["lo"]), 6), - "hertz": float(d["compliance"]["hertz"]), - "damping_ratio": float(d["compliance"]["damping_ratio"]), - } - for d in dofs_raw - if d.get("mechanism") == "oleo" and "compliance" in d - ] - - r_pos = root_obj.matrix_world.translation - return { - "root": [float(r_pos.x), float(r_pos.y), float(r_pos.z)], - "dofs": dofs_raw, - "rams": rams_raw, - "scissors": scissors_raw, - "struts": struts_raw, - } - - -def _finalize_mechanisms_gltf(raw: dict[str, Any], ground_z_shift: float) -> dict[str, Any]: - dofs_out = [] - for d in raw["dofs"]: - entry = { - **d, - "origin": _brokkr_vec_to_gltf(d["origin"], ground_z_shift), - "axis": _brokkr_dir_to_gltf(d["axis"]), - } - dofs_out.append(entry) - rams_out = [ - { - **r, - "a_pos": _brokkr_vec_to_gltf(r["a_pos"], ground_z_shift), - "b_pos": _brokkr_vec_to_gltf(r["b_pos"], ground_z_shift), - "pin_dir": _brokkr_dir_to_gltf(r["pin_dir"]), - } - for r in raw["rams"] - ] - scissors_out = [ - { - **s, - "a_pos": _brokkr_vec_to_gltf(s["a_pos"], ground_z_shift), - "b_pos": _brokkr_vec_to_gltf(s["b_pos"], ground_z_shift), - "out_dir": _brokkr_dir_to_gltf(s["out_dir"]), - } - for s in raw["scissors"] - ] - return { - "frame": "gltf (+Y up, +Z forward, +X left, meters)", - "rootOrigin": _brokkr_vec_to_gltf(raw["root"], ground_z_shift), - "dofs": dofs_out, - "rams": rams_out, - "scissors": scissors_out, - "struts": raw["struts"], - } - - -def _finalize_shroud_obj(obj: bpy.types.Object, bevel: float = 0.010) -> bpy.types.Object: - """Apply crisp hard-surface bevel + 36-deg edge split and bake to clean mesh.""" - if bevel > 0.0: - bv = obj.modifiers.new("Shroud_Bevel", "BEVEL") - bv.width = float(bevel) - bv.segments = 1 - bv.limit_method = "ANGLE" - bv.angle_limit = math.radians(30.0) - bv.harden_normals = False - es = obj.modifiers.new("Shroud_EdgeSplit", "EDGE_SPLIT") - es.use_edge_angle = True - es.split_angle = math.radians(36.0) - es.use_edge_sharp = True - depsgraph = bpy.context.evaluated_depsgraph_get() - ev = obj.evaluated_get(depsgraph) - new_mesh = bpy.data.meshes.new_from_object(ev, preserve_all_data_layers=True, depsgraph=depsgraph) - new_mesh.name = f"{obj.name}_mesh" - new_mesh.validate(verbose=False) - obj.modifiers.clear() - obj.data = new_mesh - return obj - - -def _make_loft_shroud( - name: str, - rings: list[list[Vector]], - parent: bpy.types.Object, - mat_name: str = "olive_armor", - bevel: float = 0.010, -) -> bpy.types.Object: - """Loft a closed manifold hard-surface armor shell across multi-station 3D rings in parent local space.""" - assert len(rings) >= 2 and all(len(r) == len(rings[0]) for r in rings) - m = len(rings[0]) - bm = bmesh.new() - bm_rings: list[list[bmesh.types.BMVert]] = [ - [bm.verts.new(tuple(float(c) for c in pt)) for pt in ring] - for ring in rings - ] - bm.verts.ensure_lookup_table() - for i in range(len(bm_rings) - 1): - r0, r1 = bm_rings[i], bm_rings[i + 1] - for j in range(m): - jn = (j + 1) % m - bm.faces.new((r0[j], r0[jn], r1[jn], r1[j])) - bm.faces.new(list(reversed(bm_rings[0]))) - bm.faces.new(bm_rings[-1]) - bmesh.ops.recalc_face_normals(bm, faces=bm.faces) - mesh = bpy.data.meshes.new(name) - bm.to_mesh(mesh) - bm.free() - obj = bpy.data.objects.new(name, mesh) - vc._assign_material(obj, mat_name) - vc._link_object(obj, parent=parent, location=(0.0, 0.0, 0.0), rotation_deg=(0.0, 0.0, 0.0)) - return _finalize_shroud_obj(obj, bevel=bevel) - - -def _make_chamfer_box_shroud( - name: str, - x0: float, - x1: float, - y0: float, - y1: float, - z0: float, - z1: float, - parent: bpy.types.Object, - mat_name: str = "olive_armor", - chamfer: float = 0.035, - top_taper_xy: tuple[float, float] = (1.0, 1.0), - bevel: float = 0.010, -) -> bpy.types.Object: - """Create a tapered octagonal-section armor plate spanning [x0..x1] x [y0..y1] x [z0..z1].""" - cx, cy = 0.5 * (x0 + x1), 0.5 * (y0 + y1) - hx, hy = 0.5 * abs(x1 - x0), 0.5 * abs(y1 - y0) - c = min(chamfer, hx * 0.42, hy * 0.42) - - def _ring(z_val: float, sx: float, sy: float) -> list[Vector]: - rx, ry = hx * sx, hy * sy - cc = min(c, rx * 0.45, ry * 0.45) - pts = [ - (cx - rx + cc, cy - ry), - (cx + rx - cc, cy - ry), - (cx + rx, cy - ry + cc), - (cx + rx, cy + ry - cc), - (cx + rx - cc, cy + ry), - (cx - rx + cc, cy + ry), - (cx - rx, cy + ry - cc), - (cx - rx, cy - ry + cc), - ] - return [Vector((px, py, z_val)) for px, py in pts] - - tx, ty = top_taper_xy - rings = [_ring(z0, 1.0, 1.0), _ring(z1, tx, ty)] - return _make_loft_shroud(name, rings, parent=parent, mat_name=mat_name, bevel=bevel) - - -def _make_arc_fender( - name: str, - center: Vector, - axis: Vector, - fwd_dir: Vector, - up_dir: Vector, - r_in: float, - r_out: float, - half_w: float, - ang_start_deg: float, - ang_end_deg: float, - steps: int, - parent: bpy.types.Object, - mat_name: str = "olive_armor", - end_taper_w: float = 0.84, - bevel: float = 0.010, -) -> bpy.types.Object: - """Sweep a beveled armored fender arch around a cylindrical drum (0 deg = fwd_dir, 90 deg = up_dir).""" - ax = axis.normalized() - fd = fwd_dir.normalized() - ud = up_dir.normalized() - rings: list[list[Vector]] = [] - for k in range(steps + 1): - u = k / steps - ang = math.radians(ang_start_deg + (ang_end_deg - ang_start_deg) * u) - radial = fd * math.cos(ang) + ud * math.sin(ang) - # Slightly pinch width and thickness at the very ends for Brokkr fender silhouette - edge_fac = 1.0 - (1.0 - end_taper_w) * (abs(2.0 * u - 1.0) ** 2) - hw = half_w * edge_fac - hw_outer = hw * 0.86 - r_mid = r_in + (r_out - r_in) * 0.65 - pts = [ - center + radial * r_in - ax * hw, - center + radial * r_in + ax * hw, - center + radial * r_mid + ax * hw, - center + radial * r_out + ax * hw_outer, - center + radial * r_out - ax * hw_outer, - center + radial * r_mid - ax * hw, - ] - rings.append(pts) - return _make_loft_shroud(name, rings, parent=parent, mat_name=mat_name, bevel=bevel) - - -def _obj_bounds_in_ref(obj_names: list[str], ref_obj: bpy.types.Object, z_filter: tuple[float, float] | None = None) -> tuple[Vector, Vector] | None: - """Measure combined world vertices of named objects transformed into ref_obj local space.""" - inv_ref = ref_obj.matrix_world.inverted() - pts: list[Vector] = [] - for nm in obj_names: - o = bpy.data.objects.get(nm) - if o is None or o.type != "MESH" or o.data is None: - continue - mw = o.matrix_world - for v in o.data.vertices: - pw = mw @ v.co - if z_filter is not None and not (z_filter[0] <= pw.z <= z_filter[1]): - continue - pts.append(inv_ref @ pw) - if not pts: - return None - bmin = Vector((min(p.x for p in pts), min(p.y for p in pts), min(p.z for p in pts))) - bmax = Vector((max(p.x for p in pts), max(p.y for p in pts), max(p.z for p in pts))) - return bmin, bmax - - -def _add_kestrel_shrouds() -> list[bpy.types.Object]: - created: list[bpy.types.Object] = [] - torso = bpy.data.objects.get("Torso.pose") - pelvis = bpy.data.objects.get("Pelvis") - if torso is None or pelvis is None: - return created - - # 1. Sloped hooded shoulder pauldrons over exposed ribbed shoulder drums (parented to Torso.pose) - # Linearly tapered stations keep top/flank quads planar for crisp panel shading. - for side, sx in (("L", -1.0), ("R", 1.0)): - stations_spec = [ - # (|x|, y_rear, y_front, z_low_rear, z_low_front, z_top_rear, z_top_front) - (1.20, 0.00, 1.24, 1.54, 1.54, 2.26, 2.18), - (1.52, 0.02, 1.22, 1.36, 1.42, 2.18, 2.10), - (1.86, 0.04, 1.19, 1.22, 1.30, 2.07, 2.00), - (2.16, 0.06, 1.16, 1.16, 1.24, 1.92, 1.86), - (2.30, 0.10, 1.10, 1.24, 1.30, 1.74, 1.69), - ] - rings: list[list[Vector]] = [] - for ax, yr, yf, zlr, zlf, ztr, ztf in stations_spec: - px = sx * ax - yc = 0.5 * (yr + yf) - pts = [ - Vector((px, yr, zlr)), - Vector((px, yr + 0.14, zlr)), - Vector((px, yr + 0.16, ztr - 0.18)), - Vector((px, yc, min(ztr, ztf) - 0.12)), - Vector((px, yf - 0.16, ztf - 0.18)), - Vector((px, yf - 0.14, zlf)), - Vector((px, yf, zlf)), - Vector((px, yf - 0.08, ztf)), - Vector((px, yc, max(ztr, ztf) + 0.04)), - Vector((px, yr + 0.08, ztr)), - ] - if sx < 0: - pts = list(reversed(pts)) - rings.append(pts) - created.append(_make_loft_shroud(f"Shroud.Kestrel.Pauldron{side}", rings, torso, "olive_armor", bevel=0.012)) - - # Gunmetal mounting flange bracket bridging inner shoulder cowl to drum core - created.append( - _make_arc_fender( - f"Shroud.Kestrel.PauldronFlange{side}", - center=Vector((sx * 1.38, 0.65, 1.50)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.49, - r_out=0.56, - half_w=0.10, - ang_start_deg=15.0, - ang_end_deg=165.0, - steps=6, - parent=torso, - mat_name="gunmetal", - end_taper_w=0.92, - bevel=0.008, - ) - ) - - # 2. Compact sloped hip-fender guards + outer drum caps over bare hip cylinders (parented to Pelvis) - created.append( - _make_arc_fender( - f"Shroud.Kestrel.HipFender{side}", - center=Vector((sx * 1.28, 0.0, 6.20)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.515, - r_out=0.60, - half_w=0.38, - ang_start_deg=-10.0, - ang_end_deg=158.0, - steps=8, - parent=pelvis, - mat_name="olive_armor", - end_taper_w=0.80, - bevel=0.010, - ) - ) - leg_thigh = bpy.data.objects.get(f"Leg{side}.Thigh") or pelvis - leg_shin = bpy.data.objects.get(f"Leg{side}.Shin") or pelvis - - # Outer hip drum shield cap (rotates with Leg{side}.Thigh) - hip_cap_rings: list[list[Vector]] = [] - for x_off, r in ((1.46, 0.36), (1.58, 0.36), (1.64, 0.25)): - px = sx * x_off - pts = [ - Vector((px, r * math.cos(math.radians(a)), 6.20 + r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if sx < 0: - pts = list(reversed(pts)) - hip_cap_rings.append(pts) - hip_cap = _make_loft_shroud(f"Shroud.Kestrel.HipCap{side}", hip_cap_rings, pelvis, "olive_armor", bevel=0.008) - if leg_thigh != pelvis: - bpy.context.view_layer.update() - _reparent_keep_world(hip_cap, leg_thigh) - created.append(hip_cap) - created.append( - _make_arc_fender( - f"Shroud.Kestrel.HipFlange{side}", - center=Vector((sx * 1.02, 0.0, 6.20)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.49, - r_out=0.54, - half_w=0.07, - ang_start_deg=-5.0, - ang_end_deg=162.0, - steps=7, - parent=pelvis, - mat_name="gunmetal", - end_taper_w=0.95, - bevel=0.006, - ) - ) - - # 4. Faceted knee caps + outer cheek shields over bare black knee drums (parented to Leg{side}.Shin) - knee_bounds = _obj_bounds_in_ref( - [f"LegJoints{side}Knee.gunmetal", f"LegJoints{side}.gunmetal"], - pelvis, - z_filter=(3.0, 4.4), - ) - if knee_bounds is not None: - kmin, kmax = knee_bounds - kcx = 0.5 * (kmin.x + kmax.x) - kcy = 0.5 * (kmin.y + kmax.y) - kcz = 0.5 * (kmin.z + kmax.z) - knee_shrouds: list[bpy.types.Object] = [] - knee_shrouds.append( - _make_arc_fender( - f"Shroud.Kestrel.KneeCap{side}", - center=Vector((kcx, kcy, kcz)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.37, - r_out=0.465, - half_w=0.37, - ang_start_deg=-42.0, - ang_end_deg=72.0, - steps=6, - parent=pelvis, - mat_name="olive_armor", - end_taper_w=0.78, - bevel=0.010, - ) - ) - knee_shrouds.append( - _make_chamfer_box_shroud( - f"Shroud.Kestrel.KneeCapFront{side}", - kcx - 0.25, - kcx + 0.25, - kcy + 0.36, - kcy + 0.49, - kcz - 0.24, - kcz + 0.28, - parent=pelvis, - mat_name="olive_armor", - chamfer=0.06, - top_taper_xy=(0.86, 0.85), - bevel=0.009, - ) - ) - knee_side_rings: list[list[Vector]] = [] - for x_off, r in ((0.28, 0.28), (0.37, 0.28), (0.42, 0.19)): - px = kcx + sx * x_off - pts = [ - Vector((px, kcy + r * math.cos(math.radians(a)), kcz + r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if sx < 0: - pts = list(reversed(pts)) - knee_side_rings.append(pts) - knee_shrouds.append(_make_loft_shroud(f"Shroud.Kestrel.KneeCheek{side}", knee_side_rings, pelvis, "olive_armor", bevel=0.008)) - if leg_shin != pelvis: - bpy.context.view_layer.update() - for ks in knee_shrouds: - _reparent_keep_world(ks, leg_shin) - created.extend(knee_shrouds) - - # 5. Armored calf/shin shrouds wrapping rear twin ankle hydraulic pistons (parented to Leg{side}.Shin) - ram_objs = [f"Ankle{side}.root.machine.ram", f"Ankle{side}.root.steel.ram", f"Ankle{side}.root.steel.eye"] - top_b = _obj_bounds_in_ref(ram_objs, pelvis, z_filter=(2.05, 2.75)) - bot_b = _obj_bounds_in_ref(ram_objs, pelvis, z_filter=(0.95, 1.65)) - if top_b is not None and bot_b is not None: - t_cx = 0.5 * (top_b[0].x + top_b[1].x) - t_cy = 0.5 * (top_b[0].y + top_b[1].y) - b_cx = 0.5 * (bot_b[0].x + bot_b[1].x) - b_cy = 0.5 * (bot_b[0].y + bot_b[1].y) - z_bot, z_top = 1.16, 2.74 - # Interpolate exact piston spine centerline from z_bot..z_top and wrap a U-channel rear/flank greave - greave_rings: list[list[Vector]] = [] - for frac, hw, y_back, y_front in ( - (0.00, 0.145, -0.145, 0.13), - (0.22, 0.165, -0.165, 0.17), - (0.75, 0.180, -0.175, 0.22), - (1.00, 0.160, -0.145, 0.19), - ): - zz = z_bot + (z_top - z_bot) * frac - # top_b centroid is ~z=2.40, bot_b centroid is ~z=1.30 - t_u = (zz - 1.30) / 1.10 - px = b_cx + (t_cx - b_cx) * t_u - py = b_cy + (t_cy - b_cy) * t_u - c_in = hw * 0.58 - pts = [ - Vector((px - hw, py + y_front, zz)), - Vector((px - c_in, py + y_front, zz)), - Vector((px - c_in, py + y_back + 0.08, zz)), - Vector((px + c_in, py + y_back + 0.08, zz)), - Vector((px + c_in, py + y_front, zz)), - Vector((px + hw, py + y_front, zz)), - Vector((px + hw, py + y_back + 0.05, zz)), - Vector((px + hw * 0.62, py + y_back, zz)), - Vector((px - hw * 0.62, py + y_back, zz)), - Vector((px - hw, py + y_back + 0.05, zz)), - ] - greave_rings.append(pts) - shin_shrouds: list[bpy.types.Object] = [] - shin_shrouds.append(_make_loft_shroud(f"Shroud.Kestrel.AnkleGreave{side}", greave_rings, pelvis, "olive_armor", bevel=0.010)) - for idx_band, zb in enumerate((1.38, 2.38)): - t_u = (zb - 1.30) / 1.10 - px = b_cx + (t_cx - b_cx) * t_u - py = b_cy + (t_cy - b_cy) * t_u - shin_shrouds.append( - _make_chamfer_box_shroud( - f"Shroud.Kestrel.AnkleBand{side}{idx_band}", - px - 0.18, - px + 0.18, - py - 0.175, - py + 0.16, - zb - 0.045, - zb + 0.045, - parent=pelvis, - mat_name="gunmetal", - chamfer=0.03, - bevel=0.006, - ) - ) - if leg_shin != pelvis: - bpy.context.view_layer.update() - for ss in shin_shrouds: - _reparent_keep_world(ss, leg_shin) - created.extend(shin_shrouds) - - # 3. Segmented armored spine shroud over exposed rear waist hydraulic rods (parented to Torso.pose) - # In Torso.pose local space (offset 0, -0.15, 6.75), neck rings step forward in Y as Z rises from -0.05 to +0.88 - for idx_seg, (z0, z1, y_back, hx) in enumerate(( - (-0.04, 0.27, -0.66, 0.58), - (0.24, 0.56, -0.58, 0.54), - (0.53, 0.86, -0.49, 0.49), - )): - created.append( - _make_chamfer_box_shroud( - f"Shroud.Kestrel.WaistSpine{idx_seg}", - -hx, - hx, - y_back, - y_back + 0.34, - z0, - z1, - parent=torso, - mat_name="olive_armor", - chamfer=0.07, - top_taper_xy=(0.92, 0.90), - bevel=0.010, - ) - ) - created.append( - _make_chamfer_box_shroud( - "Shroud.Kestrel.WaistSpineRib", - -0.16, - 0.16, - -0.69, - -0.42, - 0.00, - 0.82, - parent=torso, - mat_name="gunmetal", - chamfer=0.03, - top_taper_xy=(0.88, 0.85), - bevel=0.008, - ) - ) - return created - - -def _add_spectre_shrouds() -> list[bpy.types.Object]: - created: list[bpy.types.Object] = [] - - # 1. Angled shin/hock hydraulic ram deflector greaves (parented to LegL.Cannon / LegR.Cannon) - for leg in ("LegL", "LegR"): - cannon = bpy.data.objects.get(f"{leg}.Cannon") - if cannon is None: - continue - inv_can = cannon.matrix_world.inverted() - ram_objs = [bpy.data.objects.get(f"{leg}.Hock.ram.barrel"), bpy.data.objects.get(f"{leg}.Hock.ram.rod")] - for side_tag, x_sign in (("Out", -1.0 if leg == "LegL" else 1.0), ("In", 1.0 if leg == "LegL" else -1.0)): - pts: list[Vector] = [] - for ro in ram_objs: - if ro is None or ro.type != "MESH" or ro.data is None: - continue - mw = ro.matrix_world - for v in ro.data.vertices: - pl = inv_can @ (mw @ v.co) - if pl.x * x_sign > 0.10: - pts.append(pl) - if not pts: - continue - xmin = min(p.x for p in pts) - xmax = max(p.x for p in pts) - ymax = max(p.y for p in pts) - ymin = min(p.y for p in pts) - # Deflector greave wrapping the front (+Y) and outer/side face of each exposed silver ram - x_in = (xmin - 0.02) if x_sign > 0 else (xmin - 0.055) - x_out = (xmax + 0.055) if x_sign > 0 else (xmax + 0.02) - y_f = ymax + 0.055 - y_b = max(ymin - 0.02, ymax - 0.24) - z_top = 0.28 - z_bot = 1.46 - # Loft from top bevel cap -> mid shield -> lower tapered deflector lip - rings: list[list[Vector]] = [] - for zz, x_pad, y_pad in ( - (z_top, -0.02, -0.03), - (z_top + 0.14, 0.0, 0.0), - (z_bot - 0.18, 0.0, 0.0), - (z_bot, -0.025, -0.04), - ): - xa, xb = x_in - x_pad * x_sign, x_out + x_pad * x_sign - if xa > xb: - xa, xb = xb, xa - yf = y_f + y_pad - yb = y_b - xm = 0.5 * (xa + xb) - ym = 0.5 * (yb + yf) - rings.append([ - Vector((xa, yb, zz)), - Vector((xb, yb, zz)), - Vector((xb, ym + 0.03, zz)), - Vector((xm + 0.04 * (xb - xa), yf, zz)), - Vector((xm - 0.04 * (xb - xa), yf, zz)), - Vector((xa, ym + 0.03, zz)), - ]) - created.append(_make_loft_shroud(f"Shroud.Spectre.{leg}RamGuard{side_tag}", rings, cannon, "olive_armor", bevel=0.009)) - # Gunmetal mounting bracket tying greave into Leg*.Shank - bx0 = min(x_in, x_out) - (0.06 if x_sign > 0 else 0.0) - bx1 = max(x_in, x_out) + (0.06 if x_sign < 0 else 0.0) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Spectre.{leg}RamBracket{side_tag}", - bx0, - bx1, - y_b - 0.08, - y_b + 0.04, - 0.55, - 0.78, - parent=cannon, - mat_name="gunmetal", - chamfer=0.025, - bevel=0.006, - ) - ) - - # 2. Compact armored waist collar / hip skirt around vertical waist spindle (parented to Waist) - waist = bpy.data.objects.get("Waist") - if waist is not None: - # Waist wloc=(0,0,5.30), WaistLug extends z_local=-0.35..0.14, WaistColumn z_local=0..0.81 - skirt_rings: list[list[Vector]] = [] - for zz, sx, sy in ( - (-0.28, 0.72, 0.62), - (-0.04, 0.74, 0.64), - (0.24, 0.64, 0.56), - (0.42, 0.55, 0.49), - ): - c = 0.16 - skirt_rings.append([ - Vector((-sx + c, -sy, zz)), - Vector((sx - c, -sy, zz)), - Vector((sx, -sy + c, zz)), - Vector((sx, sy - c, zz)), - Vector((sx - c, sy, zz)), - Vector((-sx + c, sy, zz)), - Vector((-sx, sy - c, zz)), - Vector((-sx, -sy + c, zz)), - ]) - created.append(_make_loft_shroud("Shroud.Spectre.WaistSkirt", skirt_rings, waist, "olive_armor", bevel=0.010)) - created.append( - _make_chamfer_box_shroud( - "Shroud.Spectre.WaistCollar", - -0.56, - 0.56, - -0.51, - 0.51, - 0.32, - 0.48, - parent=waist, - mat_name="gunmetal", - chamfer=0.10, - bevel=0.008, - ) - ) - - # 3. Outer shoulder-hinge axle caps (parented to ShoulderL / ShoulderR) - for side, sx in (("L", -1.0), ("R", 1.0)): - sh = bpy.data.objects.get(f"Shoulder{side}") - if sh is None: - continue - cap_rings: list[list[Vector]] = [] - for x_off, r in ((0.24, 0.305), (0.44, 0.305), (0.52, 0.225)): - px = sx * x_off - pts = [ - Vector((px, r * math.cos(math.radians(a)), r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if sx < 0: - pts = list(reversed(pts)) - cap_rings.append(pts) - created.append(_make_loft_shroud(f"Shroud.Spectre.ShoulderCap{side}", cap_rings, sh, "olive_armor", bevel=0.008)) - - return created - - -def _add_raptor_shrouds() -> list[bpy.types.Object]: - created: list[bpy.types.Object] = [] - pelvis = bpy.data.objects.get("Pelvis") - - for side, sx in (("L", -1.0), ("R", 1.0)): - # 1. Angled olive hip-fender cowl over protruding black hip drum (parented to Pelvis) - if pelvis is not None: - created.append( - _make_arc_fender( - f"Shroud.Raptor.HipFender{side}", - center=Vector((sx * 1.44, 0.0, 0.0)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.535, - r_out=0.615, - half_w=0.45, - ang_start_deg=18.0, - ang_end_deg=165.0, - steps=7, - parent=pelvis, - mat_name="olive_armor", - end_taper_w=0.82, - bevel=0.010, - ) - ) - created.append( - _make_arc_fender( - f"Shroud.Raptor.HipFlange{side}", - center=Vector((sx * 1.02, 0.0, 0.0)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.50, - r_out=0.555, - half_w=0.07, - ang_start_deg=15.0, - ang_end_deg=168.0, - steps=6, - parent=pelvis, - mat_name="gunmetal", - end_taper_w=0.95, - bevel=0.006, - ) - ) - - # 2. Outer hip drum cap + knee-cap shield + rear thigh actuator guard (parented to Leg*.Thigh) - thigh = bpy.data.objects.get(f"Leg{side}.Thigh") - if thigh is not None: - # In LegL.Thigh local space +X is outer left; in LegR.Thigh local space -X is outer right - x_out_sign = -sx - hip_cap_rings: list[list[Vector]] = [] - for x_off, r in ((0.48, 0.35), (0.60, 0.35), (0.66, 0.25)): - px = x_out_sign * x_off - pts = [ - Vector((px, r * math.cos(math.radians(a)), r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if x_out_sign < 0: - pts = list(reversed(pts)) - hip_cap_rings.append(pts) - created.append(_make_loft_shroud(f"Shroud.Raptor.HipCap{side}", hip_cap_rings, thigh, "olive_armor", bevel=0.008)) - - # KneeBearing*.gunmetal sits at z_local=[1.52..2.28], y_local=[-0.38..+0.38] (center 0.0, 1.90) - created.append( - _make_arc_fender( - f"Shroud.Raptor.KneeCap{side}", - center=Vector((x_out_sign * 0.06, 0.0, 1.90)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, -1.0)), - r_in=0.385, - r_out=0.475, - half_w=0.46, - ang_start_deg=-62.0, - ang_end_deg=62.0, - steps=7, - parent=thigh, - mat_name="olive_armor", - end_taper_w=0.78, - bevel=0.010, - ) - ) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.KneeCapFront{side}", - x_out_sign * 0.06 - 0.30, - x_out_sign * 0.06 + 0.30, - 0.37, - 0.50, - 1.64, - 2.16, - parent=thigh, - mat_name="olive_armor", - chamfer=0.06, - top_taper_xy=(0.86, 0.85), - bevel=0.009, - ) - ) - # Outer circular knee-drum cap - knee_cap_rings: list[list[Vector]] = [] - for x_off, r in ((0.46, 0.28), (0.58, 0.28), (0.64, 0.19)): - px = x_out_sign * x_off - pts = [ - Vector((px, r * math.cos(math.radians(a)), 1.90 + r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if x_out_sign < 0: - pts = list(reversed(pts)) - knee_cap_rings.append(pts) - created.append(_make_loft_shroud(f"Shroud.Raptor.KneeOuterCap{side}", knee_cap_rings, thigh, "olive_armor", bevel=0.008)) - - # Rear thigh actuator guard over Actuators*.steel (y_local=[-0.62..-0.42], z_local=[1.14..1.71]) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.ThighRam{side}", - -0.37, - 0.37, - -0.66, - -0.36, - 1.08, - 1.72, - parent=thigh, - mat_name="olive_armor", - chamfer=0.06, - top_taper_xy=(0.90, 0.88), - bevel=0.009, - ) - ) - - # 3. Shin upper rod shroud (parented to Leg*.Shin) - shin = bpy.data.objects.get(f"Leg{side}.Shin") - if shin is not None: - # HydraulicsShin*.gunmetal/steel: x=[-0.23..0.23], y=[0.46..0.66], z=[0.18..1.48] - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.ShinRod{side}", - -0.27, - 0.27, - 0.36, - 0.71, - 0.20, - 1.32, - parent=shin, - mat_name="olive_armor", - chamfer=0.06, - top_taper_xy=(0.82, 0.80), - bevel=0.009, - ) - ) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.ShinRodCollar{side}", - -0.29, - 0.29, - 0.34, - 0.72, - 0.82, - 0.98, - parent=shin, - mat_name="gunmetal", - chamfer=0.04, - bevel=0.006, - ) - ) - - # 4. Protruding rear calf hydraulic rod shroud (parented to Leg*.Cannon) - cannon = bpy.data.objects.get(f"Leg{side}.Cannon") - if cannon is not None: - # Hydraulics*.gunmetal/steel: x=[-0.23..0.23], y=[-0.57..-0.37], z=[0.18..1.61] - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.CalfRod{side}", - -0.28, - 0.28, - -0.63, - -0.27, - 0.20, - 1.40, - parent=cannon, - mat_name="olive_armor", - chamfer=0.07, - top_taper_xy=(0.80, 0.78), - bevel=0.009, - ) - ) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Raptor.CalfRodCollar{side}", - -0.30, - 0.30, - -0.64, - -0.26, - 0.88, - 1.04, - parent=cannon, - mat_name="gunmetal", - chamfer=0.04, - bevel=0.006, - ) - ) - - return created - - -def _add_manticore_shrouds() -> list[bpy.types.Object]: - created: list[bpy.types.Object] = [] - for leg in ("LegBL", "LegBR"): - # In LegBL local space -X is outward-left; in LegBR local space +X is outward-right - x_out_sign = -1.0 if leg == "LegBL" else 1.0 - - # 1. Rear hip armor cap over bare gunmetal coxa drum (parented to LegB*.Coxa) - coxa = bpy.data.objects.get(f"{leg}.Coxa") - if coxa is not None: - # coxa.dress.machine: x=[-0.446..0.446], y=[-0.30..0.30], z=[0.16..0.76]; +Y_local is outer-rear - created.append( - _make_chamfer_box_shroud( - f"Shroud.Manticore.{leg}HipCap", - -0.48, - 0.48, - -0.12, - 0.40, - -0.02, - 0.54, - parent=coxa, - mat_name="olive_armor", - chamfer=0.08, - top_taper_xy=(0.90, 0.86), - bevel=0.010, - ) - ) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Manticore.{leg}HipFlange", - -0.50, - 0.50, - -0.14, - 0.28, - -0.04, - 0.12, - parent=coxa, - mat_name="gunmetal", - chamfer=0.06, - bevel=0.006, - ) - ) - - # 2. Rear knee armor cap arching over bare gunmetal knee drum + outer drum cap (parented to LegB*.S1) - s1 = bpy.data.objects.get(f"{leg}.S1") - if s1 is not None: - # knee.dress.machine: x=[-0.44..0.44], y=[-0.34..0.34], z=[1.242..1.922]; femur.plate ends at z=1.25, y=[0.30..0.42] - created.append( - _make_arc_fender( - f"Shroud.Manticore.{leg}KneeCap", - center=Vector((0.0, 0.0, 1.58)), - axis=Vector((1.0, 0.0, 0.0)), - fwd_dir=Vector((0.0, 1.0, 0.0)), - up_dir=Vector((0.0, 0.0, 1.0)), - r_in=0.345, - r_out=0.445, - half_w=0.48, - ang_start_deg=-38.0, - ang_end_deg=132.0, - steps=8, - parent=s1, - mat_name="olive_armor", - end_taper_w=0.84, - bevel=0.010, - ) - ) - created.append( - _make_chamfer_box_shroud( - f"Shroud.Manticore.{leg}KneeCapTop", - -0.34, - 0.34, - 0.24, - 0.45, - 1.26, - 1.80, - parent=s1, - mat_name="olive_armor", - chamfer=0.06, - top_taper_xy=(0.88, 0.85), - bevel=0.009, - ) - ) - knee_side_rings: list[list[Vector]] = [] - for x_off, r in ((0.38, 0.28), (0.48, 0.28), (0.53, 0.19)): - px = x_out_sign * x_off - pts = [ - Vector((px, r * math.cos(math.radians(a)), 1.58 + r * math.sin(math.radians(a)))) - for a in range(0, 360, 45) - ] - if x_out_sign < 0: - pts = list(reversed(pts)) - knee_side_rings.append(pts) - created.append(_make_loft_shroud(f"Shroud.Manticore.{leg}KneeSideCap", knee_side_rings, s1, "olive_armor", bevel=0.008)) - - return created - - -def _add_paladin_shrouds() -> list[bpy.types.Object]: - created: list[bpy.types.Object] = [] - arm_r = bpy.data.objects.get("ArmR.Lower") - if arm_r is None: - return created - - # ArmR.Lower local box is [-0.297, -0.25, -0.144]..[0.297, 0.25, 1.55]. - # hp.weapon.arm_r sits on -X_local face at (-0.311, -0.124, 0.697) with 0.72x0.72 footprint -> keep -X_local z=[0.26..1.16] clear! - # Inner (+X), Front (+Y), and Rear (-Y) forearm plates: - created.append( - _make_chamfer_box_shroud( - "Shroud.Paladin.ArmRInner", - 0.28, - 0.42, - -0.27, - 0.27, - 0.14, - 1.44, - parent=arm_r, - mat_name="olive_armor", - chamfer=0.04, - top_taper_xy=(0.90, 0.88), - bevel=0.009, - ) - ) - created.append( - _make_chamfer_box_shroud( - "Shroud.Paladin.ArmRFront", - -0.31, - 0.36, - 0.23, - 0.39, - 0.14, - 1.44, - parent=arm_r, - mat_name="olive_armor", - chamfer=0.05, - top_taper_xy=(0.86, 0.86), - bevel=0.009, - ) - ) - created.append( - _make_chamfer_box_shroud( - "Shroud.Paladin.ArmRRear", - -0.31, - 0.36, - -0.39, - -0.23, - 0.14, - 1.44, - parent=arm_r, - mat_name="olive_armor", - chamfer=0.05, - top_taper_xy=(0.86, 0.86), - bevel=0.009, - ) - ) - # Upper elbow cuff & lower wrist cuff collar (staying clear of hp.weapon.arm_r around z=0.26..1.16 on -X) - created.append( - _make_chamfer_box_shroud( - "Shroud.Paladin.ArmRElbowCuff", - -0.38, - 0.38, - -0.33, - 0.33, - -0.02, - 0.22, - parent=arm_r, - mat_name="olive_armor", - chamfer=0.06, - bevel=0.009, - ) - ) - created.append( - _make_chamfer_box_shroud( - "Shroud.Paladin.ArmRWristBand", - -0.34, - 0.36, - -0.30, - 0.30, - 1.36, - 1.50, - parent=arm_r, - mat_name="gunmetal", - chamfer=0.04, - bevel=0.006, - ) - ) - return created - - -def _add_actuator_armor_shrouds(mech_id: str) -> list[bpy.types.Object]: - builders = { - "kestrel": _add_kestrel_shrouds, - "spectre": _add_spectre_shrouds, - "raptor": _add_raptor_shrouds, - "manticore": _add_manticore_shrouds, - "paladin": _add_paladin_shrouds, - } - fn = builders.get(mech_id) - if fn is None: - return [] - return fn() - - -def retrofit_mech(spec: MechRetrofitSpec) -> dict[str, Any]: - bpy.ops.wm.open_mainfile(filepath=str(spec.blend_path)) - scene = bpy.context.scene - scene.unit_settings.system = "METRIC" - scene.unit_settings.scale_length = 1.0 - - # 1. Apply SOLIDIFY/BOOLEAN/BEVEL BEFORE stripping hidden boolean cutters - if not spec.armature_name: - _apply_existing_modifiers() - - # 2. Strip studio rig/backdrop & built-in weapons - stripped = _strip_scene_objects(spec) - - if not spec.armature_name: - _convert_surviving_curves() - - # Square Breaker-3 torso yaw (-5 deg walk offset -> 0 deg neutral symmetric forward) - if spec.mech_id == "breaker" and "Core" in bpy.data.objects: - bpy.data.objects["Core"].rotation_euler.z = 0.0 - bpy.context.view_layer.update() - - raw_blend_mechs = ( - _extract_mechanisms_from_blend_raw("Pelvis") - if spec.model_json_path is None and spec.mech_id == "breaker" - else None - ) - - # 3. For rigged meshes, strip weapon vertex groups cleanly; strip protruding weapon islands - stripped_vgs: dict[str, int] = {} - if spec.strip_vertex_groups: - for obj in bpy.data.objects: - if obj.type == "MESH": - cnt = _strip_vertex_groups_from_mesh(obj, spec.strip_vertex_groups) - if cnt > 0: - stripped_vgs[obj.name] = cnt - if spec.strip_islands: - _strip_mesh_islands(spec.strip_islands) - if spec.mech_id == "kestrel": - _assemble_kestrel_hierarchy() - - # 4. Normalize procedural materials -> clean glTF PBR - _normalize_materials_for_gltf() - - # 5. Collect surviving mech meshes & decimate to game-ready LOD budget - mech_meshes = [o for o in bpy.data.objects if o.type == "MESH"] - raw_tris, lod_tris = _decimate_mech_meshes(mech_meshes, spec.target_mech_tris) - - # 5b. Add Brokkr-style olive-drab armor shrouds over exposed joints/actuators - shroud_objs = _add_actuator_armor_shrouds(spec.mech_id) - if shroud_objs: - shroud_tris = sum(_mesh_tri_count(o) for o in shroud_objs) - lod_tris += shroud_tris - print(f" [shroud] {spec.mech_id}: +{len(shroud_objs)} shrouds (+{shroud_tris} tris)") - - # 6. Parent everything cleanly under a root Empty (in raw Brokkr orientation first) - chassis_root = vc.make_empty(spec.mech_id, parent=None, location=(0.0, 0.0, 0.0)) - for obj in list(bpy.data.objects): - if obj == chassis_root or obj.parent is not None: - continue - mw = obj.matrix_world.copy() - obj.parent = chassis_root - obj.matrix_parent_inverse = Matrix.Identity(4) - obj.matrix_local = mw - bpy.context.view_layer.update() - - # 7. Build hull BVH over final LOD meshes, snap & recess every hardpoint bay, tag joints - full_bvh = _build_hull_bvh([o for o in bpy.data.objects if o.type == "MESH"]) - assert full_bvh is not None, f"{spec.mech_id}: empty hull BVH" - bvh_cache: dict[str, BVHTree] = {} - for hp in spec.hardpoints: - _attach_hardpoint_world(hp, chassis_root, full_bvh, bvh_cache) - joints_manifest = _apply_joint_tags(spec) - - # 8. Rotate chassis_root 180 deg around Z so Brokkr +Y forward -> RTD -Y forward (+Z glTF), -X left -> +X left - chassis_root.rotation_mode = "XYZ" - chassis_root.rotation_euler = Euler((0.0, 0.0, math.pi), "XYZ") - bpy.context.view_layer.update() - - # 9. Export GLB (grounding minZ=0.0), write manifest.json, render 4-panel preview - glb_path = vc.ASSETS_VEHICLES_DIR / spec.mech_id / f"{spec.mech_id}.glb" - manifest_path = vc.ASSETS_VEHICLES_DIR / spec.mech_id / "manifest.json" - preview_path = vc.PREVIEWS_DIR / f"{spec.mech_id}_preview.png" - - z_shift_before = chassis_root.location.z - tri_count, bounds = vc.export_vehicle_glb(glb_path, root=chassis_root) - ground_z_shift = chassis_root.location.z - z_shift_before - - if spec.model_json_path is not None: - mechanisms = _extract_mechanisms(spec.model_json_path, ground_z_shift=ground_z_shift) - elif raw_blend_mechs is not None: - mechanisms = _finalize_mechanisms_gltf(raw_blend_mechs, ground_z_shift=ground_z_shift) - else: - mechanisms = None - - hp_manifest = [ - { - "id": hp.hp_id, - "kind": hp.kind, - "x": hp.x, - "y": hp.y, - "w": hp.w, - "h": hp.h, - "modelNodeId": hp.hp_id, - } - for hp in spec.hardpoints - ] - - vc.write_manifest( - manifest_path, - vehicle_id=spec.mech_id, - name=spec.name, - vehicle_class=spec.vehicle_class, - plane=spec.plane, - grid_width=spec.grid_width, - grid_height=spec.grid_height, - mask=spec.mask, - hardpoints=hp_manifest, - joints=joints_manifest, - bounds=bounds, - tri_count=tri_count, - mechanisms=mechanisms, - ) - - vc.render_four_panel_preview(preview_path) - glb_bytes = glb_path.stat().st_size - summary = { - "id": spec.mech_id, - "raw_tris_after_strip": raw_tris, - "lod_mech_tris": lod_tris, - "exported_total_tris": tri_count, - "glb_bytes": glb_bytes, - "bounds": bounds, - "stripped_count": len(stripped), - "stripped_vgs": stripped_vgs, - } - print(f"[{spec.mech_id}] {json.dumps(summary)}") - return summary - - -def main() -> int: - argv = sys.argv[sys.argv.index("--") + 1 :] if "--" in sys.argv else [] - parser = argparse.ArgumentParser(description="Retrofit Brokkr mechs for Rust to Dust.") - parser.add_argument("--mech", choices=sorted(SPECS.keys()), help="Single mech ID to retrofit.") - parser.add_argument("--all", action="store_true", help="Retrofit all configured mechs sequentially.") - args = parser.parse_args(argv) - - targets = list(SPECS.keys()) if (args.all or not args.mech) else [args.mech] - for mid in targets: - retrofit_mech(SPECS[mid]) - return 0 - - -if __name__ == "__main__": - sys.exit(main()) diff --git a/tools/vehicles/vehicle_common.py b/tools/vehicles/vehicle_common.py deleted file mode 100644 index 0077681..0000000 --- a/tools/vehicles/vehicle_common.py +++ /dev/null @@ -1,1160 +0,0 @@ -"""Shared Brokkr-powered vehicle construction, hardpoint sockets, joint tagging, -GLB export, manifest emission, and 4-panel preview rendering for Rust to Dust. - -All Blender geometry is authored in Blender right-handed Z-up coordinates with: - -Y = vehicle forward (+Z in exported glTF) - +Y = vehicle rear (-Z in exported glTF) - +Z = vehicle up (+Y in exported glTF, grounded at Z = 0) - +X = vehicle left (+X in exported glTF) - -X = vehicle right (-X in exported glTF) - -Export uses bpy.ops.export_scene.gltf(..., export_yup=True, export_extras=True) -so Godot receives +Z forward, +Y up, minY ~ 0.0, and rtd.* custom properties. -""" -from __future__ import annotations - -import json -import math -import sys -from pathlib import Path -from typing import Any, Callable, Sequence - -import bmesh -import bpy -import numpy as np -from mathutils import Euler, Matrix, Vector - -BROKKR_BLENDER_DIR = Path(r"F:\Projects\Brokkr\surfaces\blender") -if str(BROKKR_BLENDER_DIR) not in sys.path: - sys.path.insert(0, str(BROKKR_BLENDER_DIR)) - -import brokkr_mesh_polish # noqa: E402, F401 -import brokkr_kitbash # noqa: E402 -from brokkr_kitbash import core, plate, ram # noqa: E402, F401 - -REPO_ROOT = Path(__file__).resolve().parents[2] -ASSETS_VEHICLES_DIR = REPO_ROOT / "assets" / "vehicles" -ASSETS_GEAR_DIR = REPO_ROOT / "assets" / "gear" -PREVIEWS_DIR = Path(__file__).resolve().parent / "previews" - -# Shared industrial PBR palette (sRGB hex -> linear PBR base color) -PALETTE: dict[str, dict[str, Any]] = { - "olive_armor": {"hex": "#4e5740", "metallic": 0.28, "roughness": 0.58}, - "gunmetal": {"hex": "#2c302e", "metallic": 0.78, "roughness": 0.40}, - "rubber_dark": {"hex": "#191a19", "metallic": 0.04, "roughness": 0.86}, - "copper_rad": {"hex": "#9c5a34", "metallic": 0.86, "roughness": 0.34}, - "socket_bay": {"hex": "#151816", "metallic": 0.55, "roughness": 0.72}, - "signal_orange": {"hex": "#d96c27", "metallic": 0.18, "roughness": 0.44}, - "smoked_glass": {"hex": "#1e2a2d", "metallic": 0.12, "roughness": 0.10, "alpha": 0.82}, - # Imperial Tourist & salvage gear accents - "imperial_gold": {"hex": "#d4a634", "metallic": 0.90, "roughness": 0.26}, - "imperial_ivory": {"hex": "#ebe4d1", "metallic": 0.16, "roughness": 0.38}, - "cyan_coil": {"hex": "#38c9d8", "metallic": 0.20, "roughness": 0.25, "emission": "#38c9d8", "emission_strength": 1.8}, -} - -_KITS_CACHE: dict[str, dict] = {} - - -def srgb_hex_to_linear(hex_str: str) -> tuple[float, float, float, float]: - h = hex_str.lstrip("#") - vals = [int(h[i : i + 2], 16) / 255.0 for i in (0, 2, 4)] - - def to_lin(c: float) -> float: - return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 - - return (to_lin(vals[0]), to_lin(vals[1]), to_lin(vals[2]), 1.0) - - -def reset_scene() -> bpy.types.Scene: - """Clear all objects, meshes, materials, cameras, lights, and orphan data.""" - bpy.ops.wm.read_factory_settings(use_empty=True) - scene = bpy.context.scene - scene.unit_settings.system = "METRIC" - scene.unit_settings.scale_length = 1.0 - return scene - - -def ensure_materials() -> dict[str, bpy.types.Material]: - """Create shared industrial PBR materials cleanly on Principled BSDF.""" - mats: dict[str, bpy.types.Material] = {} - for name, spec in PALETTE.items(): - mat = bpy.data.materials.get(name) - if mat is None: - mat = bpy.data.materials.new(name=name) - mat.use_nodes = True - nt = mat.node_tree - nt.nodes.clear() - out = nt.nodes.new("ShaderNodeOutputMaterial") - bsdf = nt.nodes.new("ShaderNodeBsdfPrincipled") - nt.links.new(bsdf.outputs["BSDF"], out.inputs["Surface"]) - bsdf.inputs["Base Color"].default_value = srgb_hex_to_linear(spec["hex"]) - bsdf.inputs["Metallic"].default_value = float(spec["metallic"]) - bsdf.inputs["Roughness"].default_value = float(spec["roughness"]) - if "alpha" in spec: - bsdf.inputs["Alpha"].default_value = float(spec["alpha"]) - mat.blend_method = "BLEND" if hasattr(mat, "blend_method") else "HASHED" - if "emission" in spec: - bsdf.inputs["Emission Color"].default_value = srgb_hex_to_linear(spec["emission"]) - bsdf.inputs["Emission Strength"].default_value = float(spec.get("emission_strength", 1.0)) - mats[name] = mat - return mats - - -def load_kit(name: str) -> dict: - if name not in _KITS_CACHE: - _KITS_CACHE[name] = core.load_kit(name) - return _KITS_CACHE[name] - - -def _assign_material(obj: bpy.types.Object, mat_name: str) -> None: - mat = bpy.data.materials.get(mat_name) - if mat is None: - ensure_materials() - mat = bpy.data.materials[mat_name] - if len(obj.data.materials): - obj.data.materials[0] = mat - else: - obj.data.materials.append(mat) - - -def _link_object( - obj: bpy.types.Object, - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), -) -> bpy.types.Object: - scene = bpy.context.scene - if obj.name not in scene.collection.objects: - scene.collection.objects.link(obj) - if parent is not None: - obj.parent = parent - obj.matrix_parent_inverse = Matrix.Identity(4) - obj.location = Vector(location) - obj.rotation_mode = "XYZ" - obj.rotation_euler = Euler([math.radians(a) for a in rotation_deg], "XYZ") - return obj - - -def _add_bevel(obj: bpy.types.Object, width: float, segments: int = 1, angle_deg: float = 30.0) -> None: - if width <= 0.0: - return - mod = obj.modifiers.new("Bevel", "BEVEL") - mod.width = width - mod.segments = segments - mod.limit_method = "ANGLE" - mod.angle_limit = math.radians(angle_deg) - mod.harden_normals = False - - -def make_empty( - name: str, - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - display_type: str = "PLAIN_AXES", - display_size: float = 0.12, -) -> bpy.types.Object: - obj = bpy.data.objects.new(name, None) - obj.empty_display_type = display_type - obj.empty_display_size = display_size - return _link_object(obj, parent=parent, location=location, rotation_deg=rotation_deg) - - -def make_mesh_from_swept( - name: str, - swept: Any, - mat_name: str, - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.0, -) -> bpy.types.Object: - mesh = bpy.data.meshes.new(name) - brokkr_kitbash.write_mesh(mesh, swept) - obj = bpy.data.objects.new(name, mesh) - _assign_material(obj, mat_name) - _link_object(obj, parent=parent, location=location, rotation_deg=rotation_deg) - if bevel > 0.0: - _add_bevel(obj, bevel, segments=1) - return obj - - -def _build_inline_shape(name: str, shape_dict: dict[str, Any]) -> core.Built: - doc = { - "schema": core.SCHEMA, - "kit": "inline", - "doc": "inline part", - "socketTypes": {}, - "parts": [{ - "name": "p", - "doc": name, - "params": [], - "shapes": [shape_dict], - "sockets": [], - }], - } - checked = core.check_kit(doc) - return core.build(checked["parts"]["p"], {}) - - -def make_tube_part( - name: str, - r0: float, - r1: float, - length: float, - segments: int = 12, - inner0: float = 0.0, - inner1: float = 0.0, - smooth: bool = True, - mat_name: str = "gunmetal", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.0, -) -> bpy.types.Object: - shape_dict: dict[str, Any] = { - "shape": "tube", - "r0": float(r0), - "r1": float(r1), - "length": float(length), - "segments": int(segments), - "smooth": bool(smooth), - } - if inner0 > 0.0 or inner1 > 0.0: - shape_dict["inner0"] = float(inner0) - shape_dict["inner1"] = float(inner1) - return make_mesh_from_swept( - name, - _build_inline_shape(name, shape_dict), - mat_name, - parent=parent, - location=location, - rotation_deg=rotation_deg, - bevel=bevel, - ) - - -def make_lathe_part( - name: str, - profile: Sequence[Sequence[float]], - segments: int = 16, - loop: bool = False, - smooth: bool = True, - mat_name: str = "gunmetal", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.0, -) -> bpy.types.Object: - shape_dict = { - "shape": "lathe", - "segments": int(segments), - "loop": bool(loop), - "smooth": bool(smooth), - "profile": [[float(p[0]), float(p[1])] for p in profile], - } - return make_mesh_from_swept( - name, - _build_inline_shape(name, shape_dict), - mat_name, - parent=parent, - location=location, - rotation_deg=rotation_deg, - bevel=bevel, - ) - - -def make_kit_part( - name: str, - kit_name: str, - part_name: str, - params: dict[str, Any] | None = None, - mat_name: str = "gunmetal", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.0, -) -> bpy.types.Object: - kit = load_kit(kit_name) - part_def = core.part(kit, part_name) - built = core.build(part_def, params or {}) - return make_mesh_from_swept( - name=name, - swept=built, - mat_name=mat_name, - parent=parent, - location=location, - rotation_deg=rotation_deg, - bevel=bevel, - ) - - -def _auto_ups(path: np.ndarray, closed: bool = False) -> np.ndarray: - """Compute smooth non-collinear up vectors along any 3D polyline for core.sweep.""" - n = len(path) - steps = (np.roll(path, -1, axis=0) - path)[: n if closed else n - 1] - lengths = np.linalg.norm(steps, axis=1, keepdims=True) - tangents = steps / np.maximum(lengths, 1e-9) - if closed: - vert_tan = tangents + np.roll(tangents, 1, axis=0) - else: - vert_tan = np.vstack([tangents[:1], tangents[:-1] + tangents[1:], tangents[-1:]]) - vert_tan /= np.maximum(np.linalg.norm(vert_tan, axis=1, keepdims=True), 1e-9) - ups = np.zeros_like(vert_tan) - ref = np.array([0.0, 0.0, 1.0]) if abs(vert_tan[0, 2]) < 0.85 else np.array([1.0, 0.0, 0.0]) - u0 = ref - vert_tan[0] * float(ref @ vert_tan[0]) - ups[0] = u0 / np.linalg.norm(u0) - for i in range(1, n): - u = ups[i - 1] - vert_tan[i] * float(ups[i - 1] @ vert_tan[i]) - norm = float(np.linalg.norm(u)) - if norm < 1e-5: - alt = np.array([1.0, 0.0, 0.0]) if abs(vert_tan[i, 0]) < 0.85 else np.array([0.0, 1.0, 0.0]) - u = alt - vert_tan[i] * float(alt @ vert_tan[i]) - norm = float(np.linalg.norm(u)) - ups[i] = u / norm - return ups - - -def fillet_polyline(points: Sequence[Sequence[float]], radius: float = 0.05, subdivs: int = 2, closed: bool = False) -> np.ndarray: - """Round interior corners of a 3D polyline so core.sweep stays well below TURN_LIMIT.""" - pts = np.asarray(points, dtype=np.float64) - if len(pts) < 3 or radius <= 0.0: - return pts - out: list[np.ndarray] = [] - n = len(pts) - indices = range(n) if closed else range(1, n - 1) - if not closed: - out.append(pts[0]) - for i in indices: - p_prev = pts[(i - 1) % n] - p_curr = pts[i] - p_next = pts[(i + 1) % n] - v_in = p_curr - p_prev - v_out = p_next - p_curr - l_in = float(np.linalg.norm(v_in)) - l_out = float(np.linalg.norm(v_out)) - if l_in < 1e-6 or l_out < 1e-6: - out.append(p_curr) - continue - d_in = v_in / l_in - d_out = v_out / l_out - if float(d_in @ d_out) > 0.995: - out.append(p_curr) - continue - trim = min(radius, 0.35 * l_in, 0.35 * l_out) - a = p_curr - d_in * trim - b = p_curr + d_out * trim - for k in range(subdivs + 1): - t = k / subdivs - # Quadratic Bezier corner blend - pt = (1 - t) ** 2 * a + 2 * (1 - t) * t * p_curr + t ** 2 * b - out.append(pt) - if not closed: - out.append(pts[-1]) - return np.array(out, dtype=np.float64) - - -def make_swept_tube( - name: str, - points: Sequence[Sequence[float]], - radius: float, - segments: int = 8, - mat_name: str = "gunmetal", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - closed: bool = False, - fillet_r: float = 0.04, -) -> bpy.types.Object: - path = fillet_polyline(points, radius=fillet_r, subdivs=2, closed=closed) if fillet_r > 0 else np.asarray(points, dtype=np.float64) - ups = _auto_ups(path, closed=closed) - swept = core.sweep(path, core.circle(radius, segments), ups, closed=closed) - return make_mesh_from_swept(name, swept, mat_name, parent=parent, location=location, rotation_deg=rotation_deg) - - -def make_swept_profile( - name: str, - section: str, - w: float, - h: float, - t: float, - points: Sequence[Sequence[float]], - up: Sequence[float] | None = None, - mat_name: str = "gunmetal", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - closed: bool = False, -) -> bpy.types.Object: - path = np.asarray(points, dtype=np.float64) - ups = np.asarray(up, dtype=np.float64) if up is not None else _auto_ups(path, closed=closed) - swept = core.sweep(path, core.profile(section, w, h, t), ups, closed=closed) - return make_mesh_from_swept(name, swept, mat_name, parent=parent, location=location, rotation_deg=rotation_deg) - - -def make_box( - name: str, - size: Sequence[float], - mat_name: str = "olive_armor", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.008, -) -> bpy.types.Object: - sx, sy, sz = (float(v) for v in size) - V = core.BOX_SIGNS * np.array([sx, sy, sz], dtype=np.float64) - swept = core.Swept( - V=V, - faces=core.BOX_FACES.ravel().astype(np.int32), - counts=np.full(6, 4, dtype=np.int32), - smooth=np.zeros(6, dtype=bool), - sharp=core.NO_SHARP.astype(np.int32), - ) - return make_mesh_from_swept(name, swept, mat_name, parent=parent, location=location, rotation_deg=rotation_deg, bevel=bevel) - - -def make_bmesh_object( - name: str, - builder: Callable[[bmesh.types.BMesh], None], - mat_name: str = "olive_armor", - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - bevel: float = 0.0, - smooth: bool = False, -) -> bpy.types.Object: - bm = bmesh.new() - builder(bm) - bmesh.ops.recalc_face_normals(bm, faces=bm.faces) - mesh = bpy.data.meshes.new(name) - bm.to_mesh(mesh) - bm.free() - if smooth: - for poly in mesh.polygons: - poly.use_smooth = True - obj = bpy.data.objects.new(name, mesh) - _assign_material(obj, mat_name) - _link_object(obj, parent=parent, location=location, rotation_deg=rotation_deg) - if bevel > 0.0: - _add_bevel(obj, bevel, segments=1) - return obj - - -def _write_vf_mesh(name: str, V: np.ndarray, faces: list[list[int]], mat_name: str, parent: bpy.types.Object | None = None, bevel: float = 0.0) -> bpy.types.Object: - mesh = bpy.data.meshes.new(name) - mesh.from_pydata(np.asarray(V, dtype=np.float64).tolist(), [], [[int(k) for k in f] for f in faces]) - sharp = mesh.attributes.get("sharp_face") or mesh.attributes.new("sharp_face", "BOOLEAN", "FACE") - sharp.data.foreach_set("value", np.ones(len(mesh.polygons), dtype=bool)) - mesh.update() - obj = bpy.data.objects.new(name, mesh) - _assign_material(obj, mat_name) - _link_object(obj, parent=parent) - if bevel > 0.0: - _add_bevel(obj, bevel, segments=1, angle_deg=15.0) - return obj - - -def make_plates( - table_doc: dict[str, Any], - parent: bpy.types.Object | None = None, - prefix: str = "", - side: int = 1, -) -> list[bpy.types.Object]: - """Build Brokkr hard armour plates (brokkr.plates.v0) directly into Blender objects.""" - checked = plate.check(table_doc) - entries = plate.build(checked, side=side) - created: list[bpy.types.Object] = [] - for entry in entries: - row = checked["plates"][entry["row"]] - pname = f"{prefix}{entry['name']}" - solid_obj = _write_vf_mesh(pname, entry["solid"][0], entry["solid"][1], row["mat"], parent=parent, bevel=row["bevel"]) - created.append(solid_obj) - clad = row["clad"] - if clad: - if len(entry["panels"][1]): - p_obj = _write_vf_mesh(f"{pname}.panels", entry["panels"][0], entry["panels"][1], clad["mat"], parent=solid_obj, bevel=clad["bevel"]) - created.append(p_obj) - if len(entry["bolts"][1]): - b_obj = _write_vf_mesh(f"{pname}.bolts", entry["bolts"][0], entry["bolts"][1], clad["bolt_mat"], parent=solid_obj, bevel=0.0) - created.append(b_obj) - for fit_mat, fit_mesh in entry["fits"].items(): - if len(fit_mesh[1]): - f_obj = _write_vf_mesh(f"{pname}.fit.{fit_mat}", fit_mesh[0], fit_mesh[1], fit_mat, parent=solid_obj, bevel=0.0) - created.append(f_obj) - return created - - -def make_knobby_wheel( - name: str, - radius: float, - width: float, - parent: bpy.types.Object | None = None, - location: Sequence[float] = (0.0, 0.0, 0.0), - tread_lugs: int = 18, - rim_segments: int = 20, - side_sign: int = 1, -) -> bpy.types.Object: - """Build a crisp game-ready off-road wheel centered at (0,0,0) spinning about local X. - - side_sign = +1 for left (+X) wheel (hub faces +X), -1 for right (-X) wheel (hub faces -X). - """ - hub_pivot = make_empty(f"{name}_hub", parent=parent, location=location) - # Tire carcass via lathe rotated onto X axis (tube/lathe builds along +Z, so rot_y = 90) - r_rim = radius * 0.56 - r_side = radius * 0.92 - hw = width * 0.5 - tire_profile = [ - [r_rim * 0.96, -hw * 0.85], - [r_side, -hw * 0.95], - [radius * 0.96, -hw * 0.72], - [radius * 0.96, hw * 0.72], - [r_side, hw * 0.95], - [r_rim * 0.96, hw * 0.85], - ] - make_lathe_part( - f"{name}_tire", - tire_profile, - segments=rim_segments, - loop=True, - smooth=True, - mat_name="rubber_dark", - parent=hub_pivot, - rotation_deg=(0.0, 90.0, 0.0), - ) - - # Staggered knobby tread lugs around circumference (compact, low poly, high visual read) - def build_tread(bm: bmesh.types.BMesh) -> None: - lug_w = width * 0.38 - lug_h = radius * 0.055 - lug_len = (2.0 * math.pi * radius / tread_lugs) * 0.52 - for i in range(tread_lugs): - ang = 2.0 * math.pi * i / tread_lugs - for row_s in (-1.0, 1.0): - a = ang + (0.5 if row_s > 0 else 0.0) * (2.0 * math.pi / tread_lugs) - cy = math.cos(a) * (radius * 0.965) - cz = math.sin(a) * (radius * 0.965) - cx = row_s * hw * 0.42 - mat = ( - Matrix.Translation((cx, cy, cz)) - @ Matrix.Rotation(a, 4, "X") - @ Matrix.Scale(lug_w, 4, (1, 0, 0)) - @ Matrix.Scale(lug_h, 4, (0, 1, 0)) - @ Matrix.Scale(lug_len, 4, (0, 0, 1)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=mat) - - make_bmesh_object(f"{name}_treads", build_tread, "rubber_dark", parent=hub_pivot) - - # Steel wheel dish rim + hub cap (CCW in (r, z); +Z points outward via rot_y = 90 * side_sign) - rim_profile = [ - [0.0, -hw * 0.45], - [r_rim * 0.98, -hw * 0.45], - [r_rim * 0.98, hw * 0.86], - [r_rim * 0.82, hw * 0.86], - [r_rim * 0.72, hw * 0.48], - [r_rim * 0.30, hw * 0.48], - [r_rim * 0.25, hw * 0.82], - [0.0, hw * 0.82], - ] - make_lathe_part( - f"{name}_rim", - rim_profile, - segments=16, - loop=False, - smooth=True, - mat_name="gunmetal", - parent=hub_pivot, - rotation_deg=(0.0, 90.0 * side_sign, 0.0), - ) - - # Hub lug ring - def build_lugs(bm: bmesh.types.BMesh) -> None: - hx = side_sign * hw * 0.62 - for i in range(6): - a = 2.0 * math.pi * i / 6.0 - r_b = r_rim * 0.50 - m = Matrix.Translation((hx, math.cos(a) * r_b, math.sin(a) * r_b)) @ Matrix.Rotation(math.pi * 0.5, 4, "Y") - bmesh.ops.create_cone(bm, cap_ends=True, cap_tris=False, segments=6, radius1=radius * 0.042, radius2=radius * 0.042, depth=width * 0.14, matrix=m) - - make_bmesh_object(f"{name}_hubbolts", build_lugs, "signal_orange", parent=hub_pivot) - return hub_pivot - - -def make_ram_span( - name: str, - p_base: Sequence[float], - p_tip: Sequence[float], - body_r: float = 0.036, - rod_r: float = 0.020, - parent: bpy.types.Object | None = None, - mat_barrel: str = "gunmetal", - mat_rod: str = "copper_rad", - coil_rings: int = 0, -) -> bpy.types.Object: - """Create a realistic hydraulic actuator or coilover strut spanning p_base -> p_tip.""" - a = np.asarray(p_base, dtype=np.float64) - b = np.asarray(p_tip, dtype=np.float64) - vec = b - a - total = float(np.linalg.norm(vec)) - if total < 1e-4: - raise ValueError(f"Ram {name} has zero span") - z_dir = Vector((vec / total).tolist()) - quat = Vector((0.0, 0.0, 1.0)).rotation_difference(z_dir) - rot_deg = tuple(math.degrees(v) for v in quat.to_euler("XYZ")) - root = make_empty(name, parent=parent, location=a.tolist(), rotation_deg=rot_deg) - - body_len = max(0.05, total * 0.54) - rod_len = max(0.05, total * 0.56) - if 0.05 <= body_r <= 0.12 and 0.2 <= body_len <= 1.0 and 0.2 <= rod_len <= 2.0 and 0.01 <= rod_r <= 0.02: - make_kit_part( - f"{name}_barrel", - "mechanical", - "ram_barrel", - {"body_r": body_r, "body_len": body_len, "rod_r": rod_r, "segments": 10}, - mat_name=mat_barrel, - parent=root, - ) - make_kit_part( - f"{name}_rod", - "mechanical", - "ram_rod", - {"body_r": body_r, "rod_r": rod_r, "length": rod_len, "segments": 10}, - mat_name=mat_rod, - parent=root, - location=(0.0, 0.0, total), - rotation_deg=(180.0, 0.0, 0.0), - ) - else: - make_tube_part(f"{name}_barrel", body_r, body_r, body_len, segments=10, mat_name=mat_barrel, parent=root) - make_tube_part( - f"{name}_rod", - rod_r, - rod_r, - rod_len, - segments=8, - mat_name=mat_rod, - parent=root, - location=(0.0, 0.0, total - rod_len), - ) - if coil_rings > 0: - def build_coils(bm: bmesh.types.BMesh) -> None: - z0 = total * 0.16 - z1 = total * 0.78 - for k in range(coil_rings): - z = z0 + (z1 - z0) * (k / max(1, coil_rings - 1)) - # Octagonal spring ring - pts = [] - rc = body_r * 1.48 - for s in range(10): - ang = 2.0 * math.pi * s / 10.0 - pts.append((rc * math.cos(ang), rc * math.sin(ang), z)) - # Build small torus-like faceted collar ring - for s in range(10): - p0 = Vector(pts[s]) - p1 = Vector(pts[(s + 1) % 10]) - mid = (p0 + p1) * 0.5 - seg_dir = (p1 - p0).normalized() - q_seg = Vector((0, 0, 1)).rotation_difference(seg_dir) - m = Matrix.Translation(mid) @ q_seg.to_matrix().to_4x4() - bmesh.ops.create_cone( - bm, cap_ends=True, cap_tris=False, segments=6, - radius1=body_r * 0.24, radius2=body_r * 0.24, - depth=(p1 - p0).length * 1.08, matrix=m, - ) - - make_bmesh_object(f"{name}_coil", build_coils, "signal_orange", parent=root) - return root - - -def add_hardpoint_slot( - hp_id: str, - kind: str, - parent: bpy.types.Object, - location: Sequence[float], - rotation_deg: Sequence[float] = (0.0, 0.0, 0.0), - size: Sequence[float] = (0.55, 0.55, 0.12), - plinth_depth: float = 0.0, -) -> bpy.types.Object: - """Create standardized VISIBLE exterior hardpoint socket geometry + tagged rtd.id anchor Empty. - - The anchor Empty is named `hp_id`, carries custom properties `rtd.id` and `rtd.kind`, - and sits at the mounting plane origin with local +Z normal (+Y in glTF) pointing outward. - When `plinth_depth > 0`, a solid recessed base flange extends down to `z = -plinth_depth` - so sloped/curved armor corners physically intersect the hull with zero air gap. - """ - if kind not in ("weapon", "radiator", "engine", "armor"): - raise ValueError(f"Unsupported hardpoint kind {kind!r}") - - sx, sy, sz = (float(v) for v in size) - p_depth = max(0.0, float(plinth_depth)) - # Visual frame parented alongside the anchor - bay_root = make_empty(f"slot_frame.{hp_id}", parent=parent, location=location, rotation_deg=rotation_deg) - - if kind == "weapon": - r_outer = min(sx, sy) * 0.48 - r_inner = r_outer * 0.72 - collar_h = max(0.055, sz * 0.65) - if p_depth > 0.0: - make_tube_part( - f"{hp_id}.plinth", - r_outer * 0.96, - r_outer * 0.96, - p_depth + 0.025, - segments=12, - smooth=False, - mat_name="gunmetal", - parent=bay_root, - location=(0.0, 0.0, -p_depth), - ) - # Octagonal bolted collar ring via Brokkr lathe - collar_prof = [ - [r_inner, 0.0], - [r_outer, 0.0], - [r_outer, collar_h * 0.65], - [r_outer * 0.92, collar_h], - [r_inner * 1.04, collar_h], - [r_inner, collar_h * 0.35], - ] - make_lathe_part( - f"{hp_id}.collar", - collar_prof, - segments=12, - loop=True, - smooth=False, - mat_name="gunmetal", - parent=bay_root, - ) - # Recessed dark weapon socket floor - make_box(f"{hp_id}.well", (r_inner * 1.65, r_inner * 1.65, 0.024), "socket_bay", parent=bay_root, location=(0.0, 0.0, 0.012), bevel=0.0) - # Twin mounting rails + 4 signal-orange lock lugs + 8 perimeter bolts - rail_sep = r_inner * 0.52 - for side in (-1.0, 1.0): - make_box( - f"{hp_id}.rail_{'l' if side > 0 else 'r'}", - (0.04, r_inner * 1.45, collar_h * 0.72), - "gunmetal", - parent=bay_root, - location=(side * rail_sep, 0.0, collar_h * 0.38), - bevel=0.004, - ) - def build_lugs_and_bolts(bm: bmesh.types.BMesh) -> None: - for ang_deg in (45.0, 135.0, 225.0, 315.0): - a = math.radians(ang_deg) - rl = r_outer * 0.88 - m = Matrix.Translation((rl * math.cos(a), rl * math.sin(a), collar_h * 0.96)) @ Matrix.Rotation(a, 4, "Z") - bmesh.ops.create_cube(bm, size=1.0, matrix=m @ Matrix.Diagonal((0.065, 0.042, 0.032, 1.0))) - - make_bmesh_object(f"{hp_id}.lugs", build_lugs_and_bolts, "signal_orange", parent=bay_root) - - def build_bolts(bm: bmesh.types.BMesh) -> None: - for k in range(8): - a = 2.0 * math.pi * k / 8.0 - rb = r_outer * 0.84 - m = Matrix.Translation((rb * math.cos(a), rb * math.sin(a), collar_h * 0.85)) - bmesh.ops.create_cone(bm, cap_ends=True, cap_tris=False, segments=6, radius1=0.016, radius2=0.014, depth=0.02, matrix=m) - - make_bmesh_object(f"{hp_id}.bolts", build_bolts, "gunmetal", parent=bay_root) - anchor_z = collar_h * 0.82 - - elif kind == "radiator": - frame_t = max(0.035, min(sx, sy) * 0.09) - depth = max(0.07, sz) - if p_depth > 0.0: - make_box( - f"{hp_id}.plinth", - (sx * 0.98, sy * 0.98, p_depth + 0.025), - "gunmetal", - parent=bay_root, - location=(0.0, 0.0, (-p_depth + 0.025) * 0.5), - bevel=0.0, - ) - # Recessed dark bay floor - make_box(f"{hp_id}.well", (sx * 0.92, sy * 0.92, depth * 0.4), "socket_bay", parent=bay_root, location=(0.0, 0.0, depth * 0.2), bevel=0.0) - # Outer armored louver frame (4 bars) - make_box(f"{hp_id}.frame_top", (sx, frame_t, depth), "gunmetal", parent=bay_root, location=(0.0, sy * 0.5 - frame_t * 0.5, depth * 0.5), bevel=0.005) - make_box(f"{hp_id}.frame_bot", (sx, frame_t, depth), "gunmetal", parent=bay_root, location=(0.0, -sy * 0.5 + frame_t * 0.5, depth * 0.5), bevel=0.005) - make_box(f"{hp_id}.frame_l", (frame_t, sy - frame_t * 2, depth), "gunmetal", parent=bay_root, location=(sx * 0.5 - frame_t * 0.5, 0.0, depth * 0.5), bevel=0.005) - make_box(f"{hp_id}.frame_r", (frame_t, sy - frame_t * 2, depth), "gunmetal", parent=bay_root, location=(-sx * 0.5 + frame_t * 0.5, 0.0, depth * 0.5), bevel=0.005) - # Copper radiator core louvers inside the bay - n_fins = max(5, min(11, int(sy / 0.065))) - def build_louvers(bm: bmesh.types.BMesh) -> None: - inner_w = sx - frame_t * 2.2 - inner_h = sy - frame_t * 2.2 - for i in range(n_fins): - y = -inner_h * 0.44 + inner_h * 0.88 * (i / max(1, n_fins - 1)) - m = ( - Matrix.Translation((0.0, y, depth * 0.58)) - @ Matrix.Rotation(math.radians(24.0), 4, "X") - @ Matrix.Diagonal((inner_w, 0.018, depth * 0.42, 1.0)) - ) - bmesh.ops.create_cube(bm, size=1.0, matrix=m) - - make_bmesh_object(f"{hp_id}.louvers", build_louvers, "copper_rad", parent=bay_root) - # Corner flange bolts + signal-orange lock tabs - def build_tabs(bm: bmesh.types.BMesh) -> None: - for xs in (-1.0, 1.0): - for ys in (-1.0, 1.0): - m = Matrix.Translation((xs * (sx * 0.42), ys * (sy * 0.42), depth * 1.02)) - bmesh.ops.create_cube(bm, size=1.0, matrix=m @ Matrix.Diagonal((0.045, 0.045, 0.022, 1.0))) - - make_bmesh_object(f"{hp_id}.locktabs", build_tabs, "signal_orange", parent=bay_root) - anchor_z = depth * 0.55 - - elif kind == "engine": - wall_t = max(0.045, min(sx, sy) * 0.10) - depth = max(0.11, sz) - if p_depth > 0.0: - make_box( - f"{hp_id}.plinth", - (sx * 0.98, sy * 0.98, p_depth + 0.025), - "gunmetal", - parent=bay_root, - location=(0.0, 0.0, (-p_depth + 0.025) * 0.5), - bevel=0.0, - ) - # Deep dark engine bay recess - make_box(f"{hp_id}.well", (sx * 0.90, sy * 0.90, depth * 0.35), "socket_bay", parent=bay_root, location=(0.0, 0.0, depth * 0.18), bevel=0.0) - # Armored coaming rails - for xs in (-1.0, 1.0): - make_box(f"{hp_id}.coam_{'l' if xs > 0 else 'r'}", (wall_t, sy, depth), "gunmetal", parent=bay_root, location=(xs * (sx * 0.5 - wall_t * 0.5), 0.0, depth * 0.5), bevel=0.006) - for ys in (-1.0, 1.0): - make_box(f"{hp_id}.coam_{'b' if ys > 0 else 'f'}", (sx - wall_t * 2, wall_t, depth * 0.85), "gunmetal", parent=bay_root, location=(0.0, ys * (sy * 0.5 - wall_t * 0.5), depth * 0.42), bevel=0.006) - # Twin internal engine mount cradle rails + exhaust manifold stubs - for xs in (-1.0, 1.0): - make_box(f"{hp_id}.cradle_{'l' if xs > 0 else 'r'}", (0.05, sy * 0.72, depth * 0.45), "gunmetal", parent=bay_root, location=(xs * sx * 0.22, 0.0, depth * 0.45), bevel=0.004) - make_swept_tube( - f"{hp_id}.manifold_{'l' if xs > 0 else 'r'}", - [ - [xs * sx * 0.16, -sy * 0.26, depth * 0.55], - [xs * sx * 0.30, -sy * 0.12, depth * 0.74], - [xs * sx * 0.30, sy * 0.20, depth * 0.74], - ], - 0.022, - segments=8, - mat_name="copper_rad", - parent=bay_root, - fillet_r=0.03, - ) - # Signal-orange lock pins at corners - def build_pins(bm: bmesh.types.BMesh) -> None: - for xs in (-1.0, 1.0): - for ys in (-1.0, 1.0): - m = Matrix.Translation((xs * (sx * 0.40), ys * (sy * 0.40), depth * 1.02)) - bmesh.ops.create_cone(bm, cap_ends=True, cap_tris=False, segments=8, radius1=0.022, radius2=0.018, depth=0.036, matrix=m) - - make_bmesh_object(f"{hp_id}.lockpins", build_pins, "signal_orange", parent=bay_root) - anchor_z = depth * 0.45 - - else: # "armor" - rail_h = max(0.05, sz) - if p_depth > 0.0: - make_box( - f"{hp_id}.plinth", - (sx * 0.90, sy * 0.44, p_depth + 0.025), - "gunmetal", - parent=bay_root, - location=(0.0, 0.0, (-p_depth + 0.025) * 0.5), - bevel=0.0, - ) - # Backing plate & stud rails across the glacis / flank - make_box(f"{hp_id}.rail", (sx * 0.92, sy * 0.32, rail_h * 0.55), "gunmetal", parent=bay_root, location=(0.0, 0.0, rail_h * 0.28), bevel=0.006) - n_boss = max(3, min(5, int(sx / 0.32) + 1)) - def build_bosses(bm: bmesh.types.BMesh) -> None: - for i in range(n_boss): - x = -sx * 0.38 + sx * 0.76 * (i / max(1, n_boss - 1)) - m = Matrix.Translation((x, 0.0, rail_h * 0.65)) - bmesh.ops.create_cube(bm, size=1.0, matrix=m @ Matrix.Diagonal((0.09, sy * 0.48, rail_h * 0.45, 1.0))) - - make_bmesh_object(f"{hp_id}.bosses", build_bosses, "gunmetal", parent=bay_root) - - def build_studs(bm: bmesh.types.BMesh) -> None: - for i in range(n_boss): - x = -sx * 0.38 + sx * 0.76 * (i / max(1, n_boss - 1)) - m = Matrix.Translation((x, 0.0, rail_h * 0.98)) - bmesh.ops.create_cone(bm, cap_ends=True, cap_tris=False, segments=8, radius1=0.024, radius2=0.018, depth=0.038, matrix=m) - - make_bmesh_object(f"{hp_id}.studs", build_studs, "signal_orange", parent=bay_root) - anchor_z = rail_h * 0.75 - - # Authoritative glTF Empty anchor - anchor = make_empty( - hp_id, - parent=bay_root, - location=(0.0, 0.0, anchor_z), - rotation_deg=(0.0, 0.0, 0.0), - display_type="ARROWS", - display_size=0.18, - ) - anchor["rtd.id"] = hp_id - anchor["rtd.kind"] = kind - anchor["rtd.size"] = [float(sx), float(sy), float(sz)] - return anchor - - -def tag_joint( - node: bpy.types.Object, - joint_id: str, - axis_gltf: Sequence[float], - min_val: float, - max_val: float, -) -> bpy.types.Object: - """Tag a pivot/mechanism node with rtd.joint metadata exported in glTF extras.""" - node["rtd.joint"] = joint_id - node["rtd.axis"] = [float(axis_gltf[0]), float(axis_gltf[1]), float(axis_gltf[2])] - node["rtd.min"] = float(min_val) - node["rtd.max"] = float(max_val) - return node - - -def scene_triangle_count(context: bpy.types.Context | None = None) -> int: - ctx = context or bpy.context - depsgraph = ctx.evaluated_depsgraph_get() - total = 0 - for obj in ctx.scene.objects: - if obj.type != "MESH" or obj.name.startswith("_preview_"): - continue - ev = obj.evaluated_get(depsgraph) - me = ev.to_mesh() - me.calc_loop_triangles() - total += len(me.loop_triangles) - ev.to_mesh_clear() - return total - - -def scene_bounds_blender(context: bpy.types.Context | None = None) -> tuple[Vector, Vector]: - ctx = context or bpy.context - depsgraph = ctx.evaluated_depsgraph_get() - mins = [math.inf, math.inf, math.inf] - maxs = [-math.inf, -math.inf, -math.inf] - for obj in ctx.scene.objects: - if obj.type != "MESH" or obj.name.startswith("_preview_"): - continue - ev = obj.evaluated_get(depsgraph) - me = ev.to_mesh() - mw = obj.matrix_world - for v in me.vertices: - w = mw @ v.co - for i in range(3): - mins[i] = min(mins[i], w[i]) - maxs[i] = max(maxs[i], w[i]) - ev.to_mesh_clear() - return Vector(mins), Vector(maxs) - - -def ground_root_to_z0(root: bpy.types.Object) -> float: - """Shift root along Z so the lowest evaluated mesh vertex sits at Z = 0.""" - bpy.context.view_layer.update() - b_min, _ = scene_bounds_blender() - if math.isfinite(b_min.z) and abs(b_min.z) > 1e-5: - root.location.z -= b_min.z - bpy.context.view_layer.update() - return -b_min.z - return 0.0 - - -def bounds_gltf_from_blender(b_min: Vector, b_max: Vector) -> dict[str, list[float]]: - """Convert Blender Z-up bounds to glTF Y-up bounds: (x, y, z)_gltf = (x, z, -y)_blender.""" - g_min = [round(b_min.x, 4), round(b_min.z, 4), round(-b_max.y, 4)] - g_max = [round(b_max.x, 4), round(b_max.z, 4), round(-b_min.y, 4)] - size = [round(g_max[i] - g_min[i], 4) for i in range(3)] - return {"min": g_min, "max": g_max, "size": size} - - -def export_vehicle_glb(glb_path: Path, root: bpy.types.Object | None = None) -> tuple[int, dict[str, list[float]]]: - """Ground scene (if root given), measure evaluated tris & glTF bounds, and export .glb.""" - if root is not None: - ground_root_to_z0(root) - bpy.context.view_layer.update() - tri_count = scene_triangle_count() - b_min, b_max = scene_bounds_blender() - bounds_gltf = bounds_gltf_from_blender(b_min, b_max) - - glb_path.parent.mkdir(parents=True, exist_ok=True) - # Hide any preview helper objects if present - bpy.ops.export_scene.gltf( - filepath=str(glb_path), - export_format="GLB", - export_yup=True, - export_extras=True, - export_apply=True, - export_materials="EXPORT", - export_normals=True, - export_texcoords=True, - use_visible=True, - ) - return tri_count, bounds_gltf - - -def write_manifest( - manifest_path: Path, - *, - vehicle_id: str, - name: str, - vehicle_class: str, - grid_width: int, - grid_height: int, - mask: Sequence[str] | Sequence[bool], - hardpoints: list[dict[str, Any]], - joints: list[dict[str, Any]], - bounds: dict[str, list[float]], - tri_count: int, - plane: str = "Dorsal", - mechanisms: dict[str, Any] | None = None, -) -> None: - if len(mask) == grid_height and isinstance(mask[0], str): - mask_bools = [ch == "#" for row in mask for ch in row] - else: - mask_bools = [bool(v) for v in mask] - doc = { - "schema": "rtd.vehicle.manifest.v1", - "id": vehicle_id, - "name": name, - "class": vehicle_class, - "plane": plane, - "gridWidth": grid_width, - "gridHeight": grid_height, - "mask": mask_bools, - "hardpoints": hardpoints, - "joints": joints, - "bounds": bounds, - "triCount": int(tri_count), - } - if mechanisms is not None: - doc["mechanisms"] = mechanisms - manifest_path.parent.mkdir(parents=True, exist_ok=True) - manifest_path.write_text(json.dumps(doc, indent=2) + "\n", encoding="utf-8") - - -def _aim_camera_at(cam_obj: bpy.types.Object, eye: Vector, target: Vector) -> None: - cam_obj.location = eye - direction = (target - eye).normalized() - cam_obj.rotation_euler = direction.to_track_quat("-Z", "Y").to_euler() - - -def render_four_panel_preview(preview_path: Path, panel_w: int = 640, panel_h: int = 480) -> Path: - """Render 3/4 Hero, Front (-Y), Side (+X), and Top Dorsal (+Z) views via EEVEE into one 2x2 PNG.""" - scene = bpy.context.scene - bpy.context.view_layer.update() - b_min, b_max = scene_bounds_blender() - center = (b_min + b_max) * 0.5 - extent = max((b_max - b_min).length, 1.5) - - # Setup world + studio lighting + ground plinth - world = bpy.data.worlds.new("_preview_world") - scene.world = world - world.use_nodes = True - bg = world.node_tree.nodes.get("Background") - if bg: - bg.inputs["Color"].default_value = (0.045, 0.050, 0.048, 1.0) - bg.inputs["Strength"].default_value = 1.1 - - # Ground disc (dark slate) - floor_mat = bpy.data.materials.new("_preview_floor_mat") - floor_mat.use_nodes = True - f_bsdf = floor_mat.node_tree.nodes.get("Principled BSDF") - if f_bsdf: - f_bsdf.inputs["Base Color"].default_value = (0.08, 0.085, 0.082, 1.0) - f_bsdf.inputs["Roughness"].default_value = 0.88 - bpy.ops.mesh.primitive_cylinder_add(vertices=48, radius=extent * 1.4, depth=0.04, location=(center.x, center.y, b_min.z - 0.021)) - floor_obj = bpy.context.active_object - floor_obj.name = "_preview_floor" - floor_obj.data.materials.append(floor_mat) - - def add_sun(name: str, rot_deg: Sequence[float], energy: float, color: Sequence[float]) -> bpy.types.Object: - ldata = bpy.data.lights.new(name, type="SUN") - ldata.energy = energy - ldata.color = color - lobj = bpy.data.objects.new(name, ldata) - scene.collection.objects.link(lobj) - lobj.rotation_euler = Euler([math.radians(a) for a in rot_deg], "XYZ") - return lobj - - lights = [ - add_sun("_preview_key", (48.0, 12.0, -35.0), 3.4, (1.0, 0.96, 0.90)), - add_sun("_preview_fill", (55.0, -15.0, 135.0), 1.4, (0.78, 0.86, 0.98)), - add_sun("_preview_rim", (25.0, 0.0, 175.0), 1.6, (1.0, 0.90, 0.78)), - ] - - cam_data = bpy.data.cameras.new("_preview_cam") - cam_data.lens = 42.0 - cam_obj = bpy.data.objects.new("_preview_cam", cam_data) - scene.collection.objects.link(cam_obj) - scene.camera = cam_obj - - scene.render.engine = "BLENDER_EEVEE" - scene.render.resolution_x = panel_w - scene.render.resolution_y = panel_h - scene.render.resolution_percentage = 100 - scene.render.image_settings.file_format = "PNG" - scene.render.image_settings.color_mode = "RGBA" - if hasattr(scene, "eevee"): - scene.eevee.taa_render_samples = 16 - - size_vec = b_max - b_min - d_hero = extent * 1.18 - d_ortho = max(size_vec.x, size_vec.y, size_vec.z) * 1.25 - - views = [ - ("hero", "PERSP", center + Vector((d_hero * 0.72, -d_hero * 0.85, d_hero * 0.46)), center), - ("front", "ORTHO", center + Vector((0.0, -d_ortho * 2.0, size_vec.z * 0.04)), center), - ("side", "ORTHO", center + Vector((d_ortho * 2.0, 0.0, size_vec.z * 0.04)), center), - ("top", "ORTHO", center + Vector((0.0, 0.0, d_ortho * 2.0)), center), - ] - - preview_path.parent.mkdir(parents=True, exist_ok=True) - tmp_files: list[Path] = [] - panels: list[np.ndarray] = [] - - for idx, (tag, proj, eye, tgt) in enumerate(views): - cam_data.type = proj - if proj == "ORTHO": - aspect = panel_w / max(1, panel_h) - if tag == "front": - cam_data.ortho_scale = max(size_vec.x * 1.32, size_vec.z * aspect * 1.38) - elif tag == "side": - cam_data.ortho_scale = max(size_vec.y * 1.24, size_vec.z * aspect * 1.35) - else: - cam_data.ortho_scale = max(size_vec.x * 1.30, size_vec.y * aspect * 1.22) - _aim_camera_at(cam_obj, eye, tgt) - # Keep top view upright with nose (-Y) pointing up in image - if tag == "top": - cam_obj.rotation_euler = Euler((0.0, 0.0, math.radians(180.0)), "XYZ") - - tmp_png = preview_path.with_name(f".tmp_{preview_path.stem}_{tag}.png") - tmp_files.append(tmp_png) - scene.render.filepath = str(tmp_png) - bpy.ops.render.render(write_still=True) - - img = bpy.data.images.load(str(tmp_png), check_existing=False) - arr = np.empty(panel_w * panel_h * 4, dtype=np.float32) - img.pixels.foreach_get(arr) - bpy.data.images.remove(img) - panels.append(arr.reshape((panel_h, panel_w, 4))) - - # Stitch 2x2 grid (note Blender image pixel row 0 is bottom): - # Top row in final PNG = [hero (TL), front (TR)] -> higher Y in Blender image space - # Bottom row in final PNG = [side (BL), top (BR)] -> lower Y in Blender image space - top_row = np.concatenate([panels[0], panels[1]], axis=1) - bot_row = np.concatenate([panels[2], panels[3]], axis=1) - # 4px dark divider lines - grid = np.concatenate([bot_row, top_row], axis=0) - grid[:, panel_w - 2 : panel_w + 2, :3] = 0.25 - grid[panel_h - 2 : panel_h + 2, :, :3] = 0.25 - - out_img = bpy.data.images.new("_preview_composite", width=panel_w * 2, height=panel_h * 2, alpha=True) - out_img.pixels.foreach_set(grid.ravel().tolist()) - out_img.filepath_raw = str(preview_path) - out_img.file_format = "PNG" - out_img.save() - bpy.data.images.remove(out_img) - - # Cleanup temp renders and preview objects - for tmp in tmp_files: - if tmp.exists(): - tmp.unlink() - for obj in [floor_obj, cam_obj, *lights]: - bpy.data.objects.remove(obj, do_unlink=True) - bpy.data.materials.remove(floor_mat) - bpy.data.worlds.remove(world) - - return preview_path diff --git a/tools/vehicles/verify_glbs.py b/tools/vehicles/verify_glbs.py deleted file mode 100644 index 1dd0301..0000000 --- a/tools/vehicles/verify_glbs.py +++ /dev/null @@ -1,479 +0,0 @@ -"""Validate all exported vehicle GLBs, manifests, hardpoint anchors, joints, bounds, and gear GLBs.""" -from __future__ import annotations - -import json -import math -import struct -import sys -from pathlib import Path -from typing import Any - -import numpy as np - -REPO_ROOT = Path(__file__).resolve().parents[2] -VEHICLES_DIR = REPO_ROOT / "assets" / "vehicles" -GEAR_DIR = REPO_ROOT / "assets" / "gear" - -EXPECTED_VEHICLES = ( - "jackal", "mule", "ferret", "hornet", "mammoth", "ironclad", "anvil", "condor", - "breaker", "paladin", "raptor", "manticore", "bastion", "spectre", "kestrel", -) -RETROFIT_MECHS = frozenset({"breaker", "paladin", "raptor", "manticore", "bastion", "spectre", "kestrel"}) -EXPECTED_GEAR = ("mg_762", "autocannon", "recoilless", "copper_rad", "gilded_lance", "gold_radiator") - - -def parse_glb(glb_path: Path) -> tuple[dict[str, Any], bytes]: - data = glb_path.read_bytes() - if len(data) < 20: - raise AssertionError(f"{glb_path}: file too small ({len(data)} bytes)") - magic, version, total_len = struct.unpack_from(" dict[str, Any]: - return parse_glb(glb_path)[0] - - -def _node_local_matrix(node: dict[str, Any]) -> np.ndarray: - if "matrix" in node: - return np.array(node["matrix"], dtype=np.float64).reshape(4, 4).T - m = np.eye(4, dtype=np.float64) - if "scale" in node: - sx, sy, sz = node["scale"] - m = m @ np.diag([sx, sy, sz, 1.0]) - if "rotation" in node: - qx, qy, qz, qw = node["rotation"] - xx, yy, zz = qx * qx, qy * qy, qz * qz - xy, xz, yz = qx * qy, qx * qz, qy * qz - wx, wy, wz = qw * qx, qw * qy, qw * qz - r = np.array([ - [1 - 2 * (yy + zz), 2 * (xy - wz), 2 * (xz + wy), 0.0], - [2 * (xy + wz), 1 - 2 * (xx + zz), 2 * (yz - wx), 0.0], - [2 * (xz - wy), 2 * (yz + wx), 1 - 2 * (xx + yy), 0.0], - [0.0, 0.0, 0.0, 1.0], - ], dtype=np.float64) - m = r @ m - if "translation" in node: - tx, ty, tz = node["translation"] - m[:3, 3] = [tx, ty, tz] - return m - - -def compute_glb_stats(gltf: dict[str, Any], bin_blob: bytes = b"") -> tuple[int, np.ndarray, np.ndarray]: - nodes = gltf.get("nodes", []) - meshes = gltf.get("meshes", []) - accessors = gltf.get("accessors", []) - buffer_views = gltf.get("bufferViews", []) - scenes = gltf.get("scenes", []) - root_indices = scenes[gltf.get("scene", 0)]["nodes"] if scenes else list(range(len(nodes))) - - tri_total = 0 - g_min = np.array([math.inf, math.inf, math.inf], dtype=np.float64) - g_max = np.array([-math.inf, -math.inf, -math.inf], dtype=np.float64) - - def walk(node_idx: int, parent_mat: np.ndarray) -> None: - nonlocal tri_total, g_min, g_max - node = nodes[node_idx] - world = parent_mat @ _node_local_matrix(node) - if "mesh" in node: - mesh = meshes[node["mesh"]] - for prim in mesh.get("primitives", []): - mode = prim.get("mode", 4) - if mode == 4: - if "indices" in prim: - tri_total += accessors[prim["indices"]]["count"] // 3 - elif "POSITION" in prim.get("attributes", {}): - tri_total += accessors[prim["attributes"]["POSITION"]]["count"] // 3 - pos_acc_idx = prim.get("attributes", {}).get("POSITION") - if pos_acc_idx is not None: - acc = accessors[pos_acc_idx] - if bin_blob and "bufferView" in acc and acc.get("componentType") == 5126 and acc.get("type") == "VEC3": - bv = buffer_views[acc["bufferView"]] - off = bv.get("byteOffset", 0) + acc.get("byteOffset", 0) - stride = bv.get("byteStride", 12) - count = acc["count"] - if stride == 12: - pts = np.frombuffer(bin_blob, dtype=" np.ndarray: - acc = accessors[acc_idx] - bv = buffer_views[acc["bufferView"]] - off = bv.get("byteOffset", 0) + acc.get("byteOffset", 0) - count = acc["count"] - ct = acc["componentType"] - typ = acc["type"] - if typ == "VEC3" and ct == 5126: - stride = bv.get("byteStride", 12) - if stride == 12: - return np.frombuffer(bin_blob, dtype=" float: - ab = b - a - ac = c - a - ap = p - a - d1 = float(np.dot(ab, ap)) - d2 = float(np.dot(ac, ap)) - if d1 <= 0.0 and d2 <= 0.0: - return float(np.dot(ap, ap)) - bp = p - b - d3 = float(np.dot(ab, bp)) - d4 = float(np.dot(ac, bp)) - if d3 >= 0.0 and d4 <= d3: - return float(np.dot(bp, bp)) - vc = d1 * d4 - d3 * d2 - if vc <= 0.0 and d1 >= 0.0 and d3 <= 0.0: - denom = d1 - d3 - v = d1 / denom if denom > 1e-18 else 0.0 - q = a + v * ab - return float(np.dot(p - q, p - q)) - cp = p - c - d5 = float(np.dot(ab, cp)) - d6 = float(np.dot(ac, cp)) - if d6 >= 0.0 and d5 <= d6: - return float(np.dot(cp, cp)) - vb = d5 * d2 - d1 * d6 - if vb <= 0.0 and d2 >= 0.0 and d6 <= 0.0: - denom = d2 - d6 - w = d2 / denom if denom > 1e-18 else 0.0 - q = a + w * ac - return float(np.dot(p - q, p - q)) - va = d3 * d6 - d5 * d4 - if va <= 0.0 and (d4 - d3) >= 0.0 and (d5 - d6) >= 0.0: - denom = (d4 - d3) + (d5 - d6) - w = (d4 - d3) / denom if denom > 1e-18 else 0.0 - q = b + w * (c - b) - return float(np.dot(p - q, p - q)) - s = va + vb + vc - if s <= 1e-18: - return min(float(np.dot(ap, ap)), float(np.dot(bp, bp)), float(np.dot(cp, cp))) - denom = 1.0 / s - q = a + ab * (vb * denom) + ac * (vc * denom) - return float(np.dot(p - q, p - q)) - - -def _min_dist_to_tris( - pt: np.ndarray, - tris: np.ndarray, - tri_mins: np.ndarray, - tri_maxs: np.ndarray, -) -> float: - d_box = np.maximum(0.0, np.maximum(tri_mins - pt, pt - tri_maxs)) - d2_box = np.sum(d_box * d_box, axis=1) - order = np.argsort(d2_box) - min_d2 = math.inf - for idx in order: - if d2_box[idx] > min_d2: - break - t = tris[idx] - d2 = _pt_tri_dist2(pt, t[0], t[1], t[2]) - if d2 < min_d2: - min_d2 = d2 - return math.sqrt(min_d2) - - -def measure_hardpoint_gaps(gltf: dict[str, Any], bin_blob: bytes) -> dict[str, tuple[float, float]]: - """Return {hp_id: (center_to_hull_m, min_slot_vert_to_hull_m)} for all hardpoints in GLB.""" - nodes = gltf.get("nodes", []) - meshes = gltf.get("meshes", []) - accessors = gltf.get("accessors", []) - buffer_views = gltf.get("bufferViews", []) - scenes = gltf.get("scenes", []) - root_indices = scenes[gltf.get("scene", 0)]["nodes"] if scenes else list(range(len(nodes))) - - parent_of: dict[int, int] = {} - for idx, n in enumerate(nodes): - for c in n.get("children", []): - parent_of[c] = idx - - hp_roots: dict[int, str] = {} - hp_anchors: dict[str, int] = {} - for idx, n in enumerate(nodes): - extras = n.get("extras") or {} - if "rtd.id" in extras: - hp_id = str(extras["rtd.id"]) - hp_anchors[hp_id] = idx - p = parent_of.get(idx) - if p is not None and str(nodes[p].get("name", "")).startswith("slot_frame."): - hp_roots[p] = hp_id - - hp_node_set: dict[int, str] = {} - def mark_hp(idx: int, hp_id: str) -> None: - hp_node_set[idx] = hp_id - for c in nodes[idx].get("children", []): - mark_hp(c, hp_id) - for r_idx, hp_id in hp_roots.items(): - mark_hp(r_idx, hp_id) - - hull_tris: list[np.ndarray] = [] - hp_pts: dict[str, list[np.ndarray]] = {} - node_world: dict[int, np.ndarray] = {} - - def walk(idx: int, pmat: np.ndarray) -> None: - n = nodes[idx] - w = pmat @ _node_local_matrix(n) - node_world[idx] = w - if "mesh" in n: - for prim in meshes[n["mesh"]].get("primitives", []): - if prim.get("mode", 4) != 4: - continue - pos = _read_accessor(accessors, buffer_views, bin_blob, prim["attributes"]["POSITION"]) - wpos = pos @ w[:3, :3].T + w[:3, 3] - if idx in hp_node_set: - hp_pts.setdefault(hp_node_set[idx], []).append(wpos) - else: - if "indices" in prim: - ind = _read_accessor(accessors, buffer_views, bin_blob, prim["indices"]).reshape(-1, 3) - else: - ind = np.arange(len(pos), dtype=np.int64).reshape(-1, 3) - hull_tris.append(wpos[ind]) - for c in n.get("children", []): - walk(c, w) - - ident = np.eye(4, dtype=np.float64) - for r_idx in root_indices: - walk(r_idx, ident) - - if not hull_tris: - return {} - tris = np.concatenate(hull_tris, axis=0) - tri_mins = tris.min(axis=1) - tri_maxs = tris.max(axis=1) - - gaps: dict[str, tuple[float, float]] = {} - for r_idx, hp_id in hp_roots.items(): - p_slot = node_world[r_idx][:3, 3] - p_anchor = node_world[hp_anchors[hp_id]][:3, 3] - out_vec = p_anchor - p_slot - out_len = float(np.linalg.norm(out_vec)) - n_out = out_vec / out_len if out_len > 1e-6 else np.array([0.0, 1.0, 0.0]) - - d_center = _min_dist_to_tris(p_slot, tris, tri_mins, tri_maxs) - pts = np.concatenate(hp_pts.get(hp_id, []), axis=0) if hp_id in hp_pts else np.empty((0, 3)) - if len(pts) > 0: - proj = (pts - p_slot) @ n_out - base_pts = pts[proj <= 0.03] - if len(base_pts) == 0: - base_pts = pts - if len(base_pts) > 256: - base_pts = base_pts[np.linspace(0, len(base_pts) - 1, 256, dtype=int)] - d_vert = min(_min_dist_to_tris(p, tris, tri_mins, tri_maxs) for p in base_pts) - else: - d_vert = d_center - gaps[hp_id] = (d_center, d_vert) - return gaps - - -def validate_vehicle(vid: str) -> dict[str, Any]: - vdir = VEHICLES_DIR / vid - glb_path = vdir / f"{vid}.glb" - manifest_path = vdir / "manifest.json" - if not glb_path.is_file(): - raise AssertionError(f"Missing GLB: {glb_path}") - if not manifest_path.is_file(): - raise AssertionError(f"Missing manifest: {manifest_path}") - - manifest = json.loads(manifest_path.read_text(encoding="utf-8")) - gltf, bin_blob = parse_glb(glb_path) - nodes = gltf.get("nodes", []) - - # 1. Check hardpoint grid bounds, mask activity, and zero overlaps - gw, gh = int(manifest["gridWidth"]), int(manifest["gridHeight"]) - mask = manifest["mask"] - if len(mask) != gw * gh: - raise AssertionError(f"{vid}: mask length {len(mask)} != {gw * gh}") - - occupied: dict[tuple[int, int], str] = {} - for hp in manifest["hardpoints"]: - hx, hy, hw, hh = hp["x"], hp["y"], hp["w"], hp["h"] - if not (0 <= hx and hx + hw <= gw and 0 <= hy and hy + hh <= gh): - raise AssertionError(f"{vid}: hardpoint {hp['id']} out of grid bounds ({hx},{hy} {hw}x{hh} on {gw}x{gh})") - for cy in range(hy, hy + hh): - for cx in range(hx, hx + hw): - if not mask[cy * gw + cx]: - raise AssertionError(f"{vid}: hardpoint {hp['id']} covers inactive cell ({cx},{cy})") - if (cx, cy) in occupied: - raise AssertionError(f"{vid}: cell ({cx},{cy}) overlaps between {occupied[(cx, cy)]} and {hp['id']}") - occupied[(cx, cy)] = hp["id"] - - # 2. Check every manifest hardpoint modelNodeId exists as a unique node with extras["rtd.id"] and extras["rtd.kind"] - by_rtd_id: dict[str, list[dict]] = {} - by_rtd_joint: dict[str, list[dict]] = {} - for node in nodes: - extras = node.get("extras") or {} - if "rtd.id" in extras: - by_rtd_id.setdefault(str(extras["rtd.id"]), []).append(node) - if "rtd.joint" in extras: - by_rtd_joint.setdefault(str(extras["rtd.joint"]), []).append(node) - - for hp in manifest["hardpoints"]: - target_id = hp["modelNodeId"] - matches = by_rtd_id.get(target_id, []) - if len(matches) != 1: - raise AssertionError(f"{vid}: hardpoint {target_id!r} matched {len(matches)} GLB nodes (expected 1)") - node = matches[0] - extras = node.get("extras", {}) - if extras.get("rtd.kind") != hp["kind"]: - raise AssertionError(f"{vid}: node {target_id} rtd.kind={extras.get('rtd.kind')!r} != manifest {hp['kind']!r}") - if node.get("name") != target_id: - raise AssertionError(f"{vid}: node name {node.get('name')!r} != {target_id!r}") - - # 3. Check every manifest joint exists with rtd.joint, rtd.axis, rtd.min, rtd.max - for j in manifest["joints"]: - jid = j["id"] - matches = by_rtd_joint.get(jid, []) - if len(matches) != 1: - raise AssertionError(f"{vid}: joint {jid!r} matched {len(matches)} GLB nodes (expected 1)") - extras = matches[0].get("extras", {}) - for key in ("rtd.axis", "rtd.min", "rtd.max"): - if key not in extras: - raise AssertionError(f"{vid}: joint {jid!r} missing {key} in GLB extras") - - plane = manifest.get("plane") - if plane not in ("Dorsal", "Coronal"): - raise AssertionError(f"{vid}: invalid plane {plane!r}") - - # 3b. Check every mesh primitive carries baked COLOR_0 attributes (AO, Edge, Island, RestHeight) - meshes = gltf.get("meshes", []) - if not meshes: - raise AssertionError(f"{vid}: GLB contains no meshes") - prim_count = 0 - for m_idx, mesh in enumerate(meshes): - for p_idx, prim in enumerate(mesh.get("primitives", [])): - attrs = prim.get("attributes") or {} - if "COLOR_0" not in attrs: - raise AssertionError( - f"{vid}: mesh[{m_idx}] ({mesh.get('name', '?')}) primitive[{p_idx}] missing COLOR_0 attribute" - ) - prim_count += 1 - if prim_count == 0: - raise AssertionError(f"{vid}: GLB contains zero mesh primitives") - - # 4. Check GLB triangle count & grounded +Y-up / +Z-forward bounds - tri_total, g_min, g_max = compute_glb_stats(gltf, bin_blob) - max_tris = 50000 if vid in RETROFIT_MECHS else 35000 - min_tris = 15000 if vid in RETROFIT_MECHS else 1500 - if not (min_tris <= tri_total <= max_tris): - raise AssertionError(f"{vid}: tri count {tri_total} outside [{min_tris}, {max_tris}]") - if abs(tri_total - manifest["triCount"]) > 0: - raise AssertionError(f"{vid}: GLB tri count {tri_total} != manifest triCount {manifest['triCount']}") - if abs(float(g_min[1])) > 0.02: - raise AssertionError(f"{vid}: GLB not grounded at minY=0 (got minY={g_min[1]:.4f})") - size = g_max - g_min - if vid in RETROFIT_MECHS: - if not (2.5 <= size[0] <= 14.0 and 5.0 <= size[1] <= 12.5 and 2.5 <= size[2] <= 16.0): - raise AssertionError(f"{vid}: implausible mech bounds size {size.tolist()}") - elif not (1.2 <= size[0] <= 5.0 and 1.0 <= size[1] <= 3.5 and 2.5 <= size[2] <= 6.5): - raise AssertionError(f"{vid}: implausible bounds size {size.tolist()}") - - # 5. Flush-seating check: every hardpoint slot center and base vertices must sit <= 0.025m from hull geometry - hp_gaps = measure_hardpoint_gaps(gltf, bin_blob) - if len(hp_gaps) != len(manifest["hardpoints"]): - raise AssertionError(f"{vid}: measured {len(hp_gaps)} hardpoint slots != manifest {len(manifest['hardpoints'])}") - max_gap = 0.0 - for hp in manifest["hardpoints"]: - hid = hp["modelNodeId"] - d_center, d_vert = hp_gaps[hid] - if d_center > 0.025 or d_vert > 0.025: - raise AssertionError( - f"{vid}: floating/buried hardpoint {hid!r} (center_to_hull={d_center:.4f}m, base_to_hull={d_vert:.4f}m > 0.025m)" - ) - max_gap = max(max_gap, d_center, d_vert) - - return { - "id": vid, - "plane": plane, - "tris": tri_total, - "bytes": glb_path.stat().st_size, - "hardpoints": len(manifest["hardpoints"]), - "joints": len(manifest["joints"]), - "mechanisms": len((manifest.get("mechanisms") or {}).get("dofs", [])), - "minY": round(float(g_min[1]), 4), - "maxHpGap": round(max_gap, 4), - "size": [round(float(v), 3) for v in size], - } - - -def validate_gear(gid: str) -> dict[str, Any]: - glb_path = GEAR_DIR / f"{gid}.glb" - if not glb_path.is_file(): - raise AssertionError(f"Missing gear GLB: {glb_path}") - gltf, bin_blob = parse_glb(glb_path) - tri_total, g_min, g_max = compute_glb_stats(gltf, bin_blob) - if tri_total <= 0 or tri_total > 10000: - raise AssertionError(f"gear/{gid}: unexpected tri count {tri_total}") - if abs(float(g_min[1])) > 0.02: - raise AssertionError(f"gear/{gid}: not grounded at minY=0 (got {g_min[1]:.4f})") - return { - "id": gid, - "tris": tri_total, - "bytes": glb_path.stat().st_size, - "size": [round(float(v), 3) for v in (g_max - g_min)], - } - - -def main() -> int: - v_reports = [validate_vehicle(v) for v in EXPECTED_VEHICLES] - g_reports = [validate_gear(g) for g in EXPECTED_GEAR] - print("=== VEHICLE GLB VALIDATION PASSED ===") - for r in v_reports: - mech_tag = f" | dofs={r['mechanisms']}" if r["mechanisms"] else "" - print(f" {r['id']:10s} | {r['plane']:7s} | tris={r['tris']:5d} | size={r['size']} | minY={r['minY']} | hpGap={r['maxHpGap']:.4f}m | hps={r['hardpoints']} | joints={r['joints']}{mech_tag} | {r['bytes']/1024:.1f} KiB") - print("=== GEAR GLB VALIDATION PASSED ===") - for r in g_reports: - print(f" {r['id']:14s} | tris={r['tris']:4d} | size={r['size']} | {r['bytes']/1024:.1f} KiB") - return 0 - - -if __name__ == "__main__": - sys.exit(main())