<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 209: ctDifference producing unexpected points</title><link href="https://sourceforge.net/p/polyclipping/bugs/209/" rel="alternate"/><link href="https://sourceforge.net/p/polyclipping/bugs/209/feed.atom" rel="self"/><id>https://sourceforge.net/p/polyclipping/bugs/209/</id><updated>2021-08-17T20:28:57.424000Z</updated><subtitle>Recent changes to 209: ctDifference producing unexpected points</subtitle><entry><title>#209 ctDifference producing unexpected points</title><link href="https://sourceforge.net/p/polyclipping/bugs/209/?limit=25#b482" rel="alternate"/><published>2021-08-17T20:28:57.424000Z</published><updated>2021-08-17T20:28:57.424000Z</updated><author><name>Alex Jeffery</name><uri>https://sourceforge.net/u/alex210993/</uri></author><id>https://sourceforge.net0e38f6933887cae43f796499f59b9a110ed21520</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry this is actually my bug, I forgot to sign up before creating *&lt;em&gt;facepalm&lt;/em&gt;*&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ctDifference producing unexpected points</title><link href="https://sourceforge.net/p/polyclipping/bugs/209/" rel="alternate"/><published>2021-08-17T20:25:21.523000Z</published><updated>2021-08-17T20:25:21.523000Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net63df41bc33abf29c60019e356d71d69ede09a027</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;So I'm attempting to use clipper to do some polygon intersection for a 2d level editor I'm working on, however when trying to split rooms that cross over into their respective 'sectors' I'm seeing some weird results come back from an execution of Clipper, below is an image of the the shapes I'm creating:&lt;br/&gt;
&lt;img alt="shape" rel="nofollow" src="https://i.imgur.com/FuS3Jl0.png"/&gt;&lt;/p&gt;
&lt;p&gt;I've drawn the 5 sided polygon, and the horizontal 'rectangle', and I'd expect the editor to split this into 5 separate polygons, I'd be achieving this by doing a ctIntersection on the 2 shapes to get the section that overlaps, then I use this to execute individually ctDifference on the 2 original shapes against the intersection, but the result I'm getting against the rectangle is as below:&lt;br/&gt;
&lt;img alt="result" rel="nofollow" src="https://i.imgur.com/yCW89gf.png"/&gt;&lt;/p&gt;
&lt;p&gt;I'd expect to get 2 results from the ctDifference between the intersect &amp;amp; the rectangle, one of each external polygon, however I get 1 result with 9 elements&lt;/p&gt;
&lt;p&gt;I've attached a minimal reproducible example, coords in the test match precicesly what is being rendered in the images above, let me know if you need anymore info&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>