[K3d-development] EditKnotVector Serialization [was:] NurbsSpiltCurve & NurbsCurveInsertKnot
Brought to you by:
barche
From: Timothy M. S. <ts...@k-...> - 2008-06-30 03:24:52
|
Bart Janssens wrote: > Tim, one of the points is that the knot vector in edit_knot_vector.cpp > is not saved, how should that be handled? > Basically, you just create your own serialization policy class - I suggest doing a copy-n-paste of k3d::data::with_serialization from k3dsdk/data.h, and modify it to read/write the contents of the vector. See the save_array() and load_array() overloads in k3dsdk/serialization_xml.cpp for some good sample code for reading/writing arrays. Cheers, Tim -- Timothy M. Shead, K-3D founder http://www.k-3d.org |