Skip to content

@orillusion/graphic


Class: Earcut ​

Defined in: packages/graphic/renderer/shape3d/Earcut.ts:5

Port from https://github.com/mapbox/earcut (v2.2.4)

Constructors ​

Constructor ​

new Earcut(): Earcut

Returns ​

Earcut

Methods ​

triangulate() ​

static triangulate(data, holeIndices?, dim?): any[]

Defined in: packages/graphic/renderer/shape3d/Earcut.ts:6

Parameters ​

data ​

any

holeIndices? ​

any

dim? ​

number = 2

Returns ​

any[]

Released under the MIT License