Пример #1
0
		//List with vertices and positions of the vertices

		public PipeLayoutToMesh (PipeLayout _pipe_layout, bool _doubled_vertices)
		{
			//vertices = new Vector3[0];
			pipe_layout = _pipe_layout;
			doubledVertices = _doubled_vertices;
			Initiate ();
		}
Пример #2
0
        //List with vertices and positions of the vertices

        public PipeLayoutToMesh(PipeLayout _pipe_layout, bool _doubled_vertices)
        {
            //vertices = new Vector3[0];
            pipe_layout     = _pipe_layout;
            doubledVertices = _doubled_vertices;
            Initiate();
        }
Пример #3
0
		public PipeManager(Pipe.MeshCallback _meshCallback){
			meshCallback = _meshCallback;
			pipe_layout = new PipeLayout (this);
			root_position = new Vector3 (0,0,0);
			root_rotation = new Quaternion ();
			ResetLayout();
		}
Пример #4
0
 public PipeManager(Pipe.MeshCallback _meshCallback)
 {
     meshCallback  = _meshCallback;
     pipe_layout   = new PipeLayout(this);
     root_position = new Vector3(0, 0, 0);
     root_rotation = new Quaternion();
     ResetLayout();
 }
Пример #5
0
 public void ExtrudeRing(PipeLayout pipe_layout)
 {
     if (doubledVertices)
     {
         buildRingWithPhong(pipe_layout.amount_of_rings - 1);
         buildTrianglesWithPhong();
     }
     else
     {
         buildRing(pipe_layout.amount_of_rings - 1);
         buildTriangles();
         //buildTriangles2 ();
     }
 }
Пример #6
0
		public void ExtrudeRing(PipeLayout pipe_layout){
			if (doubledVertices) {
				buildRingWithPhong (pipe_layout.amount_of_rings - 1);
			}
			buildTriangles ();
		}