projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c3430
)
0023142: GccAna : suspicious else
author
ika
<ika@opencascade.com>
Thu, 11 Oct 2012 12:40:05 +0000
(16:40 +0400)
committer
ika
<ika@opencascade.com>
Thu, 15 Nov 2012 08:49:32 +0000
(12:49 +0400)
the else should be signe = +1
src/GccAna/GccAna_Circ2d2TanRad.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/GccAna/GccAna_Circ2d2TanRad.cxx
b/src/GccAna/GccAna_Circ2d2TanRad.cxx
index 7a367d52459e1254be9296df6f23bf460f102aa9..c053689be1ffd8870f5a4c0793b491ee93174edb 100755
(executable)
--- a/
src/GccAna/GccAna_Circ2d2TanRad.cxx
+++ b/
src/GccAna/GccAna_Circ2d2TanRad.cxx
@@
-471,8
+471,8
@@
GccAna_Circ2d2TanRad::
WellDone = Standard_True;
NbrSol = 1;
if (R1 < R2) { signe = -1; }
- else { signe =
-
1; }
- gp_Ax2d axe(gp_Pnt2d(center1.XY()
-
(Radius+R1)*dir1.XY()),
+ else { signe = 1; }
+ gp_Ax2d axe(gp_Pnt2d(center1.XY()
+signe*
(Radius+R1)*dir1.XY()),
dirx);
cirsol(1) = gp_Circ2d(axe,Radius);
// =================================