-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 18 additions & 2 deletions
20
packages/front/src/fragments/IfcStreamer/src/streamer-db.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,66 @@ | ||
import * as OBC from "@thatopen/components"; | ||
|
||
/** | ||
* Represents an instance of a streamed object. | ||
*/ | ||
export interface StreamedInstance { | ||
/** | ||
* Unique identifier of the instance. | ||
*/ | ||
id: number; | ||
|
||
/** | ||
* Color of the instance. | ||
*/ | ||
color: number[]; | ||
|
||
/** | ||
* Transformation matrix of the instance. | ||
*/ | ||
transformation: number[]; | ||
} | ||
|
||
/** | ||
* A map of streamed instances, grouped by their unique identifier. | ||
*/ | ||
export type StreamedInstances = Map<number, StreamedInstance[]>; | ||
|
||
/** | ||
* Settings for the stream loader. | ||
*/ | ||
export interface StreamLoaderSettings { | ||
/** | ||
* Array of streamed assets. | ||
*/ | ||
assets: OBC.StreamedAsset[]; | ||
|
||
/** | ||
* Streamed geometries. | ||
*/ | ||
geometries: OBC.StreamedGeometries; | ||
|
||
/** | ||
* Identifier of the global data file. | ||
*/ | ||
globalDataFileId: string; | ||
} | ||
|
||
/** | ||
* Settings for the stream properties. | ||
*/ | ||
export interface StreamPropertiesSettings { | ||
/** | ||
* Map of identifiers to numbers. | ||
*/ | ||
ids: { [id: number]: number }; | ||
|
||
/** | ||
* Map of types to arrays of numbers. | ||
*/ | ||
types: { [type: number]: number[] }; | ||
|
||
/** | ||
* Identifier of the indexes file. | ||
*/ | ||
indexesFile: string; | ||
} |