polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
33 lines (32 loc) • 1.61 kB
TypeScript
/**
* Adds points or creates lines.
*
* @remarks
* The add node can be used to add a single or multiple points.
* If given points as input, it can also connect those points with a line.
*
*/
import { TypedSopNode } from './_Base';
import { CoreGroup } from '../../../core/geometry/Group';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
declare class AddSopParamsConfig extends NodeParamsConfig {
/** @param toggle to create points */
createPoint: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>;
/** @param define the number of points to create */
pointsCount: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>;
/** @param the position of the created points */
position: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.VECTOR3>;
/** @param toggle on to connect the points from the input geometry */
connectInputPoints: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>;
/** @param check if the last point is connected */
connectToLastPoint: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>;
}
export declare class AddSopNode extends TypedSopNode<AddSopParamsConfig> {
params_config: AddSopParamsConfig;
static type(): string;
static displayedInputNames(): string[];
initializeNode(): void;
private _operation;
cook(input_contents: CoreGroup[]): void;
}
export {};