BurstTriangulator
v3.8.0
Search Results for

    Show / Hide Table of Contents

    Class Utilities

    A collection of utility functions related to triangulation.

    Inheritance
    object
    Utilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: andywiecko.BurstTriangulator
    Assembly: .dll
    Syntax
    public static class Utilities

    Methods

    Name Description
    GenerateHalfedges(Span<int>, ReadOnlySpan<int>, Allocator)

    Generates halfedges using the provided triangles.

    GeneratePointTriangleCount(Span<int>, ReadOnlySpan<int>)

    Populates the pointTriangleCount buffer with the number of triangles each vertex index is part of, based on the provided triangles index buffer.

    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.

    InsertSubMesh<T>(NativeList<T>, NativeList<int>, ReadOnlySpan<T>, ReadOnlySpan<int>)

    Inserts a sub-mesh, defined by (subpositions, subtriangles), into the main mesh represented by (positions, triangles). The subtriangles will be adjusted by the initial count of positions to ensure proper indexing before insertion.

    NextHalfedge(int)

    Returns the next halfedge index after he. Useful for iterating over a triangle mesh.

    In this article
    Back to top Generated by DocFX | Documentation © 2024 by Andrzej Więckowski is licensed under CC BY 4.0