From 4a1d3cdcb2002b93de58a1c0689aa9cd488ba754 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 27 Oct 2020 07:57:17 +0100 Subject: [PATCH] save/load mesh bbbnd --- libsrc/meshing/meshclass.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/libsrc/meshing/meshclass.cpp b/libsrc/meshing/meshclass.cpp index 401cd20f..572547b9 100644 --- a/libsrc/meshing/meshclass.cpp +++ b/libsrc/meshing/meshclass.cpp @@ -677,6 +677,18 @@ namespace netgen outfile << endl << endl; } + int cntcd3names = 0; + for (int ii = 0; ii> n; + NgArray cd3nrs(n); + SetNCD3Names(n); + for( i=1; i<=n; i++) + { + string nextcd3name; + infile >> cd3nrs[i-1] >> nextcd3name; + cd3names[cd3nrs[i-1]-1] = new string(nextcd3name); + } + if (GetDimension() < 3) + { + throw NgException("co dim 3 elements not implemented for dimension < 3"); + } + } + if (strcmp (str, "singular_points") == 0) { infile >> n;