r/Python • • Dec 01 '18

render 3d cube wireframe in console

1.2k Upvotes

39 comments sorted by

View all comments

76

u/vanyakosmos Dec 01 '18

40

u/muntoo R_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} Dec 02 '18

Most well-written code I've yet seen on this sub for these visualizations posts

...Though you could consider using quaternions just for the heck of it. :-)

0

u/[deleted] Dec 02 '18

[deleted]

5

u/muntoo R_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} Dec 02 '18

I'm looking at purely style and structure, not algorithmic beauty.

If you've been through the source of most posts on here, they're usually hundred lines of nested ifs and weird gunk.

This one was clean and organized. Many small, short functions.