YAPPgenerator_en
  • Yet Another Parametric Projectbox generator
  • What you need
  • Getting Started
  • Design Philosophy
  • Coordinate Systems
  • YAPPgenerator API
  • YAPP Box Settings
    • Multiple PCBs
  • Standoffs
    • pcbStands (advanced)
  • Connecting Base and Lid
    • Connecting Base and Lid (advanced)
  • Cutouts
    • n(h) - yappFromInside
    • p(6) - Cutout Depth
    • Placement of the project box
      • Cutouts in the Base Plane
      • Cutouts in the Lid Plane
      • Cutouts in the Front Plane
      • Cutouts in the Back Plane
      • Cutouts in the Left Plane
      • Cutouts in the Right Plane
    • Shapes
    • Optional Parameters
      • p(7) - Angle
      • n(a) = Polygon Definition
      • n(b)/n(c) - Mask Definition
      • n(d) - Coordinate System
      • n(e) - Position reference
      • n(f) - Alternate Origin
      • n(g) - PCB Selection
  • Box Mounts
    • boxMounts (advanced)
  • Snap Joins
  • Light Tubes
  • Push Buttons
    • Optional Parameters
  • Ridge Extension
  • Labels
  • Images
  • Hooks
  • Debugging
  • Advanced Options
    • Specify a PCB
    • Position reference
    • Polygon Definitions
    • Mask Definitions
  • Generating STL file from KiCad
  • License
Powered by GitBook
On this page
  • yappCoordPCB
  • yappCoordBox
  • yappCoordBoxInside
  • Adding objects to the projectBox

Coordinate Systems

PreviousDesign PhilosophyNextYAPPgenerator API

Last updated 11 months ago

Before going further it is necessary to understand what the orientation of the projectbox is. It should be clear that the projectbox has six “planes”.

The top is called Lid the bottom is called Base. The plane closest to the Y-axis is the back. left is closest to the X-axis. The plane opposite back (which is furthest from the Y-axis) is called front and the plane opposite “left” is called “right”

There are three "Coordinate System" to choose from creating objects for the Project Box.

yappCoordPCB       : Every posX, posY and posZ is related to the PCB (for most 
                     of the objects this is the default)
yappCoordBox       : Every posX, posY and posZ is related to the outside of the 
                     box
yappCoordBoxInside : Every posX, posY and posZ is related to the inside of the box

yappCoordPCB

The zero point ([x=0, y=0, z=0]) is left-back at the top of the PCB.

yappCoordBox

The zero point of this coordinate system is the outside of the box.

yappCoordBoxInside

The zero point of this coordinate system is the inside of the box.

Using this coordinate system has the benefit that changing this thickness of the walls (wallThickness) does not move the created objects.

Adding objects to the projectBox

For every type of object and often for each plane there is an array in which you can specify where the objects should be (in that plane). For instance the default for cutouts is the yappCoordPCB coordinate system. That means that they all have (pcb)[0,0,0] as their starting point. If, at any time, you decide to enlarge the edges around the PCB (padding) or to make the pcbStandoffs higher, the cutouts will move neatly with the position of the PCB.