-// 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.
//=======================================================================
//purpose : Members to transfert any BRepEntity into TopoDS_Shape
//S4181 pdn 20.04.99 implementing of reading IGES elementary surfaces.
//pdn 20.04.99 CTS22655 avoid of exceptions in case of empty loops
-#include <Standard_ErrorHandler.hxx>
-#include <IGESToBRep_BRepEntity.ixx>
-#include <IGESToBRep.hxx>
-#include <IGESToBRep_BasicCurve.hxx>
-#include <IGESToBRep_BasicSurface.hxx>
-#include <IGESToBRep_CurveAndSurface.hxx>
-#include <IGESToBRep_TopoCurve.hxx>
-#include <IGESToBRep_TopoSurface.hxx>
-
#include <BRep_Builder.hxx>
#include <BRep_Tool.hxx>
#include <BRepTools.hxx>
-
#include <Geom_Curve.hxx>
#include <Geom_TrimmedCurve.hxx>
-
#include <gp.hxx>
#include <gp_Pnt.hxx>
-
+#include <gp_Trsf2d.hxx>
+#include <gp_Vec2d.hxx>
#include <IGESBasic_SingleParent.hxx>
-
-#include <IGESData_IGESEntity.hxx>
#include <IGESData_HArray1OfIGESEntity.hxx>
+#include <IGESData_IGESEntity.hxx>
+#include <IGESData_IGESModel.hxx>
#include <IGESData_ToolLocation.hxx>
-
#include <IGESGeom_Boundary.hxx>
#include <IGESGeom_BoundedSurface.hxx>
#include <IGESGeom_CurveOnSurface.hxx>
#include <IGESGeom_Plane.hxx>
#include <IGESGeom_TrimmedSurface.hxx>
-
+#include <IGESSolid_EdgeList.hxx>
+#include <IGESSolid_Face.hxx>
+#include <IGESSolid_Loop.hxx>
+#include <IGESSolid_ManifoldSolid.hxx>
+#include <IGESSolid_Shell.hxx>
+#include <IGESSolid_VertexList.hxx>
+#include <IGESToBRep.hxx>
+#include <IGESToBRep_AlgoContainer.hxx>
+#include <IGESToBRep_BasicCurve.hxx>
+#include <IGESToBRep_BasicSurface.hxx>
+#include <IGESToBRep_BRepEntity.hxx>
+#include <IGESToBRep_CurveAndSurface.hxx>
+#include <IGESToBRep_IGESBoundary.hxx>
+#include <IGESToBRep_ToolContainer.hxx>
+#include <IGESToBRep_TopoCurve.hxx>
+#include <IGESToBRep_TopoSurface.hxx>
#include <Interface_Macros.hxx>
-
+#include <Message_Msg.hxx>
+#include <Message_ProgressSentry.hxx>
#include <Precision.hxx>
-
+#include <ShapeBuild_Edge.hxx>
+#include <ShapeExtend_WireData.hxx>
+#include <Standard_ErrorHandler.hxx>
+#include <TCollection_HAsciiString.hxx>
#include <TopAbs_ShapeEnum.hxx>
-
#include <TopExp.hxx>
-
#include <TopLoc_Location.hxx>
-
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Face.hxx>
#include <TopoDS_Solid.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS_Wire.hxx>
-
#include <Transfer_TransientProcess.hxx>
#include <stdio.h>
-#include <gp_Vec2d.hxx>//rln
-
-#include <ShapeExtend_WireData.hxx>
-#include <ShapeBuild_Edge.hxx>
-#include <IGESToBRep_IGESBoundary.hxx>
-#include <Message_Msg.hxx>
-#include <TCollection_HAsciiString.hxx>
-#include <IGESData_IGESModel.hxx>
+//rln
//#include <ShapeFix_Face.hxx>
-#include <IGESToBRep_AlgoContainer.hxx>
-#include <IGESToBRep_ToolContainer.hxx>
-#include <Message_ProgressSentry.hxx>
-
-// mjm le 10/10/96 on force la continuity a 0 en attendant de pouvoir
-// travailler sur wire en non plus edge.
-
-
//=======================================================================
//function : IGESToBRep_BRepEntity
//purpose :
Standard_Real dist2f = p2.Distance ( pf );
Standard_Real dist1l = p1.Distance ( pl );
Standard_Real dist2l = p2.Distance ( pl );
- if ( E.Closed() || dist1f + dist2l <= dist1l + dist2f ) {
+ if ( V1.IsSame(V2) || dist1f + dist2l <= dist1l + dist2f + Precision::Confusion() ) {
//:77 if (BRepTools::Compare(V1, Vf)) //the part 'else' only if, in fact, edge should be reversed
V1.Orientation(TopAbs_FORWARD);
B.Add(E,V1);
TopoDS_Face F;
Handle(IGESData_IGESEntity) surf = start->Surface();
Standard_Integer nbloops = start->NbLoops();
- Standard_Boolean hasouterloop = start->HasOuterLoop();
IGESToBRep_TopoSurface TS(*this);
// surface