view. So in the GH Definition i have only to estimate a center for always 4 holes. So i get 3 centers and they can be targets for the 3 details.
Sounds difficult but is not...look at the definition attached:
You have to find out what is best for your situation, this is just an example since i don't know what you're really doing.
As an extra tutorial i also added how to convert the text dots to 3d text, which you obtained from the counting. Could be useful for e.g. numbering the holes.
GH and 3dm files as well as screenshots are the attached zip file.
Cheers,
FF…
Added by Florian Frank at 9:47am on January 21, 2016
elated with the Topology outputs:
So let's try to do (via components) the face reconstruction stage (the missing 4 as above):
Alias crenelatedEdgesTree as polylineTree.
Imagine a Lst that samples all the edges per Face ("changed" and "unchanged") as Curves.
1. Let's take face 3: this is surrounded by edges 10,11,12,13 and 37.
2. Has edge 10 "changed" (to polyline) ? No because in the polylineTree there's no branch {10} ... thus sample edge 10 from the EList (Note: apparently that's a boundary edge). Has edge 11 "changed" ? No ... blah, blah.
3. Has edge 12 "changed" ? Yes because in the polylineTree there's a branch {12} ... thus sample the item from that branch. Same for 13 ... etc etc.
4. Thus we have sampled all the surrounding edges as Curves and the next step is to join them > yielding a closed Curve.
5. Then we must "planarize" that Curve (by projecting it into the corresponding Brep Face plane) ... and the rest are history.
So ... try it and report any issue encountered.…
ng (It's a bit similar to the Knapsack problem):
I have a Variable --> XandI Have fix numbers (can we call "pieces") 9,12,15,18
I'd like to reach the X, with the summing of these numbers and using the minimum pieces ,it can't be lower than X, but it can be higher, maximum with 3.After this it has to found the most optimal combination which mostly use the same pieces
E.G.
X=98
The wrong solution is like = 1pcs of 18 = 9pcs of 9
Sum of pieces are 10
OR
= 3pcs of 18 = 1pcs of 15 = 1pcs of 12 = 2pcs of 9
Sum of pieces are 7
The right solution in this case = 5pcs of 18 = 1pcs of 9
(5*18)+(1*9)=99 it's good beacuse it's over with maximum 3 and uses the minimum pieces
Then it sends to a list like18 : 5pcs15 : 0pcs12 : 0pcs9 : 1pcsCan somebody help me ? Or is it possible to make this ?
Thank you…
Added by Petrik Kollár at 1:09am on November 10, 2017
ns would be handy for Permutation Animations where multiple variables can be sequenced for better visualizations
Say we have 3 variables, A = 1- 100 : B = 50 - 600 : C = 100-200
Animation start with A=1, B=50 and C goes from 100-200 : then A=1, B=51 and C = 100-200 and once B gets to 600, A turns to 2... and so forth
And doing this manually takes a lot of time...
…
looks like it, but with clean pure colors. It now gives me an output of 12. These i've connected to make 3 mesh selections.
Now i'm about to convert the mesh selection to surfaces, as i dont need the colors when i bake the mesh selection, but just the groups.
The other approach with the random component just gives me 2 selection groups so i need to divide one of the groups in 2. The advantedge here is that i don't have to convert from mesh to surface.…
at 12:30 ad go to 3:30.
For those starting out with the HB energy components and who are looking for a quick overview of all the current energy modeling capabilities of HB, this will be a good way to start. For those veterans of the community, you will get the latest on the thermal mapping capabilities that I added for my academic thesis (literally just submitted today) along with a preview of some new features to come.
Register here:
http://www.performance.network/
Stay awesome,
-Chris…
tName_FinalProject_PartD.pdf
Below is the desk crit list, please sign up for a spot in the comments below:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
See you Monday!…
to do?
2) if (abs(sin(3 * pi() * ptList / ptLast)) < 0.5)
abs and sin are written with upper case letter and they are part of Math: Math.Abs(), Math.Sin()
Where is pi() coming from? It's a constant, not a function: Math.PI
3) if (ptList == A(n + 1))
Where is ptList defined?
A is of type Object, you cannot use it as a function. You've assigned the constants zero or one to A at the top of the script, how is it ever supposed to be == to ptList?
4) Zf(n) = Z(n) + 12 * A(n);
Again, Zf and Z are not defined anywhere as far as I can tell.
5) M = ptLast - n;
Where does M come from?
6) The script doesn't seem to do anything. Any values you want to output from your script back into Grasshopper have to be assigned to the A parameter, but you're only assigning to A right at the top.
Perhaps it would be better if you explained in English what you are trying to accomplish with this script.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 11:39am on April 12, 2010
ap value = True
Shift List = 1 --> (B,C,D,A)
Shift List = 2 --> (C,D,A,B)
You can also use negative values.
Shift List = -1 --> (A,B,C)
Shift List = -2 --> (A,B)
and with Wrap = True
Shift List = -1 --> (D,A,B,C)
Shift List = -2 --> (C,D,A,B)
The most useful Shift List action I use is to either get rid of the first or last item in a list and sometimes both.
Shift list = -1 --> (A,B,C) Shift list = 1 --> (B,C)
In the example posted above you are creating a shift list value equal to its location along the curve. The first section = 0 doesn't get shifted, the second section gets a shift = 1, third = 2, forth = 3 and because the wrap value is set to true the fifth section gets back to 0, sixth = 1 etc etc. creating the twisting effect.
The "one more stupid question" answer is Mass Addition. You will find the component on the Math tab or you can type it into the Keyword search feature (by double clicking the canvas). This component has two outputs a total amount for each list and a partial set of results giving:
List (3,6,9,12)
{0} = 3
{1} = 3+6 = 9
{2} = 3+6+9 = 18
{3} = 3+6+9+12 = 30…