// SPDX-FileCopyrightText: 2024 Unity Technologies and the glTFast authors // SPDX-License-Identifier: Apache-2.0 using System; namespace GLTFast { readonly struct MeshSubset { /// glTF mesh index. public readonly int meshIndex; /// /// glTF mesh subset numeration. /// glTF mesh primitives are clustered into one or more consecutively numbered MeshSubsets. /// public readonly int meshNumeration; /// /// Connects Unity sub-mesh indices to glTF mesh primitive indices. /// Key: Unity sub-mesh index. /// Value: glTF primitive index. /// public readonly int[] primitives; public MeshSubset(int meshIndex, int meshNumeration, int[] primitives) { this.meshIndex = meshIndex; this.meshNumeration = meshNumeration; this.primitives = primitives; } } }