UNPKG

@gltf-transform/functions

Version:

Functions for common glTF modifications, written using the core API

14 lines (13 loc) 354 B
import { Scene, Node, bbox } from '@gltf-transform/core'; /** * Computes bounding box (AABB) in world space for the given {@link Node} or {@link Scene}. * * Example: * * ```ts * import { getBounds } from '@gltf-transform/functions'; * * const {min, max} = getBounds(scene); * ``` */ export declare function getBounds(node: Node | Scene): bbox;