This fixes #1881
TODO:
Cleans up CSG rendering to be more readable and improves # and % operator rendering.