Simply support 3MF Production Extension.#48
Conversation
|
The unit-test fail is not relate to source code. Notice: A new release of pip is available: 23.0.1 -> 23.1.2 |
|
A unit-test fix was just committed to main, should work again. We're (or rather, my colleagues) are working to clean up our PR backlog, so hopefully the wait (at least for go/no-go) won't be that much longer. |
|
Once again, sorry for the delay in picking these up. The team went through a bit of a restructure right after I mentioned that last bit. We're also run into this ourselves now, but want to solve it in a slightly different way: See #55 (I know that the PR's title mentions a specific company, but there's nothing in the PR for Savitar itself that needs that.) This one's a bit more involved, so we might keep it open for now, maybe we can use it after all instead of the other one if we've got the time to look this way ( @wawanbreton ). |
This patch adds simple support for [3MF Production Extension]https://github.com/3MFConsortium/spec_production/blob/master/3MF%20Production%20Extension.md).
I use an implicit method to extend the function instead of modifying the py interface.
This method prepends the "path" to the xml content and passes them together to ThreeMFParser::parse.
The parse method works with a single scene until it reaches the root model. The single scene is a static C++ instance, because I can't add members to the class ThreeMFParser , that would break the consistency with the pySavitar library.