Methods
View

lookAtBoundingBox

Adjusts the viewbox to the provided bounding box.

Example



Usage

JS


Parameters

boundingBox

Bounding box to look at.

Type

Required

Box2 or Box3

Yes

options

Options for looking at the bounding box.

Type

Required

Object

No

Properties

Default value for retainStoreys is false when the bounding box includes a z coordinate and true when a z coordinate isn't included in the bounding box.

Name

Type

Required

Description

expand

Number or Vector2

No

Expand the view in meters surrounding the objects

retainStoreys

Boolean

No

Keep current storeys



Updated 12 Sep 2024
Did this page help you?