<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This may help : <A
href="http://vtk.markmail.org/message/zfpaznhq2xb7ug6z?q=murat&page=1">http://vtk.markmail.org/message/zfpaznhq2xb7ug6z?q=murat&page=1</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>murat</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=d.danewitz@yahoo.de href="mailto:d.danewitz@yahoo.de">Dmitri
Danewitz</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, October 26, 2009 4:33
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [vtkusers] Acessing field values
of a unstructuredGrid</DIV>
<DIV><BR></DIV>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hello!</DIV>
<DIV> </DIV>
<DIV>I've got to read a vtk file, that is in the form of an
unstructuredGrid. The vtk-file looks like this:</DIV>
<DIV> </DIV>
<DIV><FONT color=#737373># vtk DataFile Version
2.0<BR>damBreak3D<BR>ASCII<BR>DATASET UNSTRUCTURED_GRID<BR>POINTS 1331
float</FONT></DIV>
<DIV><FONT color=#737373>...</FONT></DIV>
<DIV><FONT color=#737373>CELLS 1000 9000</FONT></DIV>
<DIV><FONT color=#737373>...</FONT></DIV>
<DIV><FONT color=#737373>CELL_TYPES 1000</FONT></DIV>
<DIV><FONT color=#737373>...</FONT></DIV>
<DIV><FONT color=#737373>CELL_DATA 1000<BR>FIELD attributes 2<BR>cellID
1 1000 int</FONT></DIV>
<DIV><FONT color=#737373>...</FONT></DIV>
<DIV><FONT color=#737373>alpha1 1 1000 float</FONT></DIV>
<DIV><FONT color=#737373>...</FONT></DIV>
<DIV><FONT color=#737373>POINT_DATA 1331<BR>FIELD attributes
1<BR>alpha1 1 1331 float</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>with the "..." standing for values. Now I read the file into
a</DIV>
<DIV> </DIV>
<DIV><FONT style="BACKGROUND-COLOR: #ffffff"
color=#7f7f00>vtkUnstructuredGridReader *reader;</FONT></DIV>
<DIV> </DIV>
<DIV>then I put the output of that Reader into a</DIV>
<DIV> </DIV>
<DIV><FONT color=#7f7f00>vtkUnstructuredGrid *grid;</FONT></DIV>
<DIV> </DIV>
<DIV>then put the output of that into a</DIV>
<DIV> </DIV>
<DIV><FONT color=#7f7f00>vtkGeometryFilter *geoFil;</FONT></DIV>
<DIV><FONT color=#7f7f00></FONT> </DIV>
<DIV><FONT color=#000000>then put that output into a</FONT></DIV>
<DIV><FONT color=#7f7f00></FONT> </DIV>
<DIV><FONT color=#7f7f00>vtkPolyData *polyDat;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000000>and now I want to access the values of the
"alpha1". I can't manage to get to them via methods of the vtkPolyData.
Does someone know how to access them?</FONT></DIV>
<DIV> </DIV>
<DIV>Greets</DIV>
<DIV>Dmitri</DIV></TD></TR></TBODY></TABLE><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Powered by
www.kitware.com<BR><BR>Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages
on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></BODY></HTML>