diff options
author | MW | 2007-06-10 12:25:39 +0000 |
---|---|---|
committer | MW | 2007-06-10 12:25:39 +0000 |
commit | cb624a4d4586de1b66b646a2d04c56bb988f921e (patch) | |
tree | 9285b97f88ad23fa59d056c4774377a68fb49033 /OpenSim/OpenSim.World/types | |
parent | More World to Region transformation. (diff) | |
download | opensim-SC_OLD-cb624a4d4586de1b66b646a2d04c56bb988f921e.zip opensim-SC_OLD-cb624a4d4586de1b66b646a2d04c56bb988f921e.tar.gz opensim-SC_OLD-cb624a4d4586de1b66b646a2d04c56bb988f921e.tar.bz2 opensim-SC_OLD-cb624a4d4586de1b66b646a2d04c56bb988f921e.tar.xz |
Renamed folder
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.World/types/Mesh.cs | 41 | ||||
-rw-r--r-- | OpenSim/OpenSim.World/types/Triangle.cs | 37 |
2 files changed, 0 insertions, 78 deletions
diff --git a/OpenSim/OpenSim.World/types/Mesh.cs b/OpenSim/OpenSim.World/types/Mesh.cs deleted file mode 100644 index ccc55eb..0000000 --- a/OpenSim/OpenSim.World/types/Mesh.cs +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
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 | } | ||
diff --git a/OpenSim/OpenSim.World/types/Triangle.cs b/OpenSim/OpenSim.World/types/Triangle.cs deleted file mode 100644 index 488cc21..0000000 --- a/OpenSim/OpenSim.World/types/Triangle.cs +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using Axiom.MathLib; | ||
5 | |||
6 | namespace OpenSim.Region.types | ||
7 | { | ||
8 | public class Triangle | ||
9 | { | ||
10 | Vector3 a; | ||
11 | Vector3 b; | ||
12 | Vector3 c; | ||
13 | |||
14 | /// <summary> | ||
15 | /// | ||
16 | /// </summary> | ||
17 | public Triangle() | ||
18 | { | ||
19 | a = new Vector3(); | ||
20 | b = new Vector3(); | ||
21 | c = new Vector3(); | ||
22 | } | ||
23 | |||
24 | /// <summary> | ||
25 | /// | ||
26 | /// </summary> | ||
27 | /// <param name="A"></param> | ||
28 | /// <param name="B"></param> | ||
29 | /// <param name="C"></param> | ||
30 | public Triangle(Vector3 A, Vector3 B, Vector3 C) | ||
31 | { | ||
32 | a = A; | ||
33 | b = B; | ||
34 | c = C; | ||
35 | } | ||
36 | } | ||
37 | } | ||