Preparing search index...

    Read-only metadata describing the geometry and rigging of a mesh asset.

        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const meshes = model.project.assetManager.assets
    .filter((a) => a.isOfType('FileMesh')) as Editor.Assets.FileMesh[];
    console.log(`Inspecting AABB of ${meshes.length} FileMesh asset(s)`);

    for (const mesh of meshes) {
    if (Editor.isNull(mesh) || Editor.isNull(mesh.info)) continue;
    const { aabbMin, aabbMax, aabbSize } = mesh.info;
    const size = new vec3(
    aabbMax.x - aabbMin.x,
    aabbMax.y - aabbMin.y,
    aabbMax.z - aabbMin.z,
    );
    console.log(
    `"${mesh.name}": size=(${size.x.toFixed(2)}, ${size.y.toFixed(2)}, ${size.z.toFixed(2)}) ` +
    `precomputed=(${aabbSize.x.toFixed(2)}, ${aabbSize.y.toFixed(2)}, ${aabbSize.z.toFixed(2)})`,
    );
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    aabbMax: vec3

    Maximum corner of the mesh's axis-aligned bounding box, in local units.

    aabbMin: vec3

    Minimum corner of the mesh's axis-aligned bounding box, in local units.

    aabbSize: vec3

    Size of the mesh's axis-aligned bounding box, in local units.

    blendshapes: string[]

    Names of blendshape channels defined on the mesh.

    id: Uuid

    The unique id of the entity.

    joints: number

    Number of skeletal joints referenced by the mesh.

    meta: Meta

    Metadata associated with this entity, providing access to its unique identifier and other descriptive properties.

    triangles: number

    Total number of triangles in the mesh.

    type: string

    The entity's type.

    vertices: number

    Total number of vertices in the mesh.

    Methods

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean