ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/OniSplit/Dae/MeshPrimitives.cs
Revision: 1114
Committed: Wed Jan 22 14:08:57 2020 UTC (5 years, 8 months ago) by iritscen
File size: 1047 byte(s)
Log Message:
Adding OniSplit source code (v0.9.99.0). Many thanks to Neo for all his work over the years.

File Contents

# Content
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 }