<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3502.5390" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi all,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>some time ago i posted a question regarding the 
difference of data aquiring in vcpp and tcl. in detail i wasn't able to merge a 
geometryfile and an attributefile together using vtkMergeDataObjectFilter in cpp 
(i allways got 'can't find array/component requested') , but in tcl it worked 
fine. </FONT></DIV>
<DIV><FONT face=Arial size=2>finally i found out&nbsp; that the tcl-vtk&nbsp; 
environment is still 4.0, but for vcpp i used vtk4.2.2. i downloaded the vtk4.0 
source, compiled it and rebuild my vcpp- code and now it also works. 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>here's the cpp- code that works fine&nbsp;with 
vtk4.0:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>/////////////////////////////////////////////////////////////////////////</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;dsReader = 
vtkDataSetReader::New();<BR>&nbsp;dsReader-&gt;SetFileName("E:\\geo.vtk");<BR>&nbsp;<BR>&nbsp;doReader 

vtkDataObjectReader::New();<BR>&nbsp;doReader-&gt;SetFileName("E:\\att.vtk");<BR>&nbsp;doReader-&gt;Update();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;cArrayName = 
doReader-&gt;GetOutput()-&gt;GetFieldData()-&gt;GetArray(0)-&gt;GetName();<BR>&nbsp;<BR>&nbsp;mdof 

vtkMergeDataObjectFilter::New();<BR>&nbsp;mdof-&gt;SetInput(dsReader-&gt;GetOutput() 
);<BR>&nbsp;mdof-&gt;SetDataObject(doReader-&gt;GetOutput() );</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;fd2ad = 
vtkFieldDataToAttributeDataFilter::New();<BR>&nbsp;fd2ad-&gt;SetInput(mdof-&gt;GetOutput() 
);<BR>&nbsp;fd2ad-&gt;SetScalarComponent(0, cArrayName, 0);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&nbsp;dsMapper = 
vtkDataSetMapper::New();<BR>&nbsp;dsMapper-&gt;SetInput(fd2ad-&gt;GetOutput() 
);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>//////////////////////////////////////////////////////////////////////////////<BR></DIV></FONT>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>does anybody know, how to 
use vtkMergeDataObjectFilter in vtk4.2? do i have to change my code (if yes: 
how? ) or the format of the vtk- data file? </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>many thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2>Joseph</DIV></FONT></BODY></HTML>