<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>code-spot &#187; Java</title>
	<atom:link href="http://code-spot.co.za/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://code-spot.co.za</link>
	<description>a programming blog</description>
	<lastBuildDate>Wed, 25 Aug 2010 10:59:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Poisson Disk Sampling Example Code</title>
		<link>http://code-spot.co.za/2010/04/07/poisson-disk-sampling-example-code/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=poisson-disk-sampling-example-code</link>
		<comments>http://code-spot.co.za/2010/04/07/poisson-disk-sampling-example-code/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 08:57:27 +0000</pubDate>
		<dc:creator>herman.tulleken</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Snippet]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[poisson disk]]></category>
		<category><![CDATA[procedural texture]]></category>
		<category><![CDATA[sampling]]></category>

		<guid isPermaLink="false">http://code-spot.co.za/?p=806</guid>
		<description><![CDATA[I decided to put the Poisson disk sampling code here for download since the site that hosted it is down. The code accompanies the tutorial on Dev.Mag: Poisson Disk Sampling.
Download



poisson_disk_java.zip (184 KB)
 poisson_disk_python.zip (912 KB)
 poisson_disk_ruby.zip (59 KB)





Related posts:A simple texture algorithm – faster code and more results
A Simple Procedural Texture Algorithm &#8211; More Results [...]


Related posts:<ol><li><a href='http://code-spot.co.za/2008/12/15/a-simple-texture-algorithm-faster-code-and-more-results/' rel='bookmark' title='Permanent Link: A simple texture algorithm – faster code and more results'>A simple texture algorithm – faster code and more results</a></li>
<li><a href='http://code-spot.co.za/2008/11/14/a-simple-procedural-texture-algorithm-more-results-and-code/' rel='bookmark' title='Permanent Link: A Simple Procedural Texture Algorithm &#8211; More Results and Code'>A Simple Procedural Texture Algorithm &#8211; More Results and Code</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-817" title="poisson" src="http://code-spot.co.za/blog/wp-content/uploads/2010/04/poisson3.png" alt="poisson" width="142" height="142" />I decided to put the Poisson disk sampling code here for download since the site that hosted it is down. The code accompanies the tutorial on Dev.Mag: <a href="http://www.devmag.org.za/articles/55-POISSON-DISK-SAMPLING/">Poisson Disk Sampling</a>.</p>
<h2>Download</h2>
<table border="0">
<tbody>
<tr>
<td><a href="http://www.code-spot.co.za/downloads/poisson/poisson_disk_java.zip">poisson_disk_java.zip</a> (184 KB)<br />
<a href="http://www.code-spot.co.za/downloads/poisson/poisson_disk_python.zip"> poisson_disk_python.zip</a> (912 KB)<br />
<a href="http://www.code-spot.co.za/downloads/poisson/poisson_disk_ruby.zip"> poisson_disk_ruby.zip</a> (59 KB)</td>
</tr>
</tbody>
</table>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcode-spot.co.za%2F2010%2F04%2F07%2Fpoisson-disk-sampling-example-code%2F&amp;linkname=Poisson%20Disk%20Sampling%20Example%20Code"><img src="http://code-spot.co.za/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://code-spot.co.za/2008/12/15/a-simple-texture-algorithm-faster-code-and-more-results/' rel='bookmark' title='Permanent Link: A simple texture algorithm – faster code and more results'>A simple texture algorithm – faster code and more results</a></li>
<li><a href='http://code-spot.co.za/2008/11/14/a-simple-procedural-texture-algorithm-more-results-and-code/' rel='bookmark' title='Permanent Link: A Simple Procedural Texture Algorithm &#8211; More Results and Code'>A Simple Procedural Texture Algorithm &#8211; More Results and Code</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://code-spot.co.za/2010/04/07/poisson-disk-sampling-example-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quadtrees</title>
		<link>http://code-spot.co.za/2008/10/06/quadtrees/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=quadtrees</link>
		<comments>http://code-spot.co.za/2008/10/06/quadtrees/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 22:52:02 +0000</pubDate>
		<dc:creator>herman.tulleken</dc:creator>
				<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[2D]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[computer graphics]]></category>
		<category><![CDATA[Dev.Mag]]></category>
		<category><![CDATA[image partitioning]]></category>
		<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[quadtree]]></category>
		<category><![CDATA[quadtrees]]></category>
		<category><![CDATA[spatial partitioning]]></category>

		<guid isPermaLink="false">http://code-spot.co.za/?p=146</guid>
		<description><![CDATA[The quadtree is an important 2D data structure and forms the core of many spatial algorithms, including compression, collision detection, and stitching algorithms. Below you can download general purpose quadtree implementations in Java and Python.
The code accompanies the Quadtrees article in Dev.Mag Issue 26. The tutorial explains how the implement a quadtree that can be [...]


Related posts:<ol><li><a href='http://code-spot.co.za/2008/11/15/quadtrees-2/' rel='bookmark' title='Permanent Link: Quadtrees'>Quadtrees</a></li>
<li><a href='http://code-spot.co.za/2010/06/15/region-quadtrees-in-c/' rel='bookmark' title='Permanent Link: Region Quadtrees in C++'>Region Quadtrees in C++</a></li>
<li><a href='http://code-spot.co.za/2008/10/29/force-field-editor-v10/' rel='bookmark' title='Permanent Link: Force Field Editor v1.0'>Force Field Editor v1.0</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Quadtree">quadtree</a> is an important 2D data structure and forms the core of many spatial algorithms, including compression, collision detection, and stitching algorithms. Below you can download general purpose quadtree implementations in Java and Python.</p>
<p>The code accompanies the Quadtrees article in <a href="http://devmag.org.za/uploads/DevMag_Issue26.zip">Dev.Mag Issue 26</a>. The tutorial explains how the implement a quadtree that can be use to store 2D data efficiently, lists what considerations there are in real-world applications, and gives some debugging tips.</p>
<h3>Channels Compressed Simultaneously</h3>
<table border="0" cellspacing="0" cellpadding="2" width="478">
<tbody>
<tr>
<td width="295" valign="top"><img src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar.png" alt="bar" width="240" height="240" /></td>
<td width="181" valign="top"><img src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar-c.png" alt="bar_c" width="240" height="240" /></td>
</tr>
<tr>
<td width="307" valign="top">The original image (by <a href="http://www.flickr.com/photos/smcgee/">smcgee</a>).</td>
<td width="186" valign="top">The image after being loaded into a quadtree.</td>
</tr>
</tbody>
</table>
<p><span id="more-146"></span></p>
<h3>Channels Compressed Separately</h3>
<table border="0" cellspacing="0" cellpadding="2" width="491">
<tbody>
<tr>
<td width="249" valign="top"><img src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar-c-0.png" alt="bar_c_0" width="240" height="240" /></td>
<td width="240" valign="top"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar-c-1.png" border="0" alt="bar_c_1" width="240" height="240" /></td>
</tr>
<tr>
<td width="249" valign="top">Red channel compressed.</td>
<td width="240" valign="top">Green channel compressed.</td>
</tr>
<tr>
<td width="249" valign="top"><img src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar-c-2.png" alt="bar_c_2" width="240" height="240" /></td>
<td width="240" valign="top"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://code-spot.co.za/blog/wp-content/uploads/2008/10/bar-d.png" border="0" alt="bar_d" width="240" height="240" /></td>
</tr>
<tr>
<td width="249" valign="top">Blue channel compressed.</td>
<td width="240" valign="top">Compressed channels combined.</td>
</tr>
</tbody>
</table>
<h2></h2>
<h2>Downloads</h2>
<h3>Java Implementation</h3>
<p><a href="http://code-spot.co.za/downloads/quadtrees/quadtree_java_src.zip">quadtree_java_src.zip (25 KB)</a></p>
<h3>Python Implementation</h3>
<p><span>Download from: <a href="http://code-spot.co.za/python-image-code/">http://code-spot.co.za/python-image-code/</a>.<br />
</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fcode-spot.co.za%2F2008%2F10%2F06%2Fquadtrees%2F&amp;linkname=Quadtrees"><img src="http://code-spot.co.za/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>

<p>Related posts:<ol><li><a href='http://code-spot.co.za/2008/11/15/quadtrees-2/' rel='bookmark' title='Permanent Link: Quadtrees'>Quadtrees</a></li>
<li><a href='http://code-spot.co.za/2010/06/15/region-quadtrees-in-c/' rel='bookmark' title='Permanent Link: Region Quadtrees in C++'>Region Quadtrees in C++</a></li>
<li><a href='http://code-spot.co.za/2008/10/29/force-field-editor-v10/' rel='bookmark' title='Permanent Link: Force Field Editor v1.0'>Force Field Editor v1.0</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://code-spot.co.za/2008/10/06/quadtrees/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
