There is actually a book on geometry which takes advantage of this:
https://www.goodreads.com/book/show/58059196-make
which has since become a series including:
Trigonometry: https://www.goodreads.com/book/show/123127774-make
Calculus: https://www.goodreads.com/book/show/61739368-make
Currently working through a library using the new Python-enabled OpenPythonSCAD, and at the end of it, hope to work on a project which requires conic sections (which I'm still researching, so if anyone has any good resources on that I'd be glad of them).