SHATR.gh (17.0 KB)
Hello
Im trying to shatter this square in those dimension, I didnt can, someone could help me? I got a good result with fennec How can achieve that whitout fennec, It looks very simple
Yes, the opening post disclaims the use of Fennec. I think what Multiple Curves and Shatter does seems⦠kind of obvious without ever having used it. Not exactly clear on what the OPās objective is; Iām with you on that. Iām guessing they want to shatter rectangle that have side lengths that exceed a threshold value?
I didnāt read OPs post properly. Edd just wants to be able to achieve what he has been able to do with Fennec, but natively.
Not my best work, but it does the job (without Fennec)
This solution would become very heavy with more geometry.
There is definitely a better way to do this but Iām not really sure how to use the Multiples Curves output.
SHATR_NL.gh (19.3 KB)
EDIT: Hereās a more sophisticated method that will work better with more geometry.
However it really doesnāt strike me as the intended way to use Multiples Curves intersection and still leaves me confused as to what the intended use was supposed to be like.
SHATR_NLv2.gh (21.2 KB)
sorry @martinsiegrist I assumed the second merged list shows what I wanted to achieve but in a simpler way.
AS @Nick_Leung wrote, natively and simpler.
Yes your script works perfect. thanks
Im gonna test it.ā
Oh sorry works perfect @seg
@seg
another simple Q.
How can get back the original order ? I changed a little bit the logic @Nick_Leung and shatter works but not the origianl order of the square how to get back if sort along curve not working
shatter m.gh (26.6 KB)
I believe all 3 methods show above retain the order of the curves going in. So if you want the output to be the same order as the original rectangle youāll have to make sure you donāt lose that order before it goes into Multiple Curves.
shatter m_NL.gh (25.8 KB)
Thanks the problem was in merged the lists simple as that, thanks again. Excuse me but you know why sort along curves its not working in this simple case?
This thread is a quagmire of nonsense.
A goal is stated vaguely:
then tools that are not necessary to solve that problem are asked to be translated in native Grasshopper components:
What exactly are you trying to do?
If it a matter of shattering a rectangle on the basis of dimension, there are tools for both querying dimension and conditionally shattering. And since a rectangle only has two dimensions, if one of those two dimensions pass threshold, the entire rectangle gets shattered, or it does not.
Where is the complication?
Okay, and your contribution here is�
if this have no sense for you because you know all its ok just donāt post. have a good day
be happy.
At the top of the thread. My issue is with the time wasted by the people who are trying to help you when the question is poorly formulated.
thread is solved some people had capacity to understand and help.
solve your traumas, Help people when you have the capacity to understand and the desire to help.
take care.
I am merely suggesting that you put in more effort in formulating your question so as to not put that onus on other people. The idea that that suggestion stems from some sort of trauma is wild speculation.
If your goal was to variably offset the sides of the square, you can do this by reading the bounds of the rectangle, modifying them and recreating the rectangle. See here:
SHATR VR 1.gh (62.4 KB)
If this needs to be done on an open curve or some other closed polyline shape, it becomes more difficult. Clipper2 has a Variable Offset component for this.
Sort Along Curve is a valid method, but the component will sort each branch individually. This means that grafting the points going into the component results in the component sorting four individual 1 item lists separately, resulting in no change.
I order to get the curves back into the original order, the reference points need to be flattened into the same branch. In this case the list has to be shifted by -1 to match the original order.
shatter m_sort curve_NL.gh (25.7 KB)
@Volker_Rakow, what Edd was having trouble with was how to shatter a series of curves at all intersections based on a flat list. By ādimensionsā he really means āparameters (t)ā. This could have been communicated more clearly, but it can also be difficult to communicate questions clearly when you donāt really understand what the problem is. Iām also guessing English is not Eddās first language ![]()
Edd had figured out how to do it with a Fennec component (shown below), but was struggling to do it with native intersection components.
Which is fair because I donāt think Multiple Curves (MCX) is particularly intuitive to use.
It becomes easier to use when you understand that the component creates curve pairs as though with the Cross Reference component on āUpper Triangle (Strict)ā.
If the edge offset become positive values, you will no longer be able to rely on curve intersections to get your rectangle.
Yes, I get that the component creates pairs as output, but sorting the Prams(t) coming out by curve in cases with multiple intersections per curves feels like a weird work around that is not particularly easy to figure out for less experienced users haha. I hardly ever use it because flattening the input curves into a single lists feels like bad practice. The āCurve|Curveā intersection seems to have much better workflow, although of course theyāre not interchangeable in all cases.
Plugging the same set of curves into the A and B inputs of Curve | Curve will also be more intensive because you are not working with a unique set.
In @segās solution, you should not need to sort the curves as the series of index integers Item Index creates forces Member Index to find the indices of parameters in branches of the correct order.
@Nick_Leung A much simpler solution is just to shift list on the line segments and use Line | Line intersection:
SHATR VR 2.gh (58.1 KB)
This will also work on positive offsets unlike curve intersection.















