<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff>
<DIV><FONT color=#0000ff>hi,all:</FONT></DIV>
<DIV><FONT color=#0000ff>&nbsp;&nbsp;&nbsp;I have a problem when I programmed 
with the vtkSource class.</FONT></DIV>
<DIV><FONT color=#0000ff>&nbsp;&nbsp; I wanted to produce a simple cube from 
vtkCubeSource and</FONT></DIV>
<DIV><FONT color=#0000ff>then insert the scalars to its 8 points. It seems easy 
like </FONT></DIV>
<DIV><FONT color=#0000ff>this:</FONT></DIV>
<DIV><FONT color=#0000ff>&nbsp; </FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>&nbsp;&nbsp; vtkCubeSource&nbsp; 
*cube=vtkCubeSource::New();</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>&nbsp;&nbsp; for (int i=0; i&lt;8; i++) 
scalarstemp-&gt;InsertTuple1(i,i);<BR>&nbsp;&nbsp; 
cube-&gt;GetOutput()-&gt;GetPointData()-&gt;SetScalars(scalarstemp);<BR>&nbsp;</FONT><FONT 
color=#0000ff>&nbsp; scalarstemp-&gt;Delete();</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>&nbsp; // ....delete.....&nbsp; </FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>&nbsp;But the codes always work not well.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>&nbsp;Need your help. </FONT></DIV>
<DIV><FONT color=#0000ff>&nbsp;Thank you in advance.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT 
color=#0000ff>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
OrNot</FONT></DIV></FONT></DIV></BODY></HTML>