<div>Hi all,</div>
<div> </div>
<div>I'm now trying to construct 3D model having different color corresponding to the location.</div>
<div>Below URL is an example what I want to do.</div>
<div><a href="http://www.mathworks.com/access/helpdesk_ja_JP/help/techdoc/ref/streamtube2.gif" target="_blank">http://www.mathworks.com/access/helpdesk_ja_JP/help/techdoc/ref/streamtube2.gif</a></div>
<div> </div>
<div>In the beginning, I construct color table using vtkLookupTable.</div>
<div>But it didn't work properly. </div>
<div>
<div>------------------------------------------------------------------------------------------------------------------------</div> vtkSmartPointer<vtkLookupTable> lut = vtkSmartPointer<vtkLookupTable>::New();<br>
lut->SetHueRange(0.0, 0.667);<br> lut->SetSaturationRange(0, 0);<br> lut->SetValueRange(0.2, 1.0);<br> lut->Build(); </div>
<div> </div>
<div> vtkSmartPointer<vtkPolyDataMapper> mapper = vtkSmartPointer<vtkPolyDataMapper>::New();<br> mapper->SetInputConnection(normals->GetOutputPort());<br> mapper->SetLookupTable(lut);<br> mapper->SetScalarRange(0.197813, 0.710419); // this is an example of book<br>
mapper->ScalarVisibilityOn();</div>
<div>------------------------------------------------------------------------------------------------------------------------</div>
<div> </div>
<div>Does someone can know how to do this?</div>
<div> </div>
<div>Jinyoung</div>