Your best bet is to separate the scalar ranges and use a custom lookup table, as you&#39;ve already pointed out below.<br><br>If you are familiar enough with creating your own classes in VTK, you could go for a more elegant solution : Add a boolean data-array attribute indicating if the data is grayscale or doppler. Then subclass from vtkLookupTable, and override the method &quot;MapScalarsThroughTable2&quot; so as to be able to set the appropriate color based on whether the grayscale bit is set or not.   See vtkLookupTableWithEnabling as an example; it looks up an &quot;Enabled&quot; array to gray-out output colors based on whether the given value in EnabledArray is &quot;0&quot; or not. <br>
<br><br><br><div class="gmail_quote">On Sat, Jun 5, 2010 at 10:18 PM, Gordon Stevenson <span dir="ltr">&lt;<a href="mailto:gordon.stevenson@lmh.ox.ac.uk">gordon.stevenson@lmh.ox.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Hi,<div><br></div><div>I have two meshes created by using vtkProbeFilter a segmentation of a 3D volume of an ultrasound volume, one with the greyscale data and one with the Doppler data, I&#39;d like to combine the two meshes into one (the dimensions and spacings of the meshes are different), the only problem being that the scalar values for the two meshes are the same (unsigned char -&gt; 0..255) . What would be the best solution to be able to create a mesh that has both greyscale values and color values? </div>

<div><br></div><div>I thought of two methods -- nudging the color values above the current 0-&gt;255 range, and create a lookuptable or colortransferfunction that takes this into account.</div><div><br></div><div>Some way of indicating the point is a color or greyscale point and coloring appropriately... although I&#39;m not sure about how to implement this.</div>

<div><br></div><div>Would the usergroup have any ideas or tips as how to get going?</div><div><br></div><div>Any help would be appreciated,</div><div><br></div><font color="#888888"><font color="#888888"><div>Gordon.</div>
</font></font></span>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br>