UNPKG

polygonjs-engine

Version:

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

29 lines (28 loc) 1.32 kB
/** * Simple math operation of a numeric attribute * * @remarks * This allows you to quickly add and multiply a numeric attribute of the input geometry. * */ import { TypedSopNode } from './_Base'; import { CoreGroup } from '../../../core/geometry/Group'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class AttribAddMultSopParamsConfig extends NodeParamsConfig { /** @param attribute name */ name: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>; /** @param value to add before the multiplication */ preAdd: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; /** @param value to multiply */ mult: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; /** @param value to add after the multiplication */ postAdd: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; } export declare class AttribAddMultSopNode extends TypedSopNode<AttribAddMultSopParamsConfig> { params_config: AttribAddMultSopParamsConfig; static type(): string; initializeNode(): void; private _operation; cook(input_contents: CoreGroup[]): void; } export {};