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/">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-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">2661     2778    2645</span>
</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">.off file format expects this</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">3    </span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">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><div><br></div><div>J.</div>