<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey David,<div><br></div><div>I can't see anything obviously wrong with your script. I think there may be some bugs in the vtkXMLPolyDataWriter. This reminded me that I ran into a similar problem a while back while trying to write polydata from a graph out to a vtp file:</div><div><br></div><div><a href="http://www.nabble.com/InfoVis:-Graph-to-PolyData-bugs--td21354144.html">http://www.nabble.com/InfoVis:-Graph-to-PolyData-bugs--td21354144.html</a></div><div><br></div><div>Unfortunately, it seems I never got around to filing a bug report on that one... Yours doesn't crash out at exactly the same point mine did, so they may not be related, but my guess is that it's a bug in the writer nonetheless. (For mine, all I wanted was the point coordinates written out, so I just created a new polydata with only points and wrote that.)</div><div><br></div><div>Good luck,</div><div>-Eric</div><div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></div></span></div><br><div><div>On Jun 18, 2009, at 11:35 AM, David Doria wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Writing points to a vtp works fine:<br><a href="http://www.vtk.org/Wiki/Write_the_corners_of_a_triangle_to_a_file">http://www.vtk.org/Wiki/Write_the_corners_of_a_triangle_to_a_file</a><br><br>But then writing points and vertices does not:<br> <a href="http://www.vtk.org/Wiki/Write_the_corners_of_a_triangle_to_a_file_%28%2Bvertices%29">http://www.vtk.org/Wiki/Write_the_corners_of_a_triangle_to_a_file_%28%2Bvertices%29</a><br><br>If you uncomment the SetVerts() line, it seg faults on the line:<br> writer.Write();<br><br>Does anyone see the problem with this?<br><br clear="all">Thanks,<br><br>David<br> _______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br></div></body></html>