Is it possible to generate this kind of zigzag line between two lines? Like sewing two lines together.
the different sections would keep in different density but in similar gray level when people looking at it in a certain distance.
Ay up sailor!
Here are two approaches:
Sir Ernest Shackleton
If this reply answers your question, please mark it as solved
wow! really really appreciate it!
proportional-zig.gh (10.5 KB)
Thank you all of you! really really appreciate it! I try to apply it in this way,
thank you! Your script is really great! It is definitely what I want to produce that image above.
thank you！your solution is great two!
Oops, there still a bug here as pics show below.when two lines is wider than neighbor one, the zigzag line was attracted to the closest one.It make the image showing wrong figure. Can you help me to solve this problem?
(934.9 KB) problem.gh
Don’t use two long curves and split them than sort them based on their start points
problem (1).gh (243.2 KB)
You could just divide the left side curve and project the points to the right side curve to avoid those blank areas that curve closest point produces. Unless that is the look we are going for.
Thank you for this further discussion. Now I understand how to deal with these vertical or horizontal lines，but I still got some problem with spiral lines, as this pic showing,
(13.9 KB) spiral problem.gh.3dm
I was wondering is there a method to restrict two line strictly from beginning to end, like from center spiral to outside gradually?
And that are pics what I want to produce as below, these are two types.
I think the algorithm is that create a spiral first then using image sampler to catch gray data to define the width of the spiral. this step two curve (outline) are produced then I use your script to generate the zigzag line between them create right pic like Monroe.
But I don’t know how to get the left pic, I only got a referent GH file the make the horizotal line image which is similar to it. Pls see the attachment.
Could you modify it to make it base on a sriral line one?
Thank you in advance!
Honestly these curve are separated at first, I try to connect them together to be two parallel lines then the problem occur