I have sth with this function https://jscad.xyz/#https://gist.githubusercontent.com/hrgdavor/c63e34f862aab00cf9253daf2e071812/raw/acbefbcbbb47d7c0e4daf41c5c9be3d43062c56c/tesseract.jscad