Eve library

ISIS V2 LOD Pipeline and Validation

Guide

Revision 1

On this page

WS06-005 adds a configurable LOD generation/validation pipeline in @isis/3d-generation via src/processing/lod-pipeline-validator.ts.

Implemented Pipeline#

  • configuration validation
    • Validates level count, ratio bounds, descending ratios, descending screen coverage, and ascending switch distance.
    • Supports both preset-based and fully custom level configuration.
  • chain validation
    • Validates generated LOD chains for decreasing triangle counts.
    • Evaluates step reduction limits, total reduction minimum, and terminal LOD density limits.
    • Returns structured metrics and typed warnings/errors.
  • generate + validate orchestration
    • generateValidatedLODChain wraps generation with pre/post validation.
    • Supports fail-fast behavior for configuration and chain validation errors.

API#

  • validateLODConfiguration(options, validationOptions)
  • validateLODChainWithThresholds(chain, validationOptions)
  • generateValidatedLODChain(buffer, options, dependencies?)

Default Validation Thresholds#

  • minLevelCount: 2
  • maxStepReduction: 0.8
  • minTotalReduction: 0.6
  • maxLastLevelTriangleRatio: 0.2
  • requireScreenCoverageDescending: true
  • requireSwitchDistanceAscending: true