Skip to content

Dimensions and clearances

Enter all project lengths in millimetres. A size such as [100, 80, 30] means X width, Y depth, Z height. A position such as [2, 2] means 2 mm along X and 2 mm along Y. Write numbers without quotes and use no more than three decimal places.

Field or conceptMeasured atPurpose
box.inner_mmInside the game boxSpace available before you leave room at the sides or above
box.side_clearance_mmFour sides of the boxSpace kept between the insert and box
box.top_reserve_mmAbove the insertHeight reserved for a board, rules, or other contents
interior.clear_mmInside a constructed compartmentUsable space after its panels are accounted for
containers[].outer_mmOutside an existing closed containerSpace the entire container occupies
Container side/top clearanceAround that containerInsertion and removal space
Material thicknessAcross a sheetDetermines panel size, joints, and outside assembly size
KerfWidth removed by the laserLets BGI adjust where the laser beam travels
Fit clearanceDifference between mating parts after cuttingPositive means clearance; negative means interference

For example, a 3.00 mm panel and +0.10 mm fit clearance call for a 3.10 mm finished slot. With 0.16 mm kerf, the beam removes 0.08 mm on each side, so the two beam-centre paths are 2.94 mm apart (3.10 − 0.16). An outer part intended to finish 10.00 mm wide instead needs its beam-centre paths 10.16 mm apart. This straight-edge arithmetic shows why an inner slot and an outer edge offset in opposite directions. BGI offsets full contours, including corners and holes; contours and bundles explains the later steps.

A compartment’s clear dimensions exclude its walls, so a 100 × 80 mm interior needs a larger footprint in the game box. An existing container is positioned by its outside size, which says nothing about its usable capacity. Allow handling space for cards and loose pieces in their component entries. Box clearance governs placement; kerf corrects the laser path.

The bundled material profile supplies defaults. material.overrides replaces them for a project, and CLI material options take final precedence. bgi config FILE --resolved reports each effective value and its source. Measure the sheet and test the cut and joints before relying on the resulting dimensions.

See measuring, materials and calibration, and the project-file reference for the fields you can set.

Give different compartments the same outside size

Section titled “Give different compartments the same outside size”

With dimensioning, you can allow specific changes while keeping each component’s facts and useful openings fixed. For example, bounded dimensions gives two double-wall trays a common 108 mm outside width and 43 mm outside height. Their useful widths remain 48 mm and 60 mm. The smaller tray’s two permitted side borders grow from 24 mm to 30 mm each.

Declare each adjustable role with a fixed value, a minimum/preferred/maximum range, or an explicit list of choices. Ordinary compartments and split nodes can change only when you declare their permitted axes. Double-wall trays can change permitted outer borders and raised-floor heights; dice openings, profile seats and card channels keep their current dimensions. Component limits and the real panel, access and cutting checks still apply.

An alignment names the measurement to share, such as outer_x or cavity_x, and its members. required is exact; a preferred alignment can remain unfulfilled, which the report shows. Measurements use assembly axes before layout rotation. Equal-priority parameters receive equal changes from their preferred values; single 0.001 mm remainder units go by parameter ID. Lower priority numbers change first, within the permitted role order and bounds.

The report and candidate bundle list the chosen dimensions, bounds, changes and alignment results. max_variants limits the finite dimension offers examined (default 256, maximum 4096). Reaching that limit means the search is incomplete. Even checking every offered variant does not prove that all possible dimensions were searched or that the result is a global optimum.

Save a checked choice with bgi storage FILE --write-recipe RECIPE --json and rebuild it with bgi build FILE --recipe RECIPE --output DIRECTORY. The recipe reuses that exact size choice without another dimension search. Changing material thickness or the permitted dimension policy requires a new checked choice; kerf corrections follow the existing recipe rules. Synthetic examples demonstrate software behavior; physical fit and material strength still need measurement.