<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jan 8, 2016 at 5:55 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>When a vtkPlaneCollection is used for clipping, the clipping is done once for each plane (so if there are six planes, then the data is clipped six times).  In general, you can always combine implicit functions in this way: clip the data with each function (keeping both the "inside" part and the "outside" part), and then use a boolean to combine the data pieces back together again.  By properly merging points when combining the pieces back together, it's possible to do this seamlessly even for "or" operations.</div></div></blockquote><div><br></div><div>Hmm, I don't think I did a good job of describing this, so I'll try again, using just two implicit functions to keep it simple:</div><div>1) clip the data with the 1st implicit function, keep both the inside and outside parts.</div><div>2) clip each output with the 2nd implicit function, again keep the inside and outside</div><div>3) at this point, there will be 4 data sets (some may be empty), and the boolean operation can be used to decide which ones to keep and which to throw away</div><div>4) the "kept" data sets can be appended to put them back together again</div><div>5) line segments that had been cut and then put back together can be re-combined to make the result seamless</div><div><br></div><div> - David</div></div></div></div>