Skip to content

Class: Geometries ​

Defined in: packages/minerender/src/Geometries.ts:6

Creates box geometry with optional face UVs and caches it by dimensions and UV values.

Constructors ​

Constructor ​

ts
new Geometries(): Geometries;

Returns ​

Geometries

Methods ​

createBox() ​

ts
static createBox(key): BoxGeometry;

Defined in: packages/minerender/src/Geometries.ts:8

Parameters ​

ParameterType
keyBoxGeometryKey

Returns ​

BoxGeometry


getBox() ​

ts
static getBox(key): BoxGeometry;

Defined in: packages/minerender/src/Geometries.ts:92

Returns shared geometry. Use createBox when the caller needs to modify or dispose it independently.

Parameters ​

ParameterType
keyBoxGeometryKey

Returns ​

BoxGeometry