Company
Date Published
Author
Mike Skalnik
Word count
197
Language
English
Hacker News points
None

Summary

In an effort to enhance the 3D file viewing experience on GitHub, the platform now supports visual diffs for STL files, allowing users to easily identify changes between versions. The default "Highlight" mode distinguishes removed sections in red and added parts in green, while unchanged elements are shown as a wireframe, and a revision slider enables smooth transitions between file versions. This feature leverages binary space partitioning to compute differences, utilizing a C library called csgtool, which is integrated with a Ruby gem via FFI to cache and display model changes effectively. GitHub aims to facilitate open-source hardware development with these improvements, as detailed by Mike Skalnik.