Hello, i’m trying to have a gradiant color all around naked edges… do you have an idea ?? this mesh are from fbx file colored in zbrush…I would have the same result via grasshopper…
Thankx for your help!
Sylvain
The best would be to use geodesic distance, as it is a distance on the mesh and not an euclidian you need. But if naked edges don’t kiss it is OK.
colorize border.gh (53.1 KB)
For Heat Method/geodesic distance calculations
Another way to get a smoothly blended distance falloff is to use inverse distance weighting:
mesh_boundary_shade.gh (138.9 KB)
As a test I recreated this in GH2 to compare the computation speed.
(since it is calculating lots of distances for each point, where parallelization should help)
There’s a bunch of stuff I had to change to work around missing or broken features, so the logic is not identical but the main time consuming part with the distance calculation is the same and GH2 is indeed faster.
For a dense mesh that makes the GH1 definition freeze for 18s, the GH2 version completes in about 4s (while showing progress indicators and with the canvas staying interactive the whole time)
mesh_boundary_shade.ghz (576.6 KB)
This one is not exactly the same but it seems to give some result with 5 components
field.ghz (443.4 KB)
Ah yes! calculating it as a field is much faster
and with a custom falloff function it’s possible to get a more similar result
field2.ghz (373.1 KB)
Thank you so much!!..one day i’m going to be strong as you are guys!