<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Polygon%3Asimplify</id>
	<title>Polygon:simplify - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Polygon%3Asimplify"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Polygon:simplify&amp;action=history"/>
	<updated>2026-11-17T11:51:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Polygon:simplify&amp;diff=25537&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2015.03.22&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; Clipper&lt;br/&gt;  === Description === Simplifies the polygon by removing redundant vertices and resolving...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Polygon:simplify&amp;diff=25537&amp;oldid=prev"/>
		<updated>2026-11-14T18:24:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2015.03.22&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/Clipper&quot; title=&quot;Clipper&quot;&gt;Clipper&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Simplifies the polygon by removing redundant vertices and resolving...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2015.03.22&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[Clipper]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Simplifies the polygon by removing redundant vertices and resolving self-intersections, using the given fill rule.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
(table) = Polygon:simplify(fillType)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;fillType&amp;#039;&amp;#039;&amp;#039;: (number, optional, default = Polygon.FILL_EVEN_ODD) one of Polygon.FILL_EVEN_ODD, FILL_NON_ZERO, FILL_POSITIVE, FILL_NEGATIVE&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Return values ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Returns&amp;#039;&amp;#039;&amp;#039; (table) array of Polygon objects (1 indexed). The result may contain several polygons when the input is self-intersecting&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local res = poly:simplify(Polygon.FILL_EVEN_ODD)&lt;br /&gt;
for i = 1, #res do&lt;br /&gt;
	print(&amp;quot;simplified polygon&amp;quot;, i, &amp;quot;area&amp;quot;, res[i]:getArea())&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Clipper}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>