sceneReconstruction
A flag that enables scene reconstruction.
Declaration
var sceneReconstruction: ARConfiguration.SceneReconstruction { get set }Discussion
When you enable scene reconstruction, ARKit provides a polygonal mesh that estimates the shape of the physical environment. Before setting this property, call supportsSceneReconstruction(_:) to ensure device support. For a sample app that demonstrates scene reconstruction, see Visualizing and interacting with a reconstructed scene.
If you enable plane detection, ARKit applies that information to the mesh. Where the LiDAR scanner may produce a slightly uneven mesh on a real-world surface, ARKit smooths out the mesh where it detects a plane on that surface.
If you enable people occlusion, ARKit adjusts the mesh according to any people it detects in the camera feed. ARKit removes any part of the scene mesh that overlaps with people, as defined by the personSegmentation or personSegmentationWithDepth frame semantics.