dear oscar,<div><br></div><div>could you share a simple code that reproduce the problem?</div><div><br></div><div>There is no unsafe copying of QEMesh, itkQuadEdgeMeshToQuadEdgeMeshFilter always hard copy (actually reconstructs the structure) the entire mesh. This is because the QuadEdges have no container and other technical details. This is one reason why the copying part is relatively slow today. Points are safe to shallow copy, cell could be made safe to shallow copy, but edge cells need to be added over again. This is what the filter does when copying.</div>
<div><br></div><div>regards,</div><div><br></div><div>alex.</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 6, 2012 at 9:32 AM, Oscar Esteban <span dir="ltr"><<a href="mailto:oesteban@die.upm.es" target="_blank">oesteban@die.upm.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<div><br></div><div>I'm trying to compute the Normals of a QuadEdgeMesh after warping it with itk::WarpMeshFilter and a displacement field.</div>
<div><br></div><div>I save to vtk files the result and the points seem to be correctly displaced, but when computing the normals, I get a segmentation fault in line 302 of itkQuadEdge.h.</div>
<div><br></div><div>I think that the output Mesh after the WarpMeshFilter lacks of some properties needed by the normals filter.</div><div><br></div><div>In order to solve this, I could copy this properties from the input mesh to the output. This are my questions:</div>
<div>- What is missing after the WarpMeshFilter?</div><div>- How to safely clone (deep-copy) a QuadEdgeMesh? (I have this problem in some other parts of my code).</div><div><br></div><div>Thank you so much in advance.</div>
<div><br></div><div>Best,</div><div>Oscar Esteban</div><div><br></div><div><div><div><div><b>______________________________________</b></div><div><b>Oscar Esteban</b></div><div>PhD Student / Researcher</div><div><span style="color:rgb(153,153,153)"><br>
</span></div><div><span style="color:rgb(153,153,153)"><span style="color:rgb(192,192,192)">Biomedical Image Technologies (BIT), UPM<br>ETSI Telecomunicación Lab. C203, Av. Complutense s/n - E-28040 Madrid (Spain)<br><a href="tel:%2B34%20915%20495%20700%20ext.4234" value="+34915495700" target="_blank">+34 915 495 700 ext.4234</a></span></span></div>
<div><span style="color:rgb(153,153,153)"><br></span></div><font color="#c0c0c0">Signal Processing Laboratory (LTS5), EPFL-STI-IEL-LTS5<br>ELD 224 (Bâtiment ELD), Station 11, CH-1015 Lausanne, Switzerland<br></font></div>
<div></div><div></div></div><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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>