UNPKG

polygonjs-engine

Version:

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

33 lines (32 loc) 1.51 kB
/** * Creates a tube-like geometry around a line. * * */ import { TypedSopNode } from './_Base'; import { LineSegments } from 'three/src/objects/LineSegments'; import { BufferGeometry } from 'three/src/core/BufferGeometry'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; import { CoreGroup } from '../../../core/geometry/Group'; import { CorePoint } from '../../../core/geometry/Point'; declare class PolywireSopParamsConfig extends NodeParamsConfig { /** @param radius */ radius: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.FLOAT>; /** @param segments count on the circle used */ segmentsRadial: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param toggle on for the geometry to close back on itself */ closed: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.BOOLEAN>; } export declare class PolywireSopNode extends TypedSopNode<PolywireSopParamsConfig> { params_config: PolywireSopParamsConfig; static type(): string; static displayedInputNames(): string[]; private _core_transform; initializeNode(): void; private _geometries; cook(input_contents: CoreGroup[]): void; _create_tube(line_segment: LineSegments): void; _create_tube_from_points(points: CorePoint[]): void; _skin(geometry1: BufferGeometry, geometry0: BufferGeometry): BufferGeometry; } export {};