<div dir="ltr">Hi all,<div><br></div><div>I want to set the representation to &#39;Volume&#39; instead of &#39;Surface&#39;. But the result shows the representation is still the &#39;Surface&#39; after I modified my code as shown below. Thanks ahead for any help!</div>
<div><br></div><div>Best wishes,</div><div>Junyi Han</div><div><br></div><div><br></div><div>CODE:</div><div><br><div>    reader = OpenDataFile(VTKFile)<br></div><div><div>    reader.PointData</div><div>    view = GetRenderView()</div>
<div><br></div><div>    dp = GetDisplayProperties()</div><div>    dp.Representation = &#39;Volume&#39;</div><div>    lut = CreateLookupTable()</div><div>    lut.RGBPoints  = [0.0, 0.0, 0.0, 1.0, </div><div>                        3.3, 1.0, 1.0, 1.0,</div>
<div>                      6.674, 1.0, 0.0, 0.0]</div><div><br></div><div>    readerRep = GetRepresentation()</div><div>    readerRep.ColorArrayName = &#39;scaler_name&#39;</div><div>    readerRep.LookupTable = lut</div><div>
<br></div><div>    Show(reader)</div><div>    Render()</div><div><br></div><div># Get a nice view angle</div><div>    if count == 0:</div><div>        cam = GetActiveCamera()</div><div>        cam.Elevation(30)</div><div>
        cam.Azimuth(30)</div><div>        Render()</div></div></div></div>