[vtkusers] Convert Tcl to Java

Amy Henderson amy.henderson at kitware.com
Tue Dec 17 14:52:32 EST 2002


At 07:42 PM 12/17/2002 +0000, GP LYDON wrote:

>Dear Users,
>
>I am trying to convert a section of Tcl code to Java code. I am having 
>trouble with the following line:
>
>Tcl:
>
>aPolyLineGrid InsertNextCell [aPolyLine GetCellType] [aPolyLine GetPointIds]
>
>I think it should convert to:
>
>Java:
>
>aPolyLineGrid.InsertNextCell.aPolyLine.GetCellType().aPolyLine.GetPointIds();

[aPolyLine GetCellType] and [aPolyLine GetPointIds] are parameters to 
InsertNextCell, so in Java it should look something like

aPolyLineGrid.InsertNextCell(aPolyLine.GetCellType(), aPolyLine.GetPointIds());

- Amy

>However it does not compile so I must be incorrect. Any suggestions would 
>be appreciated.
>
>
>Best Regards
>
>Gearoid
>
>
>
>
>
>
>
>_________________________________________________________________
>The new MSN 8: smart spam protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>_______________________________________________
>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