mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation
This commit is contained in:
@@ -295,20 +295,29 @@ static Standard_Integer anaface
|
||||
// On va tacher de calculer les positions et les comparer
|
||||
gp_Pnt2d fuv,luv;
|
||||
if (Edge.Orientation() == TopAbs_FORWARD)
|
||||
{ TopExp::Vertices (Edge,fv,lv);
|
||||
if (ia2d) BRep_Tool::UVPoints (Edge,Face,fuv,luv); }
|
||||
{
|
||||
TopExp::Vertices (Edge, fv, lv);
|
||||
if (ia2d) BRep_Tool::UVPoints (Edge, Face, fuv, luv);
|
||||
}
|
||||
else
|
||||
{ TopExp::Vertices (Edge,lv,fv);
|
||||
if (ia2d) BRep_Tool::UVPoints (Edge,Face,luv,fuv); }
|
||||
{
|
||||
TopExp::Vertices (Edge, lv, fv);
|
||||
if (ia2d) BRep_Tool::UVPoints (Edge, Face, luv, fuv);
|
||||
}
|
||||
gp_Pnt fp = BRep_Tool::Pnt (fv);
|
||||
gp_Pnt lp = BRep_Tool::Pnt (lv);
|
||||
gp_Pnt fxyz, lxyz;
|
||||
if (ia2d) {
|
||||
if (ia2d)
|
||||
{
|
||||
surface->D0 (fuv.X(),fuv.Y(),fxyz);
|
||||
surface->D0 (luv.X(),luv.Y(),lxyz);
|
||||
df3d = fp.Distance (fxyz); maxp3d = Max (maxp3d,df3d);
|
||||
dl3d = lp.Distance (lxyz); maxp3d = Max (maxp3d,dl3d);
|
||||
if (nbe > 1) duv = finuv.Distance (fuv); maxuv = Max (maxuv, duv);
|
||||
if (nbe > 1)
|
||||
{
|
||||
duv = finuv.Distance (fuv);
|
||||
maxuv = Max (maxuv, duv);
|
||||
}
|
||||
// et les min-max
|
||||
u1 = Min (fuv.X(),luv.X()); u2 = Max (fuv.X(),luv.X());
|
||||
v1 = Min (fuv.Y(),luv.Y()); v2 = Max (fuv.Y(),luv.Y());
|
||||
@@ -975,8 +984,12 @@ static Standard_Integer checkedge(Draw_Interpretor& di, Standard_Integer argc, c
|
||||
void SWDRAW_ShapeAnalysis::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Integer initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
Standard_CString g = SWDRAW::GroupName();
|
||||
|
||||
theCommands.Add ("tolerance","shape [tolmin tolmax:real]", __FILE__,tolerance,g);
|
||||
|
@@ -470,7 +470,11 @@ static Standard_Integer convtorevol(Draw_Interpretor& di, Standard_Integer argc,
|
||||
void SWDRAW_ShapeCustom::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Integer initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
Standard_CString g = SWDRAW::GroupName();
|
||||
|
||||
|
@@ -69,8 +69,8 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
|
||||
case 'e' : tse = TopAbs_EDGE; break;
|
||||
case 'w' : tse = TopAbs_WIRE; break;
|
||||
case 'f' : tse = TopAbs_FACE; break;
|
||||
case 's' : tse = TopAbs_SHELL;
|
||||
if (argv[3][1] == 'o') tse = TopAbs_SOLID; break;
|
||||
case 's' : tse = (argv[3][1] == 'o' ? TopAbs_SOLID : TopAbs_SHELL);
|
||||
break;
|
||||
default : break;
|
||||
}
|
||||
Standard_Boolean modexp = Standard_False;
|
||||
@@ -98,8 +98,12 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
|
||||
void SWDRAW_ShapeExtend::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Integer initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
Standard_CString g = SWDRAW::GroupName();
|
||||
theCommands.Add ("sortcompound","shape_entree shape_result type=v-e-w-f-s-so [mode=n-e-c-x]",
|
||||
__FILE__,sortcompound,g);
|
||||
|
@@ -795,7 +795,11 @@ static Standard_Integer connectedges(Draw_Interpretor& di, Standard_Integer n, c
|
||||
void SWDRAW_ShapeFix::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Integer initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
Standard_CString g = SWDRAW::GroupName();
|
||||
|
||||
|
@@ -64,7 +64,11 @@ static Standard_Integer ApplySequence(Draw_Interpretor& di,
|
||||
void SWDRAW_ShapeProcess::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Boolean initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
ShapeProcess_OperLibrary::Init();
|
||||
|
||||
|
@@ -221,11 +221,14 @@ static Standard_Integer samerange (Draw_Interpretor& di, Standard_Integer argc,
|
||||
// ## DECLARATIONS ##
|
||||
// ########################################
|
||||
|
||||
static int initactor = 0;
|
||||
|
||||
void SWDRAW_ShapeTool::InitCommands (Draw_Interpretor& theCommands)
|
||||
{
|
||||
if (initactor) return; initactor = 1;
|
||||
static int initactor = 0;
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
const char* g;
|
||||
g = "DE: old";
|
||||
|
@@ -1564,7 +1564,11 @@ Standard_Integer reshape(Draw_Interpretor& di,
|
||||
void SWDRAW_ShapeUpgrade::InitCommands(Draw_Interpretor& theCommands)
|
||||
{
|
||||
static Standard_Integer initactor = 0;
|
||||
if (initactor) return; initactor = 1;
|
||||
if (initactor)
|
||||
{
|
||||
return;
|
||||
}
|
||||
initactor = 1;
|
||||
|
||||
Standard_CString g = SWDRAW::GroupName(); // "Tests of DivideTool";
|
||||
|
||||
|
Reference in New Issue
Block a user