<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Tester reproduces the problem. If you comment out line 43, then it works. If you use the master version of ITK (with this <a href="http://review.source.kitware.com/#/c/21896/">patch</a> applied), then unmodified tester should work too.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 7:08 AM, Young Lee <span dir="ltr"><<a href="mailto:questionleon@gmail.com" target="_blank">questionleon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Dženan<br>
I tried your tester, and add<br>
imageFilter->SetOutsideValue(<wbr>0);<br>
imageFilter->SetInsideValue(<wbr>255);<br>
<br>
I saved the imageFilter->GetOutput() result to ITKMesh_Output.mha, but<br>
when I open with volview   volume with all zero value , do I missing<br>
something?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Re-ITK-users-what-is-the-best-way-to-do-TriangleMeshToBinaryImageFilter-on-a-region-tp7589528p7589536.html" rel="noreferrer" target="_blank">http://itk-insight-users.<wbr>2283740.n2.nabble.com/Re-ITK-<wbr>users-what-is-the-best-way-to-<wbr>do-<wbr>TriangleMeshToBinaryImageFilte<wbr>r-on-a-region-<wbr>tp7589528p7589536.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>