<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi,
<div class=""><br class="">
</div>
<div class="">Do you apply vtkThreshold on cell values or point values?</div>
<div class="">This will make a difference and I guess the missing cells is related to that. </div>
<div class="">If you really want to get the complementary part you should apply TheresoldByLower and ThresholdByUpper  on cell data I think.</div>
<div class=""><br class="">
</div>
<div class="">Regards,</div>
<div class=""><br class="">
</div>
<div class="">Vincent<br class="">
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">Le 2 mars 2018 à 19:39, Polly Pui <<a href="mailto:polly_sukting@hotmail.com" class="">polly_sukting@hotmail.com</a>> a écrit :</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi Cory,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Thanks for your reply.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I extracted the result in red image by using the vtkthreshold (ThresholdByLower=0.085). </div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I tried to invert the extraction by using ThresholdByUpper=0.015, but the result weren't what i wanted.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">The red image with white holes (the removed areas are what i wanted). The blue area is extracted using the inverted value of threshold.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span id="cid:f7c26712-986e-4e9b-9c1f-0174777617ab"><above_below.jpg></span><br class="">
I cant really understand what do you mean by boolean operations cant work on this case.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Are we not able to obtain the areas using "difference" operation?</div>
<br class="">
Best,
<div class="">Polly<br class="">
<div style="" class="">
<hr tabindex="-1" style="display: inline-block; width: 758.515625px;" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Cory Quammen <<a href="mailto:cory.quammen@kitware.com" class="">cory.quammen@kitware.com</a>><br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Thursday, March 1, 2018 9:01 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Polly Pui<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:vtkusers@vtk.org" class="">vtkusers@vtk.org</a><br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [vtkusers] vtkBooleanOperationPolyDataFilter</font>
<div class=""> </div>
</div>
<div class="">
<div dir="ltr" class=""><br class="">
<div class="x_gmail_extra"><br class="">
<div class="x_gmail_quote">On Thu, Mar 1, 2018 at 1:01 AM, Polly Pui<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:polly_sukting@hotmail.com" target="_blank" id="LPlnk550297" previewremoved="true" class="">polly_sukting@hotmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class="">
<blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr" class="">
<div id="x_m_1743815686831938821divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
Hi,</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
I would like to obtain the areas which are removed in 'Red Image'.</div>
</div>
</div>
</blockquote>
<div class="">Couldn't you invert the threshold operation to produce those areas instead of the red surface?<br class="">
</div>
<blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr" class="">
<div id="x_m_1743815686831938821divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
Green image is original data and Red image is the thresholded data. </div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
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_1743815686831938821OWAAutoLink" id="LPlnk421431" target="_blank" previewremoved="true">https://www.vtk.org/Wiki/<wbr class="">VTK/Examples/Cxx/PolyData/<wbr class="">BooleanOperationPolyDataFilter</a></div>
<br class="">
</div>
</div>
</blockquote>
<div class="">The boolean operation filter won't work in this case because it does not handle boolean operations on overlapping surfaces.</div>
<div class=""><br class="">
</div>
<div class="">HTH,</div>
<div class="">Cory</div>
<blockquote class="x_gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr" class="">
<div id="x_m_1743815686831938821divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
But the areas that I wanted couldn't be shown completely in grey image. The polygons are not connected.</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
Any suggestion on how can I improve this?</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
<span id="cid:447fa535-f257-4dc6-b3fc-6e3077cf35dd"><boolean.jpg></span><br class="">
<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px; font-family: Calibri, Helvetica, sans-serif, serif, EmojiFont; font-size: 16px;" class="">
Thanks.</div>
<br class="">
<p style="margin-top: 0px; margin-bottom: 0px;" class=""></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Polly</div>
</div>
</div>
<br class="">
______________________________<wbr class="">_________________<br class="">
Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/" rel="noreferrer" target="_blank" id="LPlnk693148" previewremoved="true" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" id="LPlnk554419" previewremoved="true" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the VTK FAQ at:<span class="Apple-converted-space"> </span><a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank" id="LPlnk698963" previewremoved="true" class="">http://www.vtk.org/Wiki/VTK_<wbr class="">FAQ</a><br class="">
<br class="">
Search the list archives at:<span class="Apple-converted-space"> </span><a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank" id="LPlnk139371" previewremoved="true" class="">http://markmail.org/search/?q=<wbr class="">vtkusers</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank" id="LPlnk455118" previewremoved="true" class="">https://vtk.org/mailman/<wbr class="">listinfo/vtkusers</a>
<div id="LPBorder_GT_15200156056280.5084435914516079" style="margin-bottom: 20px; overflow: auto; width: 757.953125px; text-indent: 0px;" class="">
<table id="LPContainer_15200156056260.7646855896639322" role="presentation" cellspacing="0" style="width: 682.15625px; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top-width: 1px; border-top-style: dotted; border-top-color: rgb(200, 200, 200); border-bottom-width: 1px; border-bottom-style: dotted; border-bottom-color: rgb(200, 200, 200);" class="">
<tbody class="">
<tr valign="top" style="border-spacing: 0px;" class="">
<td id="TextCell_15200156056270.6744068321801076" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" class="">
<div id="LPRemovePreviewContainer_15200156056270.4636505623188454" class=""><a id="LPlnk803313" class="ms-Icon--x ms-icon-font-size-14" previewremoved="true" style="font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-weight: normal; position: relative; cursor: pointer; padding: 8px; float: right; color: rgb(102, 102, 102); background-color: rgb(251, 237, 247); margin-left: 10px;"></a></div>
<div id="LPTitle_15200156056270.9034739581460263" 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;" class="">
<a id="LPUrlAnchor_15200156056270.610265829429167" href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank" style="text-decoration: none;" class="">vtkusers Info Page - VTK - The Visualization Toolkit</a></div>
<div id="LPMetadata_15200156056270.6175907672601728" 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;" class="">
<a href="http://vtk.org/" class="">vtk.org</a></div>
<div id="LPDescription_15200156056280.15221001005758006" 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;" class="">
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 class="">
<br class="">
<br class="">
</blockquote>
</div>
<br class="">
<br clear="all" class="">
<div class=""><br class="">
</div>
--<span class="Apple-converted-space"> </span><br class="">
<div class="x_gmail_signature">Cory Quammen<br class="">
Staff R&D Engineer<br class="">
Kitware, Inc.</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Powered
 by<span class="Apple-converted-space"> </span></span><a href="http://www.kitware.com/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">www.kitware.com</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Visit
 other Kitware open-source projects at<span class="Apple-converted-space"> </span></span><a href="http://www.kitware.com/opensource/opensource.html" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://www.kitware.com/opensource/opensource.html</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Please
 keep messages on-topic and check the VTK FAQ at:<span class="Apple-converted-space"> </span></span><a href="http://www.vtk.org/Wiki/VTK_FAQ" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://www.vtk.org/Wiki/VTK_FAQ</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Search
 the list archives at:<span class="Apple-converted-space"> </span></span><a href="http://markmail.org/search/?q=vtkusers" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://markmail.org/search/?q=vtkusers</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Follow
 this link to subscribe/unsubscribe:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://vtk.org/mailman/listinfo/vtkusers" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://vtk.org/mailman/listinfo/vtkusers</a></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>