Skip to content

Instantly share code, notes, and snippets.

@datapaganism
Last active August 15, 2022 14:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save datapaganism/b388dfb21a4d856beb7ed80be95a2ce0 to your computer and use it in GitHub Desktop.
Takes two paramaters, the original STL and the modified STL to create a patch using their differences
# ./create_stl_patch <originalFile> <updatedFile>
# remember to chmod +x
# Takes two paramaters, the original STL and the modified STL to create a patch using their differences
# diff -u <(xxd $1) <(xxd $2) > $1.patch
comm -13 <(xxd $1) <(xxd $2) > $1.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment