In the early days of VTK it was envisioned as a "read-only" system where data was loaded and then viewed. The idea was to minimize data structure size (as Dave says) yet enable more sophisitcated topological representations on an incremental / as needed basis.<div>

<br></div><div>With the success of VTK its usage pattern has changed. Many of us now want to load and edit structures. Work has been done to create full-blown topological hierarchies in VTK to support complex mesh editing operations and engineering simulation (like adaptive refinement). While these have not yet fully made their way into VTK proper, it is likely such structures will be added to the system as funding and support becomes available.</div>

<div><br>W<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 8:28 AM, 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>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>William J. Schroeder, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a><br>

<a href="http://www.kitware.com">http://www.kitware.com</a><br>(518) 881-4902<br>
</div>