Primitive.cs 804 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using OpenSim.types;
  5. namespace OpenSim.world
  6. {
  7. public class Primitive : Entity
  8. {
  9. protected float mesh_cutbegin;
  10. protected float mesh_cutend;
  11. public Primitive()
  12. {
  13. mesh_cutbegin = 0.0f;
  14. mesh_cutend = 1.0f;
  15. }
  16. public override Mesh getMesh()
  17. {
  18. Mesh mesh = new Mesh();
  19. Triangle tri = new Triangle(
  20. new Axiom.MathLib.Vector3(0.0f, 1.0f, 1.0f),
  21. new Axiom.MathLib.Vector3(1.0f, 0.0f, 1.0f),
  22. new Axiom.MathLib.Vector3(1.0f, 1.0f, 0.0f));
  23. mesh.AddTri(tri);
  24. mesh += base.getMesh();
  25. return mesh;
  26. }
  27. }
  28. }