mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 08:25:19 +01:00
apply transformation to the points
This commit is contained in:
parent
b22f32f6f1
commit
0dea626eee
1 changed files with 2 additions and 4 deletions
|
|
@ -3,13 +3,11 @@ import {VertexObject} from "cad/scene/views/vertexView";
|
||||||
|
|
||||||
export class SketchPointView extends View {
|
export class SketchPointView extends View {
|
||||||
|
|
||||||
constructor(ctx, sketchPoint) {
|
constructor(ctx, sketchPoint, sketchTr) {
|
||||||
super(ctx, sketchPoint);
|
super(ctx, sketchPoint);
|
||||||
this.rootGroup = new VertexObject(ctx.viewer, 15, 100, () => this.rootGroup.position, true, 0x0000FF);
|
this.rootGroup = new VertexObject(ctx.viewer, 15, 100, () => this.rootGroup.position, true, 0x0000FF);
|
||||||
|
|
||||||
this.rootGroup.position.x = sketchPoint.sketchPrimitive.pt.x;
|
sketchTr.__apply(sketchPoint.sketchPrimitive.pt, this.rootGroup.position);
|
||||||
this.rootGroup.position.y = sketchPoint.sketchPrimitive.pt.y;
|
|
||||||
this.rootGroup.position.z = sketchPoint.sketchPrimitive.pt.z;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispose() {
|
dispose() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue