USER FORUM
(you are viewing a thread; or go back to list of threads)
Feature request: Diff View for git integration (by Pieter Slabbert)
It would be great to be able to view differences between two versions of model in the main view. It would also need to show the differences in properties.
I understand that it would be difficult to visualize but it would greatly enhance the possible work flows with SolveSpace.
This would enable easy review for hardware being designed, which we already have for code.
I understand that it would be difficult to visualize but it would greatly enhance the possible work flows with SolveSpace.
This would enable easy review for hardware being designed, which we already have for code.
(no subject) (by whitequark)
So, how do you expect that to work?
(no subject) (by Pieter Slabbert)
Basically you would need to be able to invoke SolveSpace (or a dedicated diff viewer) from the command line with two files. It would open a view port that shows the model. Parts and constraints that were added or removed in the second file would be highlighted in some way, possibly coloured green and red as textual diffs usually are. Parts that haven't changed would look the same.
One possibility would be to make parts that haven't change very transparent. Or have a sliding viewport like some image diff programs, though I would prefer false colours and transparency to a sliding veiwport.
Ideally there would be different view options that make different types of differences easier to see. such as Githubs image diff modes https://github.com/blog/817-behold-image-view-modes
How exactly to display the diff would need to be experimented with, though even a very cluttered diff would still enable better review of what was actually done than looking through a textual diff of the files, or looking at the models one at a time.
One possibility would be to make parts that haven't change very transparent. Or have a sliding viewport like some image diff programs, though I would prefer false colours and transparency to a sliding veiwport.
Ideally there would be different view options that make different types of differences easier to see. such as Githubs image diff modes https://github.com/blog/817-behold-image-view-modes
How exactly to display the diff would need to be experimented with, though even a very cluttered diff would still enable better review of what was actually done than looking through a textual diff of the files, or looking at the models one at a time.
(no subject) (by Pieter Slabbert)
Here is a github post about diffs for stl files https://github.com/blog/1633-3d-file-diffs
(no subject) (by whitequark)
Ok, I see. This is doable.
Post a reply to this comment: