×

工业设计互动平台

手机短信,快捷登录

微信登录,快人一步

QQ登录

只需一步,快速开始

Grasshopper 0.9.0076部分新电池解析

发布于 2014-8-27 2 点赞 8 评论 18943 浏览

Grasshopper 0.9.0076
2014-08-27

感谢各位关注。新加入成员可以查看之前的消息记录。由于用户基础不一,我们要由浅入深,先讲基础操作,再讲工程实例,再到深入GHA开发,以及各种复杂算法。期间可能会穿插着来讲,可以直接回复问题,我们会尽量去解答。您觉得有用,请将此微信号分享给能用得着的朋友。(本微信号文章如有转载请注明作者和出处,如用于商业用途请联系作者)
- - -------------------------------------------------------------

正在寻求国内开发GHA的同道中人,有在搞这方面代码的朋友请联系我,谢谢
QQ772671249
- - -------------------------------------------------------------
gh现版本问世出现--
其中有很多给力的新电池:
给定一个点和一条Nurbs曲线判定出点在右边还是左边,还是在曲线上。这是一个很古老的问题,gh0.9.0076终于给出了解答
本以为是利用后台方程实现的,但是查看代码原来是通过将点closest到线上,拿此点处切向量与此点与原始点之间的向量叉乘,来看与坐标平面的z向的关系--
---大概有一些这样的判断----
Select Case vectord3.IsParallelTo(plane.ZAxis, 1.5707963267948966)
Case 0
DA.SetData(0, 0)                                    DA.SetData(1, False)
DA.SetData(2, False)
Return
Case -1
DA.SetData(0, -1)
DA.SetData(1, True)
DA.SetData(2, False)
Return
Case 1
DA.SetData(0, 1)
DA.SetData(1, False)
DA.SetData(2, True)
Exit Select
End Select
----------------------------------
2,Curve.Analysis.CurveExtremes
找出曲线的最高点和最低点,这个也是一个很棘手的算法。
david给出了什么样算法呢?他用一个很巧妙的方法将这个问题转换成了曲线之间最近点的问题。我们知道在sdk里面本来就有
Curve.ClosestPoints(ByVal otherCurve As Curve,  ByRef pointOnThisCurve As Point3d,  ByRef pointOnOtherCurve As Point3d) As Boolean
这个算法来求曲线间的最近点
Gets closest points between this and another curves.
他将Plane上下移动个距离(1/2的曲线最大外包围盒)然后得到两个plane1,plane2,然后将曲线投影到这两个plane上面得到crv1,crv2那么crv1距离原始crv的距离最近点就是最高点了,另外一个自然是最低点了。
后面我就不啰嗦了,自己去看吧
有空再研究--
Dear All,

a new version of Grasshopper is available for download from the usual location. This release contains a fair amount of bug fixes and new features. We recommend not updating immediately if you're in the middle of a project or nearing a deadline, there may be new bugs in this release.

New features:
  • [size=1em]Added [Point Deform] component for changing the control-point locations of geometry (Transform.Morph dropdown).
  • [size=1em]Added [Bend Morph] component for bending geometry from lines to arcs (Transform.Morph dropdown).
  • [size=1em]Added component menu option to the [Entwine] component for grafting (instead of flattening) inputs.
  • [size=1em]Added [Move Away From] component for moving geometry away from other geometry (Transform.Euclidean dropdown).
  • [size=1em]Added Enable Solver UI to last chance autosave recovery window.
  • [size=1em]Added Peak Display to the Galapagos Fitness Landscape component.
  • [size=1em]Added Feature Display to the Galapagos Fitness Landscape component.
  • [size=1em]Added Slope Display to the Galapagos Fitness Landscape component.
  • [size=1em]Added Direction Display to the Galapagos Fitness Landscape component.
  • [size=1em]Added Remap Option to the Galapagos Fitness Landscape component.
  • [size=1em]Added contour accuracy options to Galapagos Fitness Landscape component.
  • [size=1em]Added [Smooth Numbers] component for interpolating numbers over time (Maths.Util dropdown).
  • [size=1em]Added [Right Trigonometry] component for solving right triangles (Maths.Trig dropdown).
  • [size=1em]Added [Triangle Trigonometry] component for solving generic triangles (Maths.Trig dropdown).
  • [size=1em]Added [Centroid] component for finding triangle centroids and medians (Maths.Trig dropdown).
  • [size=1em]Added [CircumCentre] component for finding triangle circumcentres and perpendiculars (Maths.Trig dropdown).
  • [size=1em]Added [InCentre] component for finding triangle incentres and angle bisectors (Maths.Trig dropdown).
  • [size=1em]Added [Orthocentre] component for finding triangle orthocentres and altitudes (Maths.Trig dropdown).
  • [size=1em]Added [Curve Side] component for determine on which side a curve a point lies (Curve.Analysis dropdown).
  • [size=1em]Added [Plane Region] component for finding convex regions bounded by planes (Intersect.Mathematical dropdown).
  • [size=1em]Added [Point Deform] component for modifying geometry via control-points (Transform.Morph dropdown).
  • [size=1em]Dragging individual components/parameters will now snap to horizontal wires.


