Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hi Keenan. What do you use to generate your figures of surfaces with lines and other things drawn on them, e.g. figures 2-6 of the geodesic survey paper (http://www.cs.cmu.edu/~kmcrane/Projects/GeodesicSurvey/Geode...)? Lots of great pictures like that in the SIGGRAPH 2013 Course Notes too (https://www.cs.cmu.edu/~kmcrane/Projects/DDG/paper.pdf). I have made some similar figures with TikZ, but it's a lot of work and the results aren't as nice as I'd like.


He has a whole presentation about this: https://www.cs.cmu.edu/~kmcrane/Projects/Other/IllustratingG... . TLDR: it's a very manual process :) His lab is also working on Penrose, which is a domain specific language for mathematical diagrams: https://penrose.cs.cmu.edu/


Wow, my laborious-seeming TikZ workflow actually looks pretty simple in comparison! It's all in the one tool and the entire picture code is right there in the Latex source, easy to edit and version control. Shading on a surface is not something I've got nice yet, and lines becoming occluded is a manual effort, but I'm pretty sure I could produce something like the 6 hour figure on p24 in quite a bit less time than that.

Edges of surfaces caused by things like hills obscuring other parts of the same surface, or the surface curving back behind itself (many examples of both on p2 of this) are something I don't have a good way to do. I have done it by doing edge detection on an OpenGL depth buffer and vectorising the results, but that's hard to integrate with TikZ, and changing view angle means doing it all again. Shadows are another problem.


Not the author so I don't know for sure, but it does list Polyscope in the main link.

https://github.com/nmwsharp/polyscope




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: