BurstTriangulator
v3.8.0
Search Results for

    Show / Hide Table of Contents

    Method GenerateTriangleColors

    GenerateTriangleColors(Span<int>, ReadOnlySpan<int>, out int, Allocator)

    Generates triangle colors using the provided halfedges. Triangles that share a common edge are assigned the same color index. The resulting colors contains values in the range [0, colorsCount). Check the documentation for further details.

    Declaration
    public static void GenerateTriangleColors(Span<int> colors, ReadOnlySpan<int> halfedges, out int colorsCount, Allocator allocator)
    Parameters
    Type Name Description
    Span<int> colors

    A buffer that will be populated with triangle colors. Its length must be three times smaller than halfedges.

    ReadOnlySpan<int> halfedges

    The halfedge data used for generating colors.

    int colorsCount

    The total number of unique colors assigned.

    Allocator allocator

    The allocator to use for temporary data.

    See Also
    GenerateHalfedges(Span<int>, ReadOnlySpan<int>, Allocator)
    In this article
    Back to top Generated by DocFX | Documentation © 2024 by Andrzej Więckowski is licensed under CC BY 4.0