Bug fixes:
  • [size=1em]Using MRU tiles would always open the GH file on the main canvas, this is fixed.
  • [size=1em]Canvas redraws would not work correctly if more than one canvas was active, this is fixed.
  • [size=1em]Instantiating components using double-click would always insert the component on the main canvas, this is fixed.
  • [size=1em]Drag and drop did not work by default for canvas instances, this is fixed.
  • [size=1em]Cull Vertices component would sometimes fail due to index out of range errors, this is fixed.
  • [size=1em]The [Arc](Plane, Radius, Angle) component would sometimes result in invalid arcs, this is fixed.
  • [size=1em]Additional changes to make Grasshopper compatible with FIPS standards.
  • [size=1em][Surface|Line] intersection component did not correctly re-instate 'Limit First', this is fixed.
  • [size=1em][Surface|Line] component was incorrectly nicknamed SCX (c for curve), this is fixed.
  • [size=1em][Construct Mesh] would crash if topologically invalid faces were supplied, this is fixed.
  • [size=1em][Quadrangulate Mesh] had erroneous tooltip texts, this is fixed.
  • [size=1em]The [Smaller Than] component did not handle comparisons with infinities correctly, this is fixed.
  • [size=1em]The [Larger Than] component did not handle comparisons with infinities correctly, this is fixed.
  • [size=1em]The [Equality] component did not handle comparisons with infinities correctly, this is fixed.
  • [size=1em]The [Ellipse] component did not correctly compute focal points for negative radii, this is fixed.
  • [size=1em]The [Cone] component did not handle negative radii correctly, this is fixed.
  • [size=1em]The [Cone] component sometimes crashed when the radius was zero, this is probably fixed.
  • [size=1em]The [Sphere] component did not handle negative radii correctly, this is fixed.
  • [size=1em]The [Sphere] component sometimes crashed when the radius was zero, this is probably fixed.
  • [size=1em]The [Cylinder] component did not handle negative radii correctly, this is fixed.
  • [size=1em]The [Cylinder] component sometimes crashed when the radius was zero, this is probably fixed.
  • [size=1em]The [Brep Topology] component did not output correct EF data, this is fixed.
  • [size=1em]Integer conversion that exceeded the 32-bit integer range would crash, this is fixed.
  • [size=1em]Curve|Plane intersections would return duplicate results on seam intersections, this is fixed.
  • [size=1em]Curve|Line intersections would return duplicate results on seam intersections, this is fixed.
  • [size=1em]Expressions entered in the Generic Data parameter 'Set Multiple' menu were parsed recursively, this is fixed.
  • [size=1em]Changes to the MRU database would not immediately affect the Canvas MRU tiles, this is fixed.
  • [size=1em]Groups containing empty subgroups would include (0,0) in their bounds, this is fixed.
  • [size=1em]BeforeRunScript override inserts in C# scripts did not include method brackets, this is fixed.
  • [size=1em](Anti)parallel lines were not filtered in the Line|Line intersection component, this is fixed.
  • [size=1em]Preview Plane Size setting was named confusingly, this is fixed.
  • [size=1em]The [Bounds] component would output a weird domain when all numbers were nulls, this is fixed.
  • [size=1em]Opening old GH files with Value Lists would not open with the correct item selected, this is fixed.


--
David Rutten
精彩分享:
欢迎传播此微信号:SecondEffectGroup

欢迎下载本人所写插件,并提出建议,下载地址:http://www.food4rhino.com/project/segghcommon

本帖被以下淘专辑推荐:

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩回复

文明上网理性发言、请文明用语

slz61 | 实习生 | 发表于 2014-8-27 23:40:49
能不能搬运一下,官网卡的打不开
0 回复

举报

huaxiamengqing | 设计助理 | 发表于 2014-8-28 11:32:46
本帖最后由 huaxiamengqing 于 2014-8-28 12:09 编辑

新版本--

grasshopper_0.9.76.0.rar

7.71 MB, 下载次数: 497

 [充值]

0 回复

举报

guihuashizyl | 设计师 | 发表于 2014-8-28 12:16:40
楼主,这个GH自带的运算器的源代码如何查看啊,谢谢了
0 回复

举报

huaxiamengqing · 发表于 2014-8-29 08:14 点评

一般用Reflector吧

huaxiamengqing | 设计助理 | 发表于 2014-8-29 08:14:59
guihuashizyl 发表于 2014-8-28 12:16
楼主,这个GH自带的运算器的源代码如何查看啊,谢谢了

一般用Reflector吧
0 回复

举报

左手21年 | 设计师 | 发表于 2014-8-29 15:13:05
哇,seg原来是出自楼主啊,真心犀利啊,最近正在研究,[s:116]
0 回复

举报

huaxiamengqing · 发表于 2014-8-31 21:38 点评

过奖,平时用gh多,有些功能连线麻烦就写个简化工作,久而久之电池就多了

huaxiamengqing | 设计助理 | 发表于 2014-8-31 21:38:32
左手21年 发表于 2014-8-29 15:13
哇,seg原来是出自楼主啊,真心犀利啊,最近正在研究,

过奖,平时用gh多,有些功能连线麻烦就写个简化工作,久而久之电池就多了
0 回复

举报

ma1238906 | 设计助理 | 发表于 2014-9-16 22:03:09
赞个![s:184]
0 回复

举报

zhaoqi007 | 实习生 | 发表于 2015-9-22 15:54:07
特意来膜拜,真的太厉害了
0 回复

举报