<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 10:44 AM, Aashish Chaudhary <span dir="ltr">&lt;<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#FFFFFF"><div>I think it will be really useful to have it. Last week I was looking for something similar...</div><div><br></div><div>Also Passing array (pointers) is not the best thing without passing the size of the array which I think will be gone if we pass the vectors (or there references)</div>

<div><br></div><div>Regards</div><div><br></div></div></blockquote><div> </div><div>That is a very good point. Also, you could then even return objects<br><br>vtkPoint GetPoint(int index);<br><br>instead of<br>void GetPoint(int index, double* point);<br>


<br>
Another thing is that code readability is tremendously improved. From my example above, the math equations map directly to the c++ code:<br><br>c = a-b;<br><br>rather than having to interpret what is going on when you see something like this (or typically even much more complicated):<br>

<br>for(unsigned int i = 0; i &lt; 3; i++)<br>{<br>c[i] = a[i] - b[i];<br>}<br>
<br clear="all">Thanks,<br><br>David <br></div></div>