Disclaimer: The context is a project I'm working on as part of my Master's degree. I guess it qualifies as homework.
Introduction
(feel free to skip to the bottom line)
Curved 3D surfaces are commonly displayed as a large set of very small triangles. Each triangle has the following properties:
- 3 corners
- uniform color
Such that when they're all displayed together, you get the illusion of a smooth surface. This is similar to the way pixels of a uniform color are used to get the illusion of a smooth image.
My project involves generating and displaying all the triangles that make up a given surfaces. Assuming that I have code that generates a set of triangles, how can I display them?
The code that generates the set of triangles is in Python. I'd prefer to use Python to display the triangles, but I'm not picky.
Bottom line
How can I display a triangle in 3D using Python, when the input is the coordinates of the 3 corners of the triangle.