I want to add Bevel to the Circular-Transform node group.
related https://blender.stackexchange.com/a/309345?noredirect=1
The result should be this with Width = 10
I want to add Bevel to the Circular-Transform node group.
related https://blender.stackexchange.com/a/309345?noredirect=1
The result should be this with Width = 10
As mentioned in the comments, the problem comes down to calculating the distance to the nearest edge. In a shader, or otherwise in a mathematically defined object that you can't just test using a BVHtree, it is a hard problem. I think basically if hard mathematical transformation problems like this didn't exist then we wouldn't have cryptography.
The example given in the screenshot makes it easy to define the distance to the edge:
Notice how just the 3 last nodes added by me: Map Range → Power → Multiply, is what controls the bevel and the rest is what calculates the distance to the edge: a minimum of the horizontal distance to the center, vertical distance to the center, and distance to the circumference.
This would also work, if that situation was the basis of the original effect, that is only then transformed by vector manipulations - in such case you only would need to pass the custom group output to be used instead of the 2nd (added by me) "Texture Coordinate" node. But unfortunately the base coordinate system is different, and you didn't put any effort to explain it in your question.