RSJ 3D Packer 3D bin packing, palletising and load optimisation

← All posts

2026-11-24

How to Check a Packing Plan Before Loading a Container

How to Check a Packing Plan Before Loading a Container
RSJ 3D Packer packing optimization item packer

How to Check a Packing Plan Before Loading a Container

A packing result is a promise, not a proof. The solver says 76.77 % of container one is filled, that 51 of your 108 boxes have coordinates, and that 17 units of a smaller item did not fit. Every one of those numbers is a claim about a physical object that a forklift driver is going to build in a few hours. Checking a packing plan before loading means inspecting those claims while you can still change something — add a container, drop a SKU, flip a rotation flag — instead of discovering the gap at the loading bay with a queue of trucks outside.

This article walks through a concrete verification routine for RSJ 3D Packer results: what a checkable plan contains, how to inspect it in the 3D viewer, how to read the fill and unpacked numbers, and how to do the same inspection programmatically. If you are still deciding whether an algorithmic plan is even comparable to a human loader’s intuition, that is a different question — see Static Bin Packing Solver vs Manual Loading: What Changes. Here we assume the plan exists and you need to sign off on it.

Why a Packing Plan Needs a Check Before Loading

A bad load is expensive in three separate places:

  • Space. A plan that fills 61 % of a container when 85 % was achievable means a second container, or a second trip, for the same volume of goods.
  • Rework at the dock. If the load cannot be built in the order the plan implies, someone rebuilds it by hand with a clipboard.
  • Items discovered too late. The most expensive failure mode is the box that never had a position: it is on the floor next to the ramp when the doors close.

A packing plan is fundamentally a set of claims — positions, a fill percentage, counts of what was packed and what was not. Claims have to be inspected. The solver is heuristically optimised, which is a polite way of saying “good, but not guaranteed optimal”, and it works from exactly the inputs you gave it, which is a polite way of saying “if you forgot the weight limit, the plan does not know about it”.

The good news is that verification is cheap. Every RSJ 3D Packer solution comes back with the packed items and their coordinates, per-container fill, the unpacked items with counts, a viewer URL and an API sandbox URL. That is enough to check a plan end to end without touching a single carton.

What a Verifiable Packing Plan Contains

Before checking anything, know what you are checking. A usable result contains:

  • Packed items with container index and x/y/z position. Every box has a place — { "id": 0, "c": 0, "x": 0, "y": 0, "z": 0, ... } — so the arrangement is reproducible, not just described.
  • Fill percentage per container and the number of containers used. filled and used tell you how full each container is and how many of the requested containers the plan actually consumed.
  • Unpacked items with counts. An explicit list of what did not fit, with dimensions, so nothing silently falls off the plan.
  • A viewer URL and an API sandbox URL. One to look at the load, one to re-run the request that produced it.
  • The rules the plan respects. No floating items — every packed item is supported by the item below it. An item is only placed on items of a lower or equal stacking class. Weight limits and dangerous goods constraints apply when you supply them: weight on containers, itemClass on items, riskTypes / riskPoints on items with allowedRiskPoints on containers, and risks declaring incompatible pairs.

If any of that is missing from the result you are holding, you are not verifying a plan — you are guessing at one.

Step-by-Step: Checking a Plan in RSJ 3D Packer

1. Open the load in the interactive 3D viewer

The result carries a viewer URL. Open it in the browser application at 3dpacker.rsj.de and rotate the load. This is the step people skip and the one that catches the most problems, because the eye finds things the numbers hide:

  • Large voids between blocks of items that a different arrangement could have used.
  • Items sitting high up with a narrow base — supported, as the rules require, but awkward to build.
  • A single container that is nearly empty while a second one is packed tight.

The viewer is also embeddable in an IFRAME, so you can drop the exact arrangement into a wiki page or an internal dashboard and let the loading team look at the same thing you are looking at. A sample solution is embedded on the landing page if you want to see the shape of it before you have a request of your own.

2. Compare fill percentage and container count against expectation

Read two numbers off the result: filled per container and used (the number of containers the plan consumed). Then ask:

  • Is the fill percentage in the range this product mix normally reaches? A pallet of uniform cartons should be high; a mixed load with awkward shapes will not be.
  • Did the plan use more containers than you budgeted for? That is a commercial decision, not a technical one, but you need to see it now.
  • If you submitted several containers of different sizes, does the plan load the cheap ones first? Container order matters when the sizes are mixed.

Note the “per container” part carefully. A plan that reports 92 % on container one and 40 % on container two has an average fill of 66 %, and the average is the number you should not be looking at.

3. Review the unpacked items list

unpackedItems is the honest part of the response:

"unpackedItems": [
  { "id": 2, "width": 8, "height": 9, "depth": 10, "weight": 0, "itemClass": 0, "count": 17 }
]

Seventeen units of a 8×9×10 item did not fit. Now decide: is seventeen acceptable (a partial shipment you planned for), or is it a surprise (you expected everything to go)? Compare the count against your input request — the count you sent versus the remaining reported in items, plus the unpacked quantities. If the arithmetic does not close, you have found a mismatch between what you asked for and what you submitted.

4. Re-run the request and confirm it is reproducible

The response includes an API sandbox URL. The sandbox is a live playground with a 3D preview, written in plain JavaScript, and it authenticates with your browser session — so you do not have to do a token round-trip to use it. Paste the original request, press solve, and compare. Doing that same auth handshake by hand from a shell is the hard way; the sandbox is the managed path and it is one step.

