First I created the 3D model in Tinkercad.
Then I used a 3D viewer online to rotate the image while taking screenshots.
Then I adapted code from alvaro trigo's website, number 27.
I used Python PIL and numpy to crop screenshots and remove the white background.
Lastly, I used ascii-image-converter with a small Python script to pipe the output directly into html format.