Hey, I want to apply a color gradient to my surface that shows how far each point is from a center point. The thing is: I don’t have a single fixed center point for the entire surface, but a separate center point for each layer. The gradient should cover the entire surface, but the distance should always be calculated relative to the center of the current layer.
I’ve already found some posts dealing with a single central point, but I couldn’t directly adapt them to my idea. I’ve attached an image to better illustrate what I’m trying to do. Hope my idea makes sense.
If you have any suggestions for improvement or an alternative approach, feel free to pursue that direction and let me know.
my assumption is, if you want to use Contour to get section curves of which you compute the area centroid as Center point for measuring distances → then the Mesh you build must use those very same points at the very same Z coordinate of each slice, so I’m just dividing each slice by the same amount of point and using Mesh from Points, which might not be the best solution to this… but it gives you a hint:
the thing is, the center points changes X/Y coordinate for each slice, which I believe might not be a very reliable way of computing depth, unless you are just interested in the graphical effect?
That’s exactly the solution I was looking for! In fact, I was only interested in the visual effect and not in an accurate depth calculation. The fact that the center point of each slice shifts in the X and Y directions is actually intended in my case, as it follows the shape of the Brep and the contour lines. Thanks a lot!