Constructors
constructor
- new Utility(bim365: BIMModel): Utility
Methods
detectIntersects
- detectIntersects(v2: MouseEvent, useOctree?: boolean): Promise<Intersection[]>
-
Parameters
-
v2: MouseEvent
-
Default value useOctree: boolean = false
Returns Promise<Intersection[]>
getBoundingBox
- getBoundingBox(elementids: string | string[]): Box3
-
Parameters
-
elementids: string | string[]
Returns Box3
getElementsCenterPoint
- getElementsCenterPoint(elementids: string | string[]): Vector3
-
Parameters
-
elementids: string | string[]
Returns Vector3
getScreenCoords
- getScreenCoords(position: Vector3, camera?: PerspectiveCamera): Vector2
-
Parameters
-
position: Vector3
-
Default value camera: PerspectiveCamera = this.bim365.resource.activeCamera as any
Returns Vector2
工具类