@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
23 lines (22 loc) • 1.08 kB
TypeScript
import { BaseOperationContainer } from './_Base';
import { BaseSopOperation } from '../sop/_Base';
import { ParamsInitData } from '../../../engine/nodes/utils/io/IOController';
import { CoreGroup } from '../../../core/geometry/Group';
import { NodeContext } from '../../poly/NodeContext';
export type OperationInputsMap = WeakMap<SopOperationContainer, Map<number, number>>;
export declare class SopOperationContainer extends BaseOperationContainer<NodeContext.SOP> {
protected operation: BaseSopOperation;
protected name: string;
protected init_params: ParamsInitData;
constructor(operation: BaseSopOperation, name: string, init_params: ParamsInitData);
operationType(): string;
protected _inputs: SopOperationContainer[];
private _currentInputIndex;
addInput(input: SopOperationContainer): void;
incrementInputIndex(): void;
currentInputIndex(): number;
private _computeResult;
private _dirty;
setDirty(): void;
compute(input_contents: CoreGroup[], operation_inputs_map: OperationInputsMap): Promise<CoreGroup | undefined>;
}