Loop'. The fun part of the slower version is that you can see what it's doing while it's running. 'Fast Loop' gives no indication that it's working, so you want to test it with small numbers and be sure it's coded properly before bumping the iteration count up.
The GH profiler running the slow version showed between 1 and 1.5 seconds per loop, but the reality was more like ~10 seconds per loop toward the end of an 11 X 11 grid, or ~20 minutes total. It's easier to be patient because you know it's working.
The 'Fast Loop' finished the same grid in 1.6 minutes! An impressive improvement. I've been running it on a 30 X 30 grid (900 points) for ~23 minutes so far and see nothing yet. Not the ~12 minutes I had hoped for... Now 36 minutes on this loop for 900 points... hope it's not stuck. Not fast! Later - DONE!! Profiler says 59 minutes for 900 points but it was more like an hour and twenty minutes total. It succeeded, I have a single 'Closed Brep' from 900 extruded rings, baked to Rhino.
Another strategy to explore would be doing 'SUnion' on a smaller grid using the Anemone loop, then replicate it by moving it as needed to form a larger grid; then run the copies through another 'SUnion' loop. I went ahead and implemented that while waiting. It works and is fast! Started with 3 X 3 and ran the result again as 5 X 5 (9 X 25 = 225 total) in barely ~70 seconds!? Trying 36 X 36 now... 1,296 points appears to have succeeded in less than ten minutes! Though it seems to take quite awhile after the loop ends before control is restored to GH/Rhino. I'll let you do your own experiments and benchmarks.
I encapsulated the loop in a cluster called 'suLoop' (blue groups).
Internal of 'suLoop' cluster:
…
Added by Joseph Oster at 11:14pm on March 22, 2017
ke very easy parts of Jewelry, like for sample:
1) Cutters
2) Prongs
3) Heads
Then, we have another that copies, scales and orients these parts to a Pave.
And the last part, is to make few definitions for making all kind of rings... But, using Generative Modeling. In other words, different than Matrix or RhinoGOLD, they do not have this.
Hope it helps some...
Today, I may make a video for the Cutters and Orient, Scale and Remap, see them on www.GJD3D.com and then, you will see the WHOLE idea...
Last, I want to teach this, and as a PLUS, give all 30 GH definitions to the students, that is like 900 US$ just for the definitions! :-)
Say hello to your friends in Aplicraf ok…
owing error has been raised: System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {CE7E6869-6F74-4E9D-9F07-3DCBADAB6299} failed due to the following error: 80040154 没有注册类 (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at System.Runtime.Remoting.RemotingServices.AllocateUninitializedObject(RuntimeType objectType) at System.Runtime.Remoting.Activation.ActivationServices.CreateInstance(RuntimeType serverType) at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj) at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Scripting.Interpreter.NewInstruction.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) If upper error is:1) "Retrieving the COM class factory for component with CLSID…" then try the following fix: a) Close Rhino. Restart your PC. Once the PC boots up, double click on the "regMapWinGIS.cmd" file in "MapWinGIS" installation folder. When it closes the Command Prompt window it opened, try running Rhino, Grasshopper and the component again. b) If the upper COM class error appears again, then close Rhino, and uninstall the MapWinGIS application. It is advisable to do that with an application which does that by removing not only the installation files but also the leftover files (like those from registry). For example, use the: Revo Uninstaller Pro. A free 30 days full working version can be downloaded from: http://www.revouninstaller.com. After the Revo Uninstaller Pro uninstalls MapWinGIS, install it again, but this time by running the installation file by right clicking on it, and choosing: Run as -> Administrator. After the installation is complete double click on "regMapWinGIS.cmd" file in "MapWinGIS" installation folder. When it closes the Command Prompt window it opened, try running Rhino, Grasshopper and the component again. If after this the COM class error appears again, then post a question about this issue at: http://www.grasshopper3d.com/group/gismo/forum. 2) If the upper error is not "Retrieving the COM class factory for component with CLSID…", please post a question about this issue at:http://www.grasshopper3d.com/group/gismo/forum.…
Added by Elise to Gismo at 6:11am on November 13, 2019
ber of divisions I wanted to have for the point grid. 30 in this case. Secondly, I defined a point grid by using a series component with 30 numbers (in x and y) and simply plugged the points of the grid into the image sampler. Thirdly, I decomposed the 900 (30x30) points and fed the x and y values in a compose-point-component. The z-value came from the image sampler, by just plugging its output into the z-input of the compose-point component. You have to open the image sampler dialogue and choose an image and set the evaluation to brightness (the black and white button). This will generate you a second point grid with z-values related to the image information.
Lastly, I used the z-values of the point to drive the radii of the circles. You can then constrain them to a particular number of radii and so on. I hope that helps so far.
…
0'000, 12000 to 14000). You can check that using EvaluatePoint, that tells you the absolute coordinate of a point.
To solve this part, I've moved the mesh to the origin by (1) picking a point on then mesh, (2) moving it to 0,0,0, and then (3) scaling the mesh by 0.01 or another small number using the same point used for moving.
Thanks,
- Giulio…
思った感じになりません。
balls の代わりにplanarカーブを直接入れてみましたがエラーが出ます。
ファンクションにしてみたところ、forループので作った数値が反映されていません。
ファンクションのインスタンス?を出力していないと思い上記のようにしましたがエラーが出てしまいます。
以上の事から自分の認識が正しいのかよくわからなくなりました・・・
python自体の深いところをわかっているわけではないので余計こんがらがりました。
そこで、for b in ballsはどのような条件または使い方であれば使えるのでしょうか?
そして、上記のように別のオブジェクトに対しての使い方はどのようにすればできるのでしょうか?
2:同じファンクション内のdist = rs.Distance(self.pos,b.pos)についてですが
この文章も for b in balls によってbはBallのインスタンスであると定義?されたためb.posがbの位置であると分かるのでしょうか?
pythonは定義しなくても動いてしまうのでどのような時に使えるのか文章見ただけではよくわかりません・・・
大変細かいことかもしれませんが、よりpythonをしっかりと理解するためにも、どなたかわかる方ご教授いただけると幸いです。…
掌握编程过程中遇到的思路方面和技术方面的问题. 内容包括以下几个方面:
反向逻辑思维能力的培养;
建立清晰的编程逻辑思维能力;
GH 的程序设计理念;
并行数据结构深入理解和控制.
Grasshopper course of McNeel Asia focus on the cultivation of students flexible use of programming techniques, the ability to solve practical problems. Our course deep into the whole process of programming, from programming thinking model, the components principle to usage details do detailed explanation, help students complete mastery programming encountered in the process of thinking and technical aspects, include the following content:
Ability of reverse logical thinking;
Establishment of clear programming logical thinking ability;
The program design concept of Grasshopper;
Understanding parallel data tree structure and how to control it.
更多详细内容... More details…
授课讲师 Instructor 课程由Grasshopper原厂McNeel公司在中国地区的两位 Rhino 原厂技术推广工程师 – Dixon、Jessesn联合授课。课程结束后对达到授课预定目标的学员颁发唯一由Grasshopper原厂认证的结业证书.
Dixon & Jessesn, McNeel Asia Support engineer, by the end of course student who achieve the intended target will get the authentication certificate from McNeel Asia.
课程报名 Register this course 课程即日开始报名, 开课一周前停止报名, 名额满提前报名结束. This course begin to sign up, stop sign up a week ago, with the quota ahead over.
在线报名参加课程...
Sign up to this course…
课程日期 Schedule 7/15-7/20 Beijing 北京 7/26-7/31 Shanghai 上海 7/07-7/12 Shenzhen 深圳
课程范例演示 Samples of Grasshopper course demo
Note: pls follow below comments by Jessesn to see the samples…
s finding the closest point from a building (internal element) to the street (external element). The subdivision and overlapping of these distances gives a graphic representation of which spaces are more susceptible to an intervention.
However I just hit a wall since I still don't grasp fully the concept and notions of trees and data in grasshopper.
the next step is to create a 2d polysurface (and someday 3D) with the points that conform the closest point lines. I need to sum 450 end point with 450 beginning points to generate 900 points. But using the math sum operator gives me the sum of the XYZ coordinate of the points.
After I solve this issue I will get to finding a way to replace the closest points that go inside a building with the second closest point. But for now, finding how to sum points and creating the surface is more than enough.…
s to be optimized for cooling loads and daylight factor.
The genes are the following:
1. Two sliders controlling the division of the facade (one for the horizontal one for the vertical).
2. Two sliders controlling the height of the louvers (from the lower left-hand corner to the top right corner)
3. 8 sliders controlling the selection of glazing panels.
The optimisation criteria I am using are:
1. The average daylight factor should be maximized. I am using the formula: if(x<y,1,0), with y=2
2. The total cooling loads should be minimized. I am using the formula: if (x>(or equal to) y, 1,0) with y = 900.
I don't know if my explanation is clear, any help is appreciated.
Thank you in advance.
All the best,
Luisa…
ng Grasshopper (Rhino. Plugin) by the end of the workshopStudent performance objectivesSchedule :Deadline for Registration : July 14,2016After Submitting your registration form, you will be contacted for confirmation.Workshop Starts : July 17, 2016The workshop consists of 10 lectures, Each lecture lasts for 3 hours.3 lectures per week (Sun,Tue &Thu) Fees : 900 L.EYou have to fill this registration form below if you want to attend the workshop. We only have few places available. Prerequisite:-Basic knowledge of any 3d modeling software “Sketchup, 3dsmax, Rhino, Maya, ...,etc.” is required to attend the workshop.- Student must bring their own laptops.Students output during previous workshops :https://www.facebook.com/GIZMOSTUDIO.AS/photos/?tab=album&album_id=548388031851299instructor: Hassan ragab https://www.behance.net/hassanragab…