Y
Y
YAPPgenerator_en
Search…
⌃K

cutoutsGrill in Base and Lid plane

Grills can only be applied to the Base- and Lid planes.
//-- cutoutsGrill -- origin is pcb[x0,y0,zx]
// (0) = xPos
// (1) = yPos
// (2) = grillWidth
// (3) = grillLength
// (4) = gWidth
// (5) = gSpace
// (6) = gAngle
// (7) = plane {"base" | "lid" }
// (8) = {polygon points}}
cutoutsGrill = [
[40, 5, 60, 60, 2, 2, 30, "base", [[10,10],[50,50],[60,10]]]
,[0, 5, 60, 40, 2, 2, 0, "base"]
,[10, 5, 60, 20, 2, 4, 0, "lid"]
];
All points in the polygon must be inside the grillWidth and grillLength!
You can define a grill-polygon in a variable, but you have to define this variable before the include of the YAPPgenerator library!
starShape = [ [0,15],[20,15],[30,0],[40,15],[60,15]
,[50,30],[60,45], [40,45],[30,60]
,[20,45], [0,45]
];
include <../YAPP_Box/library/YAPPgenerator.scad>
You can now write the cutoutGrills array like this:
//-- cutoutsGrill -- origin is pcb[x0,y0,zx]
// (0) = xPos
// (1) = yPos
// (2) = grillWidth
// (3) = grillLength
// (4) = gWidth
// (5) = gSpace
// (6) = gAngle
// (7) = plane {"base" | "lid" }
// (8) = {polygon points}}
cutoutsGrill = [
[5, 18, 60, 60, 2, 4, 0, "base", starShape]
];