Home

Lamp

Description and decomposition

To model the table I decomposed it in two parts:
- the legs
- the plane

Functions used

Before building the various parts of this object I found useful to implement variuos support functions. One of them, the arc function, allows me to create a 3D ring, by passing the angle, the inner radius, the external radius and the height of the ring:


function arc(alpha, r, R, h) {
  var domain = DOMAIN([[0,alpha],[r,R]])([32,1]);
  var mapping = function (v) {
    var a = v[0];
    var r = v[1];
    
    return [r*COS(a), r*SIN(a)];
  }
  var model = MAP(mapping)(domain);
  
  var arco = EXTRUDE([h])(model);
  return arco;
}
With this function I modeled the plane (the external wood ring and the internal glass), instead for the legs I used the same functions explained for the chair (SIMPLICIAL_COMPLEX ) Structuring all these parts, I obtained the table.

Sources

Source code

Pictures