UNPKG

@polygonjs/polygonjs

Version:

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

27 lines (26 loc) 1.05 kB
/** * 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'; import { SopType } from '../../poly/registers/nodes/types/Sop'; declare class DataSopParamsConfig extends NodeParamsConfig { /** @param json object used to create the geometry */ data: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.STRING>; } export declare class DataSopNode extends TypedSopNode<DataSopParamsConfig> { paramsConfig: DataSopParamsConfig; static type(): SopType; cook(): void; } export {};