Data Groups
TonCut Engine uses 3 data groups:
- Configuration – contains configuration, i.e. optimization profiles.
- Input – contains input data, i.e. pieces, stock, veneers, material groups and devices.
- Output – contains output data, i.e. piece locations, piece transformations and cuts.
Each of the data groups is described in JSON format.
Common
All the data groups must contain two properties that are used to decode the data.
That is version and defaultUnits.
version
The version property specifies the version of the format the data group is encoded in.
The version may be different for different data groups, as we are increasing it always when the format changes.
defaultUnits
The defaultUnits property specifies the default units for various measurements in the data group.
It contains several sub-properties:
time | default unit for time measurements. |
percent | default unit for percentage measurements. |
length | default unit for length measurements. |
field | default unit for field measurements. |
angle | default unit for angle measurements. |
Configuration
Config data group contains just a list of profiles to be used.
| Attributes |
|---|
versionint mandatoryVersion number of the data group.
For the moment it should be set to 3.
defaultUnitsobjectDefault units specification as described in defaultUnits section.
profileslist(Profile)List of profile objects.
If no profiles are provided, the program will use the default ones.
Configuration data group
Input
Input data group contains input data.
| Attributes |
|---|
versionint mandatoryVersion number of the data group.
For the moment it should be set to 1.
defaultUnitsobjectDefault units specification as described in defaultUnits section.
deviceslist(Device) mandatoryList of device objects.
materialslist(Material) mandatoryList of material objects.
veneerslist(Veneer)List of veneer objects.
pieceslist(Piece) mandatoryList of piece objects.
stocklist(StockItem) mandatoryList of StockItem objects.
Input data group
Output
Output data group contains optimization results.
| Attributes |
|---|
versionintVersion number of the data group.
Version
1had no support forquantityin Cutting object. Latest version is3.defaultUnitsobjectDefault units specification as described in defaultUnits section.
statisticsobjectGlobal statistics of the entire optimization.
Show Child Attributes
cuttingslist(Cutting)List of cutting objects.