aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/types/Mesh.cs
blob: 3e00c9130bb1197aef589624081b2abd90ac644b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenSim.types
{
    // TODO: This will need some performance tuning no doubt.
    public class Mesh
    {
        public List<Triangle> mesh;

        public Mesh()
        {
            mesh = new List<Triangle>();
        }

        public void AddTri(Triangle tri)
        {
            mesh.Add(tri);
        }

        public static Mesh operator +(Mesh a, Mesh b)
        {
            a.mesh.AddRange(b.mesh);
            return a;
        }
    }
}