Fred,<br><br>If you are overwriting memory then it will produce different results and, even though it is not crashing in your VTK example, I would not say that it "works well"!<br><br>You really need to post the *actual* code or a testcase (whole piece of code - not snippets) that can reproduce the problem.<br>
<br><div class="gmail_quote"><div>Regards,<br>Paul<br><br>PS One thing you could check from your snippet of code you sent is:<br><br> assert(*it < this->grid.size());<br><br>before calling<br><br> this->grid[*it].push_back(pt2D);<br>
<br><br></div></div><br>