export class VerticesService {
    constructor(occ, shapeGettersService) {
        this.occ = occ;
        this.shapeGettersService = shapeGettersService;
    }
    getVerticesAsPoints(inputs) {
        const vertices = this.shapeGettersService.getVertices(inputs);
        return this.verticesToPoints({ shapes: vertices });
    }
    verticesToPoints(inputs) {
        return inputs.shapes.map(v => {
            const pt = this.occ.BRep_Tool.Pnt(v);
            const res = [pt.X(), pt.Y(), pt.Z()];
            pt.delete();
            return res;
        });
    }
}
