See https://vanderworp.org/en/the-linux-bricscad-pages-part-1-introduction/