associate cellarray with scalars
Jens Glagau
glagau at cs.tu-berlin.de
Thu Jan 27 11:10:06 EST 2000
Hi,
i want to colourize some triangles, but i don't know how the scalars are
associated with the cells (triangles).
The triangles are stored in a vtkPolyData-Object. The number of triangles
equals the number of scalars. The following codefragment should
demonstrate my problem:
..
vtkPolyDataObject->GetCellData()->SetScalars(Scalars);
vtkPolyDataObject->SetPolys(Polys);
.. // now i insert some triangles and the same number of scalars in this
// way:
Polys->InsertNextCell(PolyA);
Scalars->InsertNextScalar(0.3);
When i visualize the result, PolyA is not coloured different from the
other triangles, but instead, other triangles are coloured different. This
means that the id of the CellArray does not correspond to the id of the
scalar, right? Where is my fault and how can i mark/colorize a triangle?
thanks in advance
Jens
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list