November 4, 2022, 4:23pm
This node works beautifully for two rectangles that intersect - it gives me the lines that intersect. (red lines 3 + 4 below)
However, I want the lines that do not sit on top of each other. (red lines 1 and 2)
Yes I could do explode and remove the same… or check the vectors etc… but that seems a bit contrived.
Is there an really easy way to do this / a node I’m missing?
November 4, 2022, 4:43pm
You could measure the distance of the midpoint of each curve relative to the outer polycurve, any line with a distance > 0 is one of the inner, non-overlapping curves
November 4, 2022, 4:45pm
Yeah! Nice idea. I think I may do that
Pity there isn’t a NOT intersect node tho
so… isn’t what does not intersect, exactly what your input is (-) subract whatever the node returns?
oh I see you already thought of that:
Yes I could do explode and remove the same
… I don’t think theres a straight forward way to do it with a single node at the moment, but it should be possible.
Geometry.Trim should work. Point is the center of the container.
November 5, 2022, 12:10am
I did that at first… But the rectangles change so I had some issues with the point.
I’ll try it like you’ve done it though, I did the point slightly differently - I did it in the centre of the bigger rectangle.
Works with that too, it seems
November 5, 2022, 11:18am
You guys are awesome.
You made me log into work at the weekend though as I wanted a sanity check
So for this one… I only want the horizontal red but it’s giving me the one that intersects with the larger rectangle too.
And they definitely are on top of each other.
Seems like a bug
Repeat trim as a precaution
November 5, 2022, 12:09pm
Do you get the same issue in your version of Dyno?
I’m using R21 and Dyno 2.6.1
Same results in the latest Sandbox too
You could report the issue
Hello, can we chain methods from the same class?
As you chained rectangle and translate
It isn’t always a best practice, as errors can be suppressed.
I tried with a function.
(Create front volumes, intersection, and low edges of common lines)
//Recup Point Poly
//Recup Points curves