<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear vtk users</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am using VTK with python to investigate
some basic visualisation tools, and I can't get the
SetScalarComponentFromFloat() method to work. Here is a sample of code that does
not work. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>...</FONT></DIV>
<DIV><FONT face=Arial size=2>id =
vtk.vtkImageData()<BR>id.SetDimensions(100,100,1)<BR>id.SetScalarTypeToUnsignedShort()<BR>id.SetNumberOfScalarComponents(1)<BR>id.SetScalarComponentFromFloat
(1, 1, 1, 0,1.0)<BR>...</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>Have I missed something? Does the method exist
with the python wrapper? Is there any other way to access individual scalars
with python?</FONT></DIV>
<DIV><FONT face=Arial size=2>Any advice will be appreciate, as I am new in
VTK. Thanks all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Lionel</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2> </DIV></FONT></BODY></HTML>