this is what i have so far, error circled in blue.
here is the file im working with: trimShapeBycurve.gh (9.1 KB)
I was not sure how to tackle the problem with nodes so i wrote it out…
new to all this so I am REALLY hoping there is a more efficient way of doing this.Not only is my way broken, but it gets sluggish with just a few iterations…
My end game is to generate a pattern by randomly tyling the hexagonal patterns (thousands),
and only have the parts of the pattern IN my desired shapes to show.
Hope to get some advice,
That’s very easy … but is Python and I’m in the C# bandwagon.
Notify if you want a C# solution (NO auto translation to P, mind)
I would love to see a solution in C#
Thanks so much!
If so take it:
Trim_curves_V1.gh (131.7 KB)
that is awesome! thank you.
I’ll see if i can decipher your C# with what i know of python and Processing.
I really appreciate it!
If you have BIG N of trimming shapes and/or curves it could be worth considering some // proccesing as well.
i am new to GH, by // i assume its parallel processing, right? is there a tutorial that can get me started understanding and working with that?
again, thanks for all the info!
The master talks:
BTW: The vast majority of people (even “pros”) believe that // is all about finding the magic red button: just press it and get wrap speed. Truth is that there’s no gain without pain. On the other hand and for real-life stuff is worth considering the time required for masterminding a proper scheduling policy: in most of cases is not worthy (unless you are Academic). But since contemporary these days means 666 cores (see the trend in Intel’s newest Coffee Lake generation) … well … get some experience on that matter.
BTW: As an exercise do some “filtering” (bad/wrong data are the norm in our business):
- Check if all your trimming curves are coplanar. If not mastermind some sort of “clustering” (meaning sample “groups” of trimming stuff VS curves to trim with coplanarity criteria)
- Mastermind a policy for dealing with intersecting trimming curves.
- Do the 2 with self intersecting ones as well (see related Method in Curves).
thanks! i’ll be looking in to this