Closed romanavyzn closed 6 months ago
Ah finally found them in . BRepTools.breptools.WriteToString
and BRepTools.breptools.ReadFromString
in older pythonocc releases, static functions used to be wrapped as classname_staticfunctionname
, since SWIG release 4.1, it is classname.staticfunctioname
. You should be able to continue using breptools_WriteToString(shape)
with a deprecation warning being raised, it's not the case? FYI version 7.8.1 is about to be released in the coming hours/days, without any API change regarding this topic
Thank you for the clarification!
No, breptools_WriteToString
does not exist anymore, only breptools_Write
with deprecation warning.
I guess it should be here: BRepTools.i
With pythonocc "7.6.2" I used
BRepTools.breptools_WriteToString(shape)
andBRepTools.breptools_ReadFromString(str)
to serialize and deserialize aTopoDS_Shape
. With upgrading to 7.7.2 these functions do not exist anymore. Which methods do I have to use now to convert a shape into a string? Thanks in advance.