mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Renamed the new Directories. (removed the "-Source" from the end of them)
This commit is contained in:
28
OpenSim/OpenSim.RegionServer/types/Mesh.cs
Normal file
28
OpenSim/OpenSim.RegionServer/types/Mesh.cs
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
28
OpenSim/OpenSim.RegionServer/types/Triangle.cs
Normal file
28
OpenSim/OpenSim.RegionServer/types/Triangle.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Axiom.MathLib;
|
||||
|
||||
namespace OpenSim.types
|
||||
{
|
||||
public class Triangle
|
||||
{
|
||||
Vector3 a;
|
||||
Vector3 b;
|
||||
Vector3 c;
|
||||
|
||||
public Triangle()
|
||||
{
|
||||
a = new Vector3();
|
||||
b = new Vector3();
|
||||
c = new Vector3();
|
||||
}
|
||||
|
||||
public Triangle(Vector3 A, Vector3 B, Vector3 C)
|
||||
{
|
||||
a = A;
|
||||
b = B;
|
||||
c = C;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user