<!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.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello everybody,</FONT></DIV>
<DIV><FONT face=Arial size=2>i'm a newbie in vtk, and I have already some
troubles with it.</FONT></DIV>
<DIV><FONT face=Arial size=2>I am drawing two simple objects in the scene : a
cylinder and a cube.</FONT></DIV>
<DIV><FONT face=Arial size=2>the cylinder is blue but when I apply a matrix on
the cylinder actor it appears black.</FONT></DIV>
<DIV><FONT face=Arial size=2>there is the code :</FONT></DIV>
<DIV>
<P><FONT face=Courier size=2>vtkMatrix4x4 * <FONT color=#808080>matrix</FONT> =
vtkMatrix4x4::New();</FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(0,0,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(1,0,1);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(2,0,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(3,0,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(0,1,1);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(1,1,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(2,1,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(3,1,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(0,2,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(1,2,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(2,2,1);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(3,2,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(0,3,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(1,3,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(2,3,0);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT
color=#808080>matrix</FONT>->SetElement(3,3,1);</FONT></FONT></P>
<P><FONT face=Courier
size=2>//this->cylindreActor->PokeMatrix(matrix);</FONT></P>
<P><FONT face=Courier><FONT size=2><FONT color=#0000ff>this</FONT>-><FONT
color=#808080>cylindreActor</FONT>->SetUserMatrix(<FONT
color=#808080>matrix</FONT>);</FONT></FONT></P>
<P><FONT face=Courier><FONT size=2><FONT color=#0000ff>this</FONT>-><FONT
color=#808080>cylindreActor</FONT>-><FONT
color=#880000>GetProperty</FONT>()-><FONT
color=#880000>SetColor</FONT>(0.54f,0.90f,0.96f);</FONT></FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If I comment the SetUserMatrix line, the object is
blue but not in good orientation.</FONT></DIV>
<DIV><FONT face=Arial size=2>Can anybody help me ?</FONT></DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>JB</FONT></DIV></FONT></DIV></BODY></HTML>