UNPKG

@polygonjs/polygonjs

Version:

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

28 lines (27 loc) 1.25 kB
/** * Returns the value of a vertex attribute * * @remarks * It takes 3 arguments. * * `point(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 { BaseMethodFindDependencyArgs } from './_Base'; import { BaseMethod } from './_Base'; import { MethodDependency } from '../MethodDependency'; import { GeometryContainer } from '../../containers/Geometry'; export declare class PointExpression extends BaseMethod { static requiredArguments(): string[][]; findDependency(args: BaseMethodFindDependencyArgs): MethodDependency | null; processArguments(args: any[]): Promise<any>; _get_value_from_container(container: GeometryContainer, attrib_name: string, point_index: number): string | number | boolean | import("../../../types/GlobalTypes").Vector2Like | import("../../../types/GlobalTypes").ColorLike | import("../../index_all").Number2 | import("../../index_all").Number3 | import("../../index_all").Number4 | null; }