viral-viewer-2 6.0.8 → 6.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/camera/viral-camera.d.ts +1 -1
- package/dist/components/custom-objects/viral-instanced-mesh.d.ts +2 -1
- package/dist/components/custom-objects/viral-instanced-mesh.js +5 -3
- package/dist/components/custom-objects/viral-instanced-mesh.js.map +1 -1
- package/dist/components/loader/viral-three.loader.d.ts +1 -1
- package/dist/components/post-processing/ambient-occlusion-effect.d.ts +0 -2
- package/dist/components/post-processing/ambient-occlusion-effect.js +1 -2
- package/dist/components/post-processing/ambient-occlusion-effect.js.map +1 -1
- package/dist/components/post-processing/viral-post-processing.d.ts +11 -0
- package/dist/components/post-processing/viral-post-processing.js +29 -0
- package/dist/components/post-processing/viral-post-processing.js.map +1 -0
- package/dist/components/scene/viral-scene.d.ts +1 -1
- package/dist/gui/draggable-modal/viral-draggable-modal.d.ts +11 -0
- package/dist/gui/draggable-modal/viral-draggable-modal.js +91 -0
- package/dist/gui/draggable-modal/viral-draggable-modal.js.map +1 -0
- package/dist/gui/spinner/viral-spinner.d.ts +10 -0
- package/dist/gui/spinner/viral-spinner.js +102 -0
- package/dist/gui/spinner/viral-spinner.js.map +1 -0
- package/dist/models/dictionary.model.d.ts +0 -10
- package/dist/models/dictionary.model.js +0 -41
- package/dist/models/dictionary.model.js.map +1 -1
- package/dist/threejs-addon/gltf-loader.d.ts +1 -1
- package/dist/threejs-addon/n8ao/n8ao.d.ts +8 -8
- package/dist/threejs-addon/n8ao/post-processing.d.ts +3919 -1534
- package/dist/threejs-addon/post-processing/outline-pass.d.ts +7 -7
- package/dist/threejs-addon/post-processing/pass.d.ts +1 -1
- package/dist/threejs-addon/post-processing/sao-pass.d.ts +5 -5
- package/dist/threejs-addon/post-processing/ssaa-render-pass.d.ts +30 -0
- package/dist/threejs-addon/post-processing/ssaa-render-pass.js +202 -0
- package/dist/threejs-addon/post-processing/ssaa-render-pass.js.map +1 -0
- package/dist/threejs-addon/post-processing/unreal-bloom-pass.d.ts +3 -3
- package/dist/threejs-addon/shaders/color-correction-shader.d.ts +22 -0
- package/dist/threejs-addon/shaders/color-correction-shader.js +43 -0
- package/dist/threejs-addon/shaders/color-correction-shader.js.map +1 -0
- package/dist/threejs-addon/shaders/fxaa-shader.d.ts +14 -0
- package/dist/threejs-addon/shaders/fxaa-shader.js +279 -0
- package/dist/threejs-addon/shaders/fxaa-shader.js.map +1 -0
- package/dist/threejs-addon/transform-control.d.ts +3 -3
- package/dist/viral-viewer-api.d.ts +1 -1
- package/dist/viral-viewer-api.js +1 -1
- package/dist/viral-viewer-api.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/compress/compress.processor.d.ts +0 -4
- package/dist/components/compress/compress.processor.js +0 -29
- package/dist/components/compress/compress.processor.js.map +0 -1
- package/dist/components/loader/viral-viewer-point-cloud.loader.d.ts +0 -16
- package/dist/components/loader/viral-viewer-point-cloud.loader.js +0 -33
- package/dist/components/loader/viral-viewer-point-cloud.loader.js.map +0 -1
- package/dist/components/loader/viral-viewer-revit.loader.d.ts +0 -13
- package/dist/components/loader/viral-viewer-revit.loader.js +0 -124
- package/dist/components/loader/viral-viewer-revit.loader.js.map +0 -1
- package/dist/components/worker/load-model.d.ts +0 -126
- package/dist/components/worker/load-model.js +0 -1265
- package/dist/components/worker/load-model.js.map +0 -1
- package/dist/components/worker/test-worker-pool.d.ts +0 -6
- package/dist/components/worker/test-worker-pool.js +0 -21
- package/dist/components/worker/test-worker-pool.js.map +0 -1
- package/dist/components/worker/viral-viewer.worker-pool.d.ts +0 -0
- package/dist/components/worker/viral-viewer.worker-pool.js +0 -61
- package/dist/components/worker/viral-viewer.worker-pool.js.map +0 -1
- package/dist/components/worker/worker-pool.d.ts +0 -21
- package/dist/components/worker/worker-pool.js +0 -47
- package/dist/components/worker/worker-pool.js.map +0 -1
- package/dist/components/worker/worker-thread.d.ts +0 -9
- package/dist/components/worker/worker-thread.js +0 -30
- package/dist/components/worker/worker-thread.js.map +0 -1
- package/dist/components/worker-script/test-worker-pool.script.d.ts +0 -1
- package/dist/components/worker-script/test-worker-pool.script.js +0 -12
- package/dist/components/worker-script/test-worker-pool.script.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fxaa-shader.js","sourceRoot":"","sources":["../../../src/threejs-addon/shaders/fxaa-shader.js"],"names":[],"mappings":";;;AAAA,iCAEe;AAEf;;;;;;GAMG;AAEH,MAAM,UAAU,GAAG;IAEf,QAAQ,EAAE;QAEN,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE;QAC3B,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,eAAO,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE;KAE1D;IAED,YAAY,EAAE,UAAU,CAAC;;;;;;;;;IASzB;IAEA,cAAc,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyPlB;CAED,CAAC;AAEO,gCAAU"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export class TransformControls extends Object3D<import("three").
|
|
1
|
+
export class TransformControls extends Object3D<import("three").Object3DEventMap> {
|
|
2
2
|
constructor(camera: any, domElement: any);
|
|
3
3
|
isTransformControls: boolean;
|
|
4
4
|
domElement: any;
|
|
@@ -51,7 +51,7 @@ export class TransformControls extends Object3D<import("three").Event> {
|
|
|
51
51
|
setSpace(space: any): void;
|
|
52
52
|
space: any;
|
|
53
53
|
}
|
|
54
|
-
export class TransformControlsGizmo extends Object3D<import("three").
|
|
54
|
+
export class TransformControlsGizmo extends Object3D<import("three").Object3DEventMap> {
|
|
55
55
|
constructor();
|
|
56
56
|
isTransformControlsGizmo: boolean;
|
|
57
57
|
type: string;
|
|
@@ -60,7 +60,7 @@ export class TransformControlsGizmo extends Object3D<import("three").Event> {
|
|
|
60
60
|
helper: {};
|
|
61
61
|
updateMatrixWorld(force: any): void;
|
|
62
62
|
}
|
|
63
|
-
export class TransformControlsPlane extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[]> {
|
|
63
|
+
export class TransformControlsPlane extends Mesh<BufferGeometry<import("three").NormalBufferAttributes>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> {
|
|
64
64
|
constructor();
|
|
65
65
|
isTransformControlsPlane: boolean;
|
|
66
66
|
type: string;
|
|
@@ -7,7 +7,6 @@ import { ViralRenderer } from "./components/renderer/viral-renderer";
|
|
|
7
7
|
import { ViralNavigationCube } from "./components/navigation-cube/viral-navigation-cube";
|
|
8
8
|
import { ViralAnimation } from "./components/animation/viral-animation";
|
|
9
9
|
import { ViralTools } from "./components/tools/viral-tools";
|
|
10
|
-
import { ViralSpinner } from "./components/spinner/viral-spinner";
|
|
11
10
|
import { LocalStorageService } from "./services/local-storage.service";
|
|
12
11
|
import { ViralKeyboard } from "./components/keyboard/viral-keyboard";
|
|
13
12
|
import { ViralContextMenu } from "./components/context-menu/viral-context-menu";
|
|
@@ -21,6 +20,7 @@ import { EventDispatcher } from "./components/event-handler/base/event-dispatche
|
|
|
21
20
|
import { ViralLifecycleEventHandler } from "./components/event-handler/viral-lifecycle-event-handler";
|
|
22
21
|
import { ViralVisibilityManager } from "./components/visibility-manager/viral-visibility-manager";
|
|
23
22
|
import { ViralDataManager } from "./components/data-manager/viral-data-manager";
|
|
23
|
+
import { ViralSpinner } from "./gui/spinner/viral-spinner";
|
|
24
24
|
export declare class ViralViewerApi {
|
|
25
25
|
lifeCycleEvent: EventDispatcher;
|
|
26
26
|
options: ViewerOptions;
|
package/dist/viral-viewer-api.js
CHANGED
|
@@ -9,7 +9,6 @@ const viral_renderer_1 = require("./components/renderer/viral-renderer");
|
|
|
9
9
|
const viral_navigation_cube_1 = require("./components/navigation-cube/viral-navigation-cube");
|
|
10
10
|
const viral_animation_1 = require("./components/animation/viral-animation");
|
|
11
11
|
const viral_tools_1 = require("./components/tools/viral-tools");
|
|
12
|
-
const viral_spinner_1 = require("./components/spinner/viral-spinner");
|
|
13
12
|
const local_storage_service_1 = require("./services/local-storage.service");
|
|
14
13
|
const viral_keyboard_1 = require("./components/keyboard/viral-keyboard");
|
|
15
14
|
const viral_context_menu_1 = require("./components/context-menu/viral-context-menu");
|
|
@@ -24,6 +23,7 @@ const viral_lifecycle_event_handler_1 = require("./components/event-handler/vira
|
|
|
24
23
|
const fonts_1 = require("./gui/fonts/fonts");
|
|
25
24
|
const viral_visibility_manager_1 = require("./components/visibility-manager/viral-visibility-manager");
|
|
26
25
|
const viral_data_manager_1 = require("./components/data-manager/viral-data-manager");
|
|
26
|
+
const viral_spinner_1 = require("./gui/spinner/viral-spinner");
|
|
27
27
|
class ViralViewerApi {
|
|
28
28
|
constructor(options = {
|
|
29
29
|
isDev: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viral-viewer-api.js","sourceRoot":"","sources":["../src/viral-viewer-api.ts"],"names":[],"mappings":";;;AACA,6FAAwF;AACxF,mEAA+D;AAC/D,gEAA4D;AAC5D,gEAA4D;AAC5D,yEAAqE;AACrE,8FAAyF;AACzF,4EAAwE;AACxE,gEAA4D;AAC5D,
|
|
1
|
+
{"version":3,"file":"viral-viewer-api.js","sourceRoot":"","sources":["../src/viral-viewer-api.ts"],"names":[],"mappings":";;;AACA,6FAAwF;AACxF,mEAA+D;AAC/D,gEAA4D;AAC5D,gEAA4D;AAC5D,yEAAqE;AACrE,8FAAyF;AACzF,4EAAwE;AACxE,gEAA4D;AAC5D,4EAAuE;AACvE,yEAAqE;AAErE,qFAA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function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CompressProcessor = void 0;
|
|
13
|
-
const lzstring = require("lz-string");
|
|
14
|
-
class CompressProcessor {
|
|
15
|
-
decompressed(path) {
|
|
16
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
let result = null;
|
|
18
|
-
let res = yield fetch(path);
|
|
19
|
-
if (res) {
|
|
20
|
-
let text = yield res.text();
|
|
21
|
-
let decompress = lzstring.decompressFromEncodedURIComponent(text);
|
|
22
|
-
result = JSON.parse(decompress);
|
|
23
|
-
}
|
|
24
|
-
return result;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.CompressProcessor = CompressProcessor;
|
|
29
|
-
//# sourceMappingURL=compress.processor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compress.processor.js","sourceRoot":"","sources":["../../../src/components/compress/compress.processor.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,sCAAsC;AAEtC,MAAa,iBAAiB;IACb,YAAY,CAAC,IAAY;;YAClC,IAAI,MAAM,GAAmC,IAAI,CAAC;YAClD,IAAI,GAAG,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC;YAC5B,IAAI,GAAG,EAAE;gBACL,IAAI,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;gBAC5B,IAAI,UAAU,GAAG,QAAQ,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;gBAElE,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;aACnC;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;KAAA;CACJ;AAZD,8CAYC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Potree, PointCloudOctree } from "potree-core-viral";
|
|
2
|
-
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
|
-
export declare class ViralViewerPointCloudLoader {
|
|
4
|
-
viralViewerApi: ViralViewerApi;
|
|
5
|
-
potree: Potree;
|
|
6
|
-
pointClouds: PointCloudOctree[];
|
|
7
|
-
constructor(viralViewerApi: ViralViewerApi);
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param metadataUrl endpoint to download metadata.json
|
|
11
|
-
* @param urlOcbinTree endpoint to download octree.bin
|
|
12
|
-
* @param urlHierarchy endpoint to download hierarchy.bin
|
|
13
|
-
* @param pointBudget
|
|
14
|
-
*/
|
|
15
|
-
load(metadataUrl: string, urlOcbinTree: string, urlHierarchy: string, pointBudget?: number, callbackOnSuccess?: (pco: PointCloudOctree) => void): void;
|
|
16
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViralViewerPointCloudLoader = void 0;
|
|
4
|
-
const potree_core_viral_1 = require("potree-core-viral");
|
|
5
|
-
class ViralViewerPointCloudLoader {
|
|
6
|
-
constructor(viralViewerApi) {
|
|
7
|
-
this.viralViewerApi = viralViewerApi;
|
|
8
|
-
this.potree = new potree_core_viral_1.Potree();
|
|
9
|
-
this.pointClouds = [];
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param metadataUrl endpoint to download metadata.json
|
|
14
|
-
* @param urlOcbinTree endpoint to download octree.bin
|
|
15
|
-
* @param urlHierarchy endpoint to download hierarchy.bin
|
|
16
|
-
* @param pointBudget
|
|
17
|
-
*/
|
|
18
|
-
load(metadataUrl, urlOcbinTree, urlHierarchy, pointBudget = 2000000, callbackOnSuccess = (pco) => { }) {
|
|
19
|
-
this.potree.pointBudget = pointBudget;
|
|
20
|
-
this.potree.loadPointCloudCustom(metadataUrl, urlOcbinTree, urlHierarchy).then((pco) => {
|
|
21
|
-
let material = pco.material;
|
|
22
|
-
material.size = 1;
|
|
23
|
-
material.pointSizeType = potree_core_viral_1.PointSizeType.ADAPTIVE;
|
|
24
|
-
material.shape = potree_core_viral_1.PointShape.CIRCLE;
|
|
25
|
-
material.pointColorType = potree_core_viral_1.PointColorType.RGB;
|
|
26
|
-
this.viralViewerApi.viralScene.addObject(pco);
|
|
27
|
-
this.pointClouds.push(pco);
|
|
28
|
-
callbackOnSuccess(pco);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ViralViewerPointCloudLoader = ViralViewerPointCloudLoader;
|
|
33
|
-
//# sourceMappingURL=viral-viewer-point-cloud.loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viral-viewer-point-cloud.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral-viewer-point-cloud.loader.ts"],"names":[],"mappings":";;;AAAA,yDAAwG;AAGxG,MAAa,2BAA2B;IAGpC,YAAmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;QAFjD,WAAM,GAAW,IAAI,0BAAM,EAAE,CAAC;QAC9B,gBAAW,GAAuB,EAAE,CAAC;IAErC,CAAC;IACD;;;;;;OAMG;IACI,IAAI,CAAC,WAAmB,EAAE,YAAoB,EAAE,YAAoB,EAAE,cAAsB,OAAO,EAAE,oBAAoB,CAAC,GAAqB,EAAE,EAAE,GAAG,CAAC;QAC1J,IAAI,CAAC,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC;QACtC,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAC5B,WAAW,EACX,YAAY,EACZ,YAAY,CACf,CAAC,IAAI,CAAC,CAAC,GAAqB,EAAE,EAAE;YAC7B,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;YAC5B,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC;YAClB,QAAQ,CAAC,aAAa,GAAG,iCAAa,CAAC,QAAQ,CAAC;YAChD,QAAQ,CAAC,KAAK,GAAG,8BAAU,CAAC,MAAM,CAAC;YACnC,QAAQ,CAAC,cAAc,GAAG,kCAAc,CAAC,GAAG,CAAC;YAE7C,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAC9C,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC3B,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAC3B,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AA9BD,kEA8BC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ViralViewerRevitProject } from "../../types";
|
|
2
|
-
import { ViralViewerApi } from "../../viral-viewer-api";
|
|
3
|
-
export declare class ViralViewerRevitLoader {
|
|
4
|
-
viralViewerApi: ViralViewerApi;
|
|
5
|
-
constructor(viralViewerApi: ViralViewerApi);
|
|
6
|
-
loadRevit(model: ViralViewerRevitProject): void;
|
|
7
|
-
private progressStructuralGeometries;
|
|
8
|
-
private progressNoneStructuralGeometries;
|
|
9
|
-
private addCustomMesh3;
|
|
10
|
-
private addCustomMesh4;
|
|
11
|
-
private rgbToHex;
|
|
12
|
-
private componentToHex;
|
|
13
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViralViewerRevitLoader = void 0;
|
|
4
|
-
const THREE = require("three");
|
|
5
|
-
class ViralViewerRevitLoader {
|
|
6
|
-
constructor(viralViewerApi) {
|
|
7
|
-
this.viralViewerApi = viralViewerApi;
|
|
8
|
-
}
|
|
9
|
-
loadRevit(model) {
|
|
10
|
-
this.progressNoneStructuralGeometries(model);
|
|
11
|
-
this.progressStructuralGeometries(model);
|
|
12
|
-
}
|
|
13
|
-
progressStructuralGeometries(model) {
|
|
14
|
-
const modelMesh = new THREE.Mesh();
|
|
15
|
-
for (let index = 0; index < model.StructuralGeometries.length; index++) {
|
|
16
|
-
// if(index==0) continue;
|
|
17
|
-
const geometry = model.StructuralGeometries[index];
|
|
18
|
-
const material = model.Materials[geometry.MaterialIndex];
|
|
19
|
-
this.addCustomMesh3(modelMesh, geometry.Indices, geometry.Vertices, material);
|
|
20
|
-
}
|
|
21
|
-
modelMesh.castShadow = true;
|
|
22
|
-
modelMesh.receiveShadow = true;
|
|
23
|
-
this.viralViewerApi.viralScene.addObject(modelMesh);
|
|
24
|
-
}
|
|
25
|
-
progressNoneStructuralGeometries(model) {
|
|
26
|
-
const modelMesh = new THREE.Mesh();
|
|
27
|
-
modelMesh.castShadow = true;
|
|
28
|
-
modelMesh.receiveShadow = true;
|
|
29
|
-
for (let index = 0; index < model.NoneStructuralGeometries.length; index++) {
|
|
30
|
-
const geometry = model.NoneStructuralGeometries[index];
|
|
31
|
-
const material = model.Materials[geometry.MaterialIndex];
|
|
32
|
-
this.addCustomMesh4(modelMesh, geometry.Indices, geometry.Vertices, material, geometry.Instances);
|
|
33
|
-
}
|
|
34
|
-
this.viralViewerApi.viralScene.addObject(modelMesh);
|
|
35
|
-
}
|
|
36
|
-
addCustomMesh3(mesh, indices, vertices, material) {
|
|
37
|
-
const geometry = new THREE.BufferGeometry();
|
|
38
|
-
let verticePoints = [];
|
|
39
|
-
for (let i = 0; i < indices.length; i++) {
|
|
40
|
-
const index = indices[i];
|
|
41
|
-
const point = vertices[index];
|
|
42
|
-
verticePoints.push(-point.X);
|
|
43
|
-
verticePoints.push(point.Z);
|
|
44
|
-
verticePoints.push(point.Y);
|
|
45
|
-
}
|
|
46
|
-
const buffer = new Float32Array(verticePoints);
|
|
47
|
-
let colorString = this.rgbToHex(material.Red, material.Green, material.Blue);
|
|
48
|
-
geometry.setAttribute("position", new THREE.BufferAttribute(buffer, 3));
|
|
49
|
-
let newMaterial = new THREE.MeshPhongMaterial({
|
|
50
|
-
color: colorString,
|
|
51
|
-
opacity: material.Opacity,
|
|
52
|
-
transparent: true,
|
|
53
|
-
flatShading: true,
|
|
54
|
-
});
|
|
55
|
-
const edges = new THREE.EdgesGeometry(geometry, 90);
|
|
56
|
-
const line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: "#202020" }));
|
|
57
|
-
const childMesh = new THREE.Mesh(geometry, newMaterial);
|
|
58
|
-
childMesh.castShadow = true;
|
|
59
|
-
childMesh.receiveShadow = true;
|
|
60
|
-
childMesh.add(line);
|
|
61
|
-
mesh.add(childMesh);
|
|
62
|
-
}
|
|
63
|
-
addCustomMesh4(mesh, indices, vertices, material, instances) {
|
|
64
|
-
const geometry = new THREE.BufferGeometry();
|
|
65
|
-
let verticePoints = [];
|
|
66
|
-
for (let i = 0; i < indices.length; i++) {
|
|
67
|
-
const index = indices[i];
|
|
68
|
-
const point = vertices[index];
|
|
69
|
-
verticePoints.push(-point.X);
|
|
70
|
-
verticePoints.push(point.Z);
|
|
71
|
-
verticePoints.push(point.Y);
|
|
72
|
-
}
|
|
73
|
-
const buffer = new Float32Array(verticePoints);
|
|
74
|
-
let colorString = this.rgbToHex(material.Red, material.Green, material.Blue);
|
|
75
|
-
geometry.setAttribute("position", new THREE.BufferAttribute(buffer, 3));
|
|
76
|
-
let newMaterial = new THREE.MeshPhongMaterial({
|
|
77
|
-
color: colorString,
|
|
78
|
-
opacity: material.Opacity,
|
|
79
|
-
transparent: true,
|
|
80
|
-
flatShading: true
|
|
81
|
-
});
|
|
82
|
-
for (let index = 0; index < instances.length; index++) {
|
|
83
|
-
const instance = instances[index];
|
|
84
|
-
let cloneGeometry = geometry.clone();
|
|
85
|
-
const childMesh = new THREE.Mesh(cloneGeometry, newMaterial);
|
|
86
|
-
childMesh.castShadow = true;
|
|
87
|
-
childMesh.receiveShadow = true;
|
|
88
|
-
let numbers = [
|
|
89
|
-
instance.BasisX.X,
|
|
90
|
-
-instance.BasisX.Z,
|
|
91
|
-
-instance.BasisX.Y,
|
|
92
|
-
0,
|
|
93
|
-
-instance.BasisZ.X,
|
|
94
|
-
instance.BasisZ.Z,
|
|
95
|
-
instance.BasisZ.Y,
|
|
96
|
-
0,
|
|
97
|
-
-instance.BasisY.X,
|
|
98
|
-
instance.BasisY.Z,
|
|
99
|
-
instance.BasisY.Y,
|
|
100
|
-
0,
|
|
101
|
-
-instance.Offset.X,
|
|
102
|
-
instance.Offset.Z,
|
|
103
|
-
instance.Offset.Y,
|
|
104
|
-
1,
|
|
105
|
-
];
|
|
106
|
-
let matrix4 = new THREE.Matrix4();
|
|
107
|
-
matrix4.fromArray(numbers);
|
|
108
|
-
childMesh.applyMatrix4(matrix4);
|
|
109
|
-
const edges = new THREE.EdgesGeometry(childMesh.geometry);
|
|
110
|
-
const line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({ color: "#202020" }));
|
|
111
|
-
childMesh.add(line);
|
|
112
|
-
mesh.add(childMesh);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
rgbToHex(r, g, b) {
|
|
116
|
-
return "#" + this.componentToHex(r) + this.componentToHex(g) + this.componentToHex(b);
|
|
117
|
-
}
|
|
118
|
-
componentToHex(c) {
|
|
119
|
-
var hex = c.toString(16);
|
|
120
|
-
return hex.length == 1 ? "0" + hex : hex;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exports.ViralViewerRevitLoader = ViralViewerRevitLoader;
|
|
124
|
-
//# sourceMappingURL=viral-viewer-revit.loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viral-viewer-revit.loader.js","sourceRoot":"","sources":["../../../src/components/loader/viral-viewer-revit.loader.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAI/B,MAAa,sBAAsB;IAE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(indices: any, vertices: any, material: any, instances: any, callback: any): void;
|
|
3
|
-
declare function progressStructuralGeometries(json: any, callback: any): void;
|
|
4
|
-
declare function progressNoneStructuralGeometries(json: any, callback: any): void;
|
|
5
|
-
declare function rgbToHex(r: any, g: any, b: any): string;
|
|
6
|
-
declare function componentToHex(c: any): any;
|
|
7
|
-
declare class Matrix4 {
|
|
8
|
-
constructor(...args: any[]);
|
|
9
|
-
elements: number[];
|
|
10
|
-
set(n11: any, n12: any, n13: any, n14: any, n21: any, n22: any, n23: any, n24: any, n31: any, n32: any, n33: any, n34: any, n41: any, n42: any, n43: any, n44: any): Matrix4;
|
|
11
|
-
identity(): Matrix4;
|
|
12
|
-
clone(): Matrix4;
|
|
13
|
-
copy(m: any): Matrix4;
|
|
14
|
-
copyPosition(m: any): Matrix4;
|
|
15
|
-
setFromMatrix3(m: any): Matrix4;
|
|
16
|
-
extractBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
17
|
-
makeBasis(xAxis: any, yAxis: any, zAxis: any): Matrix4;
|
|
18
|
-
extractRotation(m: any): Matrix4;
|
|
19
|
-
makeRotationFromEuler(euler: any): Matrix4;
|
|
20
|
-
makeRotationFromQuaternion(q: any): Matrix4;
|
|
21
|
-
lookAt(eye: any, target: any, up: any): Matrix4;
|
|
22
|
-
multiply(m: any, n: any): Matrix4;
|
|
23
|
-
premultiply(m: any): Matrix4;
|
|
24
|
-
multiplyMatrices(a: any, b: any): Matrix4;
|
|
25
|
-
multiplyScalar(s: any): Matrix4;
|
|
26
|
-
determinant(): number;
|
|
27
|
-
transpose(): Matrix4;
|
|
28
|
-
setPosition(x: any, y: any, z: any): Matrix4;
|
|
29
|
-
invert(): Matrix4;
|
|
30
|
-
scale(v: any): Matrix4;
|
|
31
|
-
getMaxScaleOnAxis(): number;
|
|
32
|
-
makeTranslation(x: any, y: any, z: any): Matrix4;
|
|
33
|
-
makeRotationX(theta: any): Matrix4;
|
|
34
|
-
makeRotationY(theta: any): Matrix4;
|
|
35
|
-
makeRotationZ(theta: any): Matrix4;
|
|
36
|
-
makeRotationAxis(axis: any, angle: any): Matrix4;
|
|
37
|
-
makeScale(x: any, y: any, z: any): Matrix4;
|
|
38
|
-
makeShear(xy: any, xz: any, yx: any, yz: any, zx: any, zy: any): Matrix4;
|
|
39
|
-
compose(position: any, quaternion: any, scale: any): Matrix4;
|
|
40
|
-
decompose(position: any, quaternion: any, scale: any): Matrix4;
|
|
41
|
-
makePerspective(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
42
|
-
makeOrthographic(left: any, right: any, top: any, bottom: any, near: any, far: any): Matrix4;
|
|
43
|
-
equals(matrix: any): boolean;
|
|
44
|
-
fromArray(array: any, offset?: number): Matrix4;
|
|
45
|
-
toArray(array?: any[], offset?: number): any[];
|
|
46
|
-
isMatrix4: boolean;
|
|
47
|
-
}
|
|
48
|
-
declare class Vector3 {
|
|
49
|
-
constructor(x?: number, y?: number, z?: number);
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
z: number;
|
|
53
|
-
set(x: any, y: any, z: any): Vector3;
|
|
54
|
-
setScalar(scalar: any): Vector3;
|
|
55
|
-
setX(x: any): Vector3;
|
|
56
|
-
setY(y: any): Vector3;
|
|
57
|
-
setZ(z: any): Vector3;
|
|
58
|
-
setComponent(index: any, value: any): Vector3;
|
|
59
|
-
getComponent(index: any): number;
|
|
60
|
-
clone(): any;
|
|
61
|
-
copy(v: any): Vector3;
|
|
62
|
-
add(v: any, w: any): Vector3;
|
|
63
|
-
addScalar(s: any): Vector3;
|
|
64
|
-
addVectors(a: any, b: any): Vector3;
|
|
65
|
-
addScaledVector(v: any, s: any): Vector3;
|
|
66
|
-
sub(v: any, w: any): Vector3;
|
|
67
|
-
subScalar(s: any): Vector3;
|
|
68
|
-
subVectors(a: any, b: any): Vector3;
|
|
69
|
-
multiply(v: any, w: any): Vector3;
|
|
70
|
-
multiplyScalar(scalar: any): Vector3;
|
|
71
|
-
multiplyVectors(a: any, b: any): Vector3;
|
|
72
|
-
applyEuler(euler: any): Vector3;
|
|
73
|
-
applyAxisAngle(axis: any, angle: any): Vector3;
|
|
74
|
-
applyMatrix3(m: any): Vector3;
|
|
75
|
-
applyNormalMatrix(m: any): Vector3;
|
|
76
|
-
applyMatrix4(m: any): Vector3;
|
|
77
|
-
applyQuaternion(q: any): Vector3;
|
|
78
|
-
project(camera: any): Vector3;
|
|
79
|
-
unproject(camera: any): Vector3;
|
|
80
|
-
transformDirection(m: any): Vector3;
|
|
81
|
-
divide(v: any): Vector3;
|
|
82
|
-
divideScalar(scalar: any): Vector3;
|
|
83
|
-
min(v: any): Vector3;
|
|
84
|
-
max(v: any): Vector3;
|
|
85
|
-
clamp(min: any, max: any): Vector3;
|
|
86
|
-
clampScalar(minVal: any, maxVal: any): Vector3;
|
|
87
|
-
clampLength(min: any, max: any): Vector3;
|
|
88
|
-
floor(): Vector3;
|
|
89
|
-
ceil(): Vector3;
|
|
90
|
-
round(): Vector3;
|
|
91
|
-
roundToZero(): Vector3;
|
|
92
|
-
negate(): Vector3;
|
|
93
|
-
dot(v: any): number;
|
|
94
|
-
lengthSq(): number;
|
|
95
|
-
length(): number;
|
|
96
|
-
manhattanLength(): number;
|
|
97
|
-
normalize(): Vector3;
|
|
98
|
-
setLength(length: any): Vector3;
|
|
99
|
-
lerp(v: any, alpha: any): Vector3;
|
|
100
|
-
lerpVectors(v1: any, v2: any, alpha: any): Vector3;
|
|
101
|
-
cross(v: any, w: any): Vector3;
|
|
102
|
-
crossVectors(a: any, b: any): Vector3;
|
|
103
|
-
projectOnVector(v: any): Vector3;
|
|
104
|
-
projectOnPlane(planeNormal: any): Vector3;
|
|
105
|
-
reflect(normal: any): Vector3;
|
|
106
|
-
angleTo(v: any): number;
|
|
107
|
-
distanceTo(v: any): number;
|
|
108
|
-
distanceToSquared(v: any): number;
|
|
109
|
-
manhattanDistanceTo(v: any): number;
|
|
110
|
-
setFromSpherical(s: any): Vector3;
|
|
111
|
-
setFromSphericalCoords(radius: any, phi: any, theta: any): Vector3;
|
|
112
|
-
setFromCylindrical(c: any): Vector3;
|
|
113
|
-
setFromCylindricalCoords(radius: any, theta: any, y: any): Vector3;
|
|
114
|
-
setFromMatrixPosition(m: any): Vector3;
|
|
115
|
-
setFromMatrixScale(m: any): Vector3;
|
|
116
|
-
setFromMatrixColumn(m: any, index: any): Vector3;
|
|
117
|
-
setFromMatrix3Column(m: any, index: any): Vector3;
|
|
118
|
-
equals(v: any): boolean;
|
|
119
|
-
fromArray(array: any, offset?: number): Vector3;
|
|
120
|
-
toArray(array?: any[], offset?: number): any[];
|
|
121
|
-
fromBufferAttribute(attribute: any, index: any, offset: any): Vector3;
|
|
122
|
-
random(): Vector3;
|
|
123
|
-
randomDirection(): Vector3;
|
|
124
|
-
isVector3: boolean;
|
|
125
|
-
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
126
|
-
}
|