From 61d38ae343a828a10ebe8c25e39e1b39da4cc995 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 13 Dec 2018 14:33:21 +0100 Subject: [PATCH] archive for splinesurface --- libsrc/csg/splinesurface.cpp | 1 + libsrc/csg/splinesurface.hpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libsrc/csg/splinesurface.cpp b/libsrc/csg/splinesurface.cpp index e8119db1..986d616e 100644 --- a/libsrc/csg/splinesurface.cpp +++ b/libsrc/csg/splinesurface.cpp @@ -73,4 +73,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;