Example #1
0
 public PipeMesh(PipeLayoutToMesh pipeLayoutToMesh)
 {
     this.pipeLayoutToMesh = pipeLayoutToMesh;
     uvs     = new List <Vector2> ();
     normals = new List <Vector3> ();
     allUVs();
     BuildMesh();
 }
Example #2
0
		//totally redraw Mesh and Gizmo Layout
		public void ResetLayout(){
			pipe_layout_to_mesh = new PipeLayoutToMesh (pipe_layout, hasPhong);
			CreateMesh ();
			if(drawGizmos){
				pipe_gizmos = new PipeGizmos (pipe_layout_to_mesh.vertices, pipe_mesh.mesh, root_position, root_rotation);
			}
			meshCallback (pipe_mesh.mesh);
		}
Example #3
0
 //totally redraw Mesh and Gizmo Layout
 public void ResetLayout()
 {
     pipe_layout_to_mesh = new PipeLayoutToMesh(pipe_layout, hasPhong);
     CreateMesh();
     if (drawGizmos)
     {
         pipe_gizmos = new PipeGizmos(pipe_layout_to_mesh.vertices, pipe_mesh.mesh, root_position, root_rotation);
     }
     meshCallback(pipe_mesh.mesh);
 }