resolutionMetric(switchingResolutions:boundingBox:)
Creates a resolution metric for a level of detail component to switch with.
Declaration
static func resolutionMetric(switchingResolutions: [LevelOfDetailComponent.SelectionStrategy.ResolutionMetric.DirectionalSwitchingResolutions], boundingBox: BoundingBox) -> LevelOfDetailComponent.SelectionStrategyParameters
- switchingResolutions:
An array of
ResolutionMetric.DirectionalSwitchingResolutions. TheResolutionMetric.DirectionalSwitchingResolutionsat indexicorresponds to the LOD leveli + 1. - boundingBox:
The bounding box of the entity used when calculating the switching resolutions .
Return Value
A configured resolution metric selection strategy.