Method GeneratePointTriangleCount
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.
Declaration
public static void GeneratePointTriangleCount(Span<int> pointTriangleCount, ReadOnlySpan<int> triangles)
Parameters
Type | Name | Description |
---|---|---|
Span<int> | pointTriangleCount | The buffer to populate with per-vertex triangle usage counts. Must be large enough to accommodate the highest index in |
ReadOnlySpan<int> | triangles | The index buffer representing triangles. |