|
|
@ -1,5 +1,5 @@
|
|
|
|
//直线对象
|
|
|
|
//直线对象
|
|
|
|
import { Geometry, Object3D, Vector3 } from 'three';
|
|
|
|
import { Geometry, Matrix4, Object3D, Vector3 } from 'three';
|
|
|
|
import * as THREE from 'three';
|
|
|
|
import * as THREE from 'three';
|
|
|
|
|
|
|
|
|
|
|
|
import { ColorMaterial } from '../Common/ColorPalette';
|
|
|
|
import { ColorMaterial } from '../Common/ColorPalette';
|
|
|
@ -72,6 +72,13 @@ export class Line extends Curve
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ApplyMatrix(m: Matrix4)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.startPoint.applyMatrix4(m);
|
|
|
|
|
|
|
|
this.endPoint.applyMatrix4(m);
|
|
|
|
|
|
|
|
this.Update();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//#region -----------------------------File-----------------------------
|
|
|
|
//#region -----------------------------File-----------------------------
|
|
|
|
//对象应该实现dataIn和DataOut的方法,为了对象的序列化和反序列化
|
|
|
|
//对象应该实现dataIn和DataOut的方法,为了对象的序列化和反序列化
|
|
|
|