<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Julian;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks for your reply, I&#8217;ve looked at
vtkVisibleCellSelection class and your bug patches, it is really what I need
but I don&#8217;t know how to use these patches&#8230; And there are a couple of
questions in my mind. I am using wxWidgets mouse events instead of vtkRenderWindowInteractor
for mouse interaction, and i must use these selections in mouse motion event
too(for cursor change), can vtkVisibleCellSelection be fast as vtkPropPicker? And
how can I use it with backface culling?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Julian Ibarz
[mailto:julian.ibarz@gmail.com] <br>
<b>Sent:</b> Thursday, July 24, 2008 12:20 PM<br>
<b>To:</b> Sercani<br>
<b>Subject:</b> Re: [vtkusers] vtkPropPicker tolerance?<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'>vtkPropPicker make picking
using bounding box of your line so it's not what you need. You need a real
picking and you can do that using vtkVisibleCellSelection but it is very slow.<br>
<br>
Personally I made two patches that increase the speed in some cases from 4 to
10 times. You can find them at :<br>
<a href="http://www.vtk.org/Bug/view.php?id=7111">http://www.vtk.org/Bug/view.php?id=7111</a><br>
<a href="http://www.vtk.org/Bug/view.php?id=7296">http://www.vtk.org/Bug/view.php?id=7296</a><br>
<br>
This patches worked with 5-2 branch version of VTK. Not sure it works with
nightly version but if not contact me i will update them.<br>
<br>
And example of use of this patches can be found here :<br>
<br>
The main idea is :<br>
Not recompile the scene after a picking (it permit to gain more that twice a
time the picking). This is the first patch. Also draw only the objects pickable
but visible (not removing the z-buffer, this is the second patch). This permits
if you have a moment in your application that you can only select lines to
render only them and gain more time.<br>
<br>
This patches was maded to improve selection of CAO models. In my program i can
select faces, or edges or vertice but only one type at a time. So Imake
pickable only faces, or edges or vertice. With none of this two patches for
really big models (with 3 frame per seconds on rendering on my computer), the
picking was about 5 or 6 seconds. Actually the picking is about 500 ms for
faces and under 200 ms for edges...<br>
<br>
To make tolerance with vtkVisibleCellSelector make a window selection of 5x5
pixels for example. It will select your line if the line is on this window. You
have my picking algorithm on the subversion of jCAE (<a
href="http://jcae.sourceforge.net">http://jcae.sourceforge.net</a>) :<br>
see file vtk-util/src/org/jcae/vtk/Scene.java on method Scene.pick.<o:p></o:p></p>

<div>

<p class=MsoNormal>2008/7/24 Sercani &lt;<a
href="mailto:sercanimailgroups@gmail.com" target="_blank">sercanimailgroups@gmail.com</a>&gt;<o:p></o:p></p>

<div>

<div>

<p>Hi everyone,<o:p></o:p></p>

<p>I need vtkPropPicker for picking an actor which created from vtkLineSource.
Other pickers are too slow and do not satisfy user requirements. vtkPropPicker
is extremely fast but its tolerance is not enough, &nbsp;picking the lines in a
scene requires really good mouse skill and patience :D. I couldn't find a
setTolerance function as such in vtkPicker&#8230; Is there another way to
adjust picking tolerance in vtkPropPicker? <o:p></o:p></p>

<p>Thanks already&#8230;<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

<p>&nbsp;<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a
href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Julian Ibarz<o:p></o:p></p>

</div>

</div>

</body>

</html>