<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<br>
Hi Lorensen,
<div>Thanks for your reply.</div>
<div>I will check it out.</div>
<div><br>
</div>
<div>By the way, do you have any idea on how i can invert the thresholded areas in Red image.</div>
<div>I extracted this result by using vtkthreshold, ThresholdByLower.</div>
<div>Is there any solution that i can show the areas that meet the criterion, instead of removing the areas?</div>
<div><br>
</div>
<div>Best,</div>
<div>Polly</div>
<div><br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Bill Lorensen <bill.lorensen@gmail.com><br>
<b>Sent:</b> Thursday, March 1, 2018 10:16 PM<br>
<b>To:</b> Polly Pui<br>
<b>Cc:</b> vtkusers@vtk.org<br>
<b>Subject:</b> Re: [vtkusers] vtkBooleanOperationPolyDataFilter</font>
<div> </div>
</div>
<div>
<div dir="ltr">First, please use the new VTKExamples website:
<div><a href="https://lorensen.github.io/VTKExamples/site" id="LPlnk863560" previewremoved="true">https://lorensen.github.io/VTKExamples/site</a></div>
<br>
<div><br>
</div>
<div>The old wiki examples are no longer supported.</div>
<div><br>
</div>
<div>Take a look at this example:<br>
<div><br>
</div>
<div><a href="https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/FillHoles/" id="LPlnk248917" previewremoved="true">https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/FillHoles/</a>
<div id="LPBorder_GT_15200161203440.49942672575086755" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15200161203410.10494320496669496" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15200161203430.872085298906665" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15200161203430.8236815879258734"></div>
<div id="LPTitle_15200161203430.09969116980170822" style="top: 0px; color: rgb(220, 79, 173); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15200161203430.4732305674527868" href="https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/FillHoles/" target="_blank" style="text-decoration: none;">FillHoles - GitHub Pages</a></div>
<div id="LPMetadata_15200161203430.16322459942216216" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lorensen.github.io</div>
<div id="LPDescription_15200161203440.015320802765002917" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Download and Build FillHoles¶ Click here to download FillHoles and its CMakeLists.txt file. Once the tarball FillHoles.tar has been downloaded and extracted,</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
<div><br>
</div>
</div>
</div>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Wed, Feb 28, 2018 at 10:01 PM, Polly Pui <span dir="ltr">
<<a href="mailto:polly_sukting@hotmail.com" target="_blank" id="LPlnk486744" previewremoved="true">polly_sukting@hotmail.com</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_3701803276027359964divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0"></p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Hi,</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
I would like to obtain the areas which are removed in 'Red Image'.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Green image is original data and Red image is the thresholded data. </p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
I applied "union operation" in order to get the areas. I used the code given in <a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter" class="x_m_3701803276027359964OWAAutoLink" id="LPlnk249421" target="_blank" previewremoved="true">https://www.vtk.org/Wiki/<wbr>VTK/Examples/Cxx/PolyData/<wbr>BooleanOperationPolyDataFilter</a></p>
<div id="LPBorder_GT_15200161482660.25758537138272875" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15200161482650.7380993506544715" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15200161482660.38763160257453366" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15200161482660.5025533334791468"></div>
<div id="LPTitle_15200161482660.4949497734798767" style="top: 0px; color: rgb(220, 79, 173); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15200161482660.08599447211971456" href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter" target="_blank" style="text-decoration: none;">VTK/Examples/Cxx/PolyData/BooleanOperationPolyDataFilter</a></div>
<div id="LPMetadata_15200161482660.5837372546353177" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
www.vtk.org</div>
<div id="LPDescription_15200161482660.5215313476239418" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Download and Build BooleanOperationPolyDataFilter. Click here to download BooleanOperationPolyDataFilter. and its CMakeLists.txt file. Once the tarball ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
But the areas that I wanted couldn't be shown completely in grey image. The polygons are not connected.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Any suggestion on how can I improve this?</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
<img naturalheight="491" naturalwidth="1010" size="29351" width="758" height="368" style="width: 758px; height: 368.493px; user-select: none;" tabindex="0" id="853379_rs|3" src="cid:447fa535-f257-4dc6-b3fc-6e3077cf35dd"><br>
<br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont; font-size:16px">
Thanks.</p>
<br>
<p></p>
<p style="margin-top:0; margin-bottom:0">Best,</p>
<p style="margin-top:0; margin-bottom:0">Polly</p>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank" id="LPlnk799669" previewremoved="true">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" id="LPlnk967566" previewremoved="true">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" id="LPlnk720700" previewremoved="true">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" id="LPlnk898233" previewremoved="true">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" id="LPlnk129350" previewremoved="true">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a>
<div id="LPBorder_GT_15200162099650.520344040583304" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15200162099640.8701068912610164" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_15200162099650.18650312814648218" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_15200162099650.17364968987881824"></div>
<div id="LPTitle_15200162099650.7542596796402425" style="top: 0px; color: rgb(220, 79, 173); font-weight: 400; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15200162099650.00819690024267783" href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank" style="text-decoration: none;">vtkusers Info Page - VTK - The Visualization Toolkit</a></div>
<div id="LPMetadata_15200162099650.405000427947952" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
vtk.org</div>
<div id="LPDescription_15200162099650.8412082993838739" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
To see the collection of prior postings to the list, visit the vtkusers Archives. Using vtkusers: To post a message to all the list members, send ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="x_gmail_signature">Unpaid intern in BillsParadise at noware dot com</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>