<div>As long as you have uniform grid size, it is always efficient to write a vti file. For your problem just modify </div>
<div> </div>
<div>bytes[i]=(nx*ny)*sizeof(float);</div>
<div> </div>
<div>to<br></div>
<div>bytes[i]=(nx*ny*nz)*sizeof(float);<br></div>
<div>in segment </div>
<div> </div>
<div>nvar=1; /* Plot only one variable set */<br>off[0]=0;<br>for (i=0; i<nvar; i++){<br> bytes[i]=(nx*ny)*sizeof(float);<br> if(i<nvar-1)off[i+1]=off[i]+sizeof(int)+bytes[i];<br> bytes[i]=bytes[i]+sizeof(int);<br>
}</div>
<div> </div>
<div>Cheers,</div>
<div>Hom Nath</div>
<div> </div>
<div class="gmail_quote">On Mon, May 5, 2008 at 4:15 AM, Marko Orescanin <<a href="mailto:oresca@gmail.com">oresca@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi Hom,</div>
<div> </div>
<div>How do you edit the script that we worked on to image 3D data field of point scalars in the unstructured grid? </div>
<div> </div>
<div>Have you done anything like that?</div>
<div> </div>
<div>I have tried by adding the z coordinate as you can see in the script attached. I suspect that the error is in the part when I say that I have image data?</div>
<div class="Ih2E3d">
<div> </div>
<div> fprintf(outf_tfield,"</ImageData>\n");</div>
<div> </div>
<div> </div>
<div> </div></div>
<div>Thanks for your help I really appreciate it. I am moving from 2D simulations to 3D and getting thsi visualization would be great.</div>
<div> </div>
<div>Thanks,</div>
<div> </div><font color="#888888">
<div>Marko</div></font>
<div>
<div></div>
<div class="Wj3C7c">
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Wed, Apr 30, 2008 at 10:00 AM, Hom Nath Gharti <<a href="mailto:hng.email@gmail.com" target="_blank">hng.email@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>I think you should be able to warp in following steps:</div>
<div> </div>
<div>1. Filters -> Alphabetical -> Tetrahedralize</div>
<div>2. Filters -> Alphabetical -> Warp (scalar)</div>
<div> </div>
<div>Good luck!</div></blockquote></div><br></div></div></blockquote></div><br>