Hmm, so another potentially huge optimization opportunity here, FC file saving algorithm. We can simply build a hash map of TopoDS_Shape, and only save one with the real geometry data, and the rest is just transformation, orientation stuff.DeepSOIC wrote:That's not exactly true. Draft Clone does a deep copy of the shape. In Lattice, I made array tools to do a shallow copy, to get extra performance and lower memory use. That worked brilliantly, and I got an unexpected speedup because OCC re-uses the triangulation too... to finally realize that after saving-loading, all the sharing is lost. Even the array with internal sharing, written out as compound into a brep file. The sharing goes away. That makes me wonder, how does a compsolid survive save-load, it has to share faces to be valid...
Introducing App::Link/XLink
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: Introducing App::Link/XLink
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Introducing App::Link/XLink
App::Link creation button is up in Part-o-magic! It's in dropdown button of part-o-magic's global toolbar.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Introducing App::Link/XLink
DOH! I forgot to commit and push should be up now