<div dir="ltr">Hi all,<div><br></div><div>I want to set the representation to 'Volume' instead of 'Surface'. But the result shows the representation is still the 'Surface' 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 = 'Volume'</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 = 'scaler_name'</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>