赞助商
赞助入驻
Grasshopper Loop

Grasshopper LoopGH Loop

This is a simple loop tool for Grasshopper with 2 components, "Begin" and "End". The loop is realized with a static member in C#.

更新日期:2015年11月30日分类标签: 语言: 平台:

0 人已下载 手机查看

此插件为官方原版未经修改,如需了解对应#rhino插件#的原版信息,可在页面底部点击跳转官方网站进行查看下载。

哪里可以下载到rhino插件
当然是访问建筑曲奇导航的Rhino插件板块,超全rhino 插件下载请访问: rhino插件大全


 

这是一个简单的Grasshopper草蜢插件工具,包含两个组件,"开始"和"结束"。循环是通过C#中的静态成员实现的。

使用起来非常简单,查看下面的链接你很快就会明白。点击这里

这个工具可以处理Grasshopper中任何数据类型的树,一棵树中允许有不同类型的数据。但是,在一个GH窗口中只能有一对"开始"和"结束"组件,这意味着你只能创建一个循环。

其机制是"结束"组件会将输入数据树的值写入内存中的静态成员,而"开始"组件会在定时器触发时输出树。

安装方法:

  1. 在Grasshopper中,选择文件 > 特殊文件夹 > 组件文件夹。将gha文件保存在那里。
  2. 右键点击文件 > 属性 > 确保没有"阻止"文本
  3. 重启Rhino和Grasshopper

这个工具是开源的,我对C#还比较陌生。核心源代码发布在这里。请留言评论。包含三个类,"开始"、"结束"和另一个包含静态成员的类。

public class Class1
{
static GH_Structure<IGH_Goo> tree;
public GH_Structure<IGH_Goo> Tree
{
set { tree = new GH_Structure<IGH_Goo>(value, false); }
get { return tree; }
}
}

public class StaticLoopComponent: GH_Component
{
// 核心代码省略
protected override void SolveInstance(IGH_DataAccess DA)
{
DA.SetDataTree(0, new Class1().Tree);
}
// 核心代码省略
}

public class EndComponent : GH_Component
{
// 核心代码省略
protected override void SolveInstance(IGH_DataAccess DA)
{
GH_Structure<IGH_Goo> tree;
DA.GetDataTree(0, out tree);
Class1 cla = new Class1();
cla.Tree = tree;
}
// 核心代码省略
}

- Mark Kou

相关资源

RedPanda (Pre-Alpha
BIM Equivalent for Architectural Design using Bamboo as a Primary Material
Flexibility
Flexibilityplugindevelopmentfor SubD Mesh Nurbs , Curve,...
Text Encrypt/Decrypt
Text Encrypt/Decrypt with password (Plugin PI
LogoViewports
Add a logo to your viewports
PhylloMachine
PhylloMachine is a set of scripts/UserObject for Grasshopper to model plants using some properties of phyllotaxis. The basic idea is that
Slideshow
This is the first release of the Slideshow plug-in for Grasshopper.   While preparing the tutorial for Anemone plugin I found the

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...
登录后可以自定义书签并同步收藏内容哦~
登录 获取素材