diff options
author | MW | 2007-06-10 12:37:51 +0000 |
---|---|---|
committer | MW | 2007-06-10 12:37:51 +0000 |
commit | 96c09a66c4d6019bd9e06cba141591b0faeb4a70 (patch) | |
tree | 85ee53c10de8f6c3616899a3bdc8b8c93f28dac7 /OpenSim/OpenSim.Region/World/types/Mesh.cs | |
parent | part two of the folder renaming fix. (diff) | |
download | opensim-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.cs | 41 |
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 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace 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 | } | ||