Example #1
0
 public CubeTriangle(Cube cube, CubeFace face, CubeTriangle parent,
     VertexPositionColor v1,
     VertexPositionColor v2,
     VertexPositionColor v3)
 {
     _cube = cube;
     _face = face;
     _parent = parent;
     _v1 = v1;
     _v2 = v2;
     _v3 = v3;
 }
Example #2
0
 public CubeFace(Cube cube, 
     VertexPositionColor v1, 
     VertexPositionColor v2, 
     VertexPositionColor v3, 
     VertexPositionColor v4)
 {
     _cube = cube;
     Triangles = new CubeTriangle[]
     {
         new CubeTriangle(cube, this, null, v1, v2, v3),
         new CubeTriangle(cube, this, null, v2, v3, v4)
     };
 }