I have not used CMake. I am using VS2010. In the project configuration, I have added ITK and VTK include directories, along with the necessary VTK and ITK libraries and lib paths. <div>I am using ITK&#39;s implementation of simplex mesh and visualizing with VTK. The program can create the meshes, and then visualizes them, and after that its seems to have trouble when it tries to read the .MHD file. </div>
<div><br></div><div>- - - Tanweer Rashid</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 9:30 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you using Cmake to configure your project? If so, please provide<br>
your CMakeLists.txt file.<br>
<br>
If you are not using CMake, what is the reason?<br>
<div><div class="h5"><br>
On Tue, Nov 20, 2012 at 7:31 PM, Tanweer Rashid &lt;<a href="mailto:trash001@odu.edu">trash001@odu.edu</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am having problems reading a .MHD file. I get the following error:<br>
&gt;<br>
&gt; d:\programfiles\itk\include\itk-4.2\itkimagefilereader.hxx:143:<br>
&gt;  Could not create IO object for file C:\Users\trash001\Desktop\sphere.mhd<br>
&gt;   Tried to create one of the following:<br>
&gt;   You probably failed to set a file suffix, or<br>
&gt;      set the suffix to an unsupported type.<br>
&gt;<br>
&gt;<br>
&gt; My code is as follows:<br>
&gt;<br>
&gt; typedef itk::Image&lt;float, 3&gt; VolumeType;<br>
&gt; typedef itk::ImageFileReader&lt;VolumeType&gt; VolumeReaderType;<br>
&gt;<br>
&gt; VolumeReaderType::Pointer reader = VolumeReaderType::New();<br>
&gt; reader-&gt;SetFileName(&quot;C:\\Users\\trash001\\Desktop\\sphere.mhd&quot;);<br>
&gt; reader-&gt;Update();<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; --<br>
&gt; Tanweer Rashid<br>
&gt; MSVE Dept.<br>
&gt; Old Dominion University<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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>
&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
<br>
<br>
--<br>
BEGIN-ANTISPAM-VOTING-LINKS<br>
------------------------------------------------------<br>
<br>
Teach CanIt if this mail (ID 02Iq2oiqx) is spam:<br>
Spam:        <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=s" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=s</a><br>

Not spam:    <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=n" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=n</a><br>

Forget vote: <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=f" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iq2oiqx&amp;m=b645d8d1fecf&amp;t=20121120&amp;c=f</a><br>

------------------------------------------------------<br>
END-ANTISPAM-VOTING-LINKS<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tanweer Rashid<br>MSVE Dept.<br><div>Old Dominion University</div><br>
</div>