Documentation - v19.16.0-dev
    Preparing search index...

    A file read by a FileReader: its header is read, its objects are converted on demand, one at a time, by meshes().

    interface LoadedFile {
        meshCount: number;
        name: string;
        offset?: Vector3;
        meshes(): Iterable<InputMesh>;
    }
    Index

    Properties

    Methods

    Properties

    meshCount: number

    Objects in the file, for progress.

    name: string

    Name of the file, for messages.

    offset?: Vector3

    The translation that centered the model around 0: its objects' world position is this offset plus their matrices. The MeshLoader places the files relative to each other with it (MeshLoader.applyFileOffsets). 0 when absent.

    Methods

    • Converts the objects to InputMesh, in the file's order, as they are asked for: nothing is kept between two of them but what they share (geometries, materials).

      Returns Iterable<InputMesh>