three
Version:
JavaScript 3D library
34 lines (25 loc) • 461 B
TypeScript
import { Vector2 } from './../../math/Vector2';
import { Path } from './Path';
/**
* Defines a 2d shape plane using paths.
*/
export class Shape extends Path {
constructor( points?: Vector2[] );
/**
* @default 'Shape'
*/
type: string;
/**
*
*/
uuid: string;
/**
* @default []
*/
holes: Path[];
getPointsHoles( divisions: number ): Vector2[][];
extractPoints( divisions: number ): {
shape: Vector2[];
holes: Vector2[][];
};
}