<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div style="font-family:arial,sans-serif"><div>Hi,<br><br></div>I have this object in ParaViewWeb,<br><img alt="" style="border:0px"><img src="cid:ii_1429e41722a150c0" alt="Inline image 2"><br>

<br><br></div><div style="font-family:arial,sans-serif">I attempted to use the following codes to set the ScalarOpacityFunction, <br>    myLK = simple._GetLUTReaderInstance()<br>    srcObj = simple.GetActiveSource()<br>
    myarray = srcObj.PointData.GetArray(&#39;scalars&#39;)<br>    mylut = myLK.GetLUT(myarray,&#39;Brewer Diverging Spectral (11)&#39;)<br>    rep.LookupTable = mylut<br>          <br>    sofPoints =[0.0, 0.0, 0.3, 0.5, 0.6, 0.8, 1.0, 1.0, 1.0]<br>

    sof = simple.CreatePiecewiseFunction()<br>    sof.Points = sofPoints<br><br>    rep.LookupTable.EnableOpacityMapping = 1<br>    rep.LookupTable.ScalarOpacityFunction = sof<br>    <br>    simple.Render()<br><br></div>
<div style="font-family:arial,sans-serif">
And the above codes produce this in ParaViewWeb: <br><img alt="" style="border:0px"><img src="cid:ii_1429e42630ace865" alt="Inline image 3"><br><br><br></div><div style="font-family:arial,sans-serif">This is how it show in ParaView, which is what I try to achieve:<br>

<img alt="" style="border:0px"><img src="cid:ii_1429e4376b5866d0" alt="Inline image 4"><br><br></div><div style="font-family:arial,sans-serif">Can I know where have I done wrong ? Thanks for any help.<br>
<br></div><div style="font-family:arial,sans-serif">Best Regards,<br></div><div style="font-family:arial,sans-serif">Yu</div></div>
</div><br></div>