---
title: "extractSurfacesForAtlasSlice(mode:atlasTextureIndex:textureSliceIndex:cameraOutput:cameraTransform:cameraFOVDegrees:onComplete:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/lightmapcomponent/surfaceextractor/extractsurfacesforatlasslice(mode:atlastextureindex:texturesliceindex:cameraoutput:cameratransform:camerafovdegrees:oncomplete:)"
---

# extractSurfacesForAtlasSlice(mode:atlasTextureIndex:textureSliceIndex:cameraOutput:cameraTransform:cameraFOVDegrees:onComplete:)

## Declaration

```swift
@MainActor func extractSurfacesForAtlasSlice(mode: LightmapComponent.SurfaceExtractor.ExtractionMode, atlasTextureIndex: Int, textureSliceIndex: Int, cameraOutput: RealityRenderer.CameraOutput, cameraTransform: Transform = .init(), cameraFOVDegrees: Float = 90, onComplete: (@Sendable () -> Void)? = nil) throws
```

## See Also

### Extracting surfaces

- [LightmapComponent.SurfaceExtractor.ExtractionMode](realitykit/lightmapcomponent/surfaceextractor/extractionmode.md)
