blob: 7016bc33e2a281a9c6cdcea60fe967a48e8602d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -aur netgen-5.3.1/libsrc/occ/Partition_Loop2d.cxx netgen-5.3.1.patched/libsrc/occ/Partition_Loop2d.cxx
--- netgen-5.3.1/libsrc/occ/Partition_Loop2d.cxx 2014-08-29 11:54:03.000000000 +0200
+++ netgen-5.3.1.patched/libsrc/occ/Partition_Loop2d.cxx 2016-04-29 10:35:56.633392514 +0200
@@ -210,7 +210,7 @@
Cc->D1(uc, PC, CTg1);
if (!isForward) CTg1.Reverse();
- Standard_Real anglemin = 3 * PI, tolAng = 1.e-8;
+ Standard_Real anglemin = 3 * M_PI, tolAng = 1.e-8;
// select an edge whose first derivative is most left of CTg1
// ie an angle between Tg1 and CTg1 is least
@@ -234,7 +234,7 @@
// -PI < angle < PI
Standard_Real angle = Tg1.Angle(CTg1);
- if (PI - Abs(angle) <= tolAng)
+ if (M_PI - Abs(angle) <= tolAng)
{
// an angle is too close to PI; assure that an angle sign really
// reflects an edge position: +PI - an edge is worst,
|