@yschindel/ara3d-webgl 1.3.14 → 1.3.15
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/README.md +1 -1
- package/dist/ara3d-webgl.mjs +15 -19
- package/dist/ara3d-webgl.mjs.map +1 -1
- package/dist/ara3d-webgl.umd.js +37 -37
- package/dist/ara3d-webgl.umd.js.map +1 -1
- package/dist/types/loader/bimData.d.ts +0 -3
- package/dist/types/loader/bimOpenSchemaLoader.d.ts +6 -16
- package/dist/types/loader/bimResolver.d.ts +1 -2
- package/dist/types/loader/buildGeometryGroup.d.ts +1 -8
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import { BimGeometry } from './bimGeometry';
|
|
|
3
3
|
import { Instance } from './buildInstances';
|
|
4
4
|
import { BimResolver } from './bimResolver';
|
|
5
5
|
import { BimQuery } from './bimQuery';
|
|
6
|
-
import { BuildGeometryOptions } from './buildGeometryGroup';
|
|
7
6
|
import { BimEntities } from './bimEntities';
|
|
8
7
|
import { BimParameterTable } from './BimParameterTable';
|
|
9
8
|
import { BimParameterDescriptors } from './BimParameterDescriptors';
|
|
@@ -33,7 +32,5 @@ export declare class BimData {
|
|
|
33
32
|
EntityParameters: BimParameterTable;
|
|
34
33
|
SingleParameters: BimParameterTable;
|
|
35
34
|
PointParameters: BimParameterTable;
|
|
36
|
-
/** Options used when building geometry (stored for rebuildGeometry) */
|
|
37
|
-
geometryOptions: BuildGeometryOptions;
|
|
38
35
|
rebuildGeometry(instances: Array<Instance | undefined>): THREE.Group;
|
|
39
36
|
}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import JSZip from 'jszip';
|
|
2
2
|
import { BimData } from './bimData';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface BosLoaderOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Whether to apply Z-up to Y-up rotation.
|
|
9
|
-
* - true: Apply rotation (for Revit exports which are Z-up)
|
|
10
|
-
* - false: No rotation (for IFC imports which are already Y-up compatible)
|
|
11
|
-
* Default: true (for backwards compatibility with Revit BOS files)
|
|
12
|
-
*/
|
|
13
|
-
applyZUpToYUpRotation?: boolean;
|
|
14
|
-
skipDescriptorsAndParameters?: boolean;
|
|
15
|
-
}
|
|
3
|
+
type BimLoaderOptions = {
|
|
4
|
+
loadParameters: boolean;
|
|
5
|
+
};
|
|
16
6
|
/**
|
|
17
7
|
* Loader that takes a URL to a .ZIP or .BOS file containing BIM Open Schema geometry parquet tables:
|
|
18
8
|
*/
|
|
19
9
|
export declare class BimOpenSchemaLoader {
|
|
20
|
-
load(source: string, options
|
|
10
|
+
load(source: string, options: BimLoaderOptions): Promise<BimData>;
|
|
21
11
|
}
|
|
22
12
|
/**
|
|
23
13
|
* Reads the BOS parquet tables from a JSZip archive into a BimGeometry object.
|
|
24
|
-
* This is the same idea as the previous browser version, just using package imports.
|
|
25
14
|
*/
|
|
26
|
-
export declare function loadBimGeometryFromZip(zip: JSZip, options
|
|
15
|
+
export declare function loadBimGeometryFromZip(zip: JSZip, options: BimLoaderOptions): Promise<BimData>;
|
|
16
|
+
export {};
|
|
@@ -4,14 +4,13 @@ import { BimGeometry } from './bimGeometry';
|
|
|
4
4
|
import { BimParameterDescriptors } from './BimParameterDescriptors';
|
|
5
5
|
import { BimParameterTable } from './BimParameterTable';
|
|
6
6
|
import { Instance } from './buildInstances';
|
|
7
|
-
import { BosLoaderOptions } from './bimOpenSchemaLoader';
|
|
8
7
|
export type Parameter = {
|
|
9
8
|
Name: string;
|
|
10
9
|
Value: any;
|
|
11
10
|
};
|
|
12
11
|
export declare class BimResolver {
|
|
13
12
|
readonly Data: BimData;
|
|
14
|
-
constructor(Data: BimData
|
|
13
|
+
constructor(Data: BimData);
|
|
15
14
|
GetVal(rawVal: number, descType: number): any;
|
|
16
15
|
ProcessParameters(table: BimParameterTable): void;
|
|
17
16
|
readonly Descriptors: BimParameterDescriptors;
|
|
@@ -5,14 +5,7 @@ type InstanceMaterialGroup = {
|
|
|
5
5
|
material: THREE.Material;
|
|
6
6
|
instances: Array<Instance>;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
/**
|
|
10
|
-
* Whether to apply Z-up to Y-up rotation (-90° around X axis).
|
|
11
|
-
* Default: true
|
|
12
|
-
*/
|
|
13
|
-
applyZUpToYUpRotation?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function buildGeometry(instances: Array<Instance | undefined>, options?: BuildGeometryOptions): THREE.Group;
|
|
8
|
+
export declare function buildGeometry(instances: Array<Instance | undefined>): THREE.Group;
|
|
16
9
|
export declare function createMergedAndSingleMeshes(materialGroups: Array<InstanceMaterialGroup>): Array<THREE.Mesh>;
|
|
17
10
|
export declare function mergeGeometries(geometries: Array<THREE.BufferGeometry>): {
|
|
18
11
|
geometry: THREE.BufferGeometry;
|