Data Model & Units

TonCut Desktop exposes a rich shared kernel model. Plugins do not need to know every implementation detail, but they do need to respect host units, rotation conventions, shape types, and object naming so imported or exported data stays consistent.

Units

Important shared conventions from uICommon:

ItemMeaning
User-facing length system: millimeters, centimeters, or inches.
cLengthMultiplier = 100Internal integer length scaling used by many dimensions.
TRotationRotation unit stored in tenths of a degree.
cRotation90, cRotation180, cRotation270, cRotation360Precomputed rotation constants based on that unit.
TFieldArea-like value in internal squared units.

Use ITonCut helpers such as FormatLength, HumanReadableLength, FormatField, HumanReadableField, FormatDegrees, and FormatRadians whenever you need host-consistent display text in plugin UI.

Geometry

Desktop plugins mainly encounter geometry in four places:

  1. IFormat Shape, IBanding, and IGrinds when importing piece definitions.
  2. ISheet Edging and ISheetDefects when importing or exporting stock.
  3. ISolutionSheet coordinate helpers when exporting results.
  4. ISolutionCut, ISolutionWaste, and ISolutionFormat when reading optimization output.

The shared shape model supports rectangles, linear shapes, arbitrary paths, and more specialized enumerated shape types. Result exporters should not assume that every piece or waste area is a plain rectangle, even when many importers start with rectangular data.

Terminology map

TonCut Engine docs describe many of the same concepts under Engine-oriented names. When you move between the two documentation sets, use this mapping:

Engine termDesktop interface
DeviceIDevice
Material / material groupIMaterial
Veneer / bandIBand / IBanding
PieceIFormat
Stock / stock itemISheet / IStandardSheet
Cutting / output sheetISolutionSheet
Output pieceISolutionFormat
WasteISolutionWaste
CutISolutionCut

Was this page helpful?