lookAtBoundingBox
Moves the Viewpoint to look at the specified bounding box.
The Viewpoint simulates the position of a camera looking at the scene.
Example
Usage
const boundingBox = {
max: {
x: 100,
y: 100,
z: 100
},
min: {
x: 0,
y: 0,
z: 0
}
};
viewer3d.lookAtBoundingBox(boundingBox);Parameters
boundingBox
Bounding box to look at.
Type | Required |
|---|---|
Box3 | Yes |
direction
Direction of the Viewpoint.
Type | Required |
|---|---|
String or Vector3 | No |
Named Viewpoint
Valid values are:
- home
- front
- back
- left
- right
- top
- bottom