UNPKG

polygonjs-engine

Version:

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

29 lines (28 loc) 1.45 kB
/** * Promotes an attribute from object to geometry or vice-versa. * * @remarks * The attribute can also be promoted with different modes, such as only the min, max or first found. * */ import { TypedSopNode } from './_Base'; import { CoreGroup } from '../../../core/geometry/Group'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class AttribPromoteSopParamsConfig extends NodeParamsConfig { /** @param class the attribute is from (object or geometry) */ classFrom: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param class the attribute should be promoted to (object or geometry) */ classTo: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param mode used to promote the attribute (min, max or first_found) */ mode: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param name of the attribute to promote */ name: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>; } export declare class AttribPromoteSopNode extends TypedSopNode<AttribPromoteSopParamsConfig> { params_config: AttribPromoteSopParamsConfig; static type(): string; initializeNode(): void; private _operation; cook(input_contents: CoreGroup[]): void; } export {};