0027232: Configuration - fix mblen missing building issue on Android
[occt.git] / src / BRepFill / BRepFill_SectionPlacement.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 96e4de5..292d2b4
@@ -1,56 +1,51 @@
 // Created on: 1998-02-11
 // Created by: Philippe MANGIN
 // Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2012 OPEN CASCADE SAS
+// Copyright (c) 1999-2014 OPEN CASCADE SAS
 //
-// The content of this file is subject to the Open CASCADE Technology Public
-// License Version 6.5 (the "License"). You may not use the content of this file
-// except in compliance with the License. Please obtain a copy of the License
-// at http://www.opencascade.org and read it completely before using this file.
+// This file is part of Open CASCADE Technology software library.
 //
-// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+// 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.
 //
-// The Original Code and all software distributed under the License is
-// distributed on an "AS IS" basis, without warranty of any kind, and the
-// Initial Developer hereby disclaims all such warranties, including without
-// limitation, any warranties of merchantability, fitness for a particular
-// purpose or non-infringement. Please see the License for the specific terms
-// and conditions governing the rights and limitations under the License.
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
 
-
-#include <BRepFill_SectionPlacement.ixx>
-
-#include <TopExp_Explorer.hxx>
-#include <TopExp.hxx>
-#include <TopAbs_ShapeEnum.hxx>
-#include <TopoDS_Edge.hxx>
-#include <TopoDS_Vertex.hxx>
-#include <TopoDS.hxx>
 #include <BRep_Tool.hxx>
-#include <BRepAdaptor_HCurve.hxx>
 #include <BRepAdaptor_HCompCurve.hxx>
+#include <BRepAdaptor_HCurve.hxx>
 #include <BRepExtrema_DistShapeShape.hxx>
 #include <BRepExtrema_SupportType.hxx>
-
-#include <Geom_Curve.hxx>
+#include <BRepFill_LocationLaw.hxx>
+#include <BRepFill_SectionPlacement.hxx>
+#include <Geom_BSplineCurve.hxx>
 #include <Geom_CartesianPoint.hxx>
-#include <Geom_TrimmedCurve.hxx>
+#include <Geom_Curve.hxx>
 #include <Geom_Line.hxx>
-#include <Geom_BSplineCurve.hxx>
-#include <GeomConvert_CompCurveToBSplineCurve.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <GeomAdaptor_HCurve.hxx>
-#include <GeomFill_SectionPlacement.hxx>
+#include <GeomConvert_CompCurveToBSplineCurve.hxx>
 #include <GeomFill_LocationLaw.hxx>
-
+#include <GeomFill_SectionPlacement.hxx>
+#include <gp_Trsf.hxx>
+#include <Precision.hxx>
 #include <Standard_ConstructionError.hxx>
 #include <Standard_NotImplemented.hxx>
-#include <TColStd_Array1OfReal.hxx>
 #include <TColStd_Array1OfInteger.hxx>
-#include <Precision.hxx>
+#include <TColStd_Array1OfReal.hxx>
+#include <TopAbs_ShapeEnum.hxx>
+#include <TopExp.hxx>
+#include <TopExp_Explorer.hxx>
+#include <TopoDS.hxx>
+#include <TopoDS_Edge.hxx>
+#include <TopoDS_Shape.hxx>
+#include <TopoDS_Vertex.hxx>
 
-#if DEB
+#ifdef OCCT_DEBUG
 static Standard_Boolean myDebug = Standard_False;
 #endif
 
@@ -107,7 +102,7 @@ BRepFill_SectionPlacement(const Handle(BRepFill_LocationLaw)& Law,
   Standard_Integer ii; 
   Standard_Integer Ind1 = 0, Ind2 = 0;
   Standard_Boolean Bof, isVertex = Standard_False;
-  Standard_Real First, Last;
+  Standard_Real First = 0., Last = 0.;
   TopExp_Explorer Ex;
   TopoDS_Edge E;
   TopoDS_Vertex V;
@@ -302,7 +297,7 @@ BRepFill_SectionPlacement(const Handle(BRepFill_LocationLaw)& Law,
   Standard_Real theParam = Place.ParameterOnPath(), 
                 eps = Precision::PConfusion();
 
-#if DEB
+#ifdef OCCT_DEBUG
   if (myDebug) {
     gp_Pnt P_Path;
     P_Path = adpPath->Value(theParam);