These are the steps for the 3D reconstruction of Casablanca wardrobe:
Basement and skeleton
Shelfs
Full skeleton
Commodes and caisson
Doors
Because the object is symmetrical it was decided to realize only the first three components: the using of the functions STRUCT and SCALE "STRUCT([halfCasablanca, S([0])([-1])(halfCasablanca)])" generates the other half respect to x - axis.
Later commodes and caisson have been added.
Basement and skeleton
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.
Shelfs
Shelfs are generated by the call to CUBOID and opportune rotations.
Full skeleton
Then the skeleton has been made using the already aforementioned function
SCALE respect to x - axis.
Commodes and caisson
Commodes and caisson have been reconstructed thanks to a function wich takes in input wide,high,depth,depthFace,color and returns a commode with these parameters.
Doors
To realize doors has been used CUBOID and some ROTATE.
Rendering
The final result is shown below.
Code Javascript
The code of the implementation in Javascript is available
here.