mirror of
git://opensimulator.org/git/opensim
synced 2026-08-17 02:22:40 +00:00
Currently the vm is at a early stage and very limited: currently only supports static methods (instance methods support is nearly finished though) currently a class can't have member variables, so currently only local variables in the methods. Also in this branch, connecting the vm to opensim is not completely finished: it is being uploaded just for viewing purposes.
29 lines
563 B
C#
29 lines
563 B
C#
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;
|
|
}
|
|
}
|
|
}
|