UNPKG

@polygonjs/polygonjs

Version:

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

30 lines (29 loc) 1.36 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'; import { SopType } from '../../poly/registers/nodes/types/Sop'; declare class AttribAddMultSopParamsConfig extends NodeParamsConfig { /** @param attribute name */ name: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>; /** @param value to add before the multiplication */ preAdd: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param value to multiply */ mult: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param value to add after the multiplication */ postAdd: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; } export declare class AttribAddMultSopNode extends TypedSopNode<AttribAddMultSopParamsConfig> { paramsConfig: AttribAddMultSopParamsConfig; static type(): SopType; initializeNode(): void; private _operation; cook(input_contents: CoreGroup[]): void; } export {};