mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 21:05:22 +01:00
20 lines
624 B
JavaScript
20 lines
624 B
JavaScript
import {View} from "cad/scene/views/view";
|
|
import {VertexObject} from "cad/scene/views/vertexView";
|
|
|
|
export class SketchPointView extends View {
|
|
|
|
constructor(ctx, sketchPoint) {
|
|
super(ctx, sketchPoint);
|
|
this.rootGroup = new VertexObject(ctx.viewer, 15, 100, () => this.rootGroup.position, true, 0x0000FF);
|
|
|
|
this.rootGroup.position.x = sketchPoint.sketchPrimitive.pt.x;
|
|
this.rootGroup.position.y = sketchPoint.sketchPrimitive.pt.y;
|
|
this.rootGroup.position.z = sketchPoint.sketchPrimitive.pt.z;
|
|
}
|
|
|
|
dispose() {
|
|
this.rootGroup.dispose();
|
|
super.dispose();
|
|
// this.rootGroup.dispose();
|
|
}
|
|
}
|