UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

67 lines (66 loc) 2.35 kB
import { NodeGeometryBlock } from "../../nodeGeometryBlock.js"; import type { NodeGeometryConnectionPoint } from "../../nodeGeometryBlockConnectionPoint.js"; import type { INodeGeometryExecutionContext } from "../../Interfaces/nodeGeometryExecutionContext.js"; import type { VertexData } from "../../../mesh.vertexData.js"; import type { INodeGeometryInstancingContext } from "../../Interfaces/nodeGeometryInstancingContext.js"; /** * Block used as a base for InstantiateXXX blocks */ export declare abstract class InstantiateBaseBlock extends NodeGeometryBlock implements INodeGeometryExecutionContext, INodeGeometryInstancingContext { protected _vertexData: VertexData; protected _currentIndex: number; /** * Gets or sets a boolean indicating that this block can evaluate context * Build performance is improved when this value is set to false as the system will cache values instead of reevaluating everything per context change */ evaluateContext: boolean; /** * Create a new InstantiateBaseBlock * @param name defines the block name */ constructor(name: string); /** * Gets the current instance index in the current flow * @returns the current index */ getInstanceIndex(): number; /** * Gets the current index in the current flow * @returns the current index */ getExecutionIndex(): number; /** * Gets the current loop index in the current flow * @returns the current loop index */ getExecutionLoopIndex(): number; /** * Gets the current face index in the current flow * @returns the current face index */ getExecutionFaceIndex(): number; /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Gets the instance input component */ get instance(): NodeGeometryConnectionPoint; /** * Gets the count input component */ get count(): NodeGeometryConnectionPoint; /** * Gets the geometry output component */ get output(): NodeGeometryConnectionPoint; protected _dumpPropertiesCode(): string; /** * Serializes this block in a JSON representation * @returns the serialized block object */ serialize(): any; _deserialize(serializationObject: any): void; }