I have sth with this function 🙂

https://jscad.xyz/#https://gist.githubusercontent.com/hrgdavor/c63e34f862aab00cf9253daf2e071812/raw/acbefbcbbb47d7c0e4daf41c5c9be3d43062c56c/tesseract.jscad

124e5f29-a4fb-40da-b9da-b2b044565b11-image.png