ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method AsSpan

    | Edit this page View Source

    AsSpan()

    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.