找回密码
 注册
搜索
查看: 67045|回复: 54

[GH插件] Rabbit尝试L-system之Branching Structure

 火 [复制链接]
发表于 2011-3-29 23:49:44 | 显示全部楼层 |阅读模式
本帖最后由 gaoyi2006 于 2011-3-30 00:24 编辑

以下是个人对Tutorial的学习心得,抛砖引玉,不对之处请大家指正。

L-system中的A是算式中用到的代数符号;
PR是运算法则;
n值的计算法则是单元重复2的1次方+2的2次方+2的3次
方+...+2的n次方;

运算法则中的
“F”表示主干,+F表示向右生长,-F表示向左生长;
“X”表示分支,加入X后可用“[-X]+X”生成类似V字
形;
只用到F则在A端输入“F”;
同时用到F和X则在A端输入“X”;

Turtle的L表示树的总高度;
A表示树枝的旋转角度;
P值设定XY坐标系;

以下为各树的代码
F
F=F[+F]F[-F]F

F
F=FF-[-F+F+F]+[+F-F-F]

X
X=F[+X]F[-X]+X
F=FF

X
X=F[+X][-X]FX
F=FF

X
X=F-[[X]+X]+F[+FX]-X
F=FF

1.PNG
2.PNG
3.PNG
4.PNG
5.PNG

注:附件中的GHX经过本人修改重写,删掉类型重复的树,而且在top视图中可以很方便的查看。
为了方便大家, 特附上Rabbit0.2的插件. 目前Rabbit0.2只支持0.6, 不支持0.8.

树1的单元

树1的单元

树2的单元

树2的单元

树3的单元

树3的单元

树4的单元

树4的单元

树5的单元

树5的单元

L-system.ghx

225.43 KB, 阅读权限: 10, 下载次数: 135, 下载积分: 照度 -1 lux

售价: 2 lux照度  [记录]  [购买]

L-system运算法则-Branches.txt

520 Bytes, 阅读权限: 10, 下载次数: 71, 下载积分: 照度 -1 lux

售价: 1 lux照度  [记录]  [购买]

Rabbit.gha

80.5 KB, 阅读权限: 10, 下载次数: 133, 下载积分: 照度 -1 lux

评分

参与人数 2强度 +3 照度 +33 收起 理由
zxl900113 + 3
f(x) + 3 + 30 很有启发

查看全部评分

发表于 2011-3-30 07:40:06 | 显示全部楼层
努力学习中。。。。。。
回复

使用道具 举报

发表于 2011-3-30 11:16:55 | 显示全部楼层
努力赚照度
回复

使用道具 举报

发表于 2011-3-30 12:33:20 | 显示全部楼层
谢谢楼主分享~~
回复

使用道具 举报

发表于 2011-3-30 15:32:45 | 显示全部楼层
这个有没有具体工程的应用啊!
回复

使用道具 举报

发表于 2011-3-30 16:26:38 | 显示全部楼层
rabbit帅气~
回复

使用道具 举报

发表于 2011-3-30 16:58:55 | 显示全部楼层
这个好像很神奇的样子。
回复

使用道具 举报

发表于 2011-3-30 23:30:22 | 显示全部楼层
楼主的rabbit 是什么版本的? 好像只有060059 然后很久没更新看吧?
回复

使用道具 举报

 楼主| 发表于 2011-3-30 23:48:30 | 显示全部楼层
8# Raymark
对的,只能用06版的
回复

使用道具 举报

发表于 2011-3-31 07:00:36 | 显示全部楼层
很不错呀!!
回复

使用道具 举报

发表于 2011-3-31 07:57:44 | 显示全部楼层
努力学习,努力赚照度。。
回复

使用道具 举报

