示例#1
0
		public void build (VoxelData[] datas)
		{
			if (empty) {

				this._product = new VoxelProduct();

				VoxelData2Point vd2p = new VoxelData2Point(datas);
				vd2p.build(this._product);

				VoxelShadowBuild vsb = new VoxelShadowBuild ();
				vsb.build(this._product);


				VoxelMeshBuild vmb = new VoxelMeshBuild ();
				vmb.build(this._product);

				VoxelRemoveSameVertices rsv = new VoxelRemoveSameVertices ();
				rsv.build(this._product);

				//VoxelRemoveFace vrf = new VoxelRemoveFace ();
				//vrf.build(this._product);

				/*
				VoxelRemoveFace vrf = new VoxelRemoveFace ();
				vrf.build(this._product);
				*/

				_geometry = new VoxelGeometry();
				_geometry.draw (this._product, this.gameObject, this._material);
			}

		}
示例#2
0
文件: Build.cs 项目: lzxkulou/GDGeek
        static public Task Task(VoxelData2Point d2p, VoxelProduct product)
        {
            Task task = new Task();

            TaskManager.PushFront(task, delegate {
                Build.Run(d2p, product);
            });
            return(task);
        }
示例#3
0
文件: Build.cs 项目: lzxkulou/GDGeek
 static public void Run(VoxelData2Point d2p, VoxelProduct product)
 {
     d2p.build(product);
 }