@inweb/viewer-three
Version:
JavaScript library for rendering CAD and BIM files in a browser using Three.js
30 lines (29 loc) • 1.1 kB
TypeScript
import { Box3, Object3D } from "three";
import { IInfo } from "@inweb/viewer-core";
import { IModelImpl } from "./IModelImpl";
export declare class ModelImpl implements IModelImpl {
id: string;
scene: Object3D;
private handleToObjects;
private originalObjects;
constructor(scene: Object3D);
dispose(): void;
getUnits(): string;
getUnitScale(): number;
getUnitString(): string;
getPrecision(): number;
getInfo(): IInfo;
getExtents(target: Box3): Box3;
getObjects(): Object3D[];
getVisibleObjects(): Object3D[];
getObjectsByHandles(handles: string | string[]): Object3D[];
getHandlesByObjects(objects: Object3D | Object3D[]): string[];
hideObjects(objects: Object3D | Object3D[]): this;
hideAllObjects(): this;
isolateObjects(objects: Object3D | Object3D[]): this;
showObjects(objects: Object3D | Object3D[]): this;
showAllObjects(): this;
highlightObjects(objects: Object3D | Object3D[]): this;
unhighlightObjects(objects: Object3D | Object3D[]): this;
explode(scale?: number, coeff?: number): this;
}