starry / backend /libs /three /extras /core /Shape.d.ts
k-l-lambda's picture
feat: add Python ML services (CPU mode) with model download
2b7aae2
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[][];
};
}