<div style="DIRECTION: ltr">
<div>Hello NG,</div>
<div> </div>
<div> sorry if this question is simple, but I have searched over the web and I have't found anything close to what I should so. Basically, I have a vtkUnstructuredGrid in which I set the cell data using some property. By switching with a wxPython radiobutton I can change on the fly the property displayed on the grid (like permeability, saturation, cell centroids and so on). Well, my group of data has also a property called "ACTNUM", that tells which cells are active (ACTNUM=1) and which are not active (ACTNUM=0). Active cells should be displayed while inactive cells should be hidden.
</div>
<div>I have succeeded to use vtkThreshold to filter out inactive cells, but only when I set cell_data=ACTNUM, using something like:</div>
<div> </div>
<div>grid.GetCellData().SetScalars(ACTNUM)</div>
<div> </div>
<div>What I would like to do is, whatever property is displayed on screen, to hide inactive cells based on ACTNUM value. For example, I would like to display cell centroids property on the grid filtering out inactive cells. Something like:
</div>
<div> </div>
<div>grid.GetCellData().SetScalars(Whatever)</div>
<div>??? Apply threshold on grid using ACTNUM ???</div>
<div> </div>
<div>Is there a way to do this? </div>
<div> </div>
<div>Thank you very much for your help and suggestions.</div>
<div> </div>
<div>Andrea.<br clear="all"><br>-- <br>"Imagination Is The Only Weapon In The War Against Reality."<br><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://xoomer.virgilio.it/infinity77/" target="_blank">
http://xoomer.virgilio.it/infinity77/</a><br> </div></div>