mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024171: Eliminate CLang compiler warning -Wreorder
Got rid of -Wreorder warning (wrong fields' initialization order); some warnings -Wdangling-else are also fixed
This commit is contained in:
@@ -2936,16 +2936,17 @@ Standard_Integer IntPolyh_MaillageAffinage::TriangleEdgeContact2
|
||||
else SP1.SetEdge1(-1);
|
||||
}
|
||||
else {
|
||||
PI=PE1+Edge*lambda;
|
||||
if(TriSurfID==1)
|
||||
if(Tri2.GetEdgeOrientation(EdgeIndex)>0)
|
||||
SP1.SetLambda2(lambda);
|
||||
else SP1.SetLambda2(1.0-lambda);
|
||||
if(TriSurfID==2)
|
||||
if(Tri1.GetEdgeOrientation(EdgeIndex)>0)
|
||||
SP1.SetLambda1(lambda);
|
||||
else SP1.SetLambda1(1.0-lambda);
|
||||
|
||||
PI=PE1+Edge*lambda;
|
||||
if(TriSurfID==1) {
|
||||
if(Tri2.GetEdgeOrientation(EdgeIndex)>0)
|
||||
SP1.SetLambda2(lambda);
|
||||
else SP1.SetLambda2(1.0-lambda);
|
||||
}
|
||||
if(TriSurfID==2) {
|
||||
if(Tri1.GetEdgeOrientation(EdgeIndex)>0)
|
||||
SP1.SetLambda1(lambda);
|
||||
else SP1.SetLambda1(1.0-lambda);
|
||||
}
|
||||
}
|
||||
|
||||
Standard_Real Cote23X=Cote23.X();
|
||||
|
Reference in New Issue
Block a user