aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.Region/World/types/Mesh.cs
diff options
context:
space:
mode:
authorMW2007-06-10 12:37:51 +0000
committerMW2007-06-10 12:37:51 +0000
commit96c09a66c4d6019bd9e06cba141591b0faeb4a70 (patch)
tree85ee53c10de8f6c3616899a3bdc8b8c93f28dac7 /OpenSim/OpenSim.Region/World/types/Mesh.cs
parentpart two of the folder renaming fix. (diff)
downloadopensim-SC_OLD-96c09a66c4d6019bd9e06cba141591b0faeb4a70.zip
opensim-SC_OLD-96c09a66c4d6019bd9e06cba141591b0faeb4a70.tar.gz
opensim-SC_OLD-96c09a66c4d6019bd9e06cba141591b0faeb4a70.tar.bz2
opensim-SC_OLD-96c09a66c4d6019bd9e06cba141591b0faeb4a70.tar.xz
More rearranging.
Diffstat (limited to 'OpenSim/OpenSim.Region/World/types/Mesh.cs')
-rw-r--r--OpenSim/OpenSim.Region/World/types/Mesh.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.Region/World/types/Mesh.cs b/OpenSim/OpenSim.Region/World/types/Mesh.cs
new file mode 100644
index 0000000..ccc55eb
--- /dev/null
+++ b/OpenSim/OpenSim.Region/World/types/Mesh.cs
@@ -0,0 +1,41 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Region.types
6{
7 // TODO: This will need some performance tuning no doubt.
8 public class Mesh
9 {
10 public List<Triangle> mesh;
11
12 /// <summary>
13 ///
14 /// </summary>
15 public Mesh()
16 {
17 mesh = new List<Triangle>();
18 }
19
20 /// <summary>
21 ///
22 /// </summary>
23 /// <param name="tri"></param>
24 public void AddTri(Triangle tri)
25 {
26 mesh.Add(tri);
27 }
28
29 /// <summary>
30 ///
31 /// </summary>
32 /// <param name="a"></param>
33 /// <param name="b"></param>
34 /// <returns></returns>
35 public static Mesh operator +(Mesh a, Mesh b)
36 {
37 a.mesh.AddRange(b.mesh);
38 return a;
39 }
40 }
41}