跳到主要内容

IEngravingMachineCuttingTaskItemObject interface

同种材质以及厚度的待排小板,每个item描述小板形状

Signature:

interface IEngravingMachineCuttingTaskItemObject 

Properties

Property

Modifiers

Type

Description

count

number

排版小板个数 Minimum value (exclusive) : 0 Example : 2

flip

number

小板是否可以翻转,取值0或1。0表示不允许翻转,1表示允许翻转。 Minimum value : 0 Maximum value : 1 Example : 0

is_irshape

boolean

true:表示异形, false:表示矩形, 目前接口仅支持方形件

item_id

string

描述item id Length : 1 - 256 Example : "1"

item_name

string

小板名称 Length : 1 - 256 Example : "item_1"

orientations

number[]

小板可以选择的旋转角度,目前支持矩形小板90度旋转 Example : [ 0, 90 ]

vertices

Array<[number, number]>

矩形轮廓的点集,点集逆时针顺序 Example : [ [ 0, 0 ], [ 433, 0 ], [ 433, 2337 ], [ 0, 2337 ] ]