<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/linesFromNeighbors",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "linesFromNeighbors"
  },
  "title" : "linesFromNeighbors"
}
-->

# linesFromNeighbors

```
void linesFromNeighbors(pointer<uniform_grid_t> grid, strided_buffer<float3> positions, strided_buffer<uint2> outputSegments, float maxDistance)
```

## Discussion> Visual: ![Graph](linesFromNeighbors)

---

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)