Wanlin,<div><br></div><div>thanks for the clarification. I was unaware of the QuadEdgeMeshToQuadEdgeMeshFilter not calling the copy functions.</div><div><br></div><div>Thanks,</div><div><br></div><div>Stefan <br><br><div class="gmail_quote">
On Tue, Dec 14, 2010 at 12:38 AM, wanlin <span dir="ltr"><<a href="mailto:wanlinzhu@gmail.com">wanlinzhu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, Stefan,<br> Those filters are defined as base classes for mesh filters. They provide copyMesh methods but do not call them. If you need a copier. Just derived a class from them.<br>For instance if your input and out are QuadEdgeMesh. You could define a CopyQuadEdgeMesh filter, looks like<br>
<br>#ifndef __itkCopyQuadEdgeMeshFilter_h<br>#define __itkCopyQuadEdgeMeshFilter_h<br>#include "itkQuadEdgeMeshToQuadEdgeMeshFilter.h"<br><br>namespace itk<br>{<br>template<typename TInputMesh, typename TOutputMesh><br>
class CopyQuadEdgeMeshFilter : public QuadEdgeMeshToQuadEdgeMeshFilter<TInputMesh, TOutputMesh><br>{<br>public:<br> typedef CopyQuadEdgeMeshFilter Self;<br> typedef QuadEdgeMeshToQuadEdgeMeshFilter<TInputMesh, TOutputMesh> Superclass;<br>
typedef SmartPointer<Self> Pointer;<br><br> itkNewMacro(Self);<br>protected:<br> void GenerateData()<br> {<br> this->CopyMeshToMesh(this->GetInput(), this->GetOutput());<br> }<br>
};<br><br>}//namespace itk end<br>#endif<br><br><br>The class will make a deep copy. <br><font color="#888888"><br><br><br>wanlin<br><br></font><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Dec 14, 2010 at 4:04 AM, Stefan Dänzer <span dir="ltr"><<a href="mailto:stefan.daenzer@gmail.com" target="_blank">stefan.daenzer@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5">Arnaud,<div><br></div><div>I'm computing normals for a given mesh and want to make a deep copy of that mesh afterwards.<div>
<br></div><div><font color="#888888">stefan</font><div><div></div><div><br><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 5:52 PM, Arnaud GELAS <span dir="ltr"><<a href="mailto:arnaud_gelas@hms.harvard.edu" target="_blank">arnaud_gelas@hms.harvard.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div bgcolor="#ffffff" text="#000000">
Stefan,<br>
<br>
I am not sure to understand what you are trying to do.<br>
<br>
Do you want to copy information from one mesh to another mesh?<br>
Do you want to compute normals for one given mesh?<br>
<br>
Can you give us more information please?<br>
<br>
Thanks,<br><font color="#888888">
Arnaud</font><div><div></div><div><br>
<br>
<br>
On 12/13/2010 11:50 AM, Stefan Dänzer wrote:
<blockquote type="cite">hi all,
<div><br>
</div>
<div>thanks for your reply. I have built my application after what
was given in the test whih Arnaud pointed me to. But it seems
that a type of itk::Vector<double, 3> which is called for
by the QuadEdgeMeshNormalFilter is not supported by the <span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">QuadEdgeMeshToQuadEdgeMeshFilter.
Is there another convenient way to copy a quadEdgeMesh in itk
wihtout having to iterate over points and cells of the mesh
manually?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><br>
</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse">stefan</span></div>
<div><br>
<div class="gmail_quote">On Mon, Dec 13, 2010 at 5:39 PM, David
Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">On Mon, Dec 13, 2010 at 11:21 AM, Arnaud
GELAS<br>
<div><<a href="mailto:arnaud_gelas@hms.harvard.edu" target="_blank">arnaud_gelas@hms.harvard.edu</a>>
wrote:<br>
> Hi Stefan,<br>
><br>
</div>
<div>> You can have a look at the test for
Normal Filter located in<br>
>
Testing/Code/Review/itkQuadEdgeMeshNormalFilterTest.cxx
(if you use ITK<br>
> 3.20)<br>
> or
Testing/Code/Algorithm/itkQuadEdgeMeshNormalFilterTest.cxx
(if you use<br>
> the git version).<br>
><br>
> I think it would be useful to make an example on the
wiki (similar to the<br>
> link I sent you before). It would benefit to
everyone!<br>
><br>
> HTH,<br>
> Arnaud<br>
<br>
</div>
I have created a blank example here:<br>
<a href="http://www.itk.org/Wiki/ITK/Examples/Meshes/QuadEdgeMeshNormalFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Meshes/QuadEdgeMeshNormalFilter</a><br>
<br>
to make it easy for you to just fill it in :)<br>
<font color="#888888"><br>
David<br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
--<br>
Stefan Daenzer <br>
Körnerplatz 8<br>
04107 Leipzig<br>
<br>
Tel.: +49-157-84993879<br>
<br>
"Work like you don't need the money, love like you've never been
hurt and dance like no one is watching." - Randall G Leighton<br>
</div>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>--<br>Stefan Daenzer <br>Körnerplatz 8<br>04107 Leipzig<br><br>Tel.: +49-157-84993879<br><br>"Work like you don't need the money, love like you've never been hurt and dance like no one is watching." - Randall G Leighton<br>
</div></div></div></div>
<br></div></div><div class="im">_____________________________________<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.html" target="_blank">http://www.kitware.com/products/protraining.html</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></div></blockquote></div><br>
</blockquote></div><br><br clear="all"><br>-- <br>--<br>Stefan Daenzer <br>Körnerplatz 8<br>04107 Leipzig<br><br>Tel.: +49-157-84993879<br><br>"Work like you don't need the money, love like you've never been hurt and dance like no one is watching." - Randall G Leighton<br>
</div>