<div class="gmail_quote">On Fri, Feb 5, 2010 at 1:47 PM, Francois Bertel <span dir="ltr"><<a href="mailto:francois.bertel@kitware.com">francois.bertel@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Use vtkStructuredData::ComputePointIdForExtent() to get the point id,<br>
then get the coordinates on the vtkPoints object.<br>
<br>
and your code is wrong:<br>
1.you passes arguments x,y,z per value<br>
2.you check and compute against dimensions instead of extent.<br>
<div><div></div><div class="h5"></div></div></blockquote></div><br><div>I didn't say we had to cut and paste this... this is the idea of bouncing things off the mailing list rather than just committing the, right?</div>
<div><br>What is wrong with passing 3 int's by value? I thought you didn't have to pass by reference unless the object was large (so you don't make a local copy).</div><div><br></div><div>You recommend changing GetDimensions to GetExtent, but isn't it the dimensions of the grid that we are interested in a case like this? The function seems to behave properly.</div>
<div><br></div><div>I still think this would be useful, as clearly no one would know to call ComputePointIdForExtent and then get the coordinates of the resulting object. Even if they knew to do that, it is very awkward.</div>
<div><br clear="all">Thanks,<br><br>David<br></div>