jsketcher/web/app/cad/model/mloop.ts
2020-06-20 21:53:23 -07:00

35 lines
586 B
TypeScript

import {MObject} from './mobject';
import {MFace} from "./mface";
import {MSketchObject} from "./msketchObject";
export class MLoop extends MObject {
static TYPE = '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;
}
}