UNPKG

@ecogis/gis-web-ifc-three

Version:

This library is the implementation of [web-ifc](https://github.com/tomvandig/web-ifc) for [THREE.js](https://github.com/mrdoob/three.js/). This is the official IFCLoader of Three.js.

36 lines (35 loc) 997 B
import { IfcState } from '../../BaseDefinitions'; import { BufferAttribute, BufferGeometry, Material } from 'three'; export interface Indices { [materialID: number]: number[]; } export interface IndexedGeometry extends BufferGeometry { index: BufferAttribute; } export interface Group { start: number; count: number; materialIndex?: number; } export interface Items { indexCache: Uint32Array; map: Map<number, Indices>; } export interface IndicesMap { [modelID: number]: { indexCache: Uint32Array; map: Map<number, Indices>; }; } export declare class ItemsMap { private state; constructor(state: IfcState); map: IndicesMap; generateGeometryIndexMap(modelID: number): void; getSubsetID(modelID: number, material?: Material, customID?: string): string; dispose(): void; private getGeometry; private newItemsMap; private fillItemsWithGroupInfo; private getMaterialStore; }