bimatter-viewer-react 0.6.6 → 0.6.8
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/lib/Camera/useCameraUtils.d.ts +1 -0
- package/lib/Model.d.ts +2 -1
- package/lib/SelectableMesh.d.ts +1 -2
- package/lib/Viewer.d.ts +3 -0
- package/lib/WebGpuSelectableMesh-s4XT_3wd.js +109 -0
- package/lib/WebGpuSelectableMesh.d.ts +3 -0
- package/lib/index.js +1647 -1728
- package/lib/three.tsl-BarIGkA_.js +293 -0
- package/lib/three.webgpu-vPugBGTK.js +24748 -0
- package/lib/utils/ClippingUtils/ClippingCaps.d.ts +2 -0
- package/lib/utils/ClippingUtils/ClippingUtils.d.ts +3 -1
- package/lib/utils/GeometryUtils/useGeometryIndex.d.ts +2 -1
- package/package.json +1 -1
- /package/lib/{IFCLoader-Cjkb3xMA.js → IFCLoader-BDuxDvU1.js} +0 -0
|
@@ -29,6 +29,7 @@ export declare class ClippingCaps {
|
|
|
29
29
|
private preselection;
|
|
30
30
|
private tolerance;
|
|
31
31
|
constructor(context: ClippingUtils, plane: Plane);
|
|
32
|
+
private createCapMaterial;
|
|
32
33
|
dispose(): void;
|
|
33
34
|
setVisible(visible: boolean): void;
|
|
34
35
|
syncMeshes(): void;
|
|
@@ -36,6 +37,7 @@ export declare class ClippingCaps {
|
|
|
36
37
|
setPreselection(preselection: CapPreselection): void;
|
|
37
38
|
updateVisualState(): void;
|
|
38
39
|
update(): void;
|
|
40
|
+
private setupWebGpuCapMaterial;
|
|
39
41
|
private setupCapMaterialShader;
|
|
40
42
|
private updateColorUniform;
|
|
41
43
|
private updateColorUniforms;
|
|
@@ -15,6 +15,7 @@ type ClippingContext = {
|
|
|
15
15
|
raycaster: Raycaster;
|
|
16
16
|
renderer: WebGLRenderer;
|
|
17
17
|
scene: Scene;
|
|
18
|
+
useWebGPU: boolean;
|
|
18
19
|
viewerStore: ViewerStoreApi;
|
|
19
20
|
};
|
|
20
21
|
type ClippingPreselection = {
|
|
@@ -66,6 +67,7 @@ export declare class ClippingUtils {
|
|
|
66
67
|
getCameraUtils(): CameraUtilsApi;
|
|
67
68
|
getDomElement(): HTMLCanvasElement;
|
|
68
69
|
getRaycaster(): Raycaster;
|
|
70
|
+
getUseWebGPU(): boolean;
|
|
69
71
|
getMaxTextureAnisotropy(): number;
|
|
70
72
|
getControlRef(): ViewerControlsRef;
|
|
71
73
|
getMeshes(): Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, Material<import("three").MaterialEventMap> | Material<import("three").MaterialEventMap>[], import("three").Object3DEventMap>[];
|
|
@@ -110,7 +112,7 @@ export declare class ClippingUtils {
|
|
|
110
112
|
syncWithModel(): void;
|
|
111
113
|
dispose(): void;
|
|
112
114
|
}
|
|
113
|
-
export declare function useClippingUtils(modelRef: ViewerModelRef, controlRef: ViewerControlsRef, cameraUtils: CameraUtilsApi): ViewerClippingApi & {
|
|
115
|
+
export declare function useClippingUtils(modelRef: ViewerModelRef, controlRef: ViewerControlsRef, cameraUtils: CameraUtilsApi, useWebGPU?: boolean): ViewerClippingApi & {
|
|
114
116
|
getSelectableObjects: () => Object3D[];
|
|
115
117
|
setCapsPreselection: (preselection: ClippingPreselection) => void;
|
|
116
118
|
syncWithModel: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mesh, Object3D } from "three";
|
|
1
|
+
import { Box3, Mesh, Object3D } from "three";
|
|
2
2
|
import type { MeshBVH } from "three-mesh-bvh";
|
|
3
3
|
import type { ViewerModelRef } from "../../types";
|
|
4
4
|
export type IndexArray = Uint16Array | Uint32Array;
|
|
@@ -24,6 +24,7 @@ export type ElementIndexEntry = {
|
|
|
24
24
|
vertexRanges: IndexRange[];
|
|
25
25
|
};
|
|
26
26
|
export type GeometryIndex = {
|
|
27
|
+
elementBounds: Map<number, Map<number, Box3>>;
|
|
27
28
|
elementIndex: Map<number, ElementIndexEntry[]>;
|
|
28
29
|
ifcSpacesVisible: boolean;
|
|
29
30
|
indexedModel: Object3D | null;
|
package/package.json
CHANGED
|
File without changes
|