[vtkusers] Getting the scalar value from vtkPolyData in TCl

Amy Henderson amy.henderson at kitware.com
Wed Feb 9 09:03:20 EST 2005


At 12:49 AM 2/9/2005, Andrew Maclean wrote:
>How do I get a scalar out of the vtkPolyData structure using TCL? I have
>been doing something like this in C++:
>
>double sc = polyData->GetPointData()->GetScalars()->GetComponent(j,0);

In Tcl, it would look like this:
[[polyData GetPointData] GetScalars] GetComponent j 0

- Amy

>I can't seem to translate this into TCL!
>
>Thanks for any help
>
>
>Andrew
>
>___________________________________________
>Andrew J. P. Maclean
>Centre for Autonomous Systems
>The Rose Street Building J04
>The University of Sydney  2006  NSW
>AUSTRALIA
>Ph: +61 2 9351 3283
>Fax: +61 2 9351 7474
>URL: http://www.cas.edu.au/
>___________________________________________
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list