These are the steps for the 3D reconstruction of Carlton room divider:
Basement
First level of shelfs
Second level of shelfs
Third level of shelfs
Commodes
Because the object is symmetrical it was decided to realize only the first four components: the using of the functions STRUCT and SCALE "STRUCT([halfCarlton, S([0])([-1])(halfCarlton)])" generates the other half respect to x - axis.
Later commodes have been added.
Basement
The basement has been realized through the use of CUBOID function, all the triangles by the using of EXTRUDE of a surface designed through
BEZIER.
First level of shelfs
Shelfs are generated by the call to CUBOID and opportune rotations and measurements.
Second level of shelfs
For the second level have been used the same functions of the first.
Third level of shelfs
For the third level have been used the same functions of the first
and the second.
Commodes
Commodes have been reconstructed thanks to a function wich takes in input wide,high,depth,depthFace,color and returns a commode with these parameters.
Rendering
The final result is shown below.
Code Javascript
The code of the implementation in Javascript is available
here.