<!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.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>This problem 
has already been discussed in the past, but the solution proposed seems no to 
work for me. Actually, I try to implement the tcl example code voxelModel.tcl in 
C++, but the program does not compile properly.</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>The code 
snippet&nbsp;is:</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>1&nbsp; 
vtkSphereSource *sphere = vtkSphereSource::New();<BR>2&nbsp; 
sphere-&gt;SetThetaResolution(10);<BR>3&nbsp; 
sphere-&gt;SetPhiResolution(10);<BR>&nbsp;<BR>4&nbsp; vtkVoxelModeller *modeller 
= vtkVoxelModeller::New();<BR>5&nbsp; 
modeller-&gt;SetInput(sphere-&gt;GetOutput());<BR>6&nbsp; 
modeller-&gt;SetSampleDimensions(21,21,21);<BR>7&nbsp; 
modeller-&gt;SetModelBounds(-1.5,1.5,-1.5,1.5,-1.5,1.5);<BR>&nbsp;<BR>8&nbsp; 
vtkDataSetWriter *writer = vtkDataSetWriter::New();<BR>9&nbsp; 
writer-&gt;SetFileName("voxelModel.vtk");<BR>10&nbsp; 
writer-&gt;SetInput(modeller-&gt;GetOutput());<BR>11&nbsp; 
writer-&gt;Update();<BR>&nbsp; <BR>12&nbsp; vtkDataSetReader *reader = 
vtkDataSetReader::New();<BR>13&nbsp; 
reader-&gt;SetFileName("voxelModel.vtk");</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>14&nbsp; 
vtkContourFilter *contour = vtkContourFilter::New();<BR>15&nbsp; 
contour-&gt;SetInput(reader-&gt;GetOutput());<BR>16&nbsp; 
contour-&gt;SetValue(0,0.999);<BR>&nbsp; <BR>17&nbsp; vtkPolyDataMapper 
*polyDataMapper = vtkPolyDataMapper::New();<BR>18&nbsp; 
polyDataMapper-&gt;SetInput(contour-&gt;GetOutput());<BR></FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>The compiler 
error is at line 10:</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2>mexVTKVoxelRenderer.cpp:110: error: no matching function for call to 
`vtkDataSetWriter::SetInput(vtkImageData*)' 
<BR>C:/Engineering/VTK5p0p2/include/vtk-5.0/vtkWriter.h:63: note: candidates 
are: void vtkWriter::SetInput(vtkDataObject*) 
<BR>C:/Engineering/VTK5p0p2/include/vtk-5.0/vtkWriter.h:64: 
note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
void vtkWriter::SetInput(int, vtkDataObject*) <BR></FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" size=2>Since I am 
vtk newbie, it might be only a simple error. Anyway, I would appreciate any kind 
of help.</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2>Stefan</DIV></FONT></SPAN>
<DIV><SPAN class=908070218-25012007><FONT face="Courier New" 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV align=left><!-- Converted from text/plain format --><FONT 
face="Courier New" size=2>--------------------------------<BR>Stefan 
Gächter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>PhD 
Student/Research Assistant<BR>Swiss Federal Institute of Technology 
(ETHZ)<BR>Autonomous Systems Lab (ASL)<BR>Office CLA E11.2<BR>Tannenstrasse 
3<BR>8092 Zürich, 
Switzerland<BR>44-632-73-95<BR>stefan.gaechter@mavt.ethz.ch<BR></FONT><A 
href="http://www.asl.ethz.ch/"><FONT face="Courier New" 
size=2>http://www.asl.ethz.ch</FONT></A><BR><FONT face="Courier New" 
size=2>--------------------------------<BR>Please consider the environment 
before printing this email.<BR>--------------------------------<BR></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>