Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:46:06

0001 // Created on: 1995-12-11
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_Edge_HeaderFile
0018 #define _BRepCheck_Edge_HeaderFile
0019 
0020 #include <Adaptor3d_Curve.hxx>
0021 #include <BRepCheck_Result.hxx>
0022 #include <BRepCheck_Status.hxx>
0023 
0024 class BRep_CurveRepresentation;
0025 class TopoDS_Edge;
0026 class TopoDS_Shape;
0027 
0028 class BRepCheck_Edge;
0029 DEFINE_STANDARD_HANDLE(BRepCheck_Edge, BRepCheck_Result)
0030 
0031 
0032 class BRepCheck_Edge : public BRepCheck_Result
0033 {
0034 
0035 public:
0036 
0037   
0038   Standard_EXPORT BRepCheck_Edge(const TopoDS_Edge& E);
0039   
0040   Standard_EXPORT void InContext (const TopoDS_Shape& ContextShape) Standard_OVERRIDE;
0041   
0042   Standard_EXPORT void Minimum() Standard_OVERRIDE;
0043   
0044   Standard_EXPORT void Blind() Standard_OVERRIDE;
0045   
0046   Standard_EXPORT Standard_Boolean GeometricControls() const;
0047   
0048   Standard_EXPORT void GeometricControls (const Standard_Boolean B);
0049   
0050   Standard_EXPORT Standard_Real Tolerance();
0051   
0052   //! Sets status of Edge;
0053   Standard_EXPORT void SetStatus (const BRepCheck_Status theStatus);
0054 
0055   //! Sets method to calculate distance: Calculating in finite number of points (if theIsExact
0056   //! is false, faster, but possible not correct result) or exact calculating by using 
0057   //! BRepLib_CheckCurveOnSurface class (if theIsExact is true, slowly, but more correctly).
0058   //! Exact method is used only when edge is SameParameter.
0059   //! Default method is calculating in finite number of points
0060   void SetExactMethod(Standard_Boolean theIsExact)
0061   {
0062     myIsExactMethod = theIsExact;
0063   }
0064   
0065   //! Returns true if exact method selected
0066   Standard_Boolean IsExactMethod()
0067   {
0068     return myIsExactMethod;
0069   }
0070 
0071   //! Checks, if polygon on triangulation of heEdge
0072   //! is out of 3D-curve of this edge.
0073   Standard_EXPORT BRepCheck_Status CheckPolygonOnTriangulation (const TopoDS_Edge& theEdge);
0074 
0075   DEFINE_STANDARD_RTTIEXT(BRepCheck_Edge,BRepCheck_Result)
0076 
0077 private:
0078 
0079 
0080   Handle(BRep_CurveRepresentation) myCref;
0081   Handle(Adaptor3d_Curve) myHCurve;
0082   Standard_Boolean myGctrl;
0083   Standard_Boolean myIsExactMethod;
0084 };
0085 
0086 #endif // _BRepCheck_Edge_HeaderFile