[vtkusers] [Q] vtkIdList and marching.tcl

Michael Norton mnorton at cisco.com
Thu May 23 18:28:33 EDT 2002


hi,

I am coming up to speed with vtk. In the example source code,

http://public.kitware.com/cgi-bin/cvsweb.cgi/~checkout~/VTK/Examples/DataManipulation/Tcl/marching.tcl

What is:

vtkFloatArray Scalars
         Scalars InsertNextValue 1.0
         Scalars InsertNextValue 0.0
         Scalars InsertNextValue 0.0
         Scalars InsertNextValue 1.0
         Scalars InsertNextValue 0.0
         Scalars InsertNextValue 0.0
         Scalars InsertNextValue 0.0
         Scalars InsertNextValue 0.0

Why do I need this code? What is it defining?

I understand the vtkPoints and the defining of the cube.


vtkIdList Ids
         Ids InsertNextId 0
         Ids InsertNextId 1
         Ids InsertNextId 2
         Ids InsertNextId 3
         Ids InsertNextId 4
         Ids InsertNextId 5
         Ids InsertNextId 6
         Ids InsertNextId 7

What is this code doing?


thanks,

Mike N.




More information about the vtkusers mailing list