<div dir="ltr">Thank you :) I need to find how getting this cellId now ! If anyone else has an idea, I would be grateful ! <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-21 15:03 GMT+01:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I don't know exactly how to do what you want, but you might want to take a look at vtkBoxWidget::HighlightFace(int cellId) for some clues how to do this.<div><br></div><div>Hope that helps,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 21, 2015 at 6:31 AM, Amélie Thery <span dir="ltr"><<a href="mailto:theryame@gmail.com" target="_blank">theryame@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 class="h5"><div dir="ltr"><div><div><div><div><div><div><div>Hi everyone !<br></div>I am trying to highlight a vtkBoxWidget face, when the mouse position is over it, and without picking it. <br><br></div>I have this for the moment : <br></div>case WM_MOUSEMOVE:<br> LPPOINT PT=(LPPOINT)malloc(sizeof(LPPOINT));<br> ::GetCursorPos(PT);<br> vtkSmartPointer<vtkPropPicker> picker=vtkSmartPointer<vtkPropPicker>::New();<br> picker->Pick(PT->x, PT->y, 0, this->ren);<br> double* pos = picker->GetPickPosition();<br><br></div>and now I don't know what to do because if I get the actor of the picker, the whole BoxWidget comes and I just want the face. <br></div>Any help?<br></div>Thank you,<br></div>Amélie<br></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
</blockquote></div><br></div>