Skip to content

@orillusion/core


Class: BoundUtil

Defined in: src/util/BoundUtil.ts:11

Utils for calculating bounding boxes

Constructors

Constructor

new BoundUtil(): BoundUtil

Returns

BoundUtil

Methods

genMeshBounds()

static genMeshBounds(obj, bound?): BoundingBox

Defined in: src/util/BoundUtil.ts:21

Merge the bounding boxes that have been added to the world matrix based on the mesh of the children node

Parameters

obj

Object3D

bound?

BoundingBox

Returns

BoundingBox


transformBound()

static transformBound(matrix, source, bound?): BoundingBox

Defined in: src/util/BoundUtil.ts:61

Parameters

matrix

Matrix4

source

BoundingBox

bound?

BoundingBox

Returns

BoundingBox