<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>hi all;</DIV>
<DIV>I met an interesting and strange error, I haven't solved it,please help me. I just want to use vtkPolyDataToITKMesh.cxx which is in the itk&gt;auxilary&gt;vtk&gt;vtkPolyDataToITKMesh.cxx folder. When I try to modify this programme ,that line "TriangleCellType * tcell = <FONT color=#0000ff size=2>new</FONT><FONT size=2> TriangleCellType;"</FONT>&nbsp;gives error like that :</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=1>
<P><FONT size=2>------ Build started: Project: nfinity, Configuration: Debug Win32 ------</FONT></P>
<P><FONT size=2>1&gt;Compiling...</FONT></P>
<P><FONT size=2>1&gt;nfinityDoc.cpp</FONT></P>
<P><FONT size=2>1&gt;c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(205) : error C2143: syntax error : missing ';' before 'constant'</FONT></P>
<P><FONT size=2>1&gt; c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(204) : while compiling class template member function 'bool itk::VertexCell&lt;TCellInterface&gt;::EvaluatePosition(double *,itk::VectorContainer&lt;TElementIdentifier,TElement&gt; *,double *,double [],double *,double *)'</FONT></P>
<P><FONT size=2>1&gt; with</FONT></P>
<P><FONT size=2>1&gt; [</FONT></P>
<P><FONT size=2>1&gt; TCellInterface=CellType,</FONT></P>
<P><FONT size=2>1&gt; TElementIdentifier=itk::DefaultStaticMeshTraits&lt;vtkFloatingPointType,3,2,vtkFloatingPointType,vtkFloatingPointType&gt;::PointIdentifier,</FONT></P>
<P><FONT size=2>1&gt; TElement=itk::Point&lt;double,3&gt;</FONT></P>
<P><FONT size=2>1&gt; ]</FONT></P>
<P><FONT size=2>1&gt; c:\programme\itk\itk-src-windows\code\common\itktrianglecell.h(55) : see reference to class template instantiation 'itk::VertexCell&lt;TCellInterface&gt;' being compiled</FONT></P>
<P><FONT size=2>1&gt; with</FONT></P>
<P><FONT size=2>1&gt; [</FONT></P>
<P><FONT size=2>1&gt; TCellInterface=CellType</FONT></P>
<P><FONT size=2>1&gt; ]</FONT></P>
<P><FONT size=2>1&gt; c:\documents and settings\aydemir\desktop\nfinity_basic\nfinity\nfinitydoc.cpp(576) : see reference to class template instantiation 'itk::TriangleCell&lt;TCellInterface&gt;' being compiled</FONT></P>
<P><FONT size=2>1&gt; with</FONT></P>
<P><FONT size=2>1&gt; [</FONT></P>
<P><FONT size=2>1&gt; TCellInterface=CellType</FONT></P>
<P><FONT size=2>1&gt; ]</FONT></P>
<P><FONT size=2>1&gt;c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(205) : error C2440: '=' : cannot convert from 'itk::Point&lt;TCoordRep,NPointDimension&gt;' to 'int'</FONT></P>
<P><FONT size=2>1&gt; with</FONT></P>
<P><FONT size=2>1&gt; [</FONT></P>
<P><FONT size=2>1&gt; TCoordRep=double,</FONT></P>
<P><FONT size=2>1&gt; NPointDimension=3</FONT></P>
<P><FONT size=2>1&gt; ]</FONT></P>
<P><FONT size=2>1&gt; No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</FONT></P>
<P><FONT size=2>1&gt;c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(211) : error C2109: subscript requires array or pointer type</FONT></P>
<P><FONT size=2>1&gt;c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(219) : error C2109: subscript requires array or pointer type</FONT></P>
<P><FONT size=2>1&gt;c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(219) : error C2109: subscript requires array or pointer type</FONT></P>
<P><FONT size=2>1&gt;Build log was saved at "file://c:\Documents and Settings\aydemir\Desktop\nfinity_basic\nfinity\Win32\Debug\BuildLog.htm"</FONT></P>
<P><FONT size=2>1&gt;nfinity - 5 error(s), 0 warning(s)</FONT></P>
<P><FONT size=2>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</FONT></P>
<P><FONT size=2></FONT>&nbsp;</P>
<P><FONT color=#ff0000 size=4>What might the wrong? Please help me</FONT></P></FONT></DIV>
<DIV><FONT color=#ff0000>.</FONT></DIV>
<DIV>.</DIV>
<DIV>.</DIV>
<DIV>.</DIV>
<DIV><FONT color=#0000ff size=2>
<P>for</FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> t=0; t &lt; numberOfTrianglesInStrip; t++ )</P>
<P>{</P>
<P>MeshType::CellAutoPointer c;</P>
<P>TriangleCellType * tcell = </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> TriangleCellType;&nbsp; <FONT color=#ff0000><STRONG>Dear ITK</STRONG> <STRONG>users</STRONG></FONT> <FONT color=#ff0000 size=4><STRONG>this line gives error!!!!</STRONG></FONT></P>
<P>tcell-&gt;SetPointIds( pointIds );</P>
<P>c.TakeOwnership( tcell );</P>
<P>mesh-&gt;SetCell( cellId, c );</P>
<P>cellId++;</P>
<P>pointIds[0] = pointIds[1];</P>
<P>pointIds[1] = pointIds[2];</P>
<P>pointIds[2] = cellPoints[t+3];</P>
<P>}</P></FONT></DIV></div><br>

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.</body></html>