Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface GeometryDataInterface

    interface GeometryDataInterface {
        indices?: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>;
        needsUpdate?: boolean;
        normals?: Float32Array<ArrayBufferLike>;
        tangents?: Float32Array<ArrayBufferLike>;
        topology?: Topology;
        uvs?: Float32Array<ArrayBufferLike>;
        vertices: Float32Array;
        wireframeIndices?:
            | Uint16Array<ArrayBufferLike>
            | Uint32Array<ArrayBufferLike>;
        getBoundingVolume(): BoundingVolume;
    }
    Index

    Properties

    indices?: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>

    Optional index data. If provided, indexed rendering is used.

    needsUpdate?: boolean

    Flag to indicate that the vertex/normal/tangent buffers need to be re-uploaded to the GPU. Set this to true after modifying the TypedArrays in-place.

    normals?: Float32Array<ArrayBufferLike>

    Optional normal data (nx, ny, nz).

    tangents?: Float32Array<ArrayBufferLike>

    Optional tangent data (tx, ty, tz). Used for normal mapping.

    topology?: Topology

    The topology of the geometry (e.g., TRIANGLE_LIST or LINE_LIST).

    uvs?: Float32Array<ArrayBufferLike>

    Optional texture coordinate data (u, v).

    vertices: Float32Array

    Vertex position data (x, y, z). Mandatory.

    wireframeIndices?: Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike>

    Optional index data for wireframe rendering.

    Methods