reduce warnings

This commit is contained in:
Joachim Schoeberl 2009-06-14 10:49:08 +00:00
parent 7a6e3f64c1
commit 1fd07f3845
3 changed files with 21 additions and 16 deletions

View File

@ -544,6 +544,7 @@ HPREF_ELEMENT_TYPE ClassifyPrism(HPRefElement & el, INDEX_2_HASHTABLE<int> & edg
break;
case 1:
if(sve[0] <= 1 && sve[1] <= 1)
{
if(sve[2]==0)
{
types[0] = HP_PRISM_1FB_0E_0V;
@ -556,6 +557,7 @@ HPREF_ELEMENT_TYPE ClassifyPrism(HPRefElement & el, INDEX_2_HASHTABLE<int> & edg
types[1] = HP_PRISM_1FA_1FB_1EC_0V;
types[2] = HP_PRISM_2FA_1FB_1EC_0V;
}
}
if(sve[0] > 1 && sve[2] >= 1 && sve[1] <= 1)
{

View File

@ -162,6 +162,8 @@ Ng_GetSurfaceElement (Ng_Mesh * mesh, int num, int * pi)
case 3: et = NG_TRIG; break;
case 4: et = NG_QUAD; break;
case 6: et = NG_TRIG6; break;
default:
et = NG_TRIG; break; // for the compiler
}
return et;
}
@ -179,6 +181,8 @@ Ng_GetVolumeElement (Ng_Mesh * mesh, int num, int * pi)
case 5: et = NG_PYRAMID; break;
case 6: et = NG_PRISM; break;
case 10: et = NG_TET10; break;
default:
et = NG_TET; break; // for the compiler
}
return et;
}
@ -428,9 +432,8 @@ DLL_HEADER Ng_Result Ng_STL_InitSTLGeometry (Ng_STL_Geometry * geom)
if (readedges.Size() != 0)
{
int i;
/*
for (i = 1; i <= readedges.Size(); i+=2)
for (int i = 1; i <= readedges.Size(); i+=2)
{
cout << "e(" << readedges.Get(i) << "," << readedges.Get(i+1) << ")" << endl;
}