line 增加应用矩阵的方法

pull/6/head
ChenX 7 years ago
parent 6966d87c13
commit 0af5a2da20

@ -1,5 +1,5 @@
//直线对象
import { Geometry, Object3D, Vector3 } from 'three';
import { Geometry, Matrix4, Object3D, Vector3 } from 'three';
import * as THREE from 'three';
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-----------------------------
//对象应该实现dataIn和DataOut的方法,为了对象的序列化和反序列化

Loading…
Cancel
Save