<P>&nbsp;Hi vtk Users,</P>
<P class=MsoNormal>&nbsp;I have two questions:</P>
<P class=MsoBodyTextIndent>&nbsp;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo3; tab-stops: list .75in">1.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>From cellLocator-&gt;IntersectWithLine I compute the intersection point and its cellID on the STL file. Now I want to find all the points within a radius around the intersection point. I tried using <B>vtkPointLocator::FindPointsWithinRadius(radius, point, vtkIdList *result) </B>But I was not successful with the following code:</P>
<P class=MsoBodyTextIndent><B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </B>float p1[] = {2.0, 1.0, 3.0};</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">float rad = 2.0;</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">vtkIdList *res;</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">// Build a locator </P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">vtkPointLocator *pointLocator = vtkPointLocator::New();</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">pointLocator-&gt;SetDataSet(STLReader-&gt;GetOutput());</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">pointLocator-&gt;FindPointsWithinRadius(rad,p1,res);</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">pointLocator-&gt;BuildLocator();</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">&nbsp;I don’t know where I am goofing up the code. As soon as Execute I am getting error as ”Memory can’t be assigned error” I debugged the code it is stopping at<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>vtkIdList.h // Description:</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">// Reset to an empty state.</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">void Reset() {this-&gt;NumberOfIds = 0;};</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">*/</P>
<P class=MsoBodyTextIndent style="MARGIN-LEFT: 0.75in">&nbsp;<o:p></o:p></P>
<P class=MsoBodyTextIndent>&nbsp;<o:p></o:p></P>
<P class=MsoBodyTextIndent2 style="MARGIN-LEFT: 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo3; tab-stops: list .75in">2.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Is there any vtk class, which I can use for collision avoidance? Basically I have two STL files and I want to check the collision around a particular point.</P>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in">&nbsp;</P>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in">Any Help in this regard is very well appreciated.</P>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in">&nbsp;Best Regards</P>
<P class=MsoNormal style="MARGIN-LEFT: 0.25in"><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Siddu.</SPAN></P><BR><BR><p><img src="http://us.i1.yimg.com/us.yimg.com/i/re/icn.gif" width=28 height=28><a href="$rd_url/welcome/?http://in.specials.yahoo.com/property/index.html"
target=_blank> <b>Yahoo! Properties Special</b><a> <img src="http://in.yimg.com/i/in/new2.gif" width=28 height=11 alt="new"></a><small> Buy, sell, rent...your flat, or even post an ad</small>