<html><div style='background-color:'><DIV>Hello vtkusers,</DIV>
<DIV> </DIV>
<DIV>I want to be able to locate which cell of my unstructured grid contains any random point that is seeded in the grid..</DIV>
<DIV>So far I just have: </DIV>
<DIV>cellLocator->SetDataSet(ugrid);</DIV>
<DIV>cellLocator->BuildLocator()</DIV>
<DIV> </DIV>
<DIV>and it seems like I should use the FindClosestPoint method next to find which cell contains the point but I'm not so sure?? Also, if I do use this, I figure x[3] is the point that has been seeded, but I don't know what the other 5 parameters are for and how to use them?</DIV>
<DIV>If someone can tell me how im' supposed ot use this fucntion, that woudl be super!</DIV>
<DIV> </DIV>
<DIV>
<TABLE border=0 cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD class=md noWrap vAlign=top>void vtkCellLocator::FindClosestPoint </TD>
<TD class=md vAlign=top>( </TD>
<TD class=md noWrap vAlign=top>float </TD>
<TD class=mdname noWrap> <EM>x</EM>[3], </TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD class=md noWrap>float </TD>
<TD class=mdname noWrap> <EM>closestPoint</EM>[3], </TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD class=md noWrap><A class=el href="mk:@MSITStore:C:\Documents%20and%20Settings\TEMP\Desktop\VTKDoc-4.2.chm::/classvtkGenericCell.html">vtkGenericCell</A> * </TD>
<TD class=mdname noWrap> <EM>cell</EM>, </TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD class=md noWrap><A class=el href="mk:@MSITStore:C:\Documents%20and%20Settings\TEMP\Desktop\VTKDoc-4.2.chm::/classvtkIdType.html">vtkIdType</A> & </TD>
<TD class=mdname noWrap> <EM>cellId</EM>, </TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD class=md noWrap>int & </TD>
<TD class=mdname noWrap> <EM>subId</EM>, </TD></TR>
<TR>
<TD></TD>
<TD></TD>
<TD class=md noWrap>float & </TD>
<TD class=mdname noWrap> <EM>dist2</EM></TD></TR>
<TR>
<TD></TD>
<TD class=md>) </TD></TR></TBODY></TABLE></DIV>
<P>2)Also, I don't understand the business of octants..? How many cells does an octant contain? how does it build this octant tree?</P>
<P>3)Also, is OBBTree the same thing? </P>
<P>Thank you,</P>
<P>Mike</P></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2755??PS=">Is your computer infected with a virus? Find out with a FREE computer virus scan from McAfee. Take the FreeScan now!</a> </html>