omega-game-engine
    Preparing search index...

    Interface IMeshData

    Interface for geometric mesh data. It defines the structure for storing vertex positions, normals, and UV coordinates, along with optional tangent and bitangent vectors for normal mapping.

    interface IMeshData {
        _className: string;
        _serializationIgnoreKeys: string[];
        _uuid: string;
        bitangents?: vec3[];
        indices: number[];
        name: string;
        normals: vec3[];
        tangents?: vec3[];
        uuid: string;
        uvs: vec2[];
        vertices: vec3[];
        get className(): string;
        calculateNormals(): void;
        calculateTangentsAndBitangents(): void;
        deserializeAutomatically(jsonObject: JsonSerializedData): void;
        fromJson(jsonObject: JsonSerializedData): void;
        getBaseJsonInfo(): JsonSerializedData;
        invertNormals(): void;
        serializeAutomatically(): JsonSerializedData;
        toJsonObject(): JsonSerializedData;
        [key: string]: any;
    }

    Hierarchy (View Summary)

    Implemented by

    Indexable

    • [key: string]: any
    Index

    Properties

    _className: string
    _serializationIgnoreKeys: string[]
    _uuid: string
    bitangents?: vec3[]

    The array of bitangent vectors.

    indices: number[]

    The array of vertex indices.

    name: string = ''
    normals: vec3[]

    The array of vertex normals.

    tangents?: vec3[]

    The array of tangent vectors.

    uuid: string

    The unique identifier for the mesh data.

    uvs: vec2[]

    The array of texture coordinates.

    vertices: vec3[]

    The array of vertex positions.

    Accessors

    Methods

    • Calculates smooth normals for the mesh based on its vertices and indices.

      Returns void

    • Calculates tangents and bitangents for the mesh.

      Returns void

    • Inverts the direction of all normal vectors in the mesh.

      Returns void