예제 #1
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);
 }
예제 #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);
		}