Exemplo n.º 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 ();
		}
Exemplo n.º 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();
        }
Exemplo n.º 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();
		}
Exemplo n.º 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();
 }
Exemplo n.º 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 ();
     }
 }
Exemplo n.º 6
0
		public void ExtrudeRing(PipeLayout pipe_layout){
			if (doubledVertices) {
				buildRingWithPhong (pipe_layout.amount_of_rings - 1);
			}
			buildTriangles ();
		}