EntwurfsforschungKI Lab ← Frühe SimulationenEarly Simulations

2Dwachstum 01–03 – Wanderwürfel2D growth 01–03 – wandering cubes

/

Ziehen: Ansicht drehen und neigen · ein Schritt = ein Durchgang der SchleifeDrag: rotate and tilt the view · one step = one pass of the loop

Die ersten Versuche zu Wachstumsstrukturen mit AutoCAD-VBA: Ein Würfel der Kantenlänge 10 springt um 11 in eine zufällige Richtung und hinterlässt dort einen neuen Würfel in zufälliger AutoCAD-Farbe:

angle = Round(Rnd · num + 1) · 2π / num (num = 4: vier Hauptrichtungen)
xW = xW + Cos(angle) · 11, yW = yW + Sin(angle) · 11

Drei Skripte bauen aufeinander auf, unter „Fassung“ wählbar. 01 legt zehn solcher Wege aus je 100 Würfeln übereinander, jeden ab demselben Ursprung; die Würfel überschneiden sich. 02 („weiterbearbeitete Struktur“) führt eine Kontrollliste ein: Steht der zuletzt gesetzte Würfel auf einem besetzten Platz, wechselt die Ebene nach oben oder unten (etage + random(−1, 1) · 10) – zu spät, um die Doppelbelegung zu verhindern, wie schon die alte Seite fragt: „Die mehrfarbigen Felder werden trotzdem noch zweifach besetzt?“ 03 („Wanderwürfel“) prüft den nächsten Platz, bevor ein Würfel entsteht; ist er besetzt, ändert sich nur die Höhe. So gibt es keine mehrfach besetzten Felder mehr, und die Struktur wandert frei im Raum.

Mit num = 3 springen die Würfel im 120°-Raster; weil jede Koordinate auf ganze Zahlen gerundet wird, „verschiebt das System seine dreidimensionale Rasterung“. Die App ist eine Neuumsetzung der AutoCAD-VBA-Skripte von Reinhard König (Februar 2004; Grundlage der Arbeit Computergenerierte Stadtstrukturen). Was geändert wurde, steht in QUELLE.md.

The first experiments on growth structures with AutoCAD VBA: a cube of edge length 10 jumps 11 units in a random direction and leaves a new cube there, in a random AutoCAD colour:

angle = Round(Rnd · num + 1) · 2π / num (num = 4: four main directions)
xW = xW + Cos(angle) · 11, yW = yW + Sin(angle) · 11

Three scripts build on one another and can be chosen under “Version”. 01 stacks ten such walks of 100 cubes each, all starting from the same origin; the cubes overlap. 02 (“refined structure”) introduces a check list: if the cube just placed stands on an occupied place, the level moves up or down (etage + random(−1, 1) · 10) – too late to prevent the double occupancy, as the old page already asks: “The multicoloured cells are still occupied twice?” 03 (“wandering cubes”) checks the next place before a cube is created; if it is occupied, only the height changes. So no cell is occupied more than once, and the structure wanders freely through space.

With num = 3 the cubes jump on a 120° grid; since every coordinate is rounded to whole numbers, “the system shifts its three-dimensional grid”. The app re-implements Reinhard König's AutoCAD VBA scripts (February 2004; groundwork for Computergenerierte Stadtstrukturen). Changes are listed in QUELLE.md.