Variable DEFAULT_INSPECTION_REGISTRYConst

DEFAULT_INSPECTION_REGISTRY: inspect.sceneModel.InspectionRegistry = ...

The InspectionRegistry inspectSceneModel reaches for when no registry is supplied in its params. Pre-populated with the built-in inspections that ship from studio/sceneModelInspector/inspections.

Registration order:

  1. geometryDataIntegrity (errors, always run)
  2. meshReferences (errors, always run)
  3. objectMeshReferences (errors, always run)
  4. transformParentCycles (errors, always run)
  5. unusedResources (warnings, always run)
  6. identityTransforms (warning, always run)
  7. duplicateGeometries (warning, opt-in via params)
  8. similarGeometries (warning, opt-in via params)
  9. denseGeometries (warning, opt-in via params)
  10. geometryArrayLengths (warning, opt-in via params)
  11. largeGeometries (warning, opt-in via params)
  12. geometryQuality (warnings, opt-in via params)
  13. objectPlacement (warnings, opt-in via params)
  14. textureDimensions (warnings, opt-in via params)
  15. farFromOriginGeometries (warning, opt-in via params)

Plugins are expected to register additional inspections into this singleton on import:

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

DEFAULT_INSPECTION_REGISTRY.register({
codes: ["MyApp/CHECK_NAMING"],
description: "Enforce object-naming convention",
run(sceneModel) { ... },
});

Tests / one-off pipelines can ignore the singleton and build a fresh InspectionRegistry instead, then pass it via the registry field on InspectSceneModelParams.