These variables can be used in the various arrays to make the values comply to changes you made in the setup.
Controlling the Compiled Image
There are various settings that you can tune to change the compiled image so you can get more "insight" in the projectbox the YAPPgenerator is making.
//---------------------------
//-- C O N T R O L --
//---------------------------
// -- Render --
renderQuality = 8; //-> from 1 to 32, Default = 8
// --Preview --
previewQuality = 5; //-> from 1 to 32, Default = 5
showSideBySide = true; //-> Default = true
onLidGap = 0; //-- tip don't override to animate the lid opening
colorLid = "YellowGreen";
alphaLid = 1;
colorBase = "BurlyWood";
alphaBase = 1;
hideLidWalls = false; //-- Remove the walls from the lid : only if preview and showSideBySide=true
hideBaseWalls = false; //-- Remove the walls from the base : only if preview and showSideBySide=true
showOrientation = true; //-- Show the Front/Back/Left/Right labels : only in preview
showPCB = false; //-- Show the PCB in red : only in preview
showSwitches = false; //-- Show the switches (for pushbuttons) : only in preview
showButtonsDepressed = false; //-- Should the buttons in the Lid On view be in the pressed position
showOriginCoordBox = false; //-- Shows red bars representing the origin for yappCoordBox : only in preview
showOriginCoordBoxInside = false; //-- Shows blue bars representing the origin for yappCoordBoxInside : only in preview
showOriginCoordPCB = false; //-- Shows blue bars representing the origin for yappCoordBoxInside : only in preview
showMarkersPCB = false; //-- Shows black bars corners of the PCB : only in preview
showMarkersCenter = false; //-- Shows magenta bars along the centers of all faces
inspectX = 0; //-> 0=none (>0 from Back)
inspectY = 0; //-> 0=none (>0 from Right)
inspectZ = 0; //-> 0=none (>0 from Bottom)
inspectXfromBack = true; //-> View from the inspection cut foreward
inspectYfromLeft = true; //-> View from the inspection cut to the right
inspectZfromBottom = true; //-> View from the inspection cut up
//---------------------------
//-- C O N T R O L --
//---------------------------
showSideBySide
When true it the Base and Lid are printed side by side. This is usually the setting to use if you want to compile a STL file for 3D printing.
When false the Base and Lid are printed "on top" of each other.
onLidGap
This value is only used when showSideBySide = false.
A value of zero prints the Base and Lid right on to of each other. A value > zero will lift the Lid up from the Base.
shiftLid
This value is only used when showSideBySide = true.
A value > zero will place the Lid further away from the Base.
hideBaseWalls
If true the baseWalls are not printed so you can see the inside of the box
hideLidWalls
If true the lidWalls are not printed so you can see the inside of the box
showOrientation
When true the text Front, Right, Back and Left are printed at the four planes. When creating a STL file the orientation markers are never printed!
showPCB
For reference and for getting a feel of the projectbox it is, sometimes, handy to show exactly where the PCB will fit into the projectbox.
When true a (dummy) PCB is printed. When false no PCB is printed.
showMarkersPCB
To get a better feel where the pcb[0,0,0] point is you can set showMarkersPCB to true. The vertical black markers are on the exact corners of the PCB. The horizontal black markers are drawn at the top of the PCB.
showMarkersBox
When true it will show a vertical red marker at posX=0 and posY=0
showMarkersBoxInside
When true it will show a vertical blue marker at posX=0 and posY=0 and two blue markers in the length and width of the project box at posZ=0.
showCenterMarkers
When true, blue center markers are printed just below the projectbox.
inspectX
With a value greater than zero you get a cross section of the projectbox from the Front towards the Back. A negative value gives a cross section from the Back towards the Front.
inspectY
With a value greater than zero you get a cross section of the projectbox from the Left towards Right. A negative value gives a cross section from the Right towards Left.
inspectLightTubes
If -1 or 1 shows the inner structure of the light tubes.
inspectButtons
If -1 or 1 shows the inner structure of the push buttons.
showSwitches
If true tries to show an impression of the tactile switches.