From fea75d6ff526f17191d2681fc7271deeb76f7b4c Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 8 Oct 2019 12:44:00 +0200 Subject: [PATCH] Remove MeshOptimize2d::SelectSurfaceOfPoint() --- libsrc/meshing/improve2.cpp | 5 ----- libsrc/meshing/improve2.hpp | 3 --- libsrc/meshing/improve2gen.cpp | 1 - libsrc/meshing/smoothing2.cpp | 7 ------- libsrc/stlgeom/meshstlsurface.cpp | 9 --------- libsrc/stlgeom/meshstlsurface.hpp | 3 --- 6 files changed, 28 deletions(-) diff --git a/libsrc/meshing/improve2.cpp b/libsrc/meshing/improve2.cpp index 2fc9f5f4..07e32fef 100644 --- a/libsrc/meshing/improve2.cpp +++ b/libsrc/meshing/improve2.cpp @@ -318,12 +318,10 @@ namespace netgen nv2.Normalize(); Vec<3> nvp3, nvp4; - SelectSurfaceOfPoint (mesh.Point(pi3), gi3); GetNormalVector (surfnr, mesh.Point(pi3), gi3, nvp3); nvp3.Normalize(); - SelectSurfaceOfPoint (mesh.Point(pi4), gi4); GetNormalVector (surfnr, mesh.Point(pi4), gi4, nvp4); nvp4.Normalize(); @@ -530,7 +528,6 @@ namespace netgen for (int k = 0; k < 3; k++) if (hel[k] == pi) { - SelectSurfaceOfPoint (mesh[pi], hel.GeomInfoPi(k+1)); GetNormalVector (surfnr, mesh[pi], hel.GeomInfoPi(k+1), normals[pi]); break; } @@ -624,8 +621,6 @@ namespace netgen for (int k = 0; k < 3; k++) if (hel[k] == pi1) { - SelectSurfaceOfPoint (mesh[pi1], - hel.GeomInfoPi(k+1)); GetNormalVector (surfnr, mesh[pi1], hel.GeomInfoPi(k+1), nv); break; } diff --git a/libsrc/meshing/improve2.hpp b/libsrc/meshing/improve2.hpp index c9fbae4b..ec09b237 100644 --- a/libsrc/meshing/improve2.hpp +++ b/libsrc/meshing/improve2.hpp @@ -36,9 +36,6 @@ public: - /// - virtual void SelectSurfaceOfPoint (const Point<3> & p, - const PointGeomInfo & gi); /// virtual void ProjectPoint (INDEX /* surfind */, Point<3> & /* p */) const { }; diff --git a/libsrc/meshing/improve2gen.cpp b/libsrc/meshing/improve2gen.cpp index 2c2b8cb5..07587ed9 100644 --- a/libsrc/meshing/improve2gen.cpp +++ b/libsrc/meshing/improve2gen.cpp @@ -397,7 +397,6 @@ namespace netgen double bad1 = 0, bad2 = 0; Vec<3> n; - SelectSurfaceOfPoint (mesh.Point(pmap.Get(1)), pgi.Get(1)); GetNormalVector (surfnr, mesh.Point(pmap.Get(1)), pgi.Elem(1), n); for (int j = 0; j < rule.oldels.Size(); j++) diff --git a/libsrc/meshing/smoothing2.cpp b/libsrc/meshing/smoothing2.cpp index cc56497c..f28cf10c 100644 --- a/libsrc/meshing/smoothing2.cpp +++ b/libsrc/meshing/smoothing2.cpp @@ -707,12 +707,6 @@ namespace netgen } - void MeshOptimize2d :: SelectSurfaceOfPoint (const Point<3> & p, - const PointGeomInfo & gi) - { - ; - } - void MeshOptimize2d :: ImproveMesh (Mesh & mesh, const MeshingParameters & mp) { if (!faceindex) @@ -959,7 +953,6 @@ namespace netgen } ld.gi1 = hel.GeomInfoPi(hpi); - SelectSurfaceOfPoint (ld.sp1, ld.gi1); ld.locelements.SetSize(0); ld.locrots.SetSize (0); diff --git a/libsrc/stlgeom/meshstlsurface.cpp b/libsrc/stlgeom/meshstlsurface.cpp index 73416966..333ed39d 100644 --- a/libsrc/stlgeom/meshstlsurface.cpp +++ b/libsrc/stlgeom/meshstlsurface.cpp @@ -1064,15 +1064,6 @@ MeshOptimizeSTLSurface :: MeshOptimizeSTLSurface (STLGeometry & ageom) } -void MeshOptimizeSTLSurface :: SelectSurfaceOfPoint (const Point<3> & p, - const PointGeomInfo & gi) -{ - // (*testout) << "sel char: " << gi.trignum << endl; - - geom.SelectChartOfTriangle (gi.trignum); - // geom.SelectChartOfPoint (p); -} - void MeshOptimizeSTLSurface :: ProjectPoint (INDEX surfind, Point<3> & p) const { diff --git a/libsrc/stlgeom/meshstlsurface.hpp b/libsrc/stlgeom/meshstlsurface.hpp index 9790bdca..00cb1277 100644 --- a/libsrc/stlgeom/meshstlsurface.hpp +++ b/libsrc/stlgeom/meshstlsurface.hpp @@ -75,9 +75,6 @@ public: /// MeshOptimizeSTLSurface (STLGeometry & ageom); - /// - void SelectSurfaceOfPoint (const Point<3> & p, - const PointGeomInfo & gi) override; /// void ProjectPoint (INDEX surfind, Point<3> & p) const override; ///