发表于 2011-4-1 15:01:33 | 显示全部楼层
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Archive name="Root">
  <!--Grasshopper archive-->
  <!--Grasshopper and GH_IO.dll are copyrighted by Robert McNeel & Associates-->
  <!--Archive generated by GH_IO.dll file utility library {0.1.0001}-->
  <!--Archive generated on Friday, 01 April 2011 01:59:51-->
  <items count="2">
    <item name="ArchiveVersion" type_name="gh_version" type_code="80">
      <Major>0</Major>
      <Minor>1</Minor>
      <Revision>1</Revision>
    </item>
    <item name="Created" type_name="gh_date" type_code="8">634372199918524814</item>
  </items>
  <chunks count="1">
    <chunk name="Clipboard">
      <items count="1">
        <item name="plugin_version" type_name="gh_version" type_code="80">
          <Major>0</Major>
          <Minor>8</Minor>
          <Revision>7</Revision>
        </item>
      </items>
      <chunks count="3">
        <chunk name="DefinitionHeader">
          <items count="6">
            <item name="HandleRhinoEvents" type_name="gh_bool" type_code="1">true</item>
            <item name="HandleHopperEvents" type_name="gh_bool" type_code="1">true</item>
            <item name="DocumentID" type_name="gh_guid" type_code="9">29e9cc53-3a6e-4ea9-886d-2eaa6bd67d7e</item>
            <item name="PreviewNormal" type_name="gh_drawing_color" type_code="36">
              <ARGB>100;150;0;0</ARGB>
            </item>
            <item name="PreviewSelected" type_name="gh_drawing_color" type_code="36">
              <ARGB>100;0;120;0</ARGB>
            </item>
            <item name="Preview" type_name="gh_string" type_code="10">Shaded</item>
          </items>
        </chunk>
        <chunk name="DefinitionProperties">
          <items count="4">
            <item name="Name" type_name="gh_string" type_code="10"></item>
            <item name="Description" type_name="gh_string" type_code="10"></item>
            <item name="Copyright" type_name="gh_string" type_code="10"></item>
            <item name="Date" type_name="gh_date" type_code="8">634372196215415640</item>
          </items>
          <chunks count="3">
            <chunk name="Revisions">
              <items count="1">
                <item name="RevisionCount" type_name="gh_int32" type_code="3">0</item>
              </items>
            </chunk>
            <chunk name="Projection">
              <items count="2">
                <item name="Target" type_name="gh_drawing_point" type_code="30">
                  <X>-106</X>
                  <Y>-24</Y>
                </item>
                <item name="Zoom" type_name="gh_single" type_code="5">1.953125</item>
              </items>
            </chunk>
            <chunk name="Views">
              <items count="1">
                <item name="ViewCount" type_name="gh_int32" type_code="3">0</item>
              </items>
            </chunk>
          </chunks>
        </chunk>
        <chunk name="DefinitionObjects">
          <items count="1">
            <item name="ObjectCount" type_name="gh_int32" type_code="3">1</item>
          </items>
          <chunks count="1">
            <chunk name="Object" index="0">
              <items count="2">
                <item name="GUID" type_name="gh_guid" type_code="9">57da07bd-ecab-415d-9d86-af36d7073abc</item>
                <item name="Name" type_name="gh_string" type_code="10">Number Slider</item>
              </items>
              <chunks count="1">
                <chunk name="Container">
                  <items count="8">
                    <item name="Name" type_name="gh_string" type_code="10">Number Slider</item>
                    <item name="NickName" type_name="gh_string" type_code="10">Slider</item>
                    <item name="Description" type_name="gh_string" type_code="10">Numeric slider for single values</item>
                    <item name="InstanceGuid" type_name="gh_guid" type_code="9">8bbdda83-ccc0-493f-b45d-819af6b31641</item>
                    <item name="Preview" type_name="gh_bool" type_code="1">false</item>
                    <item name="Mutable" type_name="gh_bool" type_code="1">true</item>
                    <item name="Enabled" type_name="gh_bool" type_code="1">true</item>
                    <item name="SourceCount" type_name="gh_int32" type_code="3">0</item>
                  </items>
                  <chunks count="2">
                    <chunk name="Attributes">
                      <items count="4">
                        <item name="BBox" type_name="gh_drawing_rectanglef" type_code="35">
                          <X>104</X>
                          <Y>103</Y>
                          <W>141</W>
                          <H>20</H>
                        </item>
                        <item name="ObjectBox" type_name="gh_drawing_rectanglef" type_code="35">
                          <X>104</X>
                          <Y>103</Y>
                          <W>41</W>
                          <H>20</H>
                        </item>
                        <item name="Pivot" type_name="gh_drawing_pointf" type_code="31">
                          <X>104.7269</X>
                          <Y>103.705</Y>
                        </item>
                        <item name="Selected" type_name="gh_bool" type_code="1">true</item>
                      </items>
                    </chunk>
                    <chunk name="Slider">
                      <items count="5">
                        <item name="Value" type_name="gh_double" type_code="6">3</item>
                        <item name="Min" type_name="gh_double" type_code="6">0</item>
                        <item name="Max" type_name="gh_double" type_code="6">10</item>
                        <item name="Digits" type_name="gh_int32" type_code="3">3</item>
                        <item name="Interval" type_name="gh_int32" type_code="3">1</item>
                      </items>
                    </chunk>
                  </chunks>
                </chunk>
              </chunks>
            </chunk>
          </chunks>
        </chunk>
      </chunks>
    </chunk>
  </chunks>
</Archive>z
回复

使用道具 举报

发表于 2011-4-1 15:01:49 | 显示全部楼层
努力学习,努力赚照度。。
回复

使用道具 举报

发表于 2011-4-1 15:02:05 | 显示全部楼层
努力学习,努力赚照度。。
回复

使用道具 举报

发表于 2011-4-1 15:02:57 | 显示全部楼层
努力学习,努力赚照度。。
回复

使用道具 举报

发表于 2011-4-4 13:20:51 | 显示全部楼层
学习了,支持个
回复

使用道具 举报

发表于 2011-4-12 19:00:38 | 显示全部楼层
努力赚照度{:3_51:}
回复

使用道具 举报

发表于 2011-4-14 02:51:22 | 显示全部楼层
看到那些码吓到了啊,努力学习
回复

使用道具 举报

发表于 2011-4-19 19:59:48 | 显示全部楼层
L-shape很深奥啊
回复

使用道具 举报

发表于 2011-5-19 11:49:06 | 显示全部楼层
多谢分享。。。。。。。。。。。。
回复

使用道具 举报

NCFZ微信公众号

手机版|小黑屋|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 ) 辽公网安备21021102000973号

GMT+8, 2026-11-23 19:23 , Processed in 0.084380 second(s), 30 queries , Gzip On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表