Primitive Shapes

Examples of creating few primitive shapes

How to create a Box

//Required function

function build() {
    return cadlib.box({width:2, height:5, depth:2});
}
How to create a Cylinder
//Required function


function build() {
    return cadlib.cylinder({radius:2, height:5});
}
How to create a Cone
//Required function


function build() {
   return cadlib.cone({r1:2, r2:5});
}