From c26a3cdf224bd7b1955cb16df84a14bf35ce094b Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 31 Oct 2017 10:07:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Editor/SelectSet.ts | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/src/Editor/SelectSet.ts b/src/Editor/SelectSet.ts index 2c7412842..8b53c7880 100644 --- a/src/Editor/SelectSet.ts +++ b/src/Editor/SelectSet.ts @@ -22,22 +22,18 @@ export class SelectSetBase { //选择类型 m_SelectType: SelectType = SelectType.None; - + //选择的视图 m_Viewer: Viewer; - m_ViewerHeight: number; + m_ViewerWindowWidth: number; m_ViewerWindowHeight: number; //视图矩阵.. - m_ViewMatrix: THREE.Matrix4; m_ProjScreenMatrix = new Matrix4(); - m_ViewmatrixWorldInverse: THREE.Matrix4; - m_SelectList = new Array(); constructor(view: Viewer) { this.m_Viewer = view; - this.m_ViewerHeight = view.m_ViewHeight; this.m_ViewerWindowWidth = view.m_HtmlElement.scrollWidth; this.m_ViewerWindowHeight = view.m_HtmlElement.scrollHeight; @@ -45,9 +41,6 @@ export class SelectSetBase let camera = view.m_Camera.m_CurCamera; this.m_ProjScreenMatrix.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse); - - this.m_ViewMatrix = camera.matrix.clone(); - this.m_ViewmatrixWorldInverse = camera.matrixWorldInverse.clone(); } WorldToScreenPoint(pt: THREE.Vector3) @@ -79,29 +72,6 @@ export class SelectSetBase } } } - // /** - // * 获得投影的点表. - // * - // * @param {THREE.Vector3} planDir - // * @returns {Array} - // * @memberof SelectBox - // */ - // getProjectionPts(planDir: THREE.Vector3): Array - // { - // if (GeUtils.isParallelTo(planDir, this.m_ViewNormal)) - // return []; - // let dirStr = GeUtils.ptToString(planDir); - // if (this.m_SelPolyPtsBuff.has(dirStr)) - // return this.m_SelPolyPtsBuff.get(dirStr) - // let plan = new PlaneExt(planDir); - // let pts = this.m_SelPolyPts.map(p => - // { - // let l = new THREE.Line3(p, p.clone().add(this.m_ViewNormal)); - // return plan.intersectLine(l, null, true); - // }); - // this.m_SelPolyPtsBuff.set(dirStr, pts); - // return pts; - // } }