[vtkusers] (no subject)
OrNot
ornot at mailst.xjtu.edu.cn
Tue May 18 10:15:21 EDT 2004
hi,all:
I have a problem when I programmed with the vtkSource class.
I wanted to produce a simple cube from vtkCubeSource and
then insert the scalars to its 8 points. It seems easy like
this:
vtkCubeSource *cube=vtkCubeSource::New();
for (int i=0; i<8; i++) scalarstemp->InsertTuple1(i,i);
cube->GetOutput()->GetPointData()->SetScalars(scalarstemp);
scalarstemp->Delete();
// ....delete.....
But the codes always work not well.
Need your help.
Thank you in advance.
OrNot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040518/6d75f0a5/attachment.htm>
More information about the vtkusers
mailing list