[vtkusers] tcl expert

Amy Henderson amy.henderson at kitware.com
Fri Jul 6 10:32:08 EDT 2001


That version of InsertNextCell is not available from tcl.  Instead you need 
to call InsertNextCell with 2 arguments.  The first argument is the cell 
type, and the second one is a vtkIdList containing the ids of the points in 
the cell.

- Amy

At 10:24 AM 7/6/2001 -0400, Mahmoud Badreddine wrote:

>Greetings..
>
>the problem that I am having is one where I am trying to supply a list of
>arguments to the method "InsertNextCell(arg1,arg2,arg3)" in the tcl format
>
>
>
>in the C++ code which I have working
>the line looks like the following:
>
>         ugrid->InsertNextCell(VTK_LINE, 2, Horizontal_cells[i]);
>
>Horizontal_cells[i] is an nx2 array which contain the order of points to
>be connected by lines.
>
>in other words Horizontal_cells[i][0] connects with Horizontal_cells[i][1]
>for i= 1,2,3,......,n
>
>
>NOW THE QUESTION IS , how do I call that array in tcl.
>
>if the array has been loaded in this fashion:
>for {set i 0} { $i < $NumOfPoints } {incr i} {
>         set Horizontal_Cells($i,0) $i
>         set Horizontal_Cells($i,1) [expr $i +1]
>         incr i
>}
>
>
>Thank you.
>
>
>
>
>
>--Mahmoud Badreddine
>----------------------------------------------------
>London Health Sciences Centre, Nuclear Medicine Dept.
>375 South Street
>London Ontario,
>N6A - 4G5
>tel:(519) 685-8300 ext 75816
>fax:(519) 667-6734
>
>http://publish.uwo.ca/~mbadredd
>----------------------------------------------------
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list