<html>
Hi Simon-<br>
<br>
<blockquote type=cite class=cite cite><font size=2>ERROR: In
D:\vtk-daily\vtk\imaging\vtkLabeledDataMapper.cxx, line 240<br>
vtkLabeledDataMapper (01684DB0): Need input data to render labels<br>
&nbsp;<br>
Now I would of thought that line<br>
&nbsp;&nbsp;&nbsp;
filter-&gt;GetOutput()-&gt;GetPointData()-&gt;SetScalars(scalars);<br>
has set the scalar values. Am I wrong??? is there some funny referencing
going on here???<br>
&nbsp;</blockquote><br>
When a filter executes it initializes its output. You are setting scalars
on an output, then the pipeline executes and throws it away. You can
either a) do a manual Update() on the filter prior to setting the
scalars, or b) do it the &quot;correct&quot; way and use a filter to
insert the scalars into the data. For example, use
vtkProgrammableAttributeDataFilter, or create a dummy dataset (with the
scalars inside) and use vtkMergeFilter, or roll your own filter.<br>
<br>
Will<br>
<br>
<x-sigsep><p></x-sigsep>
Dr. William J. Schroeder<br>
Kitware, Inc.<br>
469 Clifton Corporate Parkway<br>
Clifton Park, NY 12065<br>
will.schroeder@kitware.com<br>
1-518-371-3971 (Phone &amp; Fax)</font></html>