), my script is triangulating slabs by drawing line in a crossreference way. This part was "easy"
What I want to do now is to link those slabs together
ie : if a slab is a surface AxBxCxDx
I want to link A1 to A2, B1 to B2, C1 to C2 etc.
I know it's a simple question of restructuring the tree in my Pshift component, so that I can use the line component with shortest list, and link each of those points.
Any ideas on how to fix that?
Thank you
Simon…
.' refers to all elements whose identifier starts with 'A' followed by an arbitrary character. More details on regular expressions and their syntax can be found in the Karamba manual. Regular expressions can also be used at the 'GroupIDs' input-plug of the 'Optimize Cross Section'-component.
Best,
Clemens
…
edefined), keeping it perpendicular to line 1. Now I get O2, the origin of line 2.
To get the direction of line 2, I cross-multiply the vector O1-A1 and the vector A1-O2, and then rotate the cross-product around the axis A1-O2, the rotation angle is ALPHA.
Then I evaluate A2, keeping O2-A2 = O1-A1. From A2 I draw A2-O3, the distance of which equals to A1-O2. To get the direction of A2-O3, I rotate the direction of A1-O2 around the axis O2-A2, the rotation angle is BETA.
Then repeat the process to get line 3 and line 4. From line 4 I can get the position of O5 (O5 is the point P in my previous post), and I want O5 to be the same as O1 (or as close as possible).
The two parameters are ALPHA and BETA. Quite a complex process, hope the explanation is clear enough. Basically I just want to calibrate ALPHA and BETA so that O5 can be close enough to O1.…
tain every third item from MAIN LIST A, starting from index#1. SUB LIST A3 needs to contain every third item from MAIN LIST A, starting from index#2.
I need a way to extract every Nth item from a list, in the same way that Cull Nth works, just inversely-so.
I am fairly new to grasshopper, and I can see in my mind there is a solution but I am not familiar enough with the components yet.
I've read this thread:
http://www.grasshopper3d.com/forum/topics/copy-every-nth-item-of-a-list-1
But I didn't quite understand how to apply it to my situation.
Any suggestions would be greatly appreciated.
Thanks…
plicateFace(True)faces = brep.Facesa2 = faces.ExtractFace(0)
DuplicateFace could copy shading meshes. It also "works" on Face list, while ExtractFace works a single face. Is that their main difference? Could one of these two be redundant?…
labeled inside the piece in a randomly way..Like this..
A1 should be written mirrored on the other side of the surface, but the next piece is labeled A2 on the right side of the surface..
Do you know how can i manage that in parametric way? Did you have this problem?7
Thx …
"Z" elevation and get their heights.
As this will be used by people in my office, the letter tagging vs numbered indices might get confusing.
I can't really leave them as numbers as the points are separated into various groups, ie. Pt Aa, Ab, Ac...
Pt Ba, Bb. Bc... and so forth.
With that being said, is it possible to rename indices and/or paths to strings other than their default numbering?…
nts but as there are polylines and surfaces in it, they are conflicting as the geometries are overlapping and intersecting.
The input for the model is a centre point and four connecting points: we can call them CNT, A, B, C and D. The model works for these points - it's quite complicated with lots of polylines, vector geometry, surfaces, rotations, etc. - but it still works and has an output of two breps.
If I had a compilation of N sets of CNT, A, B, C and D's, is there a way of feeding each of these into the grasshopper in individual sets rather than just plugging in the huge set of numbers - e.g. feeding in CNT1, A1, B1, C1 and D1 and getting a result before moving on to CNT2, A2, B2, C2 and D2?
I've tried looking through tree structures, but it seems to be failing when the size of the set isn't known - e.g. how to extract all the information from trees when N isn't know using list item (i=0, i=1, i=2..., i=N).
I hope I've managed to explain the problem adequately, I can make up an easier to understand Grasshopper model later if I haven't explained well...
Thanks in advance for any comments, pointers, etc.…