feat(extract): Flamingo Park in run.py, Parkwege in der Chunk-Ausgabe
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ef9e6774a
commit
442f5b2ada
5 files changed
+64
-12
No files matched your search
@@ -522,3 +522,17 @@ def apply_park(world: World, layout: ParkLayout, seed: int) -> World:
|
||||
palms += palm_points([], _polygons(lawn), [], [] if blocked.is_empty else [blocked], [], [], seed)
|
||||
return replace(world, roads=roads, centerlines=centerlines, surfaces=surfaces,
|
||||
buildings=buildings, palms=palms, paths=world.paths + layout.paths)
|
||||
|
||||
|
||||
def apply_flamingo_park(world: World, config_path: Path, seed: int) -> tuple[World, list[str]]:
|
||||
"""Alles für Flamingo Park in der Reihenfolge der Spec: Ecken prüfen, Jefferson Avenue, Park."""
|
||||
config = load_park(config_path)
|
||||
check_corners(config, world.roads)
|
||||
world = apply_street(world, config.street)
|
||||
fit = ParkFit(config)
|
||||
layout = build_layout(load_elements(config.osm_path), config, fit)
|
||||
world = apply_park(world, layout, seed)
|
||||
messages = [f"Warnung: {warning}" for warning in layout.warnings]
|
||||
messages.append(f"Flamingo Park: {len(layout.paths)} Wegflächen, {len(layout.surfaces)} Flächen, "
|
||||
f"{len(layout.buildings)} Gebäude, Jefferson Avenue {config.street.width:g} m breit")
|
||||
return world, messages
|
||||
Reference in new issue
Block a user