mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-09 06:47:28 +05:00
fixes for mac and windows
This commit is contained in:
parent
073e215bb6
commit
b99e37999f
@ -219,7 +219,7 @@ namespace netgen
|
|||||||
mindist = min2(mindist, line.Dist(other));
|
mindist = min2(mindist, line.Dist(other));
|
||||||
}
|
}
|
||||||
if(mindist == 1e99) continue;
|
if(mindist == 1e99) continue;
|
||||||
mindist /= mparam.closeedgefac.value() + 1e-10;
|
mindist /= *mparam.closeedgefac + 1e-10;
|
||||||
if(mindist < 1e-3 * bounding_box.Diam())
|
if(mindist < 1e-3 * bounding_box.Diam())
|
||||||
{
|
{
|
||||||
(*testout) << "extremely small local h: " << mindist
|
(*testout) << "extremely small local h: " << mindist
|
||||||
|
@ -2803,7 +2803,7 @@ namespace netgen
|
|||||||
<< " inverttets = " << inverttets << endl
|
<< " inverttets = " << inverttets << endl
|
||||||
<< " inverttrigs = " << inverttrigs << endl
|
<< " inverttrigs = " << inverttrigs << endl
|
||||||
<< "closeedge enabled = " << closeedgefac.has_value() << endl
|
<< "closeedge enabled = " << closeedgefac.has_value() << endl
|
||||||
<< "closeedgefac = " << (closeedgefac.has_value() ? closeedgefac.value() : 0.) << endl;
|
<< "closeedgefac = " << closeedgefac.value_or(0.) << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1260,7 +1260,7 @@ namespace netgen
|
|||||||
/// file for meshsize
|
/// file for meshsize
|
||||||
string meshsizefilename = "";
|
string meshsizefilename = "";
|
||||||
/// restrict h based on close edges
|
/// restrict h based on close edges
|
||||||
optional<double> closeedgefac = {};
|
optional<double> closeedgefac = nullopt;
|
||||||
/// start surfacemeshing from everywhere in surface
|
/// start surfacemeshing from everywhere in surface
|
||||||
bool startinsurface = false;
|
bool startinsurface = false;
|
||||||
/// check overlapping surfaces (debug)
|
/// check overlapping surfaces (debug)
|
||||||
|
@ -1259,7 +1259,7 @@ namespace netgen
|
|||||||
mindist = min (mindist, line.Dist(lines[num]));
|
mindist = min (mindist, line.Dist(lines[num]));
|
||||||
}
|
}
|
||||||
|
|
||||||
mindist /= (mparam.closeedgefac.value() + VSMALL);
|
mindist /= (*mparam.closeedgefac + VSMALL);
|
||||||
|
|
||||||
if (mindist < 1e-3 * bb.Diam())
|
if (mindist < 1e-3 * bb.Diam())
|
||||||
{
|
{
|
||||||
|
@ -926,7 +926,7 @@ void STLGeometry :: RestrictLocalH(class Mesh & mesh, double gh, const STLParame
|
|||||||
PushStatusF("Restrict H due to close edges");
|
PushStatusF("Restrict H due to close edges");
|
||||||
//geht nicht für spiralen!!!!!!!!!!!!!!!!!!
|
//geht nicht für spiralen!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
double disttohfact = sqr(10.0 / mparam.closeedgefac.value());
|
double disttohfact = sqr(10.0 / *mparam.closeedgefac);
|
||||||
int k,l;
|
int k,l;
|
||||||
double h1, h2, dist;
|
double h1, h2, dist;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user