-
Notifications
You must be signed in to change notification settings - Fork 10
Home
Example: -b 0:ft:1:5x5x5:1
Format: {id}:{dim_unit}:{quantity}:{size1}x{size2}x{size3}:{weight}
id: User identification code
dim_unit: The dimensional units. Recognized are ft, mm, cm and m which are all converted to inches. If not recognized, no conversion is done - the dimensions are assumed to be inches. If all your dimension use the same dimensional unit, then enter something unrecognized e.g. -
quantity: Number of these bins available. -1 indicates an infinite supply
size{n} : The dimensions of the bin
weight : The maximum weight of items the bin can hold. 0 indicates weight of items will be ignored. All weights in the same unit
Example: -i 0:ft:0:1:1x1x1:1
Format: {id}:{dim_unit}:{constraint}:{quantity}:{size1}x{size2}x{size3}:{weight}
constraint = position_constraint + rotation_constraint
position constraint 0 : anywhere 100 : bottom only 200 : top only rotation constraint 0 : Any 1 : Length axis only 2 : Width axis only 3 : Height axis only 7 : No rotation allowed
The details of the pack are output in JSON ( see below ) and STL. The STL is intended to be viewed with a specialized STL-Viewer ( https://github.com/JamesBremner/STL-Viewer ) which animates the packing when the mousewheel is rotated.
Command Line: packit4me2 -b 0:ft:1:3x3 -i a:ft:0:4:1x2 -s b
Output:
[ { "bin_size": "3 x 3", "userid": "0", "progid": "0", "size_1": 3, "size_2": 3, "items_count": 4, "rems_count": 1, "bin_perc_used": 0.888889, "rem_perc_avail": 0.111111, "total_size": 9, "items": [ { "item_size": "1 x 2", "user_id": "a", /// User assigned ID "prog_id": "1", /// Program assigned unique ID "constraints": 0, "bin": 0, /// bin program ID where this item was packed "W": 0, /// location of item in bin, width "H": 0 /// location of item in bin, height }, { "item_size": "1 x 2", "user_id": "a", "prog_id": "3", "constraints": 0, "bin": 0, "W": 2, "H": 0 }, { "item_size": "1 x 2", "user_id": "a", "prog_id": "2", "constraints": 0, "bin": 0, "W": 0, "H": 1 }, { "item_size": "1 x 2", "user_id": "a", "prog_id": "4", "constraints": 0, "bin": 0, "W": 0, "H": 2 } ], "rems": [ { "rem_size": "1 x 1", "size_1": 1, "size_2": 1 } ] } ]