| 1 | using System; | 
 
 
 
 
 | 2 | using System.Collections.Generic; | 
 
 
 
 
 | 3 |  | 
 
 
 
 
 | 4 | namespace Oni.Dae | 
 
 
 
 
 | 5 | { | 
 
 
 
 
 | 6 | internal class MeshPrimitives | 
 
 
 
 
 | 7 | { | 
 
 
 
 
 | 8 | private readonly MeshPrimitiveType primitiveType; | 
 
 
 
 
 | 9 | private readonly List<IndexedInput> inputs; | 
 
 
 
 
 | 10 | private readonly List<int> vertexCounts; | 
 
 
 
 
 | 11 |  | 
 
 
 
 
 | 12 | public MeshPrimitives(MeshPrimitiveType primitiveType) | 
 
 
 
 
 | 13 | { | 
 
 
 
 
 | 14 | this.primitiveType = primitiveType; | 
 
 
 
 
 | 15 | this.inputs = new List<IndexedInput>(3); | 
 
 
 
 
 | 16 | this.vertexCounts = new List<int>(); | 
 
 
 
 
 | 17 | } | 
 
 
 
 
 | 18 |  | 
 
 
 
 
 | 19 | public MeshPrimitives(MeshPrimitiveType primitiveType, IEnumerable<IndexedInput> inputs) | 
 
 
 
 
 | 20 | { | 
 
 
 
 
 | 21 | this.primitiveType = primitiveType; | 
 
 
 
 
 | 22 | this.inputs = new List<IndexedInput>(inputs); | 
 
 
 
 
 | 23 | this.vertexCounts = new List<int>(); | 
 
 
 
 
 | 24 | } | 
 
 
 
 
 | 25 |  | 
 
 
 
 
 | 26 | public MeshPrimitiveType PrimitiveType => primitiveType; | 
 
 
 
 
 | 27 |  | 
 
 
 
 
 | 28 | public string MaterialSymbol { get; set; } | 
 
 
 
 
 | 29 |  | 
 
 
 
 
 | 30 | public List<IndexedInput> Inputs => inputs; | 
 
 
 
 
 | 31 |  | 
 
 
 
 
 | 32 | public List<int> VertexCounts => vertexCounts; | 
 
 
 
 
 | 33 | } | 
 
 
 
 
 | 34 | } |