Scanline
[Desktop Automation]
An instance of this object is returned by the function of the LUATray:
object packer = tray:createpacker(tray.packingid_3d)
Properties
The 3D Scanline packer uses borderspacingxy
, borderspacingz
, but not defaultpartrotation
and minimaldistance
from the general packer properties.
Property | Read/write | Type | Description |
---|---|---|---|
allowrotationaxis | read/write | Boolean | When true, the parts may be rotated around the z-axis. The default value is false. |
anglecount | read/write | Number | Integer from 0 to 7; the packer tries part orientations rotated in increments of 360/anglecount to find better fits. The default value is 0. |
coarsening | read/write | Number | Integer from 1 to 9; a multiplier for rastersize to determine the final raster size the packer works with. The default value is 1. |
interlockingprotection | read/write | Boolean | Prevents parts with holes from becoming entangled in each other but incurs significant computational cost. The default value is false. |
minimizeoutbox | read/write | Boolean | When true, the meshes are rotated to where they have smallest possible bounding box before packing. The default value is false. |
placeoutside | read/write | Boolean | When true, parts are moved outside the tray if they could not be moved. The default value is false. |
rastersize | read/write | Number | 1 to 5 mm; the side lengths of cubes in the initial raster. The default value is 1 mm. |
Methods
Name | Syntax | Description |
---|---|---|
pack | Result = packer:pack() | Pack the tray with the desired algorithm. Returns an error codes 0 for packing done, no problems detected, all parts were packed, or 1 for an error. |