* integer:
if I have three numbers, example: 3.36, 4.30, 6.87 applying an Integer filter will give me as result: 3, 4, 7. Instead I want the lowest of the two closest integers to the. In this case: 3, 4, 6.
2. make into positive numbers:
If I have a single number or a list of numbers such as "3.5, -1.2, 4, -5" I'd like to turn it into: "3.5, 1.2, 4, 5"
3. Single out specified item from grid:
If I have a grid of say 5 rows in U by 4 columns in V, like this:
ooooo
ooooo
ooooo
ooooo
I'd like to extract from the list:
3A: the first item such as this (replaced with the x):
ooooo
ooooo
ooooo
xoooo
using the filter for 1st item gives me this [undesired] result (replaced with the x):
ooooo
ooooo
ooooo
xxxxx
3B: Then I'd like to say, give me first item of last row (replaced with the x):
xoooo
ooooo
ooooo
ooooo
I'd appreciate any help with these questions.
Gustavo…
思った感じになりません。
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をしっかりと理解するためにも、どなたかわかる方ご教授いただけると幸いです。…
ck bg layer, click layer from bg
3c. select color range (greens)
3d. delete
3e. save as
4. photoshop automate batch with that action.
that should give you all the sequential images w/ transparent background.
of course, if you have a lot of green in your image, you'll need to pick a different color for replacement...…
I understand what the design issues are, I can rotate, scale and so on, in my mind's eye. Drawing, by hand, is key to understanding the geometries. I usually just do a sketch, strangely in pen not in pencil, and even though I trained on a drafting board and t-square, I am happy to go to grasshopper. Occasionally I get happy "accidents" while coding that produce unexpected results that lead to completely new and different work than what i originally started with. But My end result, is an object i can see, and hold in my hand or on a forklift. Sometimes clients want to see the sketches, and I show them, it seems to takes the mystery out of it.
the respect for the skill in drawing is still there, but in the end I think that no one cares if I am using a #2H mechanical lead pencil.…
hen 6 triangles meet at a vertex. You can create double curvature by having a valence 5 (positive curvature, like a sphere), or 7 (negative curvature "saddle shape").
Such meshes were studied by Alain Lobel in the 1980's (maybe even before that). There is a paper mentioning them in the proceedings of AAG2014. Repetition of panels is also studied here, with the use of clustering, which can be very efficient.
You can look at the SMART Clustering plug-in developped by Buro Happold, I've never tried it, but it looks interesting and maybe suited for what you're aiming for.
Best,
Romain
P.S: If you are interested in repetition, you can also look at repetition of members (e.g. constant length) or repetition of nodes. Most of the research deals with repetition of panels, but repetition of nodes could be also interesting because they are much more difficult to fabricate than panels. Two references about node repetition: one for a specific family of shapes with high node congruence , and the other on the use of hyperbolic geometry for 3-valent meshes.
…
Added by Romain Mesnil at 6:35am on October 27, 2016
ormation;
In fact, my plan is to try to make fabric flattening by transform 3D to 2D. I want to use VB to get shortest lines from one point to the other points in other 3 edges, for instance, there are 4 edges --> Edge1,2,3,4. Each edge to be divided to get points ie., 2a,2b, 3a, 3b...... Each point of one edge will only draw one shortest line to those points of other edges. (From picture below shortest line from 1a is 1a to 4i) and this will be repeated for all points.
Thank you,
James…