<div dir="ltr"><div class="gmail_extra"><div class="gmail_extra">Took me a minute to find it.</div><div class="gmail_extra"><br></div><div class="gmail_quote">On Sat, Oct 24, 2015 at 2:32 AM, Ronald Levine <span dir="ltr"><<a href="mailto:rl@quantcomp.com" target="_blank">rl@quantcomp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1wp" class="" style="overflow:hidden">normals.SetNumberOfComponents(3)<br>
normals.SetNumberOfTuples(4)<br></div></blockquote><div> </div><div>Normals looks something like this at this point .</div><div>[0,0,0]</div><div>[0,0,0]</div><div>[0,0,0]</div><div>[0,0,0]</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":1wp" class="" style="overflow:hidden">normals.InsertNextTuple3(0.,0.,1.)<br>
normals.InsertNextTuple3(0.,0.,1.)<br>
normals.InsertNextTuple3(0.,0.,1.)<br>
normals.InsertNextTuple3(0.,0.,1.)<br></div></blockquote><div><br></div><div>now it looks like this </div></div><div>[0,0,0]</div><div>[0,0,0]</div><div>[0,0,0]</div><div>[0,0,0]</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"></blockquote></div><div class="gmail_extra"><div class="gmail_extra">[0,0,1]</div><div><div class="gmail_extra">[0,0,1]</div></div><div><div class="gmail_extra">[0,0,1]</div></div><div><div class="gmail_extra">[0,0,1]</div></div><div><br></div></div><div class="gmail_extra">Thus the mapper never saw what you wanted it too. </div><div class="gmail_extra"><br></div><div class="gmail_extra">To fix, take the SetNumberOfTuples() call out and use keep letting InsertNext append to the initially empty array, or better yet keep SetNumberOfTuples and then use SetTuple3(idx, vx,vy,vz) for faster non-checked inserts.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div><div class="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
</div></div>