jsketcher/web/app/cad/model/mopenFace.ts
2022-11-05 21:23:16 -07:00

26 lines
537 B
TypeScript

import {MShell} from './mshell';
import {MFace} from './mface';
export class MOpenFaceShell extends MShell {
private surfacePrototype: any;
constructor(surfacePrototype, csys?) {
super();
this.surfacePrototype = surfacePrototype;
this.csys = csys;
this.faces.push(new MFace(this.id + '/SURFACE', this,
surfacePrototype.boundTo([], 100, 100), csys));
if (!this.csys) {
this.csys = this.face.csys;
}
}
get face() {
return this.faces[0];
}
get parent() {
return null;
}
}