<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<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><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>