<?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>@improved &#187; geometry</title>
	<atom:link href="http://improved.ro/blog/tag/geometry/feed/" rel="self" type="application/rss+xml" />
	<link>http://improved.ro/blog</link>
	<description></description>
	<lastBuildDate>Sun, 15 Aug 2010 15:35:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Grasshopper Boids/Agents</title>
		<link>http://improved.ro/blog/2009/10/grasshopper-boidsagents/</link>
		<comments>http://improved.ro/blog/2009/10/grasshopper-boidsagents/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 13:46:48 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[boids]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[dimitrie]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[rhino]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=446</guid>
		<description><![CDATA[Call them what you will, but there&#8217;s been a huge hype about them some time ago. Grasshopper&#8217;s scripting capabilites are now a huge super cool feature, especially if you&#8217;re coding in visual studio (c#) and then pasting the shit or making dlls. I did this some time ago when i suddenly realized that you can [...]]]></description>
			<content:encoded><![CDATA[<p>Call them what you will, but there&#8217;s been a huge hype about them some time ago.</p>
<p>Grasshopper&#8217;s scripting capabilites are now a huge super cool feature, especially if you&#8217;re coding in visual studio (c#) and then pasting the shit or making dlls. I did this some time ago when i suddenly realized that you can declare your own static variables inside scripting nodes (and these guys hold up their values during the updating procedure). And the vector math is already there too.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/R7cEvMYDn5M" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/R7cEvMYDn5M"></embed></object></p>
<p>This is an implementation based on <a href="http://www.red3d.com/cwr/index.html">Craig Reynolds</a>&#8216;s neurons, and a little bit on Daniel Shiffman&#8217;s processing example (which was updated and used some time ago for <a href="http://dimitrie.wordpress.com/circulation-study/">this</a>.</p>
<p>Now, if somebody will be nice and implement some collision detection&#8230;</p>
<p>PS: <span style="text-decoration: line-through;">I will upload the def. soonish (i have to clean it up a bit first).</span> <span style="text-decoration: line-through;">Ok i didn&#8217;t clean it up; here&#8217;s the <a href="http://dl.transfer.ro/boidsT-6caa78020.zip">link</a>.</span><span style="text-decoration: line-through;"> </span></p>
<p><span style="text-decoration: line-through;">Here&#8217;s a new 10 day link: <a href="http://dl.transfer.ro/boidsT-Transfer_RO-16Nov-ad56f6.zip">http://dl.transfer.ro/boidsT-Transfer_RO-16Nov-ad56f6.zip</a></span></p>
<p>Final link, stable and sound: <a href="http://improved.ro/Grasshopper/boidsTCAV.zip">http://improved.ro/Grasshopper/boidsTCAV.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2009/10/grasshopper-boidsagents/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Parametric Design Workshop HTWK Leipzig</title>
		<link>http://improved.ro/blog/2009/06/parametric-design-workshop-htwk-leipzig/</link>
		<comments>http://improved.ro/blog/2009/06/parametric-design-workshop-htwk-leipzig/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 17:50:55 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[workshops]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[arhitectura]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[parametric]]></category>
		<category><![CDATA[portfolio]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=416</guid>
		<description><![CDATA[I have been (re)invited to teach at the upcoming Parametric Design Workshop that&#8217;s going to take place at the HTWK Leipzig. The line-up includes: Ioulietta Zindrou, Maite Bravo, Verena Volger, Luis Fraguada (of Barcelona/IAAC fame); Yours truly Dimitrie (of Bucharest fame); Henning Rambow, Patrik Bedarf (Leipzig crew); I haven&#8217;t been that productive lately due to [...]]]></description>
			<content:encoded><![CDATA[<p>I have been (re)invited to teach at the upcoming Parametric Design Workshop that&#8217;s going to take place at the HTWK Leipzig.</p>
<p>The line-up includes:</p>
<p>Ioulietta Zindrou, Maite Bravo, Verena Volger, <a href="http://www.livearchitecture.net/">Luis Fraguada</a> (of Barcelona/IAAC fame);<br />
Yours truly Dimitrie (of Bucharest fame);<br />
Henning Rambow, <a href="http://www.a-ngine.com/">Patrik Bedarf</a> (Leipzig crew);</p>
<p><img class="alignnone size-full wp-image-418" title="090602_exhib_flyer_rgb_small" src="http://dimitrie.files.wordpress.com/2009/06/090602_exhib_flyer_rgb_small.jpg" alt="090602_exhib_flyer_rgb_small" width="499" height="706" /></p>
<p>I haven&#8217;t been that productive lately due to the <a href="http://dimitrie.wordpress.com/2009/04/03/htwk-leipzig-lecture-online/">many</a> <a href="http://dimitrie.wordpress.com/2009/05/21/rule-based-design-symposium-tu-berlin/">things</a> <a href="http://dimitrie.wordpress.com/2009/03/29/collective-housing-part-1-review/">happening</a> <a href="http://iaim.ro">all</a> the time, but hopefully I&#8217;ll be able to get back on the research track in summer.</p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2009/06/parametric-design-workshop-htwk-leipzig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rule Based Design Symposium TU Berlin</title>
		<link>http://improved.ro/blog/2009/05/rule-based-design-symposium-tu-berlin/</link>
		<comments>http://improved.ro/blog/2009/05/rule-based-design-symposium-tu-berlin/#comments</comments>
		<pubDate>Thu, 21 May 2009 05:58:26 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[workshops]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[arhitectura]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[computational architecture]]></category>
		<category><![CDATA[dimitrie]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[parametric]]></category>
		<category><![CDATA[parametric modelling]]></category>
		<category><![CDATA[theory]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=405</guid>
		<description><![CDATA[I&#8217;m on the speaker list at the Rule Based Design Symposium at the TU Berlin. Thank you Christophe for the invite! (27.05.09) The Symposium takes place at 18:00 in the Geodätenstand 6 O.G. TU Berlin Hauptgebäude, Straße des 17. Juni 135, 10623 Berlin. The Rule Based Design Symposium highlights contemporary academic and practice based research [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m on the speaker list at the <a href="http://fgbaurmann-rbd-symposium09.blogspot.com/">Rule Based Design Symposium</a> at the TU Berlin. Thank you Christophe for the invite!</p>
<blockquote><p>(27.05.09) The Symposium takes place at 18:00 in the Geodätenstand 6 O.G. TU Berlin Hauptgebäude, Straße des 17. Juni 135, 10623 Berlin.</p>
<p>The Rule Based Design Symposium highlights contemporary academic and practice based research employing CAD, CAM, Coding/Web tools in addressing &amp; communicating architectural design intents &amp; constraints. The research spectrum ranges from theory to the digital crafting of buildings and their components.</p></blockquote>
<p>Organized by <a href="http://barlieb.com">Christophe Barlieb</a>.</p>
<p><a href="http://dimitrie.files.wordpress.com/2009/05/rbd.jpg"><img class="alignnone size-full wp-image-406" title="RBD_A1" src="http://dimitrie.files.wordpress.com/2009/05/rbd.jpg" alt="RBD_A1" width="500" height="707" /></a></p>
<blockquote><p>Flexibility in thought and expression is vital to all creative fields. The power of a new generation of parametric and bespoke CAD tools lies in the ability to negotiate and communicating the design intent clearly. This streamlining saves time, materials while integrating architecture, engineering and fabrication over the course of the entire architectural design process.</p>
<p>The symposium features research works by young contemporary academics in the fields of mathematics, architecture and fabrication</p>
<p>Schedule:<br />
Time Speaker Affiliation Theme<br />
18:00 Gisela Baurmann TU Berlin RBD Opening Statements<br />
18:05 Kristoffer Josefsson TU Berlin Mathematics in Architecture<br />
18:25 Dimitrie Stefanescu U.Bucharest Scripting Architecture<br />
18:45 Christophe Barlieb TU Berlin Integration of Engineering &amp; Design<br />
19:05 Norbert Palz CITA Rapid Prototyping in Architecture<br />
19:25 Martin Tamke CITA Fabrication of Architecture<br />
19:45 Baurmann, Barlieb, Pfeiffer TU Berlin Discussion with Speakers &amp; Public<br />
20:00 PARTY</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2009/05/rule-based-design-symposium-tu-berlin/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>3d Voronoi in grasshopper</title>
		<link>http://improved.ro/blog/2009/05/3d-voronoi-in-grasshopper/</link>
		<comments>http://improved.ro/blog/2009/05/3d-voronoi-in-grasshopper/#comments</comments>
		<pubDate>Fri, 01 May 2009 20:48:24 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[arhitectura]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[computational architecture]]></category>
		<category><![CDATA[dimitrie]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[parametric]]></category>
		<category><![CDATA[parametric architecture]]></category>
		<category><![CDATA[parametric modelling]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[qhull]]></category>
		<category><![CDATA[rhino]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[voronoi]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=394</guid>
		<description><![CDATA[More as a scripting experiment, when i was mucking about trying to make the delaunay triangulation work in grasshopper i somehow found the wonderfully complex qhull library which i promptly set to push and pull to get it to work with grasshopper. As advised on their website, the best way to do it is to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dimitrie.files.wordpress.com/2009/05/header-copy.jpg"><img class="alignnone size-full wp-image-395" title="3d voronoi qhull dimitrie stefanescu" src="http://dimitrie.files.wordpress.com/2009/05/header-copy.jpg" alt="3d voronoi qhull dimitrie stefanescu" width="500" height="330" /></a></p>
<p>More as a scripting experiment, when i was mucking about trying to make the<a href="http://dimitrie.wordpress.com/2009/04/15/delaunay-triangulation-in-grasshopper/"> delaunay triangulation</a> work in grasshopper i somehow found the wonderfully complex <a href="http://qhull.org">qhull</a> library which i promptly set to push and pull to get it to work with grasshopper. As advised on their website, the best way to do it is to call it as an external program, which is exactly what i&#8217;ve done:  no files are written or read, no dos windows pop up, everything&#8217;s smooth.</p>
<p>Given that you don&#8217;t have many complex operations in grasshopper after the solution is generated, you&#8217;ll be able to handle <em>quite </em>an impressive amount of points (say 200 on my three-year old toplap) in real time. If you add the simple planarSrf operation, then say 60-70 and it gets sloppy.</p>
<p>What you&#8217;ll need to do to get things rolling:</p>
<p>0. <a href="http://improved.ro/Grasshopper/qhull.zip">Download the 3dvqhull definition and example file</a>, and remember not to use it for commercial purposes, share-alike whatever you do with it and take the time to give the proper credits:  <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/us/" target="_blank"><img class="alignnone" title="licence" src="http://i.creativecommons.org/l/by-nc-sa/3.0/us/80x15.png" alt="" width="80" height="15" /></a> <img src='http://improved.ro/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1. <a href="http://www.qhull.org/download/qhull-2003.1.zip">Download qhull</a>, and unzip it in a folder of your choice.</p>
<p>2. Get going and search for &#8220;System.dll&#8221;. What you&#8217;re interested in is the 2.0 version which you&#8217;ll usually find in here: &#8220;C:\WINDOWS\Microsoft.NET\Framework\v2.0.5[...]\&#8221;. If you can&#8217;t find it, I&#8217;m amazed grasshopper works for you. Anyway, you can find and install it from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&amp;displaylang=en" target="_blank">here</a>.</p>
<p>3. Add the newly found System.dll version 2.o as a referenced assembly of the qhull component in the definition file.<a href="http://dimitrie.files.wordpress.com/2009/05/refass.jpg"><img class="alignnone size-full wp-image-396" title="refass" src="http://dimitrie.files.wordpress.com/2009/05/refass.jpg" alt="refass" width="500" height="323" /></a></p>
<p>If it turns orange, it&#8217;s cool.</p>
<p>4. Write in the panel that is linked to the &#8220;path&#8221; input the full path to the qhull program <em>qvoronoi</em>. You don&#8217;t need to add the .exe extension, but you can do it if you feel confortable.</p>
<p><a href="http://dimitrie.files.wordpress.com/2009/05/pathh.jpg"><img class="alignnone size-full wp-image-397" title="pathh" src="http://dimitrie.files.wordpress.com/2009/05/pathh.jpg" alt="pathh" width="500" height="323" /></a></p>
<p>5. There&#8217;s just one more thing you should know: facets that contain the infinite vertex are omitted altogether, without remorse. So as to have as little facets tending towards <em>infinitum</em>, I always add the corners of the points bounding box to the input sites.</p>
<p><a href="http://dimitrie.files.wordpress.com/2009/05/bbx.jpg"><img class="alignnone size-full wp-image-398" title="bbx" src="http://dimitrie.files.wordpress.com/2009/05/bbx.jpg" alt="bbx" width="500" height="323" /></a></p>
<p>You can scale the bounding box in respect with its center, or you can just call the whole thing off &#8211; it&#8217;s your choice.</p>
<p>I think this just about covers everything. Take care and have fun.</p>
<h6><em>didi out.</em></h6>
<p><em>PS: Qhull does more than voronoi. So if you have the time to explore and test, please do &#8211; the package is very powerfull and it can be used for more than this.<br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2009/05/3d-voronoi-in-grasshopper/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Delaunay Triangulation in Grasshopper</title>
		<link>http://improved.ro/blog/2009/04/delaunay-triangulation-in-grasshopper/</link>
		<comments>http://improved.ro/blog/2009/04/delaunay-triangulation-in-grasshopper/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:53:21 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[algorithm]]></category>
		<category><![CDATA[candybar competition]]></category>
		<category><![CDATA[delaunay]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[nice]]></category>
		<category><![CDATA[parametric]]></category>
		<category><![CDATA[rhino]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=374</guid>
		<description><![CDATA[(right click save target as) Delaunay Triangulation in Rhino&#8216;s Grasshopper plugin. It&#8217;s pretty straightforward. Just don&#8217;t input in the magic node duplicating points or everything will start blowing up. First one to make it output the voronoi diagram wins a candybar.]]></description>
			<content:encoded><![CDATA[<p><a href="http://improved.ro/Grasshopper/delaunayFinal.ghx"><img class="alignnone size-full wp-image-376" title="picture1" src="http://dimitrie.files.wordpress.com/2009/04/picture1.jpg" alt="dimitrie stefanescu" width="500" height="374" /></a></p>
<p><a href="http://improved.ro/Grasshopper/delaunayFinal.zip">(right click save target as)</a></p>
<p><a href="http://en.wikipedia.org/wiki/Delaunay_triangulation">Delaunay Triangulation</a> in <a href="http://www.rhino3d.com" target="_blank">Rhino</a>&#8216;s <a href="http://en.wiki.mcneel.com/default.aspx/McNeel/ExplicitHistoryPluginMainPage.html" target="_blank">Grasshopper</a> plugin.</p>
<p>It&#8217;s pretty straightforward. Just don&#8217;t input in the magic node duplicating points or everything will start blowing up.</p>
<p><a href="http://dimitrie.files.wordpress.com/2009/04/def2.jpg"><img class="alignnone size-full wp-image-385" title="def2" src="http://dimitrie.files.wordpress.com/2009/04/def2.jpg" alt="def2" width="500" height="250" /></a></p>
<p>First one to make it output the voronoi diagram wins a <a href="http://images.google.ro/images?q=candybar&amp;oe=utf-8&amp;rls=org.mozilla:en-US:official&amp;client=firefox-a&amp;um=1&amp;ie=UTF-8&amp;sa=N&amp;hl=ro&amp;tab=wi">candybar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2009/04/delaunay-triangulation-in-grasshopper/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Grasshopper Multiple Attractors</title>
		<link>http://improved.ro/blog/2008/11/grasshopper-multiple-attractors/</link>
		<comments>http://improved.ro/blog/2008/11/grasshopper-multiple-attractors/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 08:42:52 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[attractors]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[multiple attractors]]></category>
		<category><![CDATA[rhino]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=240</guid>
		<description><![CDATA[UPDATED HERE! Multiple Attractors working in Rhino&#8217;s Grasshopper, all handled in a nice VBScript Component. Works with quite anything (initially deisgned for surfaces). Download the definition file. Have fun with it. I still didn&#8217;t have the time to put this to a proper, nicely rendered use and it&#8217;s been almost a month now since it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dimitrie.wordpress.com/2009/02/16/multiple-attractors-revisited/"><span style="color:#ff0000;"><strong>UPDATED HERE!</strong></span></a></p>
<p>Multiple Attractors working in <a href="http://rhino3d.com" target="_blank">Rhino&#8217;s</a> <a href="http://groups.google.com/group/grasshopper3d" target="_blank">Grasshopper</a>, all handled in a nice VBScript Component.</p>
<p>Works with quite anything (initially deisgned for surfaces).</p>
<p><img class="alignnone size-full wp-image-241" title="multatt" src="http://dimitrie.files.wordpress.com/2008/11/multatt.jpg" alt="" width="500" height="365" /></p>
<p><a href="http://dimitrie.files.wordpress.com/2008/11/multatt2.jpg"><img class="alignnone size-full wp-image-242" title="multatt2" src="http://dimitrie.files.wordpress.com/2008/11/multatt2.jpg" alt="" width="500" height="375" /></a></p>
<h4><span style="color:#ff0000;"><a href="http://improved.ro/Grasshopper/multipleAtt.ghx" target="_blank">Download the definition file.</a></span></h4>
<p>Have fun with it. I still didn&#8217;t have the time to put this to a proper, nicely rendered use and it&#8217;s been almost a month now since it&#8217;s finished. Quite fustrating.</p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2008/11/grasshopper-multiple-attractors/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>SPRscrpts is out now</title>
		<link>http://improved.ro/blog/2008/01/sprscrpts-is-out-now/</link>
		<comments>http://improved.ro/blog/2008/01/sprscrpts-is-out-now/#comments</comments>
		<pubDate>Sun, 27 Jan 2008 12:43:12 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[architecture]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[elegance]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rhino]]></category>
		<category><![CDATA[rhinoscript]]></category>
		<category><![CDATA[super shape]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/?p=100</guid>
		<description><![CDATA[SPRscrpts for Rhino is out now. Grab it while it&#8217;s fresh (and buggy). Sorry for the huge delay.]]></description>
			<content:encoded><![CDATA[<p><a href="http://dimitrie.wordpress.com/sprscrpts/" title="supa scripts"><img src="http://dimitrie.files.wordpress.com/2008/01/header.jpg" alt="header.jpg" /></a></p>
<h1><a href="http://dimitrie.wordpress.com/sprscrpts/">SPRscrpts </a></h1>
<p>for <a href="http://rhino3d.com" target="_blank">Rhino</a> is out now. Grab it while it&#8217;s fresh (and buggy).</p>
<p>Sorry for the huge delay.</p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2008/01/sprscrpts-is-out-now/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SPRscrpts</title>
		<link>http://improved.ro/blog/2008/01/sprscrpts/</link>
		<comments>http://improved.ro/blog/2008/01/sprscrpts/#comments</comments>
		<pubDate>Fri, 04 Jan 2008 22:57:17 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[architecture]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[rhino]]></category>
		<category><![CDATA[rhinoscript]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[spherical harmonics]]></category>
		<category><![CDATA[supershape]]></category>
		<category><![CDATA[supertori]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/2008/01/04/sprscrpts/</guid>
		<description><![CDATA[RELEASED! SPRscrpts is coming (with documentation). It brings to your Rhino 4 SuperShapes, SphericalHarmonics, SuperTori and Shells. Below is an illustration of what it can do (that&#8217;s the shell script at work).]]></description>
			<content:encoded><![CDATA[<h2><a href="http://dimitrie.wordpress.com/sprscrpts">RELEASED!</a></h2>
<p>SPRscrpts is coming (with documentation). It brings to your Rhino 4 SuperShapes, SphericalHarmonics, SuperTori and Shells. Below is an illustration of what it can do (that&#8217;s the shell script at work).</p>
<p><a href="http://dimitrie.files.wordpress.com/2008/01/sprscrptsteaser.jpg" title="sprscrptsteaser.jpg"><img src="http://dimitrie.files.wordpress.com/2008/01/sprscrptsteaser.jpg" alt="sprscrptsteaser.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2008/01/sprscrpts/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Spherical Harmonics</title>
		<link>http://improved.ro/blog/2007/12/spherical-harmonics/</link>
		<comments>http://improved.ro/blog/2007/12/spherical-harmonics/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 15:53:42 +0000</pubDate>
		<dc:creator>Didi</dc:creator>
				<category><![CDATA[architecture]]></category>
		<category><![CDATA[computational]]></category>
		<category><![CDATA[geometry]]></category>
		<category><![CDATA[rhinoscript]]></category>

		<guid isPermaLink="false">http://dimitrie.wordpress.com/2007/12/25/spherical-harmonics/</guid>
		<description><![CDATA[Wanna be more inventive than Liebeskind, Ghery or Zaha? Well, you easily can. The following will generate quite a few possible shapes, some of which will surely look better than this. Option Explicit &#8216;Script written by didi stefanescu &#8216;Released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 &#8216;http://creativecommons.org/licenses/by/3.0/legalcode Dim arrVertices Dim arrFaces &#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221; &#8221;CHANGE THE RESOLUTION/DETAIL [...]]]></description>
			<content:encoded><![CDATA[<p>Wanna be more inventive than Liebeskind, Ghery or Zaha?</p>
<p>Well, you easily can.</p>
<p><a href="http://dimitrie.files.wordpress.com/2007/12/sphharmonics.jpg" title="sphharmonics.jpg"><img src="http://dimitrie.files.wordpress.com/2007/12/sphharmonics.jpg" alt="sphharmonics.jpg" /></a></p>
<p>The following will generate quite a few possible shapes, some of which will surely look better than <a href="http://visualbasher.blogspot.com/2007/12/arata-ca-o-cizma-libeskind-reinventat.html" target="_blank">this</a>. <code></code></p>
<p><i>Option Explicit<br />
&#8216;Script written by didi stefanescu<br />
&#8216;Released under the Creative Commons Attribution-Noncommercial-Share Alike 3.0<br />
&#8216;http://creativecommons.org/licenses/by/3.0/legalcode</i></p>
<p><i>Dim arrVertices<br />
Dim arrFaces</i></p>
<p><i>&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;<br />
&#8221;CHANGE THE RESOLUTION/DETAIL LEVEL BELOW    &#8221;<br />
&#8221;BUT BEAR IN MIND THAT 128 IS QUITE HIGH     &#8221;<br />
&#8221;SO IF YOU&#8217;RE ON A SLOWER COMPUTER YOU WOULD &#8221;<br />
&#8221;LIKE TO USE SOMETHING LIKE res = 64         &#8221;<br />
&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;</i></p>
<p><i>Dim res : res = 128<br />
Dim PI : PI = Rhino.Pi()<br />
Dim du, dv</i></p>
<p><i>Dim m0, m1, m2, m3, m4, m5, m6, m7<br />
Dim colors : colors = True<br />
Dim MESH</i></p>
<p><i>Call Main()</i></p>
<p><i>Sub Main()</i></p>
<p><i>du = PI * 2 / res<br />
dv = PI / res</i></p>
<p><i>Call initParams()<br />
Rhino.EnableRedraw(False)</i></p>
<p><i>arrVertices = createVertices()<br />
arrFaces = createFaces()</i></p>
<p><i>MESH = Rhino.AddMesh(arrVertices,arrFaces)</i></p>
<p><i>If(colors) Then<br />
Call ColorMe(MESH)<br />
End If</i></p>
<p><i>Rhino.EnableRedraw(True)<br />
End Sub</i></p>
<p><i>&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;<br />
&#8221;CHANGE THESE PARAMETERS TO WHATEVER YOU LIKE&#8221;<br />
&#8221;AS LONG AS THEY STAY INTEGERS               &#8221;<br />
&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;&#8221;</i></p>
<p><i>Function initParams()<br />
m0 = 4 : m1 = 1 : m2 = 5 : m3 = 2<br />
m4 = 2 : m5 = 1 : m6 = 4 : m7 = 5<br />
End Function</i></p>
<p><i>Function createVertices()<br />
Dim u, v, i, j<br />
Dim k : k = -1<br />
Dim arrVert()</i></p>
<p><i>For    i = 0 To res Step 1<br />
u = i * du<br />
For j = 0 To res Step 1<br />
k = k + 1<br />
v = j * dv<br />
ReDim Preserve arrVert(k)<br />
arrVert(k) = sphHarmonics(u, v)<br />
Next<br />
Next<br />
createVertices = arrVert<br />
End Function</i></p>
<p><i>Function createFaces()<br />
Dim i, j<br />
Dim k : k = -1<br />
Dim base<br />
Dim arrF()<br />
For i = 0 To res &#8211; 1 Step 1<br />
For j = 0 To res &#8211; 1 Step 1<br />
k = k + 1</i></p>
<p><i>ReDim Preserve ArrF(k)<br />
base = i * (res + 1) + j<br />
arrF(k) = Array(base, base + 1, base + res + 2, base + res + 1)<br />
Next<br />
Next</i></p>
<p><i>createFaces = arrF</i></p>
<p><i>End Function</i></p>
<p><i>Function sphHarmonics(ByVal th, ByVal phi)</i></p>
<p><i>Dim r, x, y, z</i></p>
<p><i>r = sin(m0 * phi) ^ m1 + cos(m2 * th) ^ m3 + sin(m4 * phi) ^ m5 + cos(m6 * th) ^ m7</i></p>
<p><i>x = r * sin(phi) * cos(th)<br />
y = r * cos(phi)<br />
z = r * sin(phi) * sin(th)</i></p>
<p><i>sphHarmonics = Array(x, y, z)<br />
End Function</i></p>
<p><i>Function colorMe(ByVal obj2Color)<br />
Dim vert : vert = Rhino.MeshVertices(obj2Color)<br />
Dim face : face = Rhino.MeshFaceVertices(obj2Color)<br />
Dim color() : ReDim color(Ubound(vert))</i></p>
<p><i>Dim i, tempV</i></p>
<p><i>For i = 0 To Ubound(vert) Step 1<br />
tempV = vert(i)<br />
color(i) = RGB(abs(tempV(0)*200), abs(tempV(1)*200), abs(tempV(2)*100))<br />
Next</i></p>
<p><i>Call Rhino.AddMesh(vert, face, , , color)<br />
Call Rhino.DeleteObject(obj2Color)<br />
End Function<br />
</i></p>
]]></content:encoded>
			<wfw:commentRss>http://improved.ro/blog/2007/12/spherical-harmonics/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

