Slashdot Mirror


GitHub Adds Support For Diffing 3D Files

An anonymous reader writes "A few months after releasing support for viewing models in .STL format, GitHub just added support for viewing changes to .STL formatted 3D models directly in the browser. '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.'"

16 of 29 comments (clear)

  1. And Yet... by Luthair · · Score: 5, Insightful

    Still no side-by-side diff for plain old text files.

    1. Re:And Yet... by pimpsoftcom · · Score: 2

      The people on github are really smart; Just stupid when it comes to common sense. I'm sure one of the github spies is reading this now, cursing my name or otherwise feeling insulted despite my clear attempt at humor, and adding diffing of plain files to the backlog for the next sprint.

      --
      - d
    2. Re:And Yet... by Anonymous Coward · · Score: 3, Insightful

      Why would you use github when you could setup your own git master?

    3. Re:And Yet... by dryeo · · Score: 1

      That and no way to download a change set as a simple unified diff. Sometimes don't want to clone a huge project,especially when short of bandwidth.

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
    4. Re:And Yet... by arthur.gunn · · Score: 4, Informative

      You certainly can!

      Visit your repo page +"/compare" to setup the revisions you want to diff.
      Or just construct the url:

      https://github.com/gunn/ember.js/compare/emberjs:8446b121d8c635ebf...ember-libraries.diff

    5. Re:And Yet... by dryeo · · Score: 1

      Thanks, I'll change my complaint to "it is non-obvious how to create a diff from a change set"

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
    6. Re:And Yet... by IamTheRealMike · · Score: 1

      Has anyone ever discovered that feature without someone else telling them about it? I'm guessing the answer is no.

    7. Re:And Yet... by Anonymous Coward · · Score: 1

      Considering it's the big green button near the top of the page, yes, probably.

    8. Re:And Yet... by Skylinux · · Score: 3, Informative

      This is git, not SVN.
      I have the complete and fully functioning repo on my dev machine so GitHub can go boom right now and I would not really care.

      --
      Everyone who buys Wild Hunt will receive 16 specially prepared DLCs absolutely for free, regardless of platform.
    9. Re:And Yet... by mwvdlee · · Score: 1

      And your comment was funny until "until".

      --
      Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
    10. Re:And Yet... by tobiasly · · Score: 1

      You certainly can!

      Visit your repo page +"/compare" to setup the revisions you want to diff.
      Or just construct the url:

      https://github.com/gunn/ember.js/compare/emberjs:8446b121d8c635ebf...ember-libraries.diff

      In other words, using GitHub is every bit as transparent and consistent as the git command line! It's a feature...

  2. Re:Future filetypes? by Mutatorr · · Score: 5, Informative

    Another cool thing would be image diff viewing. Shouldn't be too hard to do some fancy adjust transparency of two images overlapping eachother with a slider to see the diffs.

    Image diffing is already a thing: https://github.com/blog/817-behold-image-view-modes

    --
    ;D
  3. offline by Weezul · · Score: 1

    Real question : Is the tool that crates these diffs open source?

    It'd be pretty lame to want to diff a couple revisions but need to push the changes to the public to see the diff.

    --
    The Christian religion has been and still is the principal enemy of moral progress in the world. -- Bertrand Russell
    1. Re:offline by Mutatorr · · Score: 1

      Yep, it's https://github.com/sshirokov/csgtool

      --
      ;D
  4. Re:Github user at work by Dr_Barnowl · · Score: 1

    For Excel diffs, a traditional diff program with a conversion shim is useful.

    I've been a long time user of Beyond Compare 3 which supports pre and post diff / merge transform steps ; not OSS or FreeBeer but very capable and well worth the pro / cross platform license cost IMHO.

  5. Re:Future filetypes? by X0563511 · · Score: 1

    Not sure how .blend would work unless you disable compression. I don't know enough about other formats to say anything about them though (isn't .obj just point cloud data with connections?)

    --
    For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...