<?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>Giulio Piacentino &#187; Luis Fraguada</title>
	<atom:link href="http://www.giuliopiacentino.com/by-keyword/luis-fraguada/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.giuliopiacentino.com</link>
	<description>An archive of personal and collaborative projects and experiments, certainly developed with an eye on digital architecture.</description>
	<lastBuildDate>Tue, 17 Jan 2012 17:28:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Barcelona workshop rhinoScript</title>
		<link>http://www.giuliopiacentino.com/barcelona-workshop-rhinoscript/</link>
		<comments>http://www.giuliopiacentino.com/barcelona-workshop-rhinoscript/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 15:45:46 +0000</pubDate>
		<dc:creator>Giulio Piacentino</dc:creator>
				<category><![CDATA[RhinoScripts]]></category>
		<category><![CDATA[Stories]]></category>
		<category><![CDATA[Workshops]]></category>
		<category><![CDATA[Barcelona]]></category>
		<category><![CDATA[Live Architecture Network]]></category>
		<category><![CDATA[Luis Fraguada]]></category>
		<category><![CDATA[Rhinoceros]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://www.giuliopiacentino.com/?p=427</guid>
		<description><![CDATA[I am just back to Delft after having visited Barcelona to participate as a Rhino educator to McNeel&#8217;s RhinoScript workshop. Luis Fraguada of Live Architecture Network was the instructor and showed us some useful techniques for geometry construction and data visualization. I developed one of the script of the class a bit further and came [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-427"></span><!--noteaser--></p>
<p><a href="/barcelona-workshop-rhinoscript/"><img class="alignnone size-medium wp-image-428" title="RhinoScript workshop Barcelona dna" src="/wp-giulio/wp-content/uploads/rhinoscript-workshop-dna-480x344.jpg" alt="RhinoScript workshop Barcelona dna" width="480" height="344" /></a></p>
<p>I am just back to Delft after having visited Barcelona to participate as a Rhino educator to McNeel&#8217;s <a href="http://blog.rhino3d.com/2008/10/rhinoscript-training-at-mcneel-europe.html">RhinoScript workshop</a>. Luis Fraguada of <a href="http://www.livearchitecture.net/?page_id=133">Live Architecture Network</a> was the instructor and showed us some useful techniques for geometry construction and data visualization. I developed one of the script of the class a bit further and came up with this DNA helix.</p>
<p>Download the code: <img src="/wp-giulio/wp-content/uploads/rhino.jpg" alt="Rhino VBScript file" title="Rhino VBScript file" width="16" height="16" class="alignnone size-full wp-image-821" /> <a href="/static/dna.rvb" title="Rhino VBScript file">dna.rvb</a>.</p>
<div class="code">Option Explicit<br />
Rem Script written by Giulio<br />
Rem Script version lunes, 10 de noviembre de 2008 21:00:00</p>
<p>Call Main()</p>
<p>Sub Main()</p>
<p>Dim arrLfStart(),arrRxStart(), arrLfEnd(), arrRxEnd(), arrLinks(), i<br />
Dim links: links = 36</p>
<p>ReDim arrLfStart(links), arrRxStart(links), arrLfEnd(links), arrRxEnd(links), arrLinks(links)</p>
<p>Dim angleDist:angleDist = Rhino.PI / 10</p>
<p>For i=0 To links</p>
<p>arrLfStart(i) = Array(Cos(i-angleDist)*3 + Cos(i*12)*12,	 Sin(i-angleDist)*3 + Sin(i*12)*12,	i*5)<br />
arrRxStart(i) = Array(Cos(i+angleDist)*3 + Cos(i*12)*12,	 Sin(i+angleDist)*3 + Sin(i*12)*12,	i*5)<br />
arrLfEnd(i) = Array(-Cos(i-angleDist)*3 + Cos(i*12)*12,		-Sin(i-angleDist)*3 + Sin(i*12)*12,	i*5)<br />
arrRxEnd(i) = Array(-Cos(i+angleDist)*3 + Cos(i*12)*12,		-Sin(i+angleDist)*3 + Sin(i*12)*12,	i*5)</p>
<p>Call Rhino.AddCylinder(IntraPts(arrLfStart(i), arrRxStart(i), 0.5), IntraPts(arrLfEnd(i), arrRxEnd(i), 0.5), 0.5)</p>
<p>Next</p>
<p>Call Rhino.AddLoftSrf(Array(Rhino.AddInterpCurve(arrLfStart), Rhino.AddInterpCurve(arrRxStart)))<br />
Call Rhino.AddLoftSrf(Array(Rhino.AddInterpCurve(arrLfEnd), Rhino.AddInterpCurve(arrRxEnd)))</p>
<p>End Sub</p>
<p>Function IntraPts(byRef p1, byRef p2,byRef n)<br />
Rem This function gives the first point out if you use n=0,<br />
Rem with n=1 it gives the second point.<br />
IntraPts = Array( p1(0)*(1.0-n)+p2(0)*n, p1(1)*(1.0-n)+p2(1)*n,  p1(2)*(1.0-n)+p2(2)*n  )<br />
End Function</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.giuliopiacentino.com/barcelona-workshop-rhinoscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

