<div class="gmail_quote">On Mon, Sep 27, 2010 at 2:39 AM, czbebe <span dir="ltr"><<a href="mailto:oka@bpe.es.osaka-u.ac.jp">oka@bpe.es.osaka-u.ac.jp</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Dear David,<br>
<br>
Thank you for update example. It is very nice for me.<br>
My example is to highlight picked cells of unstructured grid data.<br>
I such case, triangle filter is not necessary because grid has<br>
already triangle cells ?<br>
If so, I am wondering how modify follwoing program.<br>
style->Data = triangleFilter->GetOutput();<br>
<br>
Best regards,<br>
<br>
Oka<br><br></blockquote><div class="gmail_quote"><br></div><div class="gmail_quote">The idea of the triangle picker was just that the planeSource only produced one cell so it didn't make sense to demonstrate selecting different cells! You will have to change CustomStyle::Data to be a vtkUnstructuredGrid and then replace:</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">style->Data = triangleFilter->GetOutput();</div><div class="gmail_quote"><br></div><div class="gmail_quote">with</div><div class="gmail_quote"><br></div><div class="gmail_quote">
style->Data = yourUnstructuredGrid;</div><div class="gmail_quote"><br></div><div class="gmail_quote">Give it a shot and let us know if it works.</div><br>David<br><div><br></div></div>