UNPKG

polygonjs-engine

Version:

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

26 lines (25 loc) 992 B
/** * Create points from a an array of json dictionaries * * @remarks * The number of points created will be equal to the number of elements in the array. * Each element of the array must be a dictionary. It can look like: * `[{position: [1,2,3]}]` * which will create a single point at the position x=1,y=2,z=3. * * In order to create 2 points with attributes `position` and `amp`, you would have: * `[{position: [1,2,3], amp: 1},{position: [7,2,1], amp: 3}]` * */ import { TypedSopNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class DataSopParamsConfig extends NodeParamsConfig { /** @param json object used to create the geometry */ data: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.STRING>; } export declare class DataSopNode extends TypedSopNode<DataSopParamsConfig> { params_config: DataSopParamsConfig; static type(): string; cook(): void; } export {};