mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
brought zircon branch into trunk
This commit is contained in:
28
OpenSim.RegionServer/types/Mesh.cs
Normal file
28
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user