No permitted rotation fits rotation_restricted
RULE / ROTATIONS
Rotations in 3D packing
Orientation is restricted per axis, not as a single on/off switch, and 'this side up' is expressible on the item that needs it.
allowed_rotations · keep_uprightWhy it exists
Real goods have orientations they must not take. An engine that silently tries all six orientations answers a different question from the one that was asked.
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 ruleTHE 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.
1/1plank × 1
0/1REFUSED · 1plank#1Proven
… unchanged lines: 9 "height": "1500" },+ "keep_upright": true } ], … unchanged lines: 11
- statusEverything fitted → Best packing found
- items packed
1 → 0 - containers opened
1 → 0 plank#1packed → rotation_restricted · proven