forked from FreeCAD/FreeCAD
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Element mapping interface is now moved into TopoShape's parent class Data::ComplexGeoData. User can get/set single element mapping with function ComplexGeoData::get/setElementName() API in both C++ and Python. Multiple element mapping can be done with get/setElementMap() in C++, and through attribute ElementMap in Python. The ComplexGeoData object can optionally be assign a StringHasher object to encode its element mapped name with StringID. It is exposed in both C++ as public member variable (and attribute in Python) named Hasher. ComplexGeoData itself do not persist the string hasher. For TopoShape, its done by PropertyPartShape. The individual hashes are persisted inside the property only if the hasher is not assigned from the owner Document.Hasher. TopoShape adds a new public member variable called Tag to help auto generate element mapping. TopoShape adds two new element mapping aware function, makECompound() and makEWire(), exposed in both C++ and Python. These function will auto generate element mappings if both the shape's own Tag and input shape's Tag are non-zero. Part::Primitives and Part::Compound now supports element mapping
- Loading branch information
1 parent
ba4a6e6
commit c38ef04
Showing
17 changed files
with
875 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.