RULE / OBSTACLES

Obstacles and clearance in 3D packing

Reserved volumes are geometry: unions of exact boxes approximate a wheel arch, a post or a roof shelf, and placements route around them.

EXPRESSED WITHobstacles + additional_boxes

Why it exists

The usable space is rarely the container envelope. Modelling the exclusion zone is what makes the result loadable in the vehicle you actually have.

What a useful refusal looks like

The engine returns the rule that refused, the item it refused, and the measured value against the configured threshold. It also states how strongly that is backed: proven, observed, inferred, or unknown because a search limit was reached first.

See the fixtures for this rule
THE SAME REQUEST, WITH AND WITHOUT THE RULE

What this rule changes

One request, run twice by @packvium/engine while this page was built: once as written, once with only this rule taken out. The request diff is the whole input change; everything in the result diff follows from it.

WITHOUT THE RULEEverything fitted4/4
1200×600×600 · 8.3% used
crate × 4
Open in the Playground →
WITH THE RULEEverything fitted4/4
1200×600×600 · 8.3% used
crate × 4wheel-arch
Open in the Playground →
REQUEST DIFF
  … unchanged lines: 19          "height": "600"        },+       "obstacles": [+         {+           "id": "wheel-arch",+           "origin": {+             "x": "900",+             "y": "0",+             "z": "0"+           },+           "dimensions": {+             "length": "300",+             "width": "150",+             "height": "200"+           }+         }+       ]      }    ]  }
RESULT DIFF
  • placementsplaced elsewhere: 4