<div class="gmail_quote">On Tue, Aug 7, 2012 at 6:08 PM, Jana Sefcikova <span dir="ltr"><<a href="mailto:neollie@gmail.com" target="_blank">neollie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, structure in your input file is very similar to reading .off file as was implemented by David in its <a href="http://homepages.rpi.edu/~doriad/VTK_List/vtkOFFReader/" target="_blank">vtkOFFReader</a>.<div>(Main change is that .off file has different header lines, other suffix and there is polygon point count of cells before their list</div>
<div>instead of your line </div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">2661 2778 2645</span>
</div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">.off file format expects this</span></div><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">3 </span><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">2661 2778 2645</span></div>
<div>)</div><div><div>You could correct few lines in that code and you would have working polydata reader.</div></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>J.</div>
</font></span></blockquote></div><div><br></div>Please note that an updated version of this code can be found here:<div><br><div><a href="https://github.com/daviddoria/vtkOFFReader">https://github.com/daviddoria/vtkOFFReader</a><br clear="all">
<br>David</div></div>