思った感じになりません。
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をしっかりと理解するためにも、どなたかわかる方ご教授いただけると幸いです。…
ly minimizing the number of operations needed to get to something, it helps a great deal.
This doesn't just mean reducing the number of components on the canvas, because each component doesn't consume the same amount of processing. For instance a simple number addition component is a zillion times lighter than a morph component that is propagating one polysurface object onto a complex degree 3 surface 5000 times (say a facade). All mathematical operations/objects (+,-,/,*,lines/circles/vectors/planes, etc etc) consume far less memory than any geometric operation/object.
I have used a pony with 1gb ram, 1 core, 32 bit, 2.something GHz to run things, and have also been fortunate enough to use a 8 core, 12gb, 3.something Ghz monster, and they have both managed to run out of memory.…
hed). Maybe I can export it in Cad in polylines and then it in Rhino...
But I will contemplate all options, so I will look for SVG files.
It is a long-term project and I dont know clearly what is better. Maybe I can work in Arcgis to put all the information, which they will be points which represents buildings, built or not, and each building will have like 20 informations (architect, year, characteristics, etc).
And them export the points into Rhino-Grasshopper to build schemes and represent graphically the answer to questions like "Where was the origin of this architectonic style?", "How and where did it spread in its first 10 years?" or "Where did German architects build this style?" or "I can see where there are buildings with a monumental door". Now I have like 2000 buildings, and i think I will use 5000 for building the spatial data base.
I will write here if I find some easy way to get that or ask for help if I find a cul-de-sac way
Thank you,
Daniel
…
3500
0;2 5000
0;3 1500
etc
this did not work, but then figured to provide 1 by 1 lists like you suggested, by duplicating accordingly E,I,As. It would be nice though the components to work on list or tree access, unless this causes problems.
An exception is the bar self weight component, which although provided an 1 by 1 lists input it outputs the following, working in cross reference i think,
my workaround was to graft inputs, flatten the output, in order to match the items one by one.
than you again
best
alex…
m now enrolling in a research-based subject which its requirement is to investigate and write 5000 words of report or essay on topics such as arch history, sustainable arch , urban design and architectural computing.
As i am teaching myself GH , i have proposed to the unit chair of the subject whether it's possible to investigate and do a research on GH and use it as part of the unit assessment, and he is ok with the idea.
As I have never done this sort of research-based unit before , and never have a chance to sit down and talk the scope of works with him (unit chair). I am now a bit lost and need to come up with something, directionwise, before tomorrow night which is the last day to withdraw the subject.
It's impossible to contact my unit chair during the weekend and I would like you guys( which i think some of you are academic people or lecturers) to suggest me on
1. What's scope of work should my research cover , it's a 10 weeks and 5000 words projects , in my case it could be less given my result would be some images as well as the report ?
2. My initial thought of the topic and the result of this research would be
what is GH
how to use it......go through some basic operation ?
the result , create and illustrate the complex form that GH can produce , images of model
other application .....
3. I am interested in voronoi diagram , is it possible to investigate this and maybe come up with some voronoi forms for my final submission , is 10-11 weeks enough ?, given that i've only known GH for 2 months and never learnt voronoi before. It's too ambitious isnt it.
4. Given that my resource would be mainly from internet , what is the possibility of this project get done in 10 weeks ?
5. Any suggestion.
Thank you very much
Punkhead…
ck, the second has just that white spot. But the vertex color is not assigned correctly (is there a point where I mess with the order?)
Any suggestions?
The script is :
import rhinoscriptsyntax as rsimport colorsys
rs.Command("_selmesh")rs.Command("unweld 0")rs.UnselectAllObjects
strObject = rs.GetObject("Select mesh", 32)arrFaces = rs.MeshFaces(strObject)color = rs.MeshVertexColors(strObject)
rs.EnableRedraw (False)
i = 0arrFace = []
while i <= len(arrFaces)-3: arrFace.append(arrFaces[i]) arrFace.append(arrFaces[i+1]) arrFace.append(arrFaces[i+2]) arrFace.append(arrFaces[i+3]) print(color[i]) red = rs.ColorRedValue(color[i]) blue = rs.ColorBlueValue(color[i]) green = rs.ColorGreenValue(color[i]) realcolor = colorsys.rgb_to_hls(red, green, blue) rs.AddText(str(realcolor[1]),arrFaces[i],5000) i = i + 4 arrFace = []
…
d 5000 stiffness it usually works quite well but some overlap. If you put it much higher than 5000, it freaks out and explodes.
2. In order to make the spring network, it must create a spring between every circle and every other circle. This is a lot of springs. With 121 initial points, you have 7260 springs! On my old laptop, anything more than 200 points runs very slow.
3. You can swap between random and gradient radii with the toggle. See the note about swapping between large radii in center vs small radii at center.
Random Radii Start
Random Radii End
Large Radii at Center Start
Large Radii at Center End
Small Radii at Center Start
Small Radii at Center End
…
ny Agents are within it after each iteration and their centroid attract Agents). So, I basically came up with a small .dll where I wrote classes for Agent, ZOne, Cell and SystemSetting. I reference this .dll into my VB component but then the majority of the functions and subs that describe this system interaction are written directly in this VB component.
The system works fine, but I cannot achieve the effect of having the system to redraw after each iteration. For example :
'''////////////////////////////////////'''
Call InitializeEverything()
For i=0 to 19 'say, Iwant to run my system for 20 times
Call UpdateZones() 'updates attractor values of Zones
Call RelocateAgents() 'say, code that does all the evolutionary job
Dim agentSrf As New List (Of OnNurbsSurface) 'want to collect the surface_
representation of all agents and visualize it
For j= 0 to agents.count-1
agentSrf.Add(agents(i).MySurface() 'collect the Agent representations
Next
A=agentSrf
Next
'''////////////////////////////////////'''
So, in this case I will only see the surfaces of the agents after this last iteration. I was trying to use timer and target my VB component but I have my initialization function there as well so it just reruns everything from the very beginning. Or I tried to:
A=agentSrf
System.Threading.Thread.Sleep(5000)
but this didn't give me much either.
I'm sure that there is a relatively simple solution to that but I cannot find it.
Would you please give me your thoughts on that?
Thanks A lot,
Dima…