mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
small polish
This commit is contained in:
parent
f2cb1a75d4
commit
affda364a2
@ -84,16 +84,16 @@ extern void CalcTriangleBadness (double x2, double x3, double y3,
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern double CalcTriangleBadness (const Point3d & p1,
|
extern double CalcTriangleBadness (const Point<3> & p1,
|
||||||
const Point3d & p2,
|
const Point<3> & p2,
|
||||||
const Point3d & p3,
|
const Point<3> & p3,
|
||||||
double metricweight,
|
double metricweight,
|
||||||
double h);
|
double h);
|
||||||
|
|
||||||
extern double CalcTriangleBadness (const Point3d & p1,
|
extern double CalcTriangleBadness (const Point<3> & p1,
|
||||||
const Point3d & p2,
|
const Point<3> & p2,
|
||||||
const Point3d & p3,
|
const Point<3> & p3,
|
||||||
const Vec3d & n,
|
const Vec<3> & n,
|
||||||
double metricweight,
|
double metricweight,
|
||||||
double h);
|
double h);
|
||||||
|
|
||||||
|
@ -416,14 +416,8 @@ void MeshOptimize3d :: SplitImprove (Mesh & mesh,
|
|||||||
if (el[l] == pi2) has2 = 1;
|
if (el[l] == pi2) has2 = 1;
|
||||||
}
|
}
|
||||||
if (has1 && has2)
|
if (has1 && has2)
|
||||||
{ // only once
|
if (!hasbothpoints.Contains (elnr))
|
||||||
for (l = 0; l < hasbothpoints.Size(); l++)
|
hasbothpoints.Append (elnr);
|
||||||
if (hasbothpoints[l] == elnr)
|
|
||||||
has1 = 0;
|
|
||||||
|
|
||||||
if (has1)
|
|
||||||
hasbothpoints.Append (elnr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bad1 = 0;
|
bad1 = 0;
|
||||||
|
@ -6,18 +6,15 @@ namespace netgen
|
|||||||
|
|
||||||
DLL_HEADER void Optimize2d (Mesh & mesh, MeshingParameters & mp)
|
DLL_HEADER void Optimize2d (Mesh & mesh, MeshingParameters & mp)
|
||||||
{
|
{
|
||||||
int i;
|
static int timer = NgProfiler::CreateTimer ("optimize2d");
|
||||||
|
NgProfiler::RegionTimer reg(timer);
|
||||||
//double h = mp.maxh;
|
|
||||||
|
|
||||||
mesh.CalcSurfacesOfNode();
|
mesh.CalcSurfacesOfNode();
|
||||||
|
|
||||||
const char * optstr = mp.optimize2d;
|
const char * optstr = mp.optimize2d;
|
||||||
int optsteps = mp.optsteps2d;
|
int optsteps = mp.optsteps2d;
|
||||||
|
|
||||||
// cout << "optstr = " << optstr << endl;
|
for (int i = 1; i <= optsteps; i++)
|
||||||
|
|
||||||
for (i = 1; i <= optsteps; i++)
|
|
||||||
for (size_t j = 1; j <= strlen(optstr); j++)
|
for (size_t j = 1; j <= strlen(optstr); j++)
|
||||||
{
|
{
|
||||||
if (multithread.terminate) break;
|
if (multithread.terminate) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user