<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — The polygons do not appear to be filled in CalcAreaExample.]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1760&amp;type=atom" />
	<updated>2024-09-23T22:47:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1760</id>
		<entry>
			<title type="html"><![CDATA[Re: The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9654#p9654" />
			<content type="html"><![CDATA[<p>Why would the fill appear after these changes?<br />Please read post #2.<br /><a href="https://forum.infinity-code.com/viewtopic.php?pid=7407#p7407">https://forum.infinity-code.com/viewtop … 7407#p7407</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-09-23T22:47:23Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9654#p9654</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9651#p9651" />
			<content type="html"><![CDATA[<p>Still the polygons do not appear to be filled in CalcAreaExample.</p>]]></content>
			<author>
				<name><![CDATA[A1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=3164</uri>
			</author>
			<updated>2024-09-23T01:38:13Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9651#p9651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9650#p9650" />
			<content type="html"><![CDATA[<p>I have changed it like this and can place and clear the lines at least:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; private void OnMouseUp()<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Get the geographical coordinates of the cursor.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vector2 cursorCoords = control.GetCoords();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Create a new marker at the specified coordinates.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnlineMapsMarker marker = markerManager.Create(cursorCoords, markerTexture, &quot;Marker &quot; + (markerManager.Count + 1));</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Save marker and coordinates.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markerPositions.Add(cursorCoords);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; markers.Add(marker);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Mark that markers changed.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; changed = true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; private void Update()<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Input.GetKey(KeyCode.LeftShift) &amp;&amp; Input.GetMouseButtonUp(0))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OnMouseUp();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (Input.GetKey(KeyCode.LeftShift) &amp;&amp; Input.GetMouseButtonUp(1))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clear();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />...</p>]]></content>
			<author>
				<name><![CDATA[A1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=3164</uri>
			</author>
			<updated>2024-09-23T01:34:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9650#p9650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7409#p7409" />
			<content type="html"><![CDATA[<p>I understand. Thank you for your support.</p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-04-25T00:28:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7409#p7409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7407#p7407" />
			<content type="html"><![CDATA[<p>Hello.</p><p>A quote from the documentation:<br /></p><div class="quotebox"><blockquote><p><strong>Drawing API - polygon has no fill in «Tileset»</strong><br />This problem is related to the very difficult polygon triangulation. Most likely, this problem will never be<br />solved.<br />How to work around the problem:<br />1. OnlineMapsDrawingElement.checkMapBoundaries = false.<br />This mode works correctly only if the lines do not intersect.<br />2. Use «Draw to Texture» mode.<br />3. (Not recommended) Use Drawing as Overlay.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-04-24T16:41:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7407#p7407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The polygons do not appear to be filled in CalcAreaExample.]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7406#p7406" />
			<content type="html"><![CDATA[<p>Hello.</p><p>&quot;OnlineMapsDrawingPoly&quot;, it looks like the area is filled with 0.3 alpha channel, but in fact it is not filled with any color.<br />Is there any other way to fill the area?<br /><span class="postimg"><img src="https://s.kota2.net/1619281262.jpg" alt="PunBB bbcode test" /></span></p>]]></content>
			<author>
				<name><![CDATA[kmasaki]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1542</uri>
			</author>
			<updated>2021-04-24T16:28:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7406#p7406</id>
		</entry>
</feed>
