First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 1 year ago

dan_fulea gravatar image

We take the tetrahedron as it comes, so we do not get wet with the definition of the faces, then manufacture the same faces with our objects in a disjoint, disconnected manner, each object comes with its own color.

T = tetrahedron()
colors = ('blue', 'lightgreen', 'tan', 'gray')
sum([polygon3d(face, color=color) for face, color in zip(T.face_list(), colors)])

This gave me after playing with the picture in the browser to show three faces at least:

tetrahedron