|
|
|
@ -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)
|
|
|
|
|