Exemplo n.º 1
0
 public MeshPoint AddPoint(float x, float y, float z, float u, float v, float nx, float ny, float nz)
 {
     int index = Points.Count;
                 MeshPoint newPoint = new MeshPoint (x, y, z, u, v, nx, ny, nz, index);
                 Points.Add (newPoint);
                 return newPoint;
 }
Exemplo n.º 2
0
        void MakeQuad(MeshPoint lastMeshPoint, MeshPoint MeshPoint, MeshPoint lastTopMeshPoint, MeshPoint topMeshPoint)
        {
            AddTriangle (MeshPoint, lastMeshPoint, lastTopMeshPoint);
            AddTriangle (lastTopMeshPoint, topMeshPoint, MeshPoint);

            AddTriangle (lastTopMeshPoint, lastMeshPoint, MeshPoint);
            AddTriangle (MeshPoint, topMeshPoint, lastTopMeshPoint);
        }
Exemplo n.º 3
0
 public void AddTriangle(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     Triangles.Add (a.Index);
                 Triangles.Add (b.Index);
                 Triangles.Add (c.Index);
 }
Exemplo n.º 4
0
 protected Vector3 NormalFromPts(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     return NormalFromPts (a.Loc, b.Loc, c.Loc);
 }
Exemplo n.º 5
0
 protected Vector3 NormalFromPts(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     return(NormalFromPts(a.Loc, b.Loc, c.Loc));
 }
Exemplo n.º 6
0
 public void AddTriangle(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     Triangles.Add(a.Index);
     Triangles.Add(b.Index);
     Triangles.Add(c.Index);
 }