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

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Oct 26 23:42:42 EDT 2001


>>>>> "TL" == Terence Lim <tlim at mda.ca> writes:

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

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

ofstream *test = new ofstream('points_file_name');
writer.WritePoints(test, ...);
// close the file etc.

prabhu



More information about the vtkusers mailing list