Method InsertSubMesh
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.
Declaration
public static void InsertSubMesh<T>(NativeList<T> positions, NativeList<int> triangles, ReadOnlySpan<T> subpositions, ReadOnlySpan<int> subtriangles) where T : unmanaged
Parameters
| Type | Name | Description |
|---|---|---|
| NativeList<T> | positions | The list of positions representing the main mesh. |
| NativeList<int> | triangles | The list of triangles defining the mesh. |
| ReadOnlySpan<T> | subpositions | The positions buffer of the sub-mesh to insert. |
| ReadOnlySpan<int> | subtriangles | The triangles buffer of the sub-mesh to insert. |
Type Parameters
| Name | Description |
|---|---|
| T | The data type of the positions. |