Thanks David!<div><br></div><div>Best regards,</div><div>Mingcheng Chen</div><div>February 10th, 2012<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 9:28 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Because iteration is the more common access pattern (most importantly<br>
when pushing the elements to GL). Thus making the primary structure a<br>
sequential layout and making the random access layout optional saves<br>
both time and memory.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909">518-881-4909</a><br>
<div><div class="h5"><br>
<br>
<br>
On Thu, Feb 9, 2012 at 7:26 PM, Mingcheng Chen <<a href="mailto:linyufly@gmail.com">linyufly@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> Currently, without vtkCellTypes we cannot randomly access cell in poly data<br>
> because there is no uniform "entry length" in vtkCellArray (cells may have<br>
> different number of connectivities).<br>
><br>
> However, vtkCellLinks can support random access for every point, because it<br>
> uses local linked list in each entry.<br>
><br>
> Why wasn't vtkCellArray designed like vtkCellLinks? If so, we can deal with<br>
> only three arrays instead of four.<br>
><br>
> Could anyone please help me with that puzzle? What is the advantage of the<br>
> current design?<br>
><br>
> Thanks!<br>
><br>
> Best regards,<br>
> Mingcheng Chen<br>
> February 9th, 2012<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Mingcheng Chen</div>
<div> </div>
<div>Research Assistant in Graphics Group</div>
<div>University of Illinois at Urbana-Champaign</div>
<div> </div>
<div>---------------------------------------------------------</div>
<div>Below is my undergraduate information.</div>
<div>---------------------------------------------------------</div>
<div>Personal Page: <a href="http://epcc.sjtu.edu.cn/~mingchengchen" target="_blank">http://epcc.sjtu.edu.cn/~mingchengchen</a></div>
<div>Embedded and Pervasive Computing Center</div>
<div>Shanghai Jiao Tong University</div>
<div>No.800 Dongchuan Road, Minhang District, Shanghai, PRC</div><br>
</div>