增加调试状态

pull/7/head
cx 7 years ago
parent ad5302fb18
commit 44d31a97f9

@ -1,7 +1,5 @@
import * as THREE from 'three'
import * as _ from "lodash";
import { OrbitControls } from "../GraphicsSystem/OrbitControls";
import { CameraUtil } from "../GraphicsSystem/CameraUtil";
import { CreateUtil } from "../ApplicationServices/mesh/createObject";
import { Database } from '../DatabaseServices/Database';
import { Viewer } from '../GraphicsSystem/Viewer';
@ -11,6 +9,7 @@ import { Editor } from '../Editor/Editor';
import { OBB } from '../Geometry/OBB/obb';
import { CoordinateSystem } from '../Geometry/CoordinateSystem';
import { CameraControls } from '../Editor/CameraControls';
import { SelectControls } from '../Editor/SelectControls';
export var app: ApplicationService
export var ed: Editor
export var db: Database
@ -31,7 +30,7 @@ export class ApplicationService
//相机控制
new CameraControls(this.m_Viewer, this.m_Viewer.m_Render.domElement);
new SelectControls(this.m_Viewer);
new DebugDatUi();
this.m_Editor = new Editor(this)

@ -9,6 +9,7 @@ export class SelectControls
constructor(ed: Viewer)
{
this.m_Viewer = ed;
this.RegisterEvent();
}
RegisterEvent()
{
@ -33,6 +34,7 @@ export class SelectControls
{
// ed.m_SelectCss.Hide()
}
console.log('m_SelectIng: ', this.m_SelectIng);
}
onMouseMove = () =>
{

Loading…
Cancel
Save