@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.
62 lines (61 loc) • 1.98 kB
TypeScript
import { NodeGeometryBlock } from "../../nodeGeometryBlock.js";
import type { NodeGeometryConnectionPoint } from "../../nodeGeometryBlockConnectionPoint.js";
import type { NodeGeometryBuildState } from "../../nodeGeometryBuildState.js";
/**
* Defines a block used to generate plane geometry data
*/
export declare class PlaneBlock extends NodeGeometryBlock {
private _rotationMatrix;
/**
* 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 PlaneBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the size input component
*/
get size(): NodeGeometryConnectionPoint;
/**
* Gets the width input component
*/
get width(): NodeGeometryConnectionPoint;
/**
* Gets the height input component
*/
get height(): NodeGeometryConnectionPoint;
/**
* Gets the subdivisions input component
*/
get subdivisions(): NodeGeometryConnectionPoint;
/**
* Gets the subdivisionsX input component
*/
get subdivisionsX(): NodeGeometryConnectionPoint;
/**
* Gets the subdivisionsY input component
*/
get subdivisionsY(): NodeGeometryConnectionPoint;
/**
* Gets the geometry output component
*/
get geometry(): NodeGeometryConnectionPoint;
autoConfigure(): void;
protected _buildBlock(state: NodeGeometryBuildState): void;
protected _dumpPropertiesCode(): string;
/**
* Serializes this block in a JSON representation
* @returns the serialized block object
*/
serialize(): any;
_deserialize(serializationObject: any): void;
}