<?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>p i n u p s p a c e &#187; ecotect</title>
	<atom:link href="http://www.tedngai.net/tag/ecotect/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tedngai.net</link>
	<description></description>
	<lastBuildDate>Wed, 13 Jan 2010 23:07:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ecotect mesh data 2 rhino 2</title>
		<link>http://www.tedngai.net/experiments/ecotect-mesh.html</link>
		<comments>http://www.tedngai.net/experiments/ecotect-mesh.html#comments</comments>
		<pubDate>Sun, 11 May 2008 16:46:13 +0000</pubDate>
		<dc:creator>ted</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[ecotect]]></category>
		<category><![CDATA[rhinoscript]]></category>

		<guid isPermaLink="false">http://www.tedngai.net/blog/?p=41</guid>
		<description><![CDATA[import ecotect mesh data into Rhino and store them as mesh vertex color.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-254" title="mesh2Rhino2-bubble3" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-bubble3.jpg" alt="mesh2Rhino2-bubble3" /></p>
<p>This tutorial runs you through the process of exporting your rhino geometry into ecotect and then bring the analysis data back into rhino. For this tutorial, you&#8217;ll need this following <a href="http://www.tedngai.net/files/ReadEcotectOutput-MeshAnalysis-VC.rvb">Rhinoscript</a>.</p>
<p><strong>IMPORTANT NOTE :</strong> This script only works with <strong>ordered mesh faces</strong>. See the following 3 examples and download this <a href="http://www.tedngai.net/images/ecoRhino/LabelMeshFaces.rvb">script </a>to see the ordering of your mesh face.</p>
<p><img class="alignnone size-full wp-image-255" title="mesh2Rhino2-04" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-04.jpg" alt="mesh2Rhino2-04" /></p>
<p><strong>example 1:</strong> The mesh faces are ordered here. The numbers runs sequentially from 0 to n with interuption. This is what we want in this tutorial.</p>
<p><img class="alignnone size-full wp-image-256" title="mesh2Rhino2-07" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-07.jpg" alt="mesh2Rhino2-07" /></p>
<p><strong>example 2:</strong> This is a joined mesh. The script will not work with this type of ordering although the faces are ordered within each mesh. You&#8217;ll still get results it won&#8217;t be accurate.</p>
<p><img class="alignnone size-full wp-image-257" title="mesh2Rhino2-05" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-05.jpg" alt="mesh2Rhino2-05" width="600" height="433" /></p>
<p><strong>example 3: </strong>This is another type of joined mesh, the face ordering are even more localized. Once again, this type of meshes will not work with this script, it&#8217;ll be for another tutorial.</p>
<p><img class="alignnone size-full wp-image-258" title="mesh2Rhino2-01" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-01.jpg" alt="mesh2Rhino2-01" width="600" height="390" /></p>
<p>1. Ok, let&#8217;s start the tutorial. Start with your nurbs surface. Once again, if it is a polysurface, make sure to explode them first.</p>
<p><img class="alignnone size-full wp-image-259" title="mesh2Rhino2-02" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-02.jpg" alt="mesh2Rhino2-02" width="600" height="427" /></p>
<p>2. Create a quad mesh with these settings. You can adjust the Min Edge Lengh and Maximum Edge Length as you see fit. Again, if you have multiple surfaces, create the mesh as seperate surfaces first, then join them as mesh. Export as .3ds.</p>
<p><img class="alignnone size-full wp-image-260" title="mesh2Rhino2-03" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-03.jpg" alt="mesh2Rhino2-03" width="600" height="410" /></p>
<p>3. Run your favorite ecotect analysis. Export the analysis data as .txt file. Import into Excel and delete the top 6 lines of headers. Read <a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" href="http://www.tedngai.net/ecoMesh2Rhi.html">here</a> for detailed instruction.</p>
<p><img class="alignnone size-full wp-image-261" title="mesh2Rhino2-06" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-06.gif" alt="mesh2Rhino2-06" width="600" height="414" /></p>
<p>4. Run the script provided above. It&#8217;ll ask you for a mesh and an excel file containing the data. Once the script is finished, you can see the color of the mesh has changed. The script basically uses the mesh&#8217;s RGB value to store external data.</p>
<p><img class="alignnone size-full wp-image-262" title="mesh2Rhino2-bubble4" src="http://www.tedngai.net/wp-content/uploads/2008/08/mesh2Rhino2-bubble4.jpg" alt="mesh2Rhino2-bubble4" width="600" height="450" /></p>
<p>5. To recall those RGB values and populate them with different types of mesh componenets, please refer to the other tutorial here.</p>
<p><strong>Technical Notes:</strong>Since ecotect triangulates all mesh input and doubling the number is mesh faces, this script simply skips every other number in the data file to match the quad face in rhino, therefore 50% of the data from ecotect is omitted. If a higher accuracy is required, the script can be easily modified to average out the numbers for the 2 triangulated surface for the quad. In addition, ecotect stores it&#8217;s analysis data in the mesh&#8217;s face color. But since rhinoscript does not have a MeshFaceColor function, MeshVertexColor is used instead. This is what causes the discrepency and the reason why more complex mesh objects doesn&#8217;t work with this script.</p>
<p><a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none initial;" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" alt="Creative Commons License" /> </a>This work is licensed under a <a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tedngai.net/experiments/ecotect-mesh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecotect mesh data 2 rhino</title>
		<link>http://www.tedngai.net/experiments/ecotect-mesh-2.html</link>
		<comments>http://www.tedngai.net/experiments/ecotect-mesh-2.html#comments</comments>
		<pubDate>Sat, 10 May 2008 16:46:44 +0000</pubDate>
		<dc:creator>ted</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[ecotect]]></category>
		<category><![CDATA[rhinoscript]]></category>

		<guid isPermaLink="false">http://www.tedngai.net/blog/?p=44</guid>
		<description><![CDATA[import ecotect mesh data into Rhino and display them as text dots on mesh face.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-238" title="paraTiles" src="http://www.tedngai.net/wp-content/uploads/2008/05/paraTiles.jpg" alt="paraTiles" width="600" height="441" /></p>
<p>This tutorial runs you through the process of exporting your rhino geometry into ecotect and then bring the analysis data back into rhino. For this tutorial, you&#8217;ll need this <a href="http://www.tedngai.net/files/ReadEcotectOutput-MeshAnalysis-01.rvb">Rhinoscript</a>, <a href="http://www.tedngai.net/files/meshDataEXP1.txt">sample data</a>, and <a href="http://www.tedngai.net/files/simp.3ds">sample geometry</a>.</p>
<p><img class="alignnone size-full wp-image-239" title="ecoMesh-01" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-01.jpg" alt="ecoMesh-01" width="600" height="380" /></p>
<p>1. Start with your nurbs surface. If it is a polysurface, explode them first, meshing them as polysurface will create triangulated mesh along the seams and you want to prevent that.</p>
<p><img class="alignnone size-full wp-image-240" title="ecoMesh-02" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-02.gif" alt="ecoMesh-02" width="359" height="310" /></p>
<p>2. Create a quad mesh with these settings. You can adjust the Min Edge Lengh and Maximum Edge Length as you see fit. Again, if you have multiple surfaces, create the mesh as seperate surfaces first, then join them as mesh.</p>
<p><img class="alignnone size-full wp-image-241" title="ecoMesh-03" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-03.jpg" alt="ecoMesh-03" width="600" height="380" /></p>
<p>3. Once again, make sure there aren&#8217;t any triangulated mesh, then save it out as .3ds</p>
<p><img class="alignnone size-full wp-image-242" title="ecoMesh-04" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-04.jpg" alt="ecoMesh-04" width="600" height="442" /></p>
<p>4. Import into ecotect and run your favorite analysis. One important note, if your surface is meant to be your exterior envelop, make sure the face normal is facing outward. You can check that by going to Display&gt;Surface Normals or Ctrl+F9. In case they&#8217;re facing inward, invert them by first selecting all the faces, Modify&gt;Reverse Normals or Ctrl-R.</p>
<p><img class="alignnone size-full wp-image-243" title="ecoMesh-05" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-05.gif" alt="ecoMesh-05" width="423" height="334" /></p>
<p>5. Click on the Object Attribute Values &gt; Properties to access the data</p>
<p><img class="alignnone size-full wp-image-244" title="ecoMesh-06" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-06.gif" alt="ecoMesh-06" width="420" height="214" /></p>
<p>6. Export the data to your favorite location. Make sure you type in .txt at the end of the file name so you won&#8217;t be looking for it afterward.</p>
<p><img class="alignnone size-full wp-image-245" title="ecoMesh-07" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-07.gif" alt="ecoMesh-07" width="600" height="538" /></p>
<p>7. This is what the data file looks like, and we&#8217;ll need to do a little editing.</p>
<p><img class="alignnone size-full wp-image-246" title="ecoMesh-08" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-08.gif" alt="ecoMesh-08" width="575" height="414" /></p>
<p>8. Open Excel and open the data file you just saved, and import with these settings.</p>
<p><img class="alignnone size-full wp-image-247" title="ecoMesh-09" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-09.gif" alt="ecoMesh-09" width="575" height="414" /></p>
<p><img class="alignnone size-full wp-image-248" title="ecoMesh-10" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-10.gif" alt="ecoMesh-10" width="600" height="462" /></p>
<p>9. Once it&#8217;s in Excel, we&#8217;ll need to get rid of the headers.</p>
<p><img class="alignnone size-full wp-image-249" title="ecoMesh-11" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-11.gif" alt="ecoMesh-11" width="600" height="462" /></p>
<p>10. Click and drag your mouse on the Row numbers on the left, right click and select Delete.</p>
<p><img class="alignnone size-full wp-image-251" title="ecoMesh-12" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoMesh-12.gif" alt="ecoMesh-12" width="600" height="462" /></p>
<p>11. Your data should begin at Row 1 as shown. Save the data as .xls file.</p>
<p><img class="alignnone size-full wp-image-252" title="ecoRHINO_pin1" src="http://www.tedngai.net/wp-content/uploads/2008/05/ecoRHINO_pin1.jpg" alt="ecoRHINO_pin1" width="600" height="352" /></p>
<p>12. Now go back to rhino, make sure your geometry is still on your screen and run the script. The script will ask for 2 things, your mesh and the location of your data. The script will place an annotation dot on each face showing the data from the ecotect analysis. Of course this is for display only, but with a little knowledge in scripting, you can use the data to drive different aspects of your geometry, possibility is endless!<br />
<strong>Technical Notes:</strong><br />
Since ecotect triangulates all mesh input and doubling the number is mesh faces, this script simply skips every other number in the data file to match the quad face in rhino, therefore 50% of the data from ecotect is omitted. If a higher accuracy is required, the script can be easily modified to average out the numbers for the 2 triangulated surface for the quad.</p>
<p><a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none initial;" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" alt="Creative Commons License" /> </a>This work is licensed under a <a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tedngai.net/experiments/ecotect-mesh-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ecotect analysis grid 2 rhino</title>
		<link>http://www.tedngai.net/experiments/ecotect-analysis.html</link>
		<comments>http://www.tedngai.net/experiments/ecotect-analysis.html#comments</comments>
		<pubDate>Thu, 10 Apr 2008 16:55:11 +0000</pubDate>
		<dc:creator>ted</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[ecotect]]></category>
		<category><![CDATA[grasshopper]]></category>
		<category><![CDATA[rhinoscript]]></category>

		<guid isPermaLink="false">http://www.tedngai.net/blog/?p=49</guid>
		<description><![CDATA[import ecotect analysis grid data into Rhino as heightfield surface, then through grasshopper, data is interpreted into geometry.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-222" title="AG2RHI-00" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-00.gif" alt="AG2RHI-00" width="600" height="433" /></p>
<p>This tutorial runs you through the process of exporting your rhino geometry into ecotect and then bring the analysis grid data back into rhino. The method shown is a work around &#8211; numeric data is imported into rhino as a heightfield surface, then Grasshopper is used to read the height, which is then used to control the dimension of other geometries. For this tutorial, you&#8217;ll need this <a href="http://www.tedngai.net/files/ReadEcotectOutput-AnalysisGrid-01.rvb">Rhinoscript</a>, <a href="http://www.tedngai.net/files/ecoAG2Cir.wrm">Grasshopper definition</a>, and <a href="http://www.tedngai.net/files/analGridData.txt">Sample Data</a></p>
<p><img class="alignnone size-full wp-image-223" title="AG2RHI-01" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-01.gif" alt="AG2RHI-01" width="600" height="376" /></p>
<p>1. Start with your geometry. Export them into ecotect through .3ds format.</p>
<p><img class="alignnone size-full wp-image-224" title="AG2RHI-02" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-02.gif" alt="AG2RHI-02" width="600" height="476" /></p>
<p>2. Run analysis with analysis grid. In this case, the analysis grid is fitted to the extent of the model with a 60&#215;60 grid.</p>
<p><img class="alignnone size-full wp-image-225" title="AG2RHI-03" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-03.gif" alt="AG2RHI-03" width="436" height="707" /></p>
<p>3. In the Analysis Grid panel, click on Grid Management to access the data export panel.</p>
<p><img class="alignnone size-full wp-image-226" title="AG2RHI-04" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-04.gif" alt="AG2RHI-04" width="448" height="257" /></p>
<p>4. Export the data as .txt format.</p>
<p><img class="alignnone size-full wp-image-227" title="AG2RHI-05" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-05.gif" alt="AG2RHI-05" width="600" height="393" /></p>
<p>5. The data file will have 5 lines of headers. Delete them so the data will begin at the first line.</p>
<p><img class="alignnone size-full wp-image-228" title="AG2RHI-06" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-06.gif" alt="AG2RHI-06" width="600" height="393" /></p>
<p>6. The data file should look like this.</p>
<p><img class="alignnone size-full wp-image-229" title="AG2RHI-07" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-07.gif" alt="AG2RHI-07" width="600" height="376" /></p>
<p>7. Run the rhinoscript to get the data into the 3D window, a &#8220;inverted&#8221; heightfield surface is created. The dimension of the surface is 10 * no. of rows by 10 * no. of columns x 50. This dimension is entirely arbitrary and can be changed via the script.</p>
<p><img class="alignnone size-full wp-image-230" title="AG2RHI-08" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-08.gif" alt="AG2RHI-08" width="600" height="376" /></p>
<p>8. Create a boundary similar to the boundary of the analysis grid in ecotect.</p>
<p><img class="alignnone size-full wp-image-231" title="AG2RHI-09" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-09.gif" alt="AG2RHI-09" width="600" height="376" /></p>
<p>9. Scale the surface to fit the boundary.</p>
<p><img class="alignnone size-full wp-image-232" title="AG2RHI-10" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-10.gif" alt="AG2RHI-10" width="600" height="376" /></p>
<p>10. Move the surface vertically below the boundary</p>
<p><img class="alignnone size-full wp-image-233" title="AG2RHI-11" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-11.gif" alt="AG2RHI-11" width="600" height="492" /></p>
<p>11. Open the Grasshopper file and assign the surface to the data surface node. Assign the number of columns and rows to U and V, these are the sampling points. these points are then projected onto a plane at z=0, and the distance between these points are measured and used to determine the radius of the circles.</p>
<p><img class="alignnone size-full wp-image-234" title="AG2RHI-12" src="http://www.tedngai.net/wp-content/uploads/2008/04/AG2RHI-12.gif" alt="AG2RHI-12" width="600" height="376" /></p>
<p><a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/"><img style="font-weight: inherit; font-style: inherit; font-size: 12px; font-family: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none initial;" src="http://i.creativecommons.org/l/by-sa/3.0/us/88x31.png" alt="Creative Commons License" /> </a>This work is licensed under a <a style="font-weight: bold; font-style: inherit; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; vertical-align: baseline; color: #000000; text-decoration: none; padding: 0px; margin: 0px; border: 0px initial initial;" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative Commons Attribution-Share Alike 3.0 United States License</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tedngai.net/experiments/ecotect-analysis.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
