Golden Rectangle

This project uses three.js. Make your choice and press reset. Or press play button and change settings.

code

///////////////////////////////////
// GOLDEN RATIO ///////////////////
/* global variable Golden Ratio */

function goldenRatio(b, maxIterations) {
  var x = 0;
  var y = 0;
  var z = 0;
  var a = 1.0;
  var goldenRatio = 1.6180339887;
  var c = b;
  var r = 1.0;
  var fact = program.get('position');

  var i = 1;

  while (i <= maxIterations){
    r = mod (i, 4); //(i % 4);
    if (i == 1) {
      x = x + b / 2;
      y = y + b / 2;
      z = z + b / 2;
    } else if (i > 1) {
      if (r == 1) { // 0.25
        x = x - ((c - b) / 2);
        y = y + ((c - b) / 2) * fact;
        z = z - ((c + b) / 2);
      } else if (r == 2) { // 0.5
        x = x + ((c + b) / 2); // red
        y = y + ((c - b) / 2) * fact; // green
        z = z - ((c - b) / 2); // blue
      } else if (r == 3) { // 0.75
        x = x + ((c - b) / 2);
        y = y + ((c - b) / 2) * fact;
        z = z + ((c + b) / 2);
      } else if (r == 0) { // 0
        x = x - ((c + b) / 2);
        y = y + ((c - b) / 2) * fact;
        z = z + ((c - b) / 2);
      };
    };
    a = b / goldenRatio;

    //if (i == maxIteration) {
    drawCube (b, x, y, z);
    //}

    c = b;
    b = a;
    i = i + 1;
  }
}

function drawCube(b, x, y, z) {
  /* construct object */
  var object = new THREE.Object3D();
  /* cube */
  var mGeometry = new THREE.BoxGeometry( b, b, b );
  var mMaterial = new THREE.MeshLambertMaterial( { color: 0xffff00 } );
  var cube = new THREE.Mesh( mGeometry, mMaterial );
  cube.position.set(x - 2, y, z + 1);
  /* casting shadows */
  cube.castShadow = true;
  object.add ( cube )
  scene.add ( object );
}

eCAADe 2024:
Urban Street Space Analysis with Spherical Box-Counting

Urban Street Space Analysis with Spherical Box-Counting: Holistic digital Gestalt analysis of architecture in urban space
Talk and Proceeding: eCAADe 2024 – Data-Driven Intelligence (Nicosia, Cyprus | conference)

Spherical box-counting of urban street spaces is a novel method developed and refined by the authors to produce highly specific topological fractal fingerprinting of architecture in relation to observer position and in the context of the accompanying surroundings. ...

eCAADe 2024:
Visualizing Urban Transformations using a 3D Cellular Automaton

Visualizing Urban Transformations using a 3D Cellular Automaton
Talk and Proceeding: eCAADe 2024 – Data-Driven Intelligence (Nicosia, Cyprus | conference)

Urban transformation is key to achieving more livable and sustainable cities. However, modelling this evolution is highly non-trivial since there are many factors at play that manifest themselves in the built (or: non-built/restored) environment. In our most recent work, we have represented urban change as rules of a three-dimensional Cellular Automaton. ...

Entwerfen Reuse, Recycle, Reduce

Algorithmisches Bauen mit und für die Kreislaufwirtschaft

Das Entwerfen mit dem Titel „Reuse, Recycle, Reduce: Algorithmisches Bauen mit und für die Kreislaufwirtschaft“ verbindet die Planung eines mehrgeschoßigen Wohngebäudes mit digitalen Entwurfsstrategien.