• Orchestrator for the demo's inspect pipeline. Walks every Inspection registered in the configured InspectionRegistry, concatenates each run's issues, and finalises the result into an InspectionReport bucketed by severity and by code.

    The validator only inspects state — it never mutates the SceneModel. Callers that want to block on errors should check report.errors.length === 0; optimizeSceneModel does this itself on entry.

    import {DEFAULT_INSPECTION_REGISTRY} from "@xeokit/sdk/inspect/sceneModel";

    DEFAULT_INSPECTION_REGISTRY.register({
    codes: ["MyApp/CHECK_NAMING"],
    description: "Object names follow project convention",
    run(sceneModel) {
    // walk + return Issue[]
    },
    });

    Or for tests / isolated runs, build a fresh registry:

    import {InspectionRegistry, geometryDataIntegrity, inspectSceneModel} from "@xeokit/sdk/inspect/sceneModel";

    const registry = new InspectionRegistry([geometryDataIntegrity]);
    const report = inspectSceneModel({sceneModel, registry});

    Parameters

    Returns inspect.sceneModel.InspectionReport