|
|
|
@ -89,8 +89,8 @@ export class Cursor
|
|
|
|
|
{
|
|
|
|
|
if (this._LineLength === l) return;
|
|
|
|
|
this._LineLength = l;
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._CrossLineObject.geometry as BufferGeometry, this.CrossLinePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._CrossLineObject.geometry as BufferGeometry, this.CrossLinePts(), true);
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts(), true);
|
|
|
|
|
}
|
|
|
|
|
set LineLength3D(l: number)
|
|
|
|
|
{
|
|
|
|
@ -100,7 +100,7 @@ export class Cursor
|
|
|
|
|
for (let i = 0; i < this._threeDLine.children.length; i++)
|
|
|
|
|
{
|
|
|
|
|
let line = this._threeDLine.children[i] as LineSegments;
|
|
|
|
|
BufferGeometryUtils.UpdatePts(line.geometry as BufferGeometry, ptList[i]);
|
|
|
|
|
BufferGeometryUtils.UpdatePts(line.geometry as BufferGeometry, ptList[i], true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
UpdateCursor()
|
|
|
|
@ -148,8 +148,8 @@ export class Cursor
|
|
|
|
|
set SquareSize(size: number)
|
|
|
|
|
{
|
|
|
|
|
this._SquareSize = size;
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._SquareObject.geometry as BufferGeometry, this.SquarePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._SquareObject.geometry as BufferGeometry, this.SquarePts(), true);
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts(), true);
|
|
|
|
|
|
|
|
|
|
this.UpdateEvent();
|
|
|
|
|
}
|
|
|
|
@ -161,8 +161,8 @@ export class Cursor
|
|
|
|
|
set CrossLineLength(length: number)
|
|
|
|
|
{
|
|
|
|
|
this._LineLength = length;
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._CrossLineObject.geometry as BufferGeometry, this.CrossLinePts());
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._OutsideCrossLineObject.geometry as BufferGeometry, this.OutsideLinePts(), true);
|
|
|
|
|
BufferGeometryUtils.UpdatePts(this._CrossLineObject.geometry as BufferGeometry, this.CrossLinePts(), true);
|
|
|
|
|
|
|
|
|
|
this.UpdateEvent();
|
|
|
|
|
}
|
|
|
|
|