<div dir="ltr">Cool, glad you got it sorted out.<div><br></div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 7:47 PM, Allen Sanderson <span dir="ltr"><<a href="mailto:allen@sci.utah.edu" target="_blank">allen@sci.utah.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Dave,<div><br></div><div>Thanks for the reply. I dug into the issue a bit more and found the conversion was working fine but a later operation seemed to not return any cell points thus I was thinking the conversion was not working. I just did some more digging and found the issue. In a nut shell an assumption was made that the unstructured grid would contain only polygonal cells (tris, hex, tets, etc) thus a max of eight vertices. A polyline does not fit that assumption. Thus memory got stomped on but did not cause a seg fault. Thus the classic chasing ones tail was the issue. So no bug but some bad code on our part.</div>
<div><div><br></div><div><div class=""><div>
<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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
Cheers,</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Allen</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">Allen Sanderson</font></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">SCI Institute</font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica">University of Utah</font></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><font face="Helvetica" size="3" style="font:normal normal normal 12px/normal Helvetica"><a href="http://www.sci.utah.edu" target="_blank">www.sci.utah.edu</a></font></p>
<br></span></span><br></span></span>
</div>
<br></div><div><div class="h5"><div><div>On Jul 15, 2014, at 8:20 AM, David E DeMarle <<a href="mailto:dave.demarle@kitware.com" target="_blank">dave.demarle@kitware.com</a>> wrote:</div><br><blockquote type="cite">
<div dir="ltr">Hey Allen!<div><br></div><div>Probably a bug in the append filter, it must not be converting with polylines type cells correctly for some reason.</div><div><br></div><div>As Burlen said it would help if you could post a small example data set. That will make it trivial to replicate the problem and fix it.</div>
<div><br></div><div>Otherwise, try using a different filter to do the conversion (as a side effect, like append does). Threshold is my habitual choice for * to unstructured conversion.</div><div><br></div><div><br></div>
<div>
<br></div></div><div class="gmail_extra"><br clear="all"><div>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" target="_blank">518-881-4909</a></div>
<br><br><div class="gmail_quote">On Fri, Jul 11, 2014 at 6:08 PM, Burlen Loring <span dir="ltr"><<a href="mailto:burlen.loring@gmail.com" target="_blank">burlen.loring@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
It would help if you post an example with some data so that we can
see exactly what you're doing.<div><div><br>
<br>
<div>On 07/11/2014 01:29 PM, Allen Sanderson
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div>
<br>
<div>
<div>Hello,</div>
<div><br>
</div>
<div>I have a vtkPolyData structure that contains vtkPolyLines
or vertex(s). In the course of the coding the vtkPolyData
needs to be converted to a vtkUnstructuredGrid. I have used
the example here using the append filter:</div>
<div><br>
</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToUnstructuredGrid" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToUnstructuredGrid</a></div>
<div><br>
</div>
However, no lines come across only points. I have also iterated
through each cell and moved the point id list over with the same
results, no lines
<div><br>
</div>
<div>As such, I am wondering why lines might not be moved over. <br>
<div><br>
<div><span style="border-collapse:separate;font-size:12px;border-spacing:0px"><span style="border-collapse:separate;border-spacing:0px"><span style="border-collapse:separate;border-spacing:0px">
<div style="margin:0px">Cheers,</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Allen</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px"><font face="Helvetica" size="3">Allen Sanderson</font></div>
<div style="margin:0px"><font face="Helvetica" size="3">SCI Institute</font></div>
<div style="margin:0px"><font face="Helvetica" size="3">University of Utah</font></div>
<div style="margin:0px"><font face="Helvetica" size="3"><a href="http://www.sci.utah.edu/" target="_blank">www.sci.utah.edu</a></font></div>
<br>
</span></span><br>
</span></div>
<br>
</div>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a>
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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</div>
<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></div></div></div><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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>