A knee variant without flickering.
I will try to use it with @abernier’s solution (see above).
I have added this solution to the collection :
https://hofk.de/main/discourse.threejs/2022/CCDIK-Solver/CCDIK-Solver.html
Links and author in source code.