[vtkusers] Convert Tcl to Java

Kevin Wright krw at viz-solutions.com
Tue Dec 17 14:48:52 EST 2002


At 07:42 PM 12/17/2002 +0000, you 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();

I think you're looking for:

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

Kevin.




More information about the vtkusers mailing list