Reproducibility matters because the solver runs within a 240-second budget. Re-running confirms that the plan you are about to load is stable and not a lucky artefact of one run.

5. Export the arrangement as a GLB model

Any solution can be downloaded as a GLB 3D model. Send that file to whoever builds the load. A 3D model that can be spun around in any viewer beats a written instruction like “the tall ones go at the back left”, and it removes the interpretation layer between your screen and the dock.

Interpreting Results and Handling Edge Cases

Low fill percentage. Look at three inputs before blaming the solver. Item dimensions: a load of long, thin items packs badly no matter what. Container count: if you offered one container, the plan cannot spread the load to improve fit. Rotation settings: an item with "vertical": false must stay upright, which can cost a lot of volume — a deliberate trade-off, but one worth re-examining (we cover the trade-off itself in Prevent Items From Being Rotated During Packing: Why It Matters).

Unpacked items remain. Three options, in order of cost: add containers and re-solve, reduce the counts you submitted, or accept a partial shipment with the unpacked list as the documented remainder. What you should not do is load the overflow by hand “somewhere at the front” — that invalidates the plan you just verified.

Weight and stacking. The solver respects container weight limits and itemClass stacking order only when you supply them. If your request had no weight on the container, the plan has no opinion about whether the load is too heavy. Check your request, not just the response.

Dangerous goods. Risk types, risk points and incompatible pairs are a Pro-plan feature. If you are relying on them, confirm the request actually carried riskTypes, riskPoints, allowedRiskPoints and risks — and that the plan’s container assignments do not pair incompatible types. If the fields were absent, the result says nothing about segregation.

Time budget reached. Every request gets 240 seconds. Treat the output as the best plan found within that budget, and inspect it accordingly — a plan produced under time pressure is a good candidate for the viewer check in step 1 rather than a rubber stamp.

Using the API to Inspect a Plan Programmatically

If you are checking plans as part of a pipeline, the sandbox is not enough — you want the response in code. The API is a JSON REST interface at https://3dpacker.rsj.de, documented as an OpenAPI 3.0 document.

Authenticate once to obtain a session, then send it as a Bearer token on every call:

# Fetch a session (the hmac is computed server-side while logged in)
curl -s "https://3dpacker.rsj.de/user/you@example.com?hmac=${HMAC}"

# Use it
curl -s -X POST https://3dpacker.rsj.de/solve \
  -H "Authorization: Bearer session-1bc90169-1c83-443e-8ed7-b0328aaf78a5" \
  -H "Content-Type: application/json" \
  -d @request.json

The session is valid for roughly a day, so fetch a fresh one per run instead of storing it. Then inspect the response fields directly: containers, items, packedItems, unpackedItems and usedContainers.

import json

with open("response.json") as f:
    plan = json.load(f)

# 1. Container dimensions, keyed by index
dims = {i: (c["width"], c["height"], c["depth"]) for i, c in enumerate(plan["containers"])}

# 2. Every packed item must sit inside its container's bounds
for p in plan["packedItems"]:
    w, h, d = dims[p["c"]]
    assert p["x"] >= 0 and p["x"] + p["width"] <= w, p
    assert p["y"] >= 0 and p["y"] + p["height"] <= h, p
    assert p["z"] >= 0 and p["z"] + p["depth"] <= d, p

# 3. Packed + unpacked counts must equal what you asked for
packed = sum(1 for _ in plan["packedItems"])
unpacked = sum(u["count"] for u in plan["unpackedItems"])
print(f"packed={packed} unpacked={unpacked} containers_used={len(plan['usedContainers'])}")

# 4. Report fill per container, not the average
for c in plan["containers"]:
    print(f"container {c.get('first', '?')}: filled={c['filled']}% used={c['used']}")

That snippet is deliberately boring: bounds checks, count reconciliation, per-container fill. Boring is what you want from a pre-load check. Note that unknown keys in the request are ignored, so you can attach your own metadata (an order number, a customer id) and read it back on your side — just be aware a future field could collide with a key you invented.

FAQ

Can I check a packing plan without loading the container first?

Yes. RSJ 3D Packer returns a viewer URL and an API sandbox URL with every solution, so you can inspect the 3D arrangement, fill percentage and unpacked items before any physical loading begins.

What does fill percentage tell me and what does it not tell me?

Fill percentage per container shows how much of the container volume the packed items occupy. It does not by itself prove that weight limits, stacking classes or dangerous goods rules were satisfied; those depend on the optional fields you supplied in the request.

How do I know which items were left unpacked?

The response includes an unpackedItems list with dimensions and counts for every item that did not fit, so you can compare it against your input and decide whether to add containers or adjust the load.

Is the plan guaranteed to be optimal?

No. RSJ 3D Packer produces heuristically optimised solutions within a 240-second time budget per request, so the result is the best plan found in that budget rather than a mathematical optimum.

Conclusion

Checking a packing plan is four questions asked in order: does the 3D arrangement look buildable, is the fill percentage what this product mix should reach, is the unpacked list acceptable, and did my request actually contain the weight, class and risk fields the plan was supposed to respect? Answer those and you can hand the plan to the loading team with a straight face.

RSJ 3D Packer makes that routine short — an interactive viewer, per-container fill, an explicit unpacked list, a sandbox to re-run the request, and a GLB export for the dock. Every plan can be tested free for 30 days with the Pro feature set, including different container sizes, weight limits, rotation control and dangerous goods handling. Start at 3dpacker.rsj.de, and read 3D Packing Software Pricing per Month: What the Tiers Include before you pick a plan.

Related posts

EU label: AI-generated content