跳到主要内容

KPath2dOffsetRet interface

Represent the result of path 2d offset.

Signature:

export interface KPath2dOffsetRet 

Properties

Property

Modifiers

Type

Description

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

offsetCurves

KBoundedCurve2d[][]

originalCurves

KBoundedCurve2d[]

The original curve - new curves mapping

resultPaths

KBoundedCurve2d[][]

The result paths after offsetting.