<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-9" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Friends,</FONT></DIV>
<DIV><FONT face=Arial size=2>I have a problem with
vtkPolyDataWriter.</FONT></DIV>
<DIV><FONT face=Arial size=2>I use Borland C++ Builder 5.0 with
VTK.</FONT></DIV>
<DIV><FONT face=Arial size=2>When I use vtkPolyDataReader, I don't have any
problem.It works well.</FONT></DIV>
<DIV><FONT face=Arial size=2>BUT, when I want to write a poligonal data to a
file, with vtkPolyDataWriter, I have a message like that" Can't find,
vtkPolyDataSource.cpp" and the compiler asks me to write the correct path for
this cpp file. On the other hand, I know that, in vtk, istead of cpp files, cxx
files are being used. So, I write the path"
c:\vtknightly\common\vtkPolyDataSource.cxx" and click ok. Then an exception
error occurs and the program is being terminated. </FONT></DIV>
<DIV><FONT face=Arial size=2>Please is there anyone who can tell me how to solve
this problem?</FONT></DIV>
<DIV><FONT face=Arial size=2>I use VTK 3.2 nightly version with BCB
5.0.</FONT></DIV>
<DIV><FONT face=Arial size=2>My code is like below:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> vtkPolyDataWriter
*pWriter=vtkPolyDataWriter::New();
<BR>
pWriter->SetInput(surContour->GetOutput()); //
Here,<STRONG> surContour is an object of
vtkContourFilter.<BR>
</STRONG>pWriter->SetFileName("c:\\vtkprojelerim\\vtkdata\\brain.vtk");<BR>
pWriter->SetFileTypeToASCII();<BR>
pWriter->Write();<BR></FONT></DIV>
<DIV> </DIV></BODY></HTML>