<?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>quilime</title>
	<atom:link href="http://quilime.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://quilime.com/log</link>
	<description></description>
	<lastBuildDate>Thu, 18 Jun 2009 05:40:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>spherical intersection mel</title>
		<link>http://quilime.com/log/spherical-intersection-mel/</link>
		<comments>http://quilime.com/log/spherical-intersection-mel/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 01:45:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[function]]></category>

		<guid isPermaLink="false">http://quilime.com/log/?p=403</guid>
		<description><![CDATA[Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis. Removing print()&#8217;s increases script speed enormously.


mel source


global proc int setSphereMeshIntersect(string $sphere, string $mesh, float $radius)
{
	int $iter = 100;

	float $limit[3] = {0.0, 2.5, 0.0};
	float $startPos[3] = {0.0, 0.0, 0.0};
	float $curPos[3] = {0.0, 0.0, 0.0};
	$curPos[0] = [...]]]></description>
			<content:encoded><![CDATA[<p>
Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis. Removing print()&#8217;s increases script speed enormously.
</p>
<h2>
mel source<br />
</h2>
<pre class="code mel">
global proc int setSphereMeshIntersect(string $sphere, string $mesh, float $radius)
{
	int $iter = 100;

	float $limit[3] = {0.0, 2.5, 0.0};
	float $startPos[3] = {0.0, 0.0, 0.0};
	float $curPos[3] = {0.0, 0.0, 0.0};
	$curPos[0] = getAttr ($sphere + ".translateX");
	$curPos[2] = getAttr ($sphere + ".translateZ");

	$cpomNode = "cpom";

	for ($i = 0; $i <= $iter; $i++)
	{
		$shape = `listRelatives -shapes $mesh`;

		createNode -n $cpomNode closestPointOnMesh;
        	connectAttr -f ($shape[0] + ".outMesh") ($cpomNode + ".inMesh");
        	setAttr ($cpomNode + ".inPosition") $curPos[0] $curPos[1] $curPos[2];
		$cpom = `getAttr ($cpomNode + ".position")`;
		delete $cpomNode;

        	if ( pointDist($curPos, $cpom) <= $radius) {
			return 1;
        	}

        	$curPos[1] = $startPos[1] + ($limit[1]) / $iter * $i;
		setAttr ($sphere + ".translateY") $curPos[1];
	}
	return 0;
}

global proc float pointDist(float $p1[], float $p2[])
{
	return sqrt(
		(($p1[0] - $p2[0]) * ($p1[0] - $p2[0])) +
		(($p1[1] - $p2[1]) * ($p1[1] - $p2[1])) +
		(($p1[2] - $p2[2]) * ($p1[2] - $p2[2])));
}
</pre>
<p><br/></p>
<h2>result</h2>
<p><img src="http://media.quilime.com/files/images/sphere_intersect.png"></p>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/spherical-intersection-mel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>05/28/09 magnetism</title>
		<link>http://quilime.com/log/0528709-magnetism/</link>
		<comments>http://quilime.com/log/0528709-magnetism/#comments</comments>
		<pubDate>Sun, 31 May 2009 03:03:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://quilime.com/log/?p=392</guid>
		<description><![CDATA[Pronounce spike in Earth&#8217;s magnetic field on May 27, 09. Jupiter, Neptune, and Chiron were in alignment that day as well.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://quilime.com/aggregate/agg/goemag.usgs.gov_5-29-2009.png"><br />
Pronounce spike in Earth&#8217;s magnetic field on May 27, 09. Jupiter, Neptune, and Chiron were in alignment that day as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/0528709-magnetism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mekstension</title>
		<link>http://quilime.com/log/mekstension/</link>
		<comments>http://quilime.com/log/mekstension/#comments</comments>
		<pubDate>Fri, 29 May 2009 03:21:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[visual]]></category>

		<guid isPermaLink="false">http://quilime.com/log/?p=362</guid>
		<description><![CDATA[Graphics software coded to animate visuals displayed on an LCD screen under layer of practical stop animation for a conference opener. The software has to the ability to add/remove any number of shapes, change rotation, blend modes, flow speed (they animate), number of shape sides, segments, foreground/background/stroke colors, alpha, stroke weight, camera focal length, depth, [...]]]></description>
			<content:encoded><![CDATA[<p>Graphics software coded to animate visuals displayed on an LCD screen under layer of practical stop animation for a conference opener. The software has to the ability to add/remove any number of shapes, change rotation, blend modes, flow speed (they animate), number of shape sides, segments, foreground/background/stroke colors, alpha, stroke weight, camera focal length, depth, and other visual controls.<br />
<br/></p>
<p><img src="http://quilime.com/content/mekstension/mek_cat_02.jpg" /><br/></p>
<p><br/><br/></p>
<p><a href="http://media.quilime.com/?p=projects/mek/">documentation, download</a><br />
<a href="http://svn.quilime.com/mekstension/trunk/java/Mekstension/">source (processing)</a></p>
<h3>key commands</h3>
<ul>
<li><strong>TAB</strong> : toggle console</li>
<li><strong>/</strong> : add shape</li>
<li><strong>SPACE</strong> : toggle current shape</li>
<li><strong>q w e r t y u i o p</strong> : global edit modes (use mouse drag to edit)</li>
<li><strong>a s d f g h j k l</strong> : object edit modes (use mouse drag to edit)</li>
<li><strong>= +</strong> : add / subtract shape sides</li>
<li><strong>\</strong> : Toggle OpenGL Blending</li>
<li><strong>[ ]</strong> : cycle through OpenGL Blend Modes</li>
</ul>
<p><br/><br/></p>
<h2>links</h2>
<p><a href="http://creativity-online.com/work/view?seed=c41af0da">link 1</a><br />
<a href="http://creativity-online.com/?action=news:article&#038;newsId=136914&#038;sectionId=cat:_creativity_and_technology">link 2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/mekstension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1400 curves</title>
		<link>http://quilime.com/log/1400-curves/</link>
		<comments>http://quilime.com/log/1400-curves/#comments</comments>
		<pubDate>Tue, 05 May 2009 07:37:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[process]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[curves]]></category>
		<category><![CDATA[maya]]></category>

		<guid isPermaLink="false">http://quilime.com/?p=341</guid>
		<description><![CDATA[animation curves of 1400 simultaneous servo movements for project prototype



]]></description>
			<content:encoded><![CDATA[<p>animation curves of 1400 simultaneous servo movements for project prototype<br />
<a href="/media/life_in_maya.png"><br />
<img src="/media/life_in_maya.png" style="width:900px;" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/1400-curves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>archive</title>
		<link>http://quilime.com/log/archive/</link>
		<comments>http://quilime.com/log/archive/#comments</comments>
		<pubDate>Fri, 01 May 2009 09:47:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://quilime.com/?p=329</guid>
		<description><![CDATA[view archived work at http://gabrieldunne.com/archive
]]></description>
			<content:encoded><![CDATA[<p>view archived work at <a href="http://gabrieldunne.com/archive">http://gabrieldunne.com/archive</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/archive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Makefiles</title>
		<link>http://quilime.com/log/makefiles/</link>
		<comments>http://quilime.com/log/makefiles/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 05:33:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[note]]></category>

		<guid isPermaLink="false">http://quilime.com/?p=307</guid>
		<description><![CDATA[note: each line in a MakeFile is executed in a unique shell. Commands that are relative must be on the same line.

do:
    cd ../
    ls -al

is not equal to:

do:
    cd ../; ls -al

]]></description>
			<content:encoded><![CDATA[<p>note: each line in a MakeFile is executed in a unique shell. Commands that are relative must be on the same line.</p>
<pre>
do:
    cd ../
    ls -al
</pre>
<p>is not equal to:</p>
<pre>
do:
    cd ../; ls -al
</pre>
]]></content:encoded>
			<wfw:commentRss>http://quilime.com/log/makefiles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
