pythonocc-demos
pythonocc-demos copied to clipboard
TDocStd.py | TypeError: in method 'new_TDocStd_Document', argument 1 of type 'TCollection_ExtendedString const &'
Want to export a shape or solid to a .glb file. Example code from pythonocc-demos/examples/core_export_gltf_single_shape.py results in TypeError on "create document" line 37 '''doc = TDocStd_Document("pythonocc-doc")''' '''TypeError: in method 'new_TDocStd_Document', argument 1 of type 'TCollection_ExtendedString const &'''' ..\lib\site-packages\OCC\Core\TDocStd.py:1120
Same issue would love a solution
Try:
doc = TDocStd_Document(TCollection_ExtendedString("pythonocc-doc"))