<div dir="ltr">Hi <span style="white-space:pre"> </span>Ondřej,<div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 10, 2015 at 4:59 PM, Ondřej Čertík <span dir="ltr"><<a href="mailto:ondrej.certik@gmail.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=ondrej.certik@gmail.com&cc=&bcc=&su=&body=','_blank');return false;">ondrej.certik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I am testing the new vtkBlockColors feature in the latest Paraview (I<br>
am using 0a4ad038370beb6d30f51f43e32555b3adcea123), as introduced in<br>
the blog post: <a href="http://www.kitware.com/blog/home/post/859" target="_blank">http://www.kitware.com/blog/home/post/859</a><br>
<br>
Currently the legend shows colors with numbers 0-6. However, many<br>
times the sidesets in an ExodusII file are not labeled like that. I am<br>
attaching a screenshot with an example. As you can see, both the<br>
Properties as well as Multi-block Inspector shows the correct side set<br>
ID numbers (1, 5, 10, 15), but the vtkBlockColors legend shows numbers<br>
0-6.<br>
<br>
Note that if I color by vtkCompositeIndex, the legend shows the<br>
correct side set ID, but the problem is that it's a continuous legend,<br>
and the colors are close to each other, so it's hard (essentially<br>
impossible) to tell what the ID is from the color.<br></blockquote><div><br></div><div>Could you set 'Interpret Values as Categories' in the Color Map Editor?</div><div>Than, in the Annotations panel press 'Add active values from Selected Source' and</div><div>then 'Choose preset' to to desired color palette.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I understand the user case when there is thousands of blocks. But I<br>
think there is also a use case when there is relatively few (~10)<br>
boundary conditions, and you just want to see them all at once using a<br>
legend, so that you can take a screenshot and send it to somebody.<br>
Maybe there can be some check-box that would switch the two modes of<br>
the legend. </blockquote><div><br></div><div>See the previous suggestion. I think that will give you the desired result.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Currently the best way seems to be to use vtkBlockColors, and then<br>
send a screenshot that includes the Multi-block Inspector window,<br>
which also shows the colors and proper IDs.<br>
<br>
There is also the issue of Block ID versus Side Set ID (as a side set<br>
can have the same id as a block set), I usually turn one or the other<br>
off in Multi-block Inspector, then they are not mixed.<br></blockquote><div><br></div><div>Indeed, the ID we use is the index resulted from traversing the block tree.</div><div><br></div><div>Dan</div><div><br></div><div><br></div><div><br></div></div></div></div></div>