[vtkusers] vtkAppendPolyData woes

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sat Aug 9 08:46:08 EDT 2003


>>>>> "GG" == Gerard Gorman <g.gorman at imperial.ac.uk> writes:

    GG> Prabhu Ramachandran wrote:
    >> Perhaps adding an appendF.Update() before you get the output
    >> will help.

    GG> I'm afraid that it made no difference (see the change
    GG> below). For the curious I put two example polydata files in
    GG> at:
    GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers80.vtp
    GG> http://amcg.ese.ic.ac.uk/~gormo/sampleVTKFiles/tracers81.vtp
    GG> ...so just use the below script as ./test.py tracers80.vtp
    GG> tracers80.vtp

>From what I can tell its your data thats incorrect.  You need to
specify the vertices.  Without the vertices there is no "polydata",
only points.  For each point add a vertex and AFAIK it should work.
Something like so:

VERTICES 100 200
1 0
1 1
1 2
...
1 99


cheers,
prabhu



More information about the vtkusers mailing list