Ridge Extension

The Ridge Extension provides a local shift to the split so that you can make any opening on the sides of the case that is half in the lid and half in the base.

This is useful if you need to feed a cable inside of the box.

This is the API for the Ridge Extension:


  Extension from the lid into the case for adding split opening at various heights

  Default origin = yappCoordBox: box[0,0,0]

  Parameters:
   Required:
    (0) = pos
    (1) = width
    (2) = height : Distance below the ridge : Negative to move into lid
   Optional:
    (n) = { <yappOrigin>, yappCenter } 
    (n) = { <yappGlobalOrigin>, yappLeftOrigin } : Only affects Top(lid), Back 
                                                   and Right Faces

 Note: use ridgeExtTop to reference the top of the extension for cutouts.
 Note: Snaps should not be placed on ridge extensions as they remove the ridge 
       to place them.

This is an example code for a Ridge (you also have to make a cutout for the Ridge Extension to work)

cutoutsBack = 
[
  //-- [A] Make the hole thru the end of the ridge extansion
    [25,8, 6,  6,  0, yappPolygon, shape6ptStar, yappLeftOrigin
                    , yappCenter, yappCoordBox]

  //-- [B] Make the rounded rect thru the end of the ridge extansion
   ,[55,13, 20, 6,  3, yappRoundedRect, yappCenter, yappCoordBox]

  //-- [C] Make the hexagonal thru the end of the ridge extansion
   ,[38,35, 6, 6,  0, yappPolygon, 0, 30, shapeHexagon, yappCenter
                    , yappCoordBox]

  //-- [D] Make the hole thru the end of the ridge extension
   ,[18,8, 0,  0,  3, yappCircle, yappCenter, yappCoordBox]
];

ridgeExtBack =
[
  //-- [A] Make a ridge extension 6mm wide 8mm from the bottom of 
  //--     the box from the left edge
    [25, 6, 8, yappLeftOrigin, yappCoordBox, yappCenter]
    
  //-- [B] Make a ridge extension 20mm wide 13mm from the bottom 
  //--     of the box
   ,[45, 20, 13, yappCoordBox]
 
  //-- [C] Make a ridge extension 6mm wide 35mm from the bottom 
  //--     of the box
   ,[35, 6, 35, yappCoordBox]

  //-- [D] Make a ridge extension 6mm wide 8mm from the bottom 
  //--     of the box
   ,[15, 6, 8, yappCoordBox]
];

Will have these Ridge Extensions as a result:

Last updated