Hi everyone, hope you are all safe and well.
I have been trying to colour a mesh along its length with a gradient and have had some success. I found this helpful forum entry which gave me the following result:
My .gh sketch is:
However, problems arise when the pipe intersects with itself. Here, the mesh vertices, which are being tested to find at which point on the path they are closest to, are being placed on the path at the wrong point. This means when it comes to assigning a colour, the colour is wrong:
Is there another way to order the vertices? Could the mesh normals be used to ensure the vertices get matched with the correct point on the path?
Any suggestions will be gratefully received, I’m totally stuck!