| Parameter | Description |
|---|---|
| segments | The segment batch to update in place. Its length must equal the segment count the vertices produce. |
| vertices | The vertices to recalculate the segments from. |
| transform | The transform used to specify where the geometry is positioned. |
| isLoop | Indicates a closed chain formed by connecting the first and last vertices specified. This changes how the vertices are interpreted. |
Update an existing batch of ChainSegmentGeometry from a set of vertices, writing the results into the specified span in place.
This pairs with ChainSegmentGeometry.CreateSegments: it recalculates the same segment and ghost vertices, but reuses a caller-provided span rather than allocating a new one.
The span length must equal the segment count the vertices produce, which is the vertex count when isLoop is true, otherwise the vertex count minus three.