<br>You may also want to try a more recent ITK implementation<br>of Marching cubes that is available at:<br><br><a href="http://svn.na-mic.org/NAMICSandBox/trunk/MarchingHypercubes/">http://svn.na-mic.org/NAMICSandBox/trunk/MarchingHypercubes/</a><br>
<br><br>    Regards,<br><br><br>         Luis<br><br><br>====================================================<br><div class="gmail_quote">On Wed, Sep 8, 2010 at 12:24 PM, Frank Miller <span dir="ltr">&lt;<a href="mailto:frankmiller@jhmi.edu">frankmiller@jhmi.edu</a>&gt;</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;">I think the problem you are experiencing is the result of a bug in the<br>
itk::BinaryMask3DMeshSource. It has a hard coded assumption that the<br>
image is axis-aligned. Try setting the orientation of the input image to<br>
the identity. Something like this.<br>
<br>
  ImageType::DirectionType direction;<br>
  direction.SetIdentity();<br>
  pImage-&gt;DisconnectPipeline();<br>
  pImage-&gt;SetDirection( direction );<br>
<br>
The mesh coordinates should then line up with the &quot;un-oriented&quot; image.<br>
<br>
Frank<br>
<div><div></div><div class="h5"><br>
On Mon, 2010-09-06 at 08:48 +0800, 陈广宇 wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt;       I tried to use  itk::BinaryMask3DMeshSource to extract a mesh<br>
&gt; from images just like what the example did.<br>
&gt; But I found that the output mesh points&#39; coordinates were totally<br>
&gt; changed, I want it to keep the original coordinates,<br>
&gt; so that I can display it with other meshs extracted from same source.<br>
&gt;<br>
&gt;<br>
&gt; Anyone have any ideas?<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
<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.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>
</blockquote></div><br>