3D File Diffs
Back in April, we introduced the 3D file viewer. Today we’re improving this by displaying diffs of STL files on GitHub. There are two modes to figure out what you’re…
Back in April, we introduced the 3D file viewer. Today we’re
improving this by displaying diffs of STL files on
GitHub.
There are two modes to figure out what you’re looking at. By default, we select
“Highlight”, a mode that highlights the removed parts in red and the added parts
in green, leaving what is unchanged as a wireframe.
Also available is the revision slider, which lets you transition between the
current version of the file, and the previous one with a small slider at the top
of the viewer.
How does this work? We take both versions of the model, and using binary
space partitioning, we compute the added, removed, and unchanged
parts. This is done using csgtool, a C library paired with a Ruby gem
via FFI. These pieces are cached and displayed by the 3D viewer we already have,
though we color them differently and play with their transparency to help
illustrate the changes. If you have any further questions, check out the help
article.
We see this as a step for making it easier for you to use GitHub for your open source
hardware needs.
Written by
Related posts
The top 10 gifts for the developer in your life
Whether you’re hunting for the perfect gift for your significant other, the colleague you drew in the office gift exchange, or maybe (just maybe) even for yourself, we’ve got you covered with our top 10 gifts that any developer would love.
Congratulations to the winners of the 2024 Gaady Awards
The Gaady Awards are like the Emmy Awards for the field of digital accessibility. And, just like the Emmys, the Gaadys are a reason to celebrate! On November 21, GitHub was honored to roll out the red carpet for the accessibility community at our San Francisco headquarters.
Students: Start building your skills with the GitHub Foundations certification
The GitHub Foundations Certification exam fee is now waived for all students verified through GitHub Education.