-// File: GeomFill_CircularBlendFunc.cxx
-// Created: Fri Jul 11 15:54:00 1997
-// Author: Philippe MANGIN
-// <pmn@sgi29>
-
+// Created on: 1997-07-11
+// Created by: Philippe MANGIN
+// Copyright (c) 1997-1999 Matra Datavision
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
#include <GeomFill_CircularBlendFunc.ixx>
#include <GeomFill.hxx>
static Standard_Integer NbSections = 0;
#endif
+const Standard_Real TolAng = 1.e-6;
+
GeomAbs_Shape GeomFillNextShape(const GeomAbs_Shape S)
{
switch (S) {
ns1.SetXYZ( Center.XYZ() - P1.XYZ());
ns2.SetXYZ( Center.XYZ() - P2.XYZ());
- myreverse = (DCenter.Dot(ns1.Crossed(ns2)) < 0);
+ //myreverse = (DCenter.Dot(ns1.Crossed(ns2)) < 0);
+ myreverse = Standard_False;
}
myTCurve2->D0(Param, P2);
ns1.SetXYZ( Center.XYZ() - P1.XYZ());
ns2.SetXYZ( Center.XYZ() - P2.XYZ());
- if (!ns1.IsParallel(ns2,1.e-9)) nplan = ns1.Crossed(ns2);
+ if (!ns1.IsParallel(ns2, TolAng)) nplan = ns1.Crossed(ns2);
else {
myTPath->D1(Param, Center, nplan);
if (myreverse) nplan.Reverse();
Dns1 = DCenter - DP1;
Dns2 = DCenter - DP2;
- if (!ns1.IsParallel(ns2,1.e-9)) {
+ if (!ns1.IsParallel(ns2, TolAng)) {
nplan = ns1.Crossed(ns2);
dnplan = Dns1.Crossed(ns2).Added( ns1.Crossed(Dns2));
}
Dns2 = DCenter - DP2;
D2ns2 = D2Center - D2P2;
- if (!ns1.IsParallel(ns2,1.e-9)) {
+ if (!ns1.IsParallel(ns2, TolAng)) {
nplan = ns1.Crossed(ns2);
dnplan = Dns1.Crossed(ns2).Added( ns1.Crossed(Dns2));
d2nplan.SetLinearForm(1, D2ns1.Crossed(ns2),