<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px"><div id="yui_3_16_0_1_1436533035846_12132" dir="ltr" class=""><span id="yui_3_16_0_1_1436533035846_12399" class="">Thanks Meehan, the error doesn't appear anymore. </span></div><div id="yui_3_16_0_1_1436533035846_12132" dir="ltr" class=""><span class="" id="yui_3_16_0_1_1436533035846_15628">I was expecting to recieve this message on my inbox folder, but it entered as spam and I check on it with a lesser frequency.<br><br>Thanks for your help, I appreciate it.<br></span></div><div dir="ltr" id="yui_3_16_0_1_1436533035846_14945"><br></div><div></div><div dir="ltr" id="yui_3_16_0_1_1436533035846_12920" class=""><br id="yui_3_16_0_1_1436533035846_12922" class=""></div><div dir="ltr" id="yui_3_16_0_1_1436533035846_12923"><span><br></span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 14px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, July 8, 2015 7:25 PM, "Meehan, Bernard" <MEEHANBT@nv.doe.gov> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv8143310798">
<div>
<div style="color:rgb(0, 0, 0);">If you add a line after "element face 0”</div>
<div style="color:rgb(0, 0, 0);"><br>
</div>
<div style="color:rgb(0, 0, 0);">property list uchar int vertex_index</div>
<div style="color:rgb(0, 0, 0);"><br>
</div>
<div style="color:rgb(0, 0, 0);">It will load just fine. Just for clarity, here is the whole file:</div>
<div>
<div style="color:rgb(0, 0, 0);">ply</div>
<div style="color:rgb(0, 0, 0);">format ascii 1.0</div>
<div style="color:rgb(0, 0, 0);">element vertex 15</div>
<div style="color:rgb(0, 0, 0);">property float x</div>
<div style="color:rgb(0, 0, 0);">property float y</div>
<div style="color:rgb(0, 0, 0);">property float z</div>
<div style="color:rgb(0, 0, 0);">element face 0</div>
<div><font color="#ff0000"><b>property list uchar int vertex_index</b></font></div>
<div style="color:rgb(0, 0, 0);">end_header</div>
<div style="color:rgb(0, 0, 0);">53.242 91.622 149.959</div>
<div style="color:rgb(0, 0, 0);">129.485 97.222 149.719</div>
<div style="color:rgb(0, 0, 0);">81.920 4.705 46.381</div>
<div style="color:rgb(0, 0, 0);">81.827 4.788 46.983</div>
<div style="color:rgb(0, 0, 0);">80.120 4.781 47.902</div>
<div style="color:rgb(0, 0, 0);">76.090 4.647 49.168</div>
<div style="color:rgb(0, 0, 0);">68.482 6.366 51.216</div>
<div style="color:rgb(0, 0, 0);">68.482 6.366 51.216</div>
<div style="color:rgb(0, 0, 0);">58.200 11.971 54.295</div>
<div style="color:rgb(0, 0, 0);">48.691 17.704 54.613</div>
<div style="color:rgb(0, 0, 0);">40.140 25.495 53.721</div>
<div style="color:rgb(0, 0, 0);">32.668 34.396 51.962</div>
<div style="color:rgb(0, 0, 0);">26.993 44.212 46.917</div>
<div style="color:rgb(0, 0, 0);">22.274 51.449 35.907</div>
<div style="color:rgb(0, 0, 0);">24.514 49.859 18.384</div>
</div>
<div style="color:rgb(0, 0, 0);"><br>
</div>
<div style="color:rgb(0, 0, 0);">Here is the code I tested it with:</div>
<div style="color:rgb(0, 0, 0);">
<div>import vtk</div>
<div>r = vtk.vtkPLYReader()</div>
<div>r.SetFileName("stuff.ply")</div>
<div>r.Update()</div>
</div>
<div style="color:rgb(0, 0, 0);"><br>
</div>
<span id="yiv8143310798OLK_SRC_BODY_SECTION" style="color:rgb(0, 0, 0);">
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt;">
<span style="font-weight:bold;">From: </span>vtkusers <<a rel="nofollow" ymailto="mailto:vtkusers-bounces@vtk.org" target="_blank" class="removed-link" href="">vtkusers-bounces@vtk.org</a>> on behalf of Anderson chidi Apunike via vtkusers <<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" class="removed-link" href="">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold;">Reply-To: </span>Anderson chidi Apunike <<a rel="nofollow" ymailto="mailto:anderchidi@yahoo.com" target="_blank" class="removed-link" href="">anderchidi@yahoo.com</a>><br>
<span style="font-weight:bold;">Date: </span>Wednesday, July 8, 2015 at 2:39 PM<br>
<span style="font-weight:bold;">To: </span>"<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" class="removed-link" href="">vtkusers@vtk.org</a>" <<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" class="removed-link" href="">vtkusers@vtk.org</a>><br>
<span style="font-weight:bold;">Subject: </span>[vtkusers] vtk PLY reader errors<br>
</div>
<div><br>
</div>
<div>
<div>
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:14px;">
<div id="yiv8143310798yui_3_16_0_1_1436390519731_25522" dir="ltr"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25533" class="yiv8143310798">Hi VTK developpers, </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25535" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25537" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25539" class="yiv8143310798">I am currently using vtkPLYReader class to load some polygonal objects. </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25541" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25543" class="yiv8143310798">I convert a txt file into a ply file (ascii format) with Python. When I try opening the ply file with VTKplyreader,
it returns the following error: </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25545" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25547" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25549" class="yiv8143310798">ERROR: In ..\..\VTK\IO\vtkPLYReader.cxx, line 125 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25551" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25553" class="yiv8143310798">vtkPLYReader (000000000483BDE0): Cannot read geometry </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25555" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25557" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25559" class="yiv8143310798">When I try opening the same PLY file that I created usinga software caled MeshLab, it opens the file in Meshlab,
showing all the points. </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25561" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25563" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25565" class="yiv8143310798">I am confused at this point, not knowing what to do about it.
<br>
</span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25573" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25575" class="yiv8143310798">Here's part of my file. It has 266 vertices, but I reduced them to 15.</span></div>
<div id="yiv8143310798yui_3_16_0_1_1436390519731_25522" dir="ltr"><span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" class="yiv8143310798" id="yiv8143310798yui_3_16_0_1_1436390519731_25772">It has no faces. It only has vertices with their respective
x, y,z coordinates. </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25577" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25579" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25581" class="yiv8143310798">ply </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25583" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25585" class="yiv8143310798">format ascii 1.0 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25587" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25589" class="yiv8143310798">element vertex 15 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25591" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25593" class="yiv8143310798">property float x </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25595" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25597" class="yiv8143310798">property float y </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25599" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25601" class="yiv8143310798">property float z </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25603" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25605" class="yiv8143310798">element face 0 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25607" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25609" class="yiv8143310798">end_header </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25611" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25613" class="yiv8143310798">53.242 91.622 149.959 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25615" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25617" class="yiv8143310798">129.485 97.222 149.719 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25619" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25621" class="yiv8143310798">81.920 4.705 46.381 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25623" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25625" class="yiv8143310798">81.827 4.788 46.983 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25627" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25629" class="yiv8143310798">80.120 4.781 47.902 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25631" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25633" class="yiv8143310798">76.090 4.647 49.168 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25635" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25637" class="yiv8143310798">68.482 6.366 51.216 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25639" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25641" class="yiv8143310798">68.482 6.366 51.216 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25643" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25645" class="yiv8143310798">58.200 11.971 54.295 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25647" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25649" class="yiv8143310798">48.691 17.704 54.613 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25651" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25653" class="yiv8143310798">40.140 25.495 53.721 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25655" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25657" class="yiv8143310798">32.668 34.396 51.962 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25659" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25661" class="yiv8143310798">26.993 44.212 46.917 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25663" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25665" class="yiv8143310798">22.274 51.449 35.907 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25667" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25669" class="yiv8143310798">24.514 49.859 18.384 </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25671" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25673" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25675" class="yiv8143310798">Thanks. </span><br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25677" class="yiv8143310798">
<br style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25679" class="yiv8143310798">
<span style="font-family:Verdana, Geneva, Helvetica, Arial, sans-serif;font-size:13.4399995803833px;" id="yiv8143310798yui_3_16_0_1_1436390519731_25681" class="yiv8143310798">Anderson</span><br>
</div>
</div>
</div>
</div>
</span>
</div>
</div><br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <a target="_blank" class="removed-link" href="">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a target="_blank" class="removed-link" href="">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Search the list archives at: <a target="_blank" class="removed-link" href="">http://markmail.org/search/?q=vtkusers</a><br><br>Follow this link to subscribe/unsubscribe:<br><a target="_blank" class="removed-link" href="">http://public.kitware.com/mailman/listinfo/vtkusers</a><br><br><br></div> </div> </div> </div></div></body></html>