UNPKG

@polygonjs/polygonjs

Version:

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

35 lines (34 loc) 1.72 kB
/** * Creates a plane. * * * */ import { TypedSopNode } from './_Base'; import { CoreGroup } from '../../../core/geometry/Group'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { SopType } from '../../poly/registers/nodes/types/Sop'; declare class PlaneSopParamsConfig extends NodeParamsConfig { /** @param size of the plane */ size: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR2>; /** @param defines if the plane resolution is sets via the number of segments or via the step size */ useSegmentsCount: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; /** @param step size */ stepSize: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; /** @param segments count */ segments: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR2>; /** @param axis perpendicular to the plane */ direction: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>; /** @param center of the plane */ center: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.VECTOR3>; /** @param create lines instead of polygons */ asLines: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.BOOLEAN>; } export declare class PlaneSopNode extends TypedSopNode<PlaneSopParamsConfig> { paramsConfig: PlaneSopParamsConfig; static type(): SopType; initializeNode(): void; private _operation; cook(input_contents: CoreGroup[]): void; } export {};