diff --git a/libsrc/csg/splinesurface.cpp b/libsrc/csg/splinesurface.cpp index 3d555c70..6134b1f4 100644 --- a/libsrc/csg/splinesurface.cpp +++ b/libsrc/csg/splinesurface.cpp @@ -96,4 +96,5 @@ void SplineSurface :: AppendPoint(const Point<3> & p, const double reffac, const str << "SplineSurface with base " << *baseprimitive << endl; } + static RegisterClassForArchive regss; } diff --git a/libsrc/csg/splinesurface.hpp b/libsrc/csg/splinesurface.hpp index e17f3eef..07a7eb8a 100644 --- a/libsrc/csg/splinesurface.hpp +++ b/libsrc/csg/splinesurface.hpp @@ -53,7 +53,11 @@ namespace netgen virtual INSOLID_TYPE BoxInSolid(const BoxSphere<3> & box) const { return baseprimitive->BoxInSolid(box); } - + + virtual void DoArchive(Archive& ar) + { + ar & geompoints & splines & bcnames & maxh & baseprimitive & cuts & all_cuts; + } /* virtual void Project (Point<3> & p3d) const;