$fn=50;

use <./../../../../../Library/Graphics/MLAB_logo.scad>

module short_logo(){
    color("white")  
    minkowski()
    {
     cube([50,25,2]);
     cylinder(r=2,h=1);
    }

    color("black")        
    union (){
        translate ([25, 12.5, 3])  // ODROIDs passive components hole.
            scale(v = [0.25, 0.25, 0.25])
                MLAB_logo_short();
    }            
}

module long_logo(indented = 1){
    if(indented == 0)
    {
        color("white")  
        minkowski()
        {
         cube([110,25,1]);
         cylinder(r=2,h=1);
        }
        color("black")        
        union (){
            translate ([55, 12.5, 0])  // ODROIDs passive components hole.
                scale(v = [0.75, 0.75, 0.75])
                    MLAB_logo_long();
        }
    }
    else
    {
        difference(){
            color("white")  
            minkowski()
            {
             cube([110,25,2]);
             cylinder(r=2,h=1);
            }
            union (){
                translate ([55, 12.5, 1.5])  // ODROIDs passive components hole.
                    scale(v = [0.75, 0.75, 0.75])
                        MLAB_logo_long();
            }
        }
    }
}

//short_logo();
long_logo(indented = 0);

module identification_logo(){
    color("white")  
    minkowski()
    {
     cube([55,25,2]);
     cylinder(r=2,h=1);
    }

    color("black")        
    union (){
        translate ([28, 12.5, 3])  // ODROIDs passive components hole.
            scale(v = [0.25, 0.25, 0.25])
                text("IRRAD01A",20);
    }            
}

//identification_logo();