UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

13 lines (9 loc) 341 B
import Vec2 from '../maths/vec2/type' import Geom2 from '../geometries/geom2/type' export default polygon export interface PolygonOptions { points: Array<Vec2> | Array<Array<Vec2>> paths?: Array<number> | Array<Array<number>> orientation?: 'counterclockwise' | 'clockwise' } declare function polygon(options: PolygonOptions): Geom2