REPY-2.0 1.0
Mechanical module for modular robotics
Component REPY_module::make_ear ( double  base,
double  height,
double  thickness,
double  shift,
double  radius 
) [private]

Generates a 'ear'.

Each of the lateral parts of the module is a 'ear'. Basically, a 'ear' is the convex hull of a cylinder and a cube.

For more info and explanatory images check module documentation.

{
    //-- Make shift:
    if (shift == 0) shift = 0.001;
    Component square = Cube( base, shift, thickness).translate( 0, shift/2.0, 0);
    Component circle = Cylinder( radius, thickness).translate(0, height, 0);

    return square & circle;
}
 All Classes Functions Variables