Method AsSpan
| Edit this page View SourceAsSpan()
Returns the vertices as a Span<T> for efficient access without allocations.
Declaration
public Span<Vector3> AsSpan()
Returns
| Type | Description |
|---|---|
| Span<Vector3> | Span of vertices |
Remarks
Unsafe: This method returns a mutable span, allowing modification of the vertices. Use with caution as it alters vertices directly without updating length or closedness. It is recommended to call Recompute() after modifying vertices via this span.