jsketcher/web/app/cad/model/mloop.ts
2022-06-25 15:19:47 -07:00

36 lines
642 B
TypeScript

import {MObject} from './mobject';
import {MFace} from "./mface";
import {MSketchObject} from "./msketchObject";
import {EntityKind} from "cad/model/entities";
export class MLoop extends MObject {
static TYPE = EntityKind.LOOP;
constructor(id) {
super(MLoop.TYPE, id);
}
get parent() {
return null;
}
}
export class MSketchLoop extends MLoop {
face: MFace;
sketchObjects: MSketchObject[];
contour: any;
constructor(id, face, sketchObjects, contour) {
super(id);
this.face = face;
this.sketchObjects = sketchObjects;
this.contour = contour;
}
get parent() {
return this.face;
}
}