UnrealPackageReader.js
    Preparing search index...

    Interface ULodMesh

    A UMesh with the wedge/face indirection that lets the renderer collapse detail.

    interface ULodMesh {
        vertices_jump?: number;
        vertices: MeshVertex[];
        triangles_jump?: number;
        triangles: MeshTriangle[];
        anim_sequences: MeshAnimationSequence[];
        connects_jump: number;
        connections: MeshConnection[];
        bounding_box_2: BoundingBox;
        bounding_sphere_2: BoundingSphere;
        vert_links_jump: number;
        vert_links: number[];
        textures: ObjectRef[];
        bounding_boxes: BoundingBox[];
        bounding_spheres: BoundingSphere[];
        frame_verts: number;
        anim_frames: number;
        flags_AND: number;
        flags_OR: number;
        scale: Vector;
        origin: Vector;
        rotation_origin: Rotator;
        cur_poly: number;
        cur_vertex: number;
        texture_lod?: number[];
        collapse_point_thus: number[];
        face_level: number[];
        faces: LodMeshFace[];
        collapse_wedge_thus: number[];
        wedges: LodMeshWedge[];
        materials: LodMeshMaterial[];
        special_faces: LodMeshFace[];
        model_vertices: number;
        special_vertices: number;
        mesh_scale_max: number;
        lod_hysteresis: number;
        lod_strength: number;
        lod_min_verts: number;
        lod_morph: number;
        lod_z_displace: number;
        remap_anim_vertices: number[];
        old_frame_verts: number;
        bounding_box: BoundingBox;
        bounding_sphere: BoundingSphere;
    }

    Hierarchy (View Summary)

    Index
    vertices_jump?: number
    vertices: MeshVertex[]
    triangles_jump?: number
    triangles: MeshTriangle[]
    anim_sequences: MeshAnimationSequence[]
    connects_jump: number
    connections: MeshConnection[]
    bounding_box_2: BoundingBox
    bounding_sphere_2: BoundingSphere
    vert_links_jump: number
    vert_links: number[]
    textures: ObjectRef[]
    bounding_boxes: BoundingBox[]
    bounding_spheres: BoundingSphere[]

    Per-frame bounding spheres. Marked "currently broken" in the engine header.

    frame_verts: number
    anim_frames: number
    flags_AND: number
    flags_OR: number
    scale: Vector

    Mesh scaling.

    origin: Vector

    Origin in the original coordinate system.

    rotation_origin: Rotator

    Amount to rotate when importing (mostly for yawing).

    cur_poly: number

    Index of the selected polygon - editor state.

    cur_vertex: number

    Index of the selected vertex - editor state.

    texture_lod?: number[]
    collapse_point_thus: number[]

    LOD-collapse single-linked list for points.

    face_level: number[]

    Minimum LOD level at which each face is drawn.

    faces: LodMeshFace[]
    collapse_wedge_thus: number[]

    LOD-collapse single-linked list for wedges.

    wedges: LodMeshWedge[]

    Vertices split at UV seams (see LodMeshWedge). The engine calls these "Hoppe-style", after Hugues Hoppe, whose progressive-mesh work the LOD-collapse scheme is based on.

    materials: LodMeshMaterial[]
    special_faces: LodMeshFace[]

    Invisible special-coordinate faces.

    model_vertices: number

    Number of visible vertices.

    special_vertices: number

    Number of invisible (special attachment) vertices.

    mesh_scale_max: number

    Max of the x/y/z mesh scale, for LOD gauging (on top of drawscale).

    lod_hysteresis: number

    Controls the delay and morphing when the LOD level changes.

    lod_strength: number

    Scales the (not necessarily linear) falloff of vertices with distance.

    lod_min_verts: number

    Minimum number of vertices to draw the model with.

    lod_morph: number

    Above 0 allows morphing; 0 to 1 is the range of vertices to morph.

    lod_z_displace: number

    Z displacement for tweaking LOD's distance dependency.

    remap_anim_vertices: number[]
    old_frame_verts: number

    A possibly-different older per-frame vertex count.

    bounding_box: BoundingBox
    bounding_sphere: BoundingSphere