polygonjs-engine
Version:
node-based webgl 3D engine https://polygonjs.com
28 lines (27 loc) • 1.2 kB
TypeScript
/**
* Creates a box.
*
* @remarks
* If the node has no input, you can control the radius and center of the box. If the node has an input, it will create a box that encompasses the input geometry.
*
*/
import { TypedSopNode } from './_Base';
import { CoreGroup } from '../../../core/geometry/Group';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
declare class BoxSopParamsConfig extends NodeParamsConfig {
/** @param size of the box */
size: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>;
/** @param number of segments on each axis */
divisions: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>;
/** @param center of the geometry */
center: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.VECTOR3>;
}
export declare class BoxSopNode extends TypedSopNode<BoxSopParamsConfig> {
params_config: BoxSopParamsConfig;
static type(): string;
static displayedInputNames(): string[];
initializeNode(): void;
private _operation;
cook(input_contents: CoreGroup[]): void;
}
export {};