mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 08:25:19 +01:00
36 lines
642 B
TypeScript
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;
|
|
}
|
|
|
|
}
|
|
|