Here is a picture:
And there is a working example:
This topic is an evolving of the previous one
Just had a thought, what if there’s a shorter way to check, if a point is inside of a solid body.
And I’ve remembered about the distance functions from some good articles of Inigo Quilez.
So, why not give those functions a try?
The result, as you can see, looks promising. You can set primitives by formulas, then translate, rotate or distort them, thus you set the area of visibility. The more flexibilty, the more funny stuff you can do
Approach #2 coloured by indices