-// File: IntCurve_Polygon2dGen.gxx
-// Created: Mon Oct 12 17:17:30 1992
-// Author: Laurent BUCHARD
+// Created on: 1992-10-12
+// Created by: Laurent BUCHARD
+// Copyright (c) 1992-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 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.
#define TEST 0
TheParams.SetValue(MaxIndexUsed,u);
Standard_Real u1m = 0.5*(u+TheParams.Value(TheIndex.Value(i-1)));
- Standard_Real um2 = 0.5*(u+TheParams.Value(TheIndex.Value(i+1)));
gp_Pnt2d P1m = TheCurveTool::Value(C,u1m);
-#ifdef DEB
- gp_Pnt2d Pm2 = TheCurveTool::Value(C,um2);
-#else
- TheCurveTool::Value(C,um2);
-#endif
- gp_Lin2d L1m(P1,gp_Dir2d(gp_Vec2d(P1,Pm)));
-#ifdef DEB
- gp_Lin2d Lm2(Pm,gp_Dir2d(gp_Vec2d(Pm,ThePnts.Value(TheIndex.Value(i+1)))));
-#else
- ThePnts.Value(TheIndex.Value(i+1));
-#endif
- t = L1m.Distance(P1m);
+ gp_Lin2d L1m(P1,gp_Dir2d(gp_Vec2d(P1,Pm)));
+ t = L1m.Distance(P1m);
i--;
}
}