Remove MeshOptimize2d::SelectSurfaceOfPoint()

This commit is contained in:
Matthias Hochsteger 2019-10-08 12:44:00 +02:00
parent 893df3a79f
commit fea75d6ff5
6 changed files with 0 additions and 28 deletions

View File

@ -318,12 +318,10 @@ namespace netgen
nv2.Normalize(); nv2.Normalize();
Vec<3> nvp3, nvp4; Vec<3> nvp3, nvp4;
SelectSurfaceOfPoint (mesh.Point(pi3), gi3);
GetNormalVector (surfnr, mesh.Point(pi3), gi3, nvp3); GetNormalVector (surfnr, mesh.Point(pi3), gi3, nvp3);
nvp3.Normalize(); nvp3.Normalize();
SelectSurfaceOfPoint (mesh.Point(pi4), gi4);
GetNormalVector (surfnr, mesh.Point(pi4), gi4, nvp4); GetNormalVector (surfnr, mesh.Point(pi4), gi4, nvp4);
nvp4.Normalize(); nvp4.Normalize();
@ -530,7 +528,6 @@ namespace netgen
for (int k = 0; k < 3; k++) for (int k = 0; k < 3; k++)
if (hel[k] == pi) if (hel[k] == pi)
{ {
SelectSurfaceOfPoint (mesh[pi], hel.GeomInfoPi(k+1));
GetNormalVector (surfnr, mesh[pi], hel.GeomInfoPi(k+1), normals[pi]); GetNormalVector (surfnr, mesh[pi], hel.GeomInfoPi(k+1), normals[pi]);
break; break;
} }
@ -624,8 +621,6 @@ namespace netgen
for (int k = 0; k < 3; k++) for (int k = 0; k < 3; k++)
if (hel[k] == pi1) if (hel[k] == pi1)
{ {
SelectSurfaceOfPoint (mesh[pi1],
hel.GeomInfoPi(k+1));
GetNormalVector (surfnr, mesh[pi1], hel.GeomInfoPi(k+1), nv); GetNormalVector (surfnr, mesh[pi1], hel.GeomInfoPi(k+1), nv);
break; break;
} }

View File

@ -36,9 +36,6 @@ public:
///
virtual void SelectSurfaceOfPoint (const Point<3> & p,
const PointGeomInfo & gi);
/// ///
virtual void ProjectPoint (INDEX /* surfind */, Point<3> & /* p */) const { }; virtual void ProjectPoint (INDEX /* surfind */, Point<3> & /* p */) const { };

View File

@ -397,7 +397,6 @@ namespace netgen
double bad1 = 0, bad2 = 0; double bad1 = 0, bad2 = 0;
Vec<3> n; Vec<3> n;
SelectSurfaceOfPoint (mesh.Point(pmap.Get(1)), pgi.Get(1));
GetNormalVector (surfnr, mesh.Point(pmap.Get(1)), pgi.Elem(1), n); GetNormalVector (surfnr, mesh.Point(pmap.Get(1)), pgi.Elem(1), n);
for (int j = 0; j < rule.oldels.Size(); j++) for (int j = 0; j < rule.oldels.Size(); j++)

View File

@ -707,12 +707,6 @@ namespace netgen
} }
void MeshOptimize2d :: SelectSurfaceOfPoint (const Point<3> & p,
const PointGeomInfo & gi)
{
;
}
void MeshOptimize2d :: ImproveMesh (Mesh & mesh, const MeshingParameters & mp) void MeshOptimize2d :: ImproveMesh (Mesh & mesh, const MeshingParameters & mp)
{ {
if (!faceindex) if (!faceindex)
@ -959,7 +953,6 @@ namespace netgen
} }
ld.gi1 = hel.GeomInfoPi(hpi); ld.gi1 = hel.GeomInfoPi(hpi);
SelectSurfaceOfPoint (ld.sp1, ld.gi1);
ld.locelements.SetSize(0); ld.locelements.SetSize(0);
ld.locrots.SetSize (0); ld.locrots.SetSize (0);

View File

@ -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 void MeshOptimizeSTLSurface :: ProjectPoint (INDEX surfind, Point<3> & p) const
{ {

View File

@ -75,9 +75,6 @@ public:
/// ///
MeshOptimizeSTLSurface (STLGeometry & ageom); MeshOptimizeSTLSurface (STLGeometry & ageom);
///
void SelectSurfaceOfPoint (const Point<3> & p,
const PointGeomInfo & gi) override;
/// ///
void ProjectPoint (INDEX surfind, Point<3> & p) const override; void ProjectPoint (INDEX surfind, Point<3> & p) const override;
/// ///