UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

28 lines (27 loc) 1.29 kB
/** * Returns the value of a vertex attribute * * @remarks * It takes 3 arguments. * * points(<input_index_or_node_path\>, <attrib_name\>, <point_index\>) * * - **<input_index_or_node_path\>** is a number or a string * - **<attrib_name\>** is a string, the name of the attribute * - **<point_index\>** index of the point to fetch * * ## Usage * * - `point(0, 'position', 0)` - returns the position of the first point of the first input, as a THREE.Vector3 * */ import { BaseMethod } from './_Base'; import { MethodDependency } from '../MethodDependency'; import { GeometryContainer } from '../../containers/Geometry'; export declare class PointExpression 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>; _get_value_from_container(container: GeometryContainer, attrib_name: string, point_index: number): string | number | boolean | import("../../../types/GlobalTypes").Number2 | import("../../../types/GlobalTypes").Number3 | import("../../../types/GlobalTypes").Number4 | import("../../../types/GlobalTypes").Vector2Like | import("../../../types/GlobalTypes").ColorLike | null; }