Project: Build132d Shape History #814
Replies: 2 comments 3 replies
-
Very interesting and valuable work here! This is something I have wanted for a long time so I really see the value in it! Now that OCPCV can render to a file I wonder if it would be possible to couple bd_shape_history into a github action that will add a bot comment on a pull request showing the visual diff result? FYI there are changes coming with OCCT/OCP 7.8+ to the built-in hashing functionality (mostly for the good as it reduces collision probability significantly, but the API is changing a bit). |
Beta Was this translation helpful? Give feedback.
-
Cool project. I took a very brief look at your code - it seems like you are using the |
Beta Was this translation helpful? Give feedback.
-
I'm working a tool used to manage and visualize the modification history of Build123D objects. Useful for debugging, doesn't require an IDE debugger.
It's in early stage of development, but I have a proof of concept.
Source code
Installation
This package is published on Pypi:
Usage
Assuming a simple part created in 3 steps:
We can build the history with:
Note:
from_globals
can take several attributes used to filter the parts to put in the history.Then we can display the diff (here with VScode OCP CAD viewer):
This shows a visual diff between each step:
Notice how the object is colored on each step:
How does it work
ShapeHistory compares the hash of faces, edges and vertices between each steps:
Planned features
Feedback
What do you think about this project?
Do you think you might use it? Why?
Do you expect some features to be included in the roadmap?
Beta Was this translation helpful? Give feedback.
All reactions