Hi,

The work on pythonOCC development is currently focused on pythonOCC 
objects serialization. A first step was made this week-end that enables 
the serialization of a TopoDS_Shape object (indeed, overloading of 
__getstate__ and __setstate__ methods). This way, it becomes possible to 
use the pickle module to save/load a TopoDS_Shape:

# Create shape
box1 = BRepPrimAPI_MakeBox(10.,10.,10.).Shape()
# Dump shape in a string
box_dump_string = pickle.dumps(box1)
#Create another box from the dump
box2 = pickle.loads(box_dump_string)

Please update to the latest svn rev (306) if you want to test this new 
feature. There're also two minor changes:
- the ToString method was added to Standard_GUID class,
- a few byref passed parameter were not properly wrapped 
(V3D_Coordinate, Quantity_Length).

Windows/python25 users can find a precompiled binary at: 
http://www.pythonocc.org/Releases/daily

Best Regards,

Thomas

_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to