[Paraview] Fwd:

Yu Yu jtxqhao at gmail.com
Thu Nov 28 21:18:48 EST 2013


Hi Seb,

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 ?

Also, when 'Volume' rendering, do I need to set rep.LookupTable.
EnableOpacityMapping = 1 ?

Thanks for your help.

Regards,
Yu



On Fri, Nov 29, 2013 at 9:19 AM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> You need to change the representation to "Volume" rendering.
>
> Seb
>
>
> On Thu, Nov 28, 2013 at 3:33 AM, Yu Yu <jtxqhao at gmail.com> wrote:
>
>> Hi,
>>
>> I have this object in ParaViewWeb,
>> [image: Inline image 2]
>>
>>
>> I attempted to use the following codes to set the ScalarOpacityFunction,
>>     myLK = simple._GetLUTReaderInstance()
>>     srcObj = simple.GetActiveSource()
>>     myarray = srcObj.PointData.GetArray('scalars')
>>     mylut = myLK.GetLUT(myarray,'Brewer Diverging Spectral (11)')
>>     rep.LookupTable = mylut
>>
>>     sofPoints =[0.0, 0.0, 0.3, 0.5, 0.6, 0.8, 1.0, 1.0, 1.0]
>>     sof = simple.CreatePiecewiseFunction()
>>     sof.Points = sofPoints
>>
>>     rep.LookupTable.EnableOpacityMapping = 1
>>     rep.LookupTable.ScalarOpacityFunction = sof
>>
>>     simple.Render()
>>
>>  And the above codes produce this in ParaViewWeb:
>> [image: Inline image 3]
>>
>>
>> This is how it show in ParaView, which is what I try to achieve:
>> [image: Inline image 4]
>>
>> Can I know where have I done wrong ? Thanks for any help.
>>
>> Best Regards,
>> Yu
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131129/7de0eea5/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 33455 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131129/7de0eea5/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 63884 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131129/7de0eea5/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 46955 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131129/7de0eea5/attachment-0005.png>


More information about the ParaView mailing list