<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>auxilary>vtk>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> gives error like that :</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=1>
<P><FONT size=2>------ Build started: Project: nfinity, Configuration: Debug Win32 ------</FONT></P>
<P><FONT size=2>1>Compiling...</FONT></P>
<P><FONT size=2>1>nfinityDoc.cpp</FONT></P>
<P><FONT size=2>1>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> c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(204) : while compiling class template member function 'bool itk::VertexCell<TCellInterface>::EvaluatePosition(double *,itk::VectorContainer<TElementIdentifier,TElement> *,double *,double [],double *,double *)'</FONT></P>
<P><FONT size=2>1> with</FONT></P>
<P><FONT size=2>1> [</FONT></P>
<P><FONT size=2>1> TCellInterface=CellType,</FONT></P>
<P><FONT size=2>1> TElementIdentifier=itk::DefaultStaticMeshTraits<vtkFloatingPointType,3,2,vtkFloatingPointType,vtkFloatingPointType>::PointIdentifier,</FONT></P>
<P><FONT size=2>1> TElement=itk::Point<double,3></FONT></P>
<P><FONT size=2>1> ]</FONT></P>
<P><FONT size=2>1> c:\programme\itk\itk-src-windows\code\common\itktrianglecell.h(55) : see reference to class template instantiation 'itk::VertexCell<TCellInterface>' being compiled</FONT></P>
<P><FONT size=2>1> with</FONT></P>
<P><FONT size=2>1> [</FONT></P>
<P><FONT size=2>1> TCellInterface=CellType</FONT></P>
<P><FONT size=2>1> ]</FONT></P>
<P><FONT size=2>1> c:\documents and settings\aydemir\desktop\nfinity_basic\nfinity\nfinitydoc.cpp(576) : see reference to class template instantiation 'itk::TriangleCell<TCellInterface>' being compiled</FONT></P>
<P><FONT size=2>1> with</FONT></P>
<P><FONT size=2>1> [</FONT></P>
<P><FONT size=2>1> TCellInterface=CellType</FONT></P>
<P><FONT size=2>1> ]</FONT></P>
<P><FONT size=2>1>c:\programme\itk\itk-src-windows\code\common\itkvertexcell.txx(205) : error C2440: '=' : cannot convert from 'itk::Point<TCoordRep,NPointDimension>' to 'int'</FONT></P>
<P><FONT size=2>1> with</FONT></P>
<P><FONT size=2>1> [</FONT></P>
<P><FONT size=2>1> TCoordRep=double,</FONT></P>
<P><FONT size=2>1> NPointDimension=3</FONT></P>
<P><FONT size=2>1> ]</FONT></P>
<P><FONT size=2>1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called</FONT></P>
<P><FONT size=2>1>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>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>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>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>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> </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 < 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; <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->SetPointIds( pointIds );</P>
<P>c.TakeOwnership( tcell );</P>
<P>mesh->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>