<div dir="ltr">I don't remember all the details, but the Python trace might be able to show what you are missing.<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 28, 2013 at 7:18 PM, Yu Yu <span dir="ltr"><<a href="mailto:jtxqhao@gmail.com" target="_blank">jtxqhao@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Seb,<br><br></div>Thanks for the info. I have change to "Volume" rendering, and now it show the first 'box' (can't see through'). Is there anything else need to set ? <br>
<br>
Also, when 'Volume' rendering, do I need to set rep.LookupTable.<div>EnableOpacityMapping = 1 ?<br><br></div><div>Thanks for your help.<br><br></div><div>Regards,<br>Yu<br></div><div><br></div></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 9:19 AM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You need to change the representation to "Volume" rendering.<div><br></div><div>Seb</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, Nov 28, 2013 at 3:33 AM, Yu Yu <span dir="ltr"><<a href="mailto:jtxqhao@gmail.com" target="_blank">jtxqhao@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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('scalars')<br> mylut = myLK.GetLUT(myarray,'Brewer Diverging Spectral (11)')<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>
<br></div></div>_______________________________________________<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>