Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 09:13:52

0001 // Created on: 1995-12-06
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1995-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _BRepCheck_HeaderFile
0018 #define _BRepCheck_HeaderFile
0019 
0020 #include <Adaptor3d_Surface.hxx>
0021 #include <BRepCheck_Status.hxx>
0022 #include <NCollection_List.hxx>
0023 #include <NCollection_Shared.hxx>
0024 #include <Standard_OStream.hxx>
0025 
0026 class TopoDS_Wire;
0027 class TopoDS_Face;
0028 class TopoDS_Edge;
0029 class Adaptor3d_Curve;
0030 
0031 //! This package provides tools to check the validity
0032 //! of the BRep.
0033 class BRepCheck
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT static void Add(NCollection_List<BRepCheck_Status>& List,
0039                                   const BRepCheck_Status              Stat);
0040 
0041   Standard_EXPORT static void Print(const BRepCheck_Status Stat, Standard_OStream& OS);
0042 
0043   Standard_EXPORT static bool SelfIntersection(const TopoDS_Wire& W,
0044                                                const TopoDS_Face& F,
0045                                                TopoDS_Edge&       E1,
0046                                                TopoDS_Edge&       E2);
0047 
0048   //! Returns the resolution on the 3d curve
0049   Standard_EXPORT static double PrecCurve(const Adaptor3d_Curve& aAC3D);
0050 
0051   //! Returns the resolution on the surface
0052   Standard_EXPORT static double PrecSurface(const occ::handle<Adaptor3d_Surface>& aAHSurf);
0053 };
0054 
0055 #endif // _BRepCheck_HeaderFile