跳到主要内容

KPath2dOffsetRet 接口

export interface KPath2dOffsetRet 

Represent the result of path 2d offset.

属性

newCurves

newCurves: KBoundedCurve2d[];

The newly created curves to connect offset curves after offsetting. For example, we offset arc DEA to right, the arc will become small, we create DG and FA to make sure all edges are connected.

B-------------------- .A | . | E : | . C-------------------- .D

B-------------------------A | |F | E : | | G C----------------------- .D

类型: KBoundedCurve2d[]

offsetCurves

offsetCurves: KBoundedCurve2d[][];

类型: KBoundedCurve2d[][]

originalCurves

originalCurves: KBoundedCurve2d[];

The original curve - new curves mapping

类型: KBoundedCurve2d[]

resultPaths

resultPaths: KBoundedCurve2d[][];

The result paths after offsetting.

类型: KBoundedCurve2d[][]