Fusion.Engine.Graphics.SkySphere.CreateOctahedron C# (CSharp) Method

CreateOctahedron() static private method

static private CreateOctahedron ( ) : Triangle[]
return Triangle[]
		static Triangle[] CreateOctahedron ()
		{
			List<Triangle> shape = new List<Triangle>();

			shape.Add( new Triangle(  Vector3.UnitX,  Vector3.UnitY,  Vector3.UnitZ ) );
			shape.Add( new Triangle(  Vector3.UnitZ,  Vector3.UnitY, -Vector3.UnitX ) );
			shape.Add( new Triangle( -Vector3.UnitX,  Vector3.UnitY, -Vector3.UnitZ ) );
			shape.Add( new Triangle( -Vector3.UnitZ,  Vector3.UnitY,  Vector3.UnitX ) );

			shape.Add( new Triangle(  Vector3.UnitZ, -Vector3.UnitY,  Vector3.UnitX ) );
			shape.Add( new Triangle( -Vector3.UnitX, -Vector3.UnitY,  Vector3.UnitZ ) );
			shape.Add( new Triangle( -Vector3.UnitZ, -Vector3.UnitY, -Vector3.UnitX ) );
			shape.Add( new Triangle(  Vector3.UnitX, -Vector3.UnitY, -Vector3.UnitZ ) );

			return shape.ToArray();
		}