[vtkusers] how to clip and cut DEM data?
Karthik Krishnan
karthik.krishnan at kitware.com
Thu Apr 26 10:53:59 EDT 2007
On 4/25/07, ye.yuanzhi <yeyuzh at 163.com> wrote:
>
> dear Karthik Krishnan:
> 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.
>
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 :
demReader->GetOutput()->GetScalarRange()
--
karthik
PS: Please keep mails to the list.
======== 2007-04-25 15:57:00 ========
>
>
> 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.
>
> See IO/Testing/Tcl/dem.tcl for an example of how to transform it to a
> polydata.
>
> --
> karthik
>
> On 4/25/07, <yeyuzh at 163.com> wrote:
> >
> > hello,everyone:
> > 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!
> >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
> = = = = = = = = = = = = = = = = = = = = = =
>
> ye.yuanzhi
> yeyuzh at 163.com
> 2007-04-26
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070426/94af4a1b/attachment.htm>
More information about the vtkusers
mailing list