|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import * as THREE from 'three'
|
|
|
|
|
import * as _ from "lodash";
|
|
|
|
|
import { layoutOnsizeEvent } from '../UI/Layout/LayoutOnSizeEventManage';
|
|
|
|
|
import * as THREE from 'three';
|
|
|
|
|
import * as _ from 'lodash';
|
|
|
|
|
import { CreateUtil } from "../ApplicationServices/mesh/createObject";
|
|
|
|
|
import { Database } from '../DatabaseServices/Database';
|
|
|
|
|
import { Viewer } from '../GraphicsSystem/Viewer';
|
|
|
|
@ -27,13 +28,19 @@ export class ApplicationService
|
|
|
|
|
this.m_Database = new Database();
|
|
|
|
|
//渲染器
|
|
|
|
|
this.m_Viewer = new Viewer(document.getElementById("Webgl"));
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
layoutOnsizeEvent.register("Webgl", () =>
|
|
|
|
|
{
|
|
|
|
|
this.m_Viewer.onSize();
|
|
|
|
|
})
|
|
|
|
|
this.m_Viewer.renderDatabase(this.m_Database);
|
|
|
|
|
|
|
|
|
|
//性能测试
|
|
|
|
|
new RenderPerformanceStatus(this.m_Viewer);
|
|
|
|
|
// new RenderPerformanceStatus(this.m_Viewer);
|
|
|
|
|
//相机控制
|
|
|
|
|
new CameraControls(this.m_Viewer, this.m_Viewer.m_Render.domElement);
|
|
|
|
|
new DebugDatUi();
|
|
|
|
|
new CameraControls(this.m_Viewer);
|
|
|
|
|
// new DebugDatUi();
|
|
|
|
|
|
|
|
|
|
this.m_Editor = new Editor(this)
|
|
|
|
|
app = this;
|
|
|
|
|