<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/NavigationMeshResource/init(triangleIndices:vertices:offMeshConnections:configuration:)-480i3",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22NavigationMeshResourceC15triangleIndices8vertices03offD11Connections13configurationACSays6UInt32VG_Says5SIMD3VySfGGSayAC03OffD10ConnectionVGAC13ConfigurationVtYaKcfc"
  },
  "title" : "init(triangleIndices:vertices:offMeshConnections:configuration:)"
}
-->

# init(triangleIndices:vertices:offMeshConnections:configuration:)

Asynchronously creates a NavigationMeshResource from triangle indices and vertices.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.

```
convenience init(triangleIndices: [UInt32], vertices: [SIMD3<Float>], offMeshConnections: [NavigationMeshResource.OffMeshConnection] = [], configuration: NavigationMeshResource.Configuration) async throws
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)