Back to the journal

Units of Measurement in makeacut

5 minutes read

A makeacut uses three kinds of measurement:

Kind Set by Default Used for
Drawing Units units and scale mm, 1:1 2D coordinates and dimensions
Thickness / "Z" defaults: z-units mm thickness, --thickness and --z
Output - millimeters All printing and exports

Prototype Sizing

"Prototype" is the real world thing we're measuring. Although you can directly work in millimetres or inches, I prefer to design using the real size of a thing in meters, and then use a scale to bring it down to the model size. That way I can easily switch between N and HO (and other) scales.

units m
scale "n scale"      # the same as scale 1:160
cut platform:
    rect 24 2.4        # 24 m long

The units we support are: mm, cm, m, in, ft or mil. A mil is a thousandth of an inch (0.0254 mm, a "thou").

We have a long list of scale sizes we support by name, including most train scales and wargaming scales, e.g. "25mm".

Thickness

Thickness is always about the "real" thickness of the stock material / 3D printed material.

units ft
scale "ho"
defaults:
    thickness 2          # 2 mm card, whatever the scale

For stock sold in another unit, change z-units:

defaults:
    z-units mil
    thickness 20         # 0.020 in styrene

Conversion

Use these functions to convert between various unit types

mm_to_design(v) / design_to_mm(v) Real/Prototype millimetres ↔ drawing units
mil_to_design(v) / design_to_mil(v) Real/Prototype mils ↔ drawing units
z_to_design(v) / design_to_z(v) Thickness/Z units ↔ drawing units

units ft
scale "ho"
STOCK = 2
MULLION = 0.25
slot_width = mm_to_design(STOCK)     # a slot that fits 2 mm stock
if design_to_mm(MULLION) >= 0.3:     # skip details too thin to cut
    rect MULLION 4

Patterns

Pattern line-width, groove-width, depth and margin accept a unit suffix, which gives a physical size that doesn't scale:

pattern stones:
    size 5 4               # drawing units
    groove-width 0.4 mm    # always 0.4 mm on the model

Other units

  • Angles are in degrees: 0° points right, and positive angles turn counterclockwise.
  • Image size and crop are in source pixels.
    • Some settings take percentages, such as squash 50% or ridge position 30%.
      .
    More from the notebook