polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
30 lines (29 loc) • 1.16 kB
TypeScript
/**
* Returns the bbox of a geometry, or a component of the bbox.
*
* @remarks
* It takes 1, 2 or 3 arguments.
*
* bbox(<input_index_or_node_path\>, <bbox_vector\>, <vector_component\>)
*
* - **<input_index_or_node_path\>** is a number or a string
* - **<bbox_vector\>** is a string, either 'min' or 'max'
* - **<vector_component\>** is a string, either 'x', 'y' or 'z'
*
* ## Usage
*
* - `bbox(0)` - returns the bbox of the input node, as a THREE.Box3
* - `bbox('/geo1/box')` - returns the bbox of the node /geo1/box, as a THREE.Box3
* - `bbox('/geo1/box', 'min')` - returns the min vector of the bbox, as a THREE.Vector3
* - `bbox('/geo1/box', 'min', 'x')` - returns the x component of min vector of the bbox, as a number
*
*/
import { BaseMethod } from './_Base';
import { MethodDependency } from '../MethodDependency';
export declare class BboxExpression extends BaseMethod {
protected _require_dependency: boolean;
static required_arguments(): string[][];
find_dependency(index_or_path: number | string): MethodDependency | null;
process_arguments(args: any[]): Promise<any>;
private _get_value_from_container;
}