mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
remove some warnings
This commit is contained in:
parent
4de47bdbeb
commit
f7e2953ad9
@ -801,7 +801,7 @@ namespace netgen
|
||||
const LineSeg<2> * linesegment =
|
||||
dynamic_cast<const LineSeg<2> *>(&faces[intersecting_faces[0]]->GetSpline());
|
||||
|
||||
Vec<2> t1,t2;
|
||||
Vec<2> t1(0),t2(0);
|
||||
|
||||
if(linesegment)
|
||||
t1 = linesegment->StartPI() - linesegment->EndPI();
|
||||
|
@ -3871,7 +3871,7 @@ namespace netgen
|
||||
|
||||
const bool uselocalworsening = false;
|
||||
|
||||
bool repaired = false;
|
||||
// bool repaired = false;
|
||||
|
||||
Validate(mesh,bad_elts,pure_badness,max_worsening,uselocalworsening);
|
||||
|
||||
@ -3906,7 +3906,7 @@ namespace netgen
|
||||
pure_badness,
|
||||
max_worsening,uselocalworsening,
|
||||
idmaps);
|
||||
repaired = true;
|
||||
// repaired = true;
|
||||
repaired_once = true;
|
||||
}
|
||||
catch(NgException & ex)
|
||||
|
@ -74,13 +74,14 @@ Meshing3 :: ~Meshing3 ()
|
||||
|
||||
|
||||
|
||||
/*
|
||||
// was war das ????
|
||||
static double CalcLocH (const Array<Point3d> & locpoints,
|
||||
const Array<MiniElement2d> & locfaces,
|
||||
double h)
|
||||
{
|
||||
return h;
|
||||
|
||||
// was war das ????
|
||||
|
||||
int i, j;
|
||||
double hi, h1, d, dn, sum, weight, wi;
|
||||
@ -138,7 +139,7 @@ static double CalcLocH (const Array<Point3d> & locpoints,
|
||||
|
||||
return sum/weight;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
PointIndex Meshing3 :: AddPoint (const Point3d & p, PointIndex globind)
|
||||
{
|
||||
|
@ -669,7 +669,7 @@ namespace netgen
|
||||
/// Calculates Volume of elemenet
|
||||
double Volume (const T_POINTS & points) const;
|
||||
///
|
||||
virtual void Print (ostream & ost) const;
|
||||
void Print (ostream & ost) const;
|
||||
///
|
||||
int GetNFaces () const
|
||||
{
|
||||
|
@ -54,6 +54,7 @@ namespace netgen
|
||||
Array<SurfaceElementIndex> seia;
|
||||
mesh.GetSurfaceElementsOfFace (faceindex, seia);
|
||||
|
||||
/*
|
||||
bool mixed = 0;
|
||||
for (i = 0; i < seia.Size(); i++)
|
||||
if (mesh[seia[i]].GetNP() != 3)
|
||||
@ -61,7 +62,7 @@ namespace netgen
|
||||
mixed = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
int loci;
|
||||
double fact;
|
||||
|
@ -575,7 +575,7 @@ void STLSurfaceMeshing1 (STLGeometry & geom,
|
||||
double starttime = GetTime ();
|
||||
mesh.SurfaceArea().ReCalc();
|
||||
|
||||
int oldnp = mesh.GetNP();
|
||||
// int oldnp = mesh.GetNP();
|
||||
|
||||
Array<int,PointIndex::BASE> compress(mesh.GetNP());
|
||||
compress = 0;
|
||||
@ -919,13 +919,10 @@ int MeshingSTLSurface ::
|
||||
IsLineVertexOnChart (const Point3d & p1, const Point3d & p2,
|
||||
int endpoint, const PointGeomInfo & gi)
|
||||
{
|
||||
Vec3d baselinenormal = geom.meshtrignv;
|
||||
|
||||
int lineendtrig = gi.trignum;
|
||||
|
||||
|
||||
return geom.TrigIsInOC (lineendtrig, geom.meshchart);
|
||||
|
||||
// Vec3d baselinenormal = geom.meshtrignv;
|
||||
// Vec3d linenormal = geom.GetTriangleNormal (lineendtrig);
|
||||
// return ( (baselinenormal * linenormal) > cos (30 * (M_PI/180)) );
|
||||
}
|
||||
|
@ -2678,7 +2678,7 @@ void STLGeometry :: AddFaceEdges()
|
||||
{
|
||||
const STLChart& c = GetChart(chartindex.Get(i));
|
||||
// bool foundone = false;
|
||||
int longest_ap1, longest_ap2 = -1;
|
||||
int longest_ap1 = -1, longest_ap2 = -1;
|
||||
double maxlen = -1;
|
||||
for (int j = 1; j <= c.GetNChartT(); j++)
|
||||
{
|
||||
|
@ -23,7 +23,6 @@ void STLGeometry :: MakeAtlas(Mesh & mesh)
|
||||
int timer2 = NgProfiler::CreateTimer ("makeatlas - part 2");
|
||||
int timer3 = NgProfiler::CreateTimer ("makeatlas - part 3");
|
||||
int timer4 = NgProfiler::CreateTimer ("makeatlas - part 4");
|
||||
int timer4a = NgProfiler::CreateTimer ("makeatlas - part 4a");
|
||||
int timer5 = NgProfiler::CreateTimer ("makeatlas - part 5");
|
||||
|
||||
PushStatusF("Make Atlas");
|
||||
|
Loading…
Reference in New Issue
Block a user