I want to draw a propeller in 3D for my fluid dynamics lecture. I found a 3D model of a propeller that can be downloaded as a stl
file.
I found a python library numpy-stl
that can read and draw, with the help of matplotlib, the propeller.
My question is: how can I do to import and draw the polygons in asymptote (a python intermediate step is not a problem: no need to implement a stl parser in asymptote!).
Best Answer
Actually, an ascii
stl
file is so simple it's easy to write an Asymptote script to read it directly. Note, however, that the code below is too simple to offer useful feedback in case thestl
file has errors.