Cross Fractal

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

code

///////////////////////////////////
// CROSS FRACTAL //////////////////
/* recursive */

function cross(posI, posJ, posK, boxSize, iteration, maxIterations) {
  /* construction of menger sponge */
  for (var i = 1; i <= 3; i++) {
    for (var j = 1; j <= 3; j++) {
      for (var k = 1; k <= 3; k++) {
        if ( ( i == 2 && j == 1 && k == 2 ) ||
             ( i == 1 && j == 2 && k == 2 ) ||
             ( i == 2 && j == 2 && k == 2 ) ||
             ( i == 3 && j == 2 && k == 2 ) ||
             ( i == 2 && j == 2 && k == 1 ) ||
             ( i == 2 && j == 2 && k == 3 ) ||
             ( i == 2 && j == 3 && k == 2 ) ) {
          if (iteration < maxIterations) {
            cross((posI + i * boxSize), (posJ + j * boxSize), (posK + k * boxSize),
                     (boxSize / 3), (iteration + 1), maxIterations);
          } else if (iteration = maxIterations) {
            drawCube(i, j, k, posI, posJ, posK, boxSize, iteration, maxIterations);
          }
        }
      }
    }
  }
}
function drawCube(i, j, k, posI, posJ, posK, boxSize) {
  /* construct object */
  var object = new THREE.Object3D();
  /* cube */
  var mGeometry = new THREE.BoxGeometry( boxSize, boxSize, boxSize );
  var mMaterial = new THREE.MeshLambertMaterial( { color: 0xffff00 } );
  var cube = new THREE.Mesh( mGeometry, mMaterial );
  cube.position.set(posI + ((i + 1) * boxSize) - 3, posJ + ((j + 1) * boxSize) - 1,
    posK + ((k + 1) * boxSize));
  /* 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.