On 4/25/07, <b class="gmail_sendername">ye.yuanzhi</b> <<a href="mailto:yeyuzh@163.com">yeyuzh@163.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#eaeaea">
<div><font size="2"><font face="宋体">dear Karthik Krishnan:</font></font></div>
<div> thanks very much to give directions.
Now i have another question . I want to get the bound of the DEM ,so i used
vtkDataSet::GetBounds();but the return vale(zmin = = zmax).I don't know why to
that? I want get the range of the XYZ three orientations
of the DEM. How to get it? Thanks at first.</div></div></blockquote><div><br><br>DEM data is 2D image data. So GetBounds will return zmin=zmax. The scalar values of the image represent the height field. So use the GetScalarRange method to get the max-min values of the elevation :
<br><br> demReader->GetOutput()->GetScalarRange()<br><br>
--<br>karthik<br>PS: Please keep mails to the list.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#eaeaea"><div><font face="宋体" size="2">======== 2007-04-25 15:57:00
========</font></div>
<div> </div>
<div><font size="2">
<table width="100%">
<tbody>
<tr>
<td width="100%">
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><span class="q">DEM
data is just 2D image data with the scalar values representing the
height field. So you do need to transform it to polygonal data to be
able to render it and then cut it. <br><br>See
IO/Testing/Tcl/dem.tcl for an example of how to transform it to a
polydata. <br><br>--<br>karthik<br><br>
</span><span class="q"><div><span class="gmail_quote">On 4/25/07, <<a href="mailto:yeyuzh@163.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">yeyuzh@163.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hello,everyone:<br> vtk
can cut vtkPolyData type data,I want to cut the DEM data! who do you
know the way to do it. need I to
transform the imagedata to vtkpolydata? how to transform?
thanks!<br><br><br><br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages
on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow
this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.vtk.org/mailman/listinfo/vtkusers</a>
<br></blockquote></div><br><br></span></blockquote></td></tr></tbody></table></font></div>
<div>
<p><font face="宋体" size="2">= = = = = = = = = = = = = = = = = = = = = = </font></p>
<p><font face="宋体" size="2"> </font></p>
<div><font face="宋体" size="2"> ye.yuanzhi</font></div>
<div><font face="宋体" size="2"><font face="宋体" size="2"> </font><a href="mailto:yeyuzh@163.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">yeyuzh@163.com</a></font></div>
<div><font face="宋体" size="2"> 2007-04-26</font></div>
</div></div>
</blockquote></div>