Hello, I am trying to connect these octagons (Black),
something like this, where the closest edges with the same vector are connected perpendicularly (Red)
Thank you
Hello, I am trying to connect these octagons (Black),
something like this, where the closest edges with the same vector are connected perpendicularly (Red)
Thank you
Hi,
You have to refine your logic, since connecting the polygons currently doesn’t cover all bases.
You seem to want to connect closed polygon edges by lines that are perpendicular to both edges, however the piece that’s missing here is, where the lines start from on each edge. This has to be defined as a rule or set of rules as well.
Unless you start with a watertight plan, it’s very hard to derive a satisfying “algorithm”.
Anyway, here’s a possible solution for the first part of the problem, namely finding the closest points between two polygons in a collection of polygons and connecting them with a line.
connect-polygons-v1.gh (9.7 KB)
Thanks for the reply,
Perhaps, what would be the best to achieve is if the line starts at the endpoint of each edge, which i thought could be achieved by
Thanks for the insight, will study it for a while