[vtkusers] Structured Points

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Mon Dec 2 21:33:10 EST 2002


>>>>> "SH" == sepp huber21 <Sepp> writes:

    SH> In principle I have a collection of records consisting of
    SH> three coordinates (X, Y, Z) and a value. What I actually want
    SH> is to create a volume rendering of this dataset.

[snip]

    SH> If anybody knows how to do this correctly or how to assign
    SH> data which consists of three coordinates + the value at these
    SH> coordinates to a structured points object then let me know!

Not sure if this will help but the structured points (and the other
datasets too) data has an implicit ordering of points and cells.  X
varies first, Y next and Z last.  i.e. the for loop should be
something like this

 for i in z_vals:
   for j in y_vals:
     for k in x_vals
        s.InsertNextScalar(value)

cheers,
prabhu




More information about the vtkusers mailing list