[vtkusers] vtkPolyDataWriter->WritePoints(...): What am I doing wrong here?

Terence Lim tlim at mda.ca
Fri Oct 26 16:00:56 EDT 2001


Hi,

Here is my code so far:

vtkPolyDataReader *plate = vtkPolyDataReader::New();
plate->SetFileName("test4.vtk");
Delaunay->SetInput(plate->GetOutput());  		//where Delaunay is an object of
class vtkDelaunay2D

vtkPolyDataWriter *writer::vtkPolyDataWriter::New();
writer->SetFileName("test.vtk");
writer->SetInput(Delaunay-GetOutput());

------------------------Everything works fine up to
here:----------------------------

writer->WritePoints(???,Delaunay->GetOutput()->GetPoints());     ///what do
i put in place of ???

----------------------------------------------------------------------------
-----
writer->Write();


My question is what do I put in place of ??? I have tried the following code

ostream *test;  and the function call ->WritePoints(test,....) but this
resulted in a segmentation fault?
Do I need to allocate space for ostream test?

Thanks in advance for any advice,

Terence Lim






More information about the vtkusers mailing list