Example #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;
 }
Example #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);
        }
Example #3
0
 public void AddTriangle(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     Triangles.Add (a.Index);
                 Triangles.Add (b.Index);
                 Triangles.Add (c.Index);
 }
Example #4
0
 protected Vector3 NormalFromPts(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     return NormalFromPts (a.Loc, b.Loc, c.Loc);
 }
Example #5
0
 protected Vector3 NormalFromPts(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     return(NormalFromPts(a.Loc, b.Loc, c.Loc));
 }
Example #6
0
 public void AddTriangle(MeshPoint a, MeshPoint b, MeshPoint c)
 {
     Triangles.Add(a.Index);
     Triangles.Add(b.Index);
     Triangles.Add(c.Index);
 }