1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028643: Coding rules - eliminate GCC compiler warnings -Wmisleading-indentation

This commit is contained in:
kgv
2017-04-08 14:50:24 +03:00
committed by bugmaster
parent 14c4193d11
commit c48e2889cd
68 changed files with 1691 additions and 1060 deletions

View File

@@ -730,31 +730,31 @@ void Adaptor3d_CurveOnSurface::Load(const Handle(Adaptor3d_HSurface)& S)
//=======================================================================
//function : Load
//purpose :
//purpose :
//=======================================================================
void Adaptor3d_CurveOnSurface::Load(const Handle(Adaptor2d_HCurve2d)& C)
void Adaptor3d_CurveOnSurface::Load(const Handle(Adaptor2d_HCurve2d)& C)
{
myCurve = C;
if (!mySurface.IsNull())
{
EvalKPart();
GeomAbs_SurfaceType SType ;
SType = mySurface->GetType();
if( SType == GeomAbs_BSplineSurface)
EvalFirstLastSurf();
if( SType == GeomAbs_SurfaceOfExtrusion)
EvalFirstLastSurf();
if( SType == GeomAbs_SurfaceOfRevolution)
EvalFirstLastSurf();
if( SType == GeomAbs_OffsetSurface) {
SType = mySurface->BasisSurface()->GetType();
if( SType == GeomAbs_SurfaceOfRevolution ||
SType == GeomAbs_SurfaceOfExtrusion ||
SType == GeomAbs_BSplineSurface )
EvalFirstLastSurf();
}
}
if (mySurface.IsNull())
{
return;
}
EvalKPart();
GeomAbs_SurfaceType SType = mySurface->GetType();
if (SType == GeomAbs_OffsetSurface)
{
SType = mySurface->BasisSurface()->GetType();
}
if (SType == GeomAbs_BSplineSurface ||
SType == GeomAbs_SurfaceOfExtrusion ||
SType == GeomAbs_SurfaceOfRevolution)
{
EvalFirstLastSurf();
}
}
//=======================